PHP - where to get the right version?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
crazytopu
Forum Contributor
Posts: 259
Joined: Fri Nov 07, 2003 12:43 pm
Location: London, UK
Contact:

PHP - where to get the right version?

Post by crazytopu »

I installed PHP 4.3.4 from the following site:

http://www.php.net/downloads.php

where i found two option for windows binary:


Windows Binaries


All Windows binaries can be used on Windows 98/Me and on Windows NT/2000/XP.

PHP 4.3.4 zip package [6,815Kb] - 03 November 2003
(CGI binary plus server API versions for Apache, Apache2 (experimental), ISAPI, NSAPI, Servlet and Pi3Web. MySQL support built-in, many extensions included, packaged as zip)
md5: 0c435d779cc61ed446fc69ee77f01abe


PHP 4.3.4 installer [1,043Kb] - 03 November 2003
(CGI only, MySQL support built-in, packaged as Windows installer to install and configure PHP, and automatically configure IIS, PWS and Xitami, with manual configuration for other servers. N.B. no external extensions included)
md5: 261fb88be82c3d32ae441b48555ba4a3


I installed the first one but it's not working on my pc i mean i m not getting output by executing PHP command on my apache server.


I want to install another copy of PHP. Which copy did you try that is working properly in your pc?
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

I personally been using the .zip'ed versions from before version 3.0 so....
Reason for that is that I use php as a module, that gives me better results at least in speed.

What did the script you tried to run look like?
crazytopu
Forum Contributor
Posts: 259
Joined: Fri Nov 07, 2003 12:43 pm
Location: London, UK
Contact:

Post by crazytopu »

At the beginning I tried to run the following code which is actually a very simple one indeed:

<?php
phpinfo();
?>

Later on i tried to run some PHP code which output something on the screen. For example " Hello World ".

The code i assume to be the perfect because i consulted several PHP books and online tutorial to cross-check my code.

I save all these codes as .php and put them all under apache group/apache/root directory [can't exactly remember the name of the folder].

But before i run the PHP code i configured httpd file and insert 3 lines of code to make sure that my apache server understand .php files and execute them properly.

My apache works fine alone when i type http://localhost

But if i try something like http://localhost/info.php

It seems it is working but i get a white blank page instead of any output. If i then view - source i see the PHP code. So, it's obvious my PHP is executing partially but giving me no output.

Any idea? Don't you think there is anything to do with the version? A fresh copy of PHP is required, right? Yes i also want to run PHP as module and not as CGI binary.
User avatar
mrvanjohnson
Forum Contributor
Posts: 137
Joined: Wed May 28, 2003 11:38 am
Location: San Diego, CA

Post by mrvanjohnson »

check your httpd.conf file for Apache. Sounds like it's not processing your PHP. Unlike HTML you should not see the actual PHP code in your browser.

Your sure you only have the Apache webserver that the package installed right. Not running IIS or anything are you?

You might be better of trying a package from Firepages called phpdev which does a nice job at bundling everything together for Windows.
Post Reply