PDA

View Full Version : Running PHP+apache locally



mooler
April 27th, 2003, 09:35 AM
Hi Iīm new to this and have a question

Iīve installed apache 2.0.45 and PHP 4.2.3 and used phpdev to get it started and it checks ou ok when running through the testpages of phpdev
But when I test my site (php+flash) php doesnīt seem to work.

Now what I wonder is do I have to run my html pages from a specific location (ie the phpdev folder) or should PHP be able to run from anywere on my computer?

ahmed
April 27th, 2003, 10:14 AM
Make sure you have apache running, and when you come to call a script, the path should be 'http://127.0.0.1/script.php' :)

mooler
April 27th, 2003, 11:27 AM
loadVariables("http://127.0.0.1/script.php", _self);

Something like this from my swf?

Canīt I call it without the "whole" path like a "local" path like this

loadVariables("script.php", _self);

or is that why my code isnīt functioning!

ahmed
April 27th, 2003, 02:01 PM
If you place your swf inside the www folder you can use the relative path. Otherwise you'll the full path. And, are you sure the script actually works? try calling it from a browser and make sure there are no errors :)

mooler
April 27th, 2003, 03:52 PM
Yes the script works and I finally got it working. It was my misstake ( isnīt it always?!) didnīt now I had to have the files in the www folder :alien:

Thanks alot for your time hope Iīll be able to help you sometime (not likely ;-) but who knows).

ahmed
April 27th, 2003, 03:53 PM
haha it's okay... let me know if you need some more help ;)