browser question

General discussions related to php

Moderators: macek, egami, gesf

LTLhawk
New php-forum User
New php-forum User
Posts: 29
Joined: Fri Mar 07, 2003 4:17 pm

browser question

Postby LTLhawk » Sun Apr 27, 2003 4:11 pm

Hi Folks,

my browser opens up php pages just fine from my web server, but if I try and open the page from my hard drive outside the web server then it doesnt work..... in other words if I open it as http://www.my.server.com/test.php it opens fine, but if I try and open C:/file directory/test.php it does not load....

User avatar
bezmond
Moderator
Moderator
Posts: 312
Joined: Sat Apr 05, 2003 4:33 am
Location: Mansfield, UK
Contact:

Postby bezmond » Sun Apr 27, 2003 10:59 pm

When you run a script on a server, the script is executerd. A script in PHP requires a web server. So running any script from c:\xxx\yyy.php will not be executed.

Regards,
Andrew

LTLhawk
New php-forum User
New php-forum User
Posts: 29
Joined: Fri Mar 07, 2003 4:17 pm

Postby LTLhawk » Mon Apr 28, 2003 2:24 am

oh..I see....thanks Andrew

LTLhawk
New php-forum User
New php-forum User
Posts: 29
Joined: Fri Mar 07, 2003 4:17 pm

Postby LTLhawk » Mon Apr 28, 2003 7:34 am

If anyone is interested in running php scripts outside of the web server you should look at this....

http://gtk.php.net/

I installe this and now I can run php scripts from anywhere I want...yeahaw

User avatar
bezmond
Moderator
Moderator
Posts: 312
Joined: Sat Apr 05, 2003 4:33 am
Location: Mansfield, UK
Contact:

Postby bezmond » Mon Apr 28, 2003 7:55 am

cool, I like it!

Andrew


Return to “PHP General”

Who is online

Users browsing this forum: No registered users and 1 guest