A while back, I had PHP3 installed on my windows 98 machine with PWS. When PHP4 became available, I installed PHP4. My host company supported PHP4 only with the file extension .PHP4, so this is what I used for my development machine and everything worked fine.

Now, I am working on a project with a different host company, and they are using the .PHP extension. My problem is that when I use a file with .PHP on my development machine it uses PHP3 instead of PHP4 (the PHP3 folder still exists on the PC).
I have been trying to get the .PHP extension to be used by PHP4. Any suggestions?
I am using PWS. I changed the file association in windows to the PHP4 directory and I changed entries in the registry that are mentioned in the installation file for windows.

Can anyone help? This has been driving me bananas...

Thanks,
Dave

    I see two problems for you

    1. the include files if they end with .PHP4

    2. The extensions.

    3. can be solved by UltraEdit or any other program that is capable of doing batch serch/replace on several files

    4. Probably the bet thing is to get some kind of batch rename/copy utility on the net.

    and keep seprarate copies of the diffrent versions so you won't get it mixxed up.

    Btw: All these above can be done by writing a PHP script and running it from the commandline.

      Thanks for your response Fredrik.

      I realize that I will need to rename the files from .PHP4 to .PHP and change any references in the files from .PHP4 to .PHP.

      The bigger problem that I have is .PHP files are interpreted by PHP3 and .PHP4 files are interpereted by PHP4.

      For example, the file 'phpinfo.php4' contains the command phpinfo(). The results in my browser displays "PHP Version 4.0.1pl2"

      If I rename the file to 'phpinfo.php', my browser now displays "PHP Version 3.0.14".

      Somewhere there is a reference for PWS to use the old PHP3 files to interpret .PHP files.

      I can't figure out where this reference is.

      Dave

        OK. I spent a lot of time looking for a quick solution.(sometimes this takes the longest)

        I solved my problem by uninstalling/reinstalling PWS and then installing PHP406. Then added ".PHP" and ".PHP4" to the list of extensions to be used by PHP.

          Write a Reply...