What program would I use to compile php codes? How would I then use them on my webserver? I have installed php (not sure which version) but how do I use the scripts after I compile them. I am using windows XP Pro and Apache 1.3. Also How do I configure apache to run with php? When I installed php it gave me the option to automaticly configure apache, but declined to do so saying it didn't support it yet. thanks

Dani AI

Generated

A compact, practical checklist for getting PHP working on Windows XP + Apache 1.3 (when the PHP installer will not auto-configure). This builds on points raised by and and shows the safe manual steps, quick tests, and common fixes.

Create a quick test file to confirm PHP is reachable from the browser:

<?php
phpinfo();
?>

Save that as phpinfo.php in Apache's DocumentRoot (check httpd.conf for the DocumentRoot path) and browse to it. If it shows PHP information, the integration is working and you can run your scripts directly (no compilation step).

If the installer did not touch Apache, add the PHP integration manually in httpd.conf. The exact module filename depends on the PHP build you installed; look in the PHP folder for the supplied Apache module or CGI binary. Typical config lines (use the actual DLL name you have):

LoadModule php_module "C:/php/<php_module>.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/php"

Restart Apache after editing the file.

Troubleshooting checklist:

  • Browser shows raw PHP source or forces download: Apache is not parsing .php. Verify AddType/LoadModule entries and that the file is in the server DocumentRoot.
  • Blank page or HTTP 500: check Apache error log for module load errors (often caused by using a PHP build that doesn’t match Apache). If the module fails, try the CGI/ISAPI binary or install a matching PHP build.
  • Wrong PHP version/location: run php -v on the command line (if in PATH), or check the phpinfo() output to see which php.ini is loaded.
  • If the PHP module requires a runtime (Visual C++), install the appropriate runtime for that PHP build.

Because Windows XP and Apache 1.3 are long unsupported, consider using a modern stack or a packaged installer like XAMPP to avoid compatibility issues and simplify setup. See the official PHP Windows install guide for details: Installing PHP on Windows and the XAMPP project for an easy bundle: XAMPP.

Recommended Answers

All 2 Replies

YOU dont compile php, it's phased by a web server....

if you're local hosting it is done automatically by apache/iis, and if you do itonlie it's the same, just upload the files :s

php is a script (that's why its under the scripting languages) it is parsed by your web server (as stated by suRoot). And contrary to some peoples opinion you cannot program in PHP (or for that matter ASP, HTML) they are both scripting languages

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.