Open PHP web system from others PC

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
S_henry
Forum Contributor
Posts: 148
Joined: Sun Jan 25, 2004 10:25 pm
Location: M'sia

Open PHP web system from others PC

Post by S_henry »

Hi guys,
I have developed a web-based system in my machine by using PHP 4.3.2 and MySql. I'm using Windows XP as my OS. The problem is when I want to open this system from another PC (using Internet Explorer), it cannot. Anybody can help me pls? Thanks.
User avatar
mikeq
Forum Regular
Posts: 512
Joined: Fri May 03, 2002 3:33 am
Location: Edinburgh, Scotland

Post by mikeq »

How about telling what the error(s) being displayed are. I'm rubbish at guessing games.
S_henry
Forum Contributor
Posts: 148
Joined: Sun Jan 25, 2004 10:25 pm
Location: M'sia

Post by S_henry »

When I try to open the web system by using web browser (Internet Explorer), got 1 popup asking what program I want to use to open the file. When I choose to use Internet Explorer, the file is opened by notepad automatically viewing the source code of the php page. Do you have any idea? So sorry if my explanation is still not clear.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

What is the URL in the address bar when this happens?

Also, please don't use AOL Speak in further posts.
S_henry
Forum Contributor
Posts: 148
Joined: Sun Jan 25, 2004 10:25 pm
Location: M'sia

Post by S_henry »

The URL is like this:

\\Johnson\E-System\staff\main.php
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

That would be why you saw the code and not the processed version. The URL you specified is a direct network path. It doesn't go through standard HTTP requests when directly accessing a network resource like that.
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

try http://Johnson/{whatever goes in here}/main.php
S_henry
Forum Contributor
Posts: 148
Joined: Sun Jan 25, 2004 10:25 pm
Location: M'sia

Post by S_henry »

Now I have put the correct address as suggested but still can't open. It shows "The page cannot be displayed". Anybody has any idea pls?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Is PHP installed? Is PHP installed into a web server?
S_henry
Forum Contributor
Posts: 148
Joined: Sun Jan 25, 2004 10:25 pm
Location: M'sia

Post by S_henry »

Yes. I have installed both PHP and MySql database.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

...and a web server? PHP into said web server?
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

maybe uniform server would be a better choice for your server environment?
S_henry
Forum Contributor
Posts: 148
Joined: Sun Jan 25, 2004 10:25 pm
Location: M'sia

Post by S_henry »

Yes. I have installed PHP into that web server.
Post Reply