Running PHP+apache locally

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?

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:slight_smile:

[AS]loadVariables(“http://127.0.0.1/script.php”, _self);[/AS]

Something like this from my swf?

Can´t I call it without the “whole” path like a “local” path like this

[AS]loadVariables(“script.php”, _self);[/AS]

or is that why my code isn´t functioning!

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 :slight_smile:

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 :wink: but who knows).

haha it’s okay… let me know if you need some more help :wink: