i am making a facebook app in php and am facing a basic problem. now i have a hunch on what the problem might be, but i am looking for some guidance and reassurance on whether i am correct in my assessment.
the problem in that i have a local apache sever installed v2.0.59 and php v5.0.4 and am testing my php files locally before i upload them. when i test my files locally, everything seems to work fine.
when i upload the files to my web server which runs on php v4.3.11, the files (php scripts) don't run as they ran on my local server.
my diagnosis tells me that the problem lies with the php version of my web server (v4.3.11) which doesn't play php scripts that rely on v5.0.4.
my first question is: is this assessment correct?
now i contacted my hosting service and told them to switch my web server to one that supports php 5 and they said the only option is switch to a server that runs php v5.1.6.
my second question: if my assessment above IS correct, then will my v5.0.4 php files work properly on a web server with php v5.1.6? the versions are not EXACTLY the same but they are close..
i would appreciate any advice/help on this matter.
how about either upgrading or downgrading your localhost's PHP version?
try the 4.311 version first. If the script still works then it is any of these:
- you are relying on a module which is not default
- the server is modified in some way
- the server has different rules on loading files across domains
if the script doesn't work, then upgrade your localhost to 5.16, and check the script again.