I have installed PHP4 on my Windows XP with IIS5 system. All is working fine. I have not changed any of the default settings in php.ini. I am able to code PHP applications with no problems - until the time comes to upload!
When I upload, I get the "cannot include" etc. etc. etc. error, which points out the include path definition. I have fixed this by working out the following:
It seems that my Windows system is looking for include files based on the current directory, whereas the webserver is looking based on the site root. I have hence changed my code to fit the webserver, but this means I cannot develop locally!!!
I have tried changing my php.ini to reflect the same location as the webserver, for instance by trying the actual path to the site folder, as well as the default of ".." , and also I have tried "."
I have also tried experimenting with the document root and site root variables, even though I know they are not really what I am after. Suffice to say, that did not work.
What I am after, therefore, is help in how to adjust my local php.ini file so that my PHP works the same as that of my webserver (which runs Unix FreeBSD, Apache, and PHP4). I also use phpMyAdmin, whch works fine on both systems!!! but I cannot work out how, because my coding has not yet reached that level.
I have spent two weeks looking through the forums here to see if anyone else has had this problem, it seems that some have had similar problems but all the solutions I tried did not work. I did not find anything that described this exact problem.
Thanks in advance for any help,
Dan