Page 1 of 1
Open PHP web system from others PC
Posted: Mon Mar 19, 2007 5:43 am
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.
Posted: Mon Mar 19, 2007 6:38 am
by mikeq
How about telling what the error(s) being displayed are. I'm rubbish at guessing games.
Posted: Mon Mar 19, 2007 7:03 am
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.
Posted: Mon Mar 19, 2007 9:30 am
by feyd
What is the URL in the address bar when this happens?
Also, please don't use AOL Speak in further posts.
Posted: Mon Mar 19, 2007 10:44 pm
by S_henry
The URL is like this:
\\Johnson\E-System\staff\main.php
Posted: Mon Mar 19, 2007 11:13 pm
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.
Posted: Tue Mar 20, 2007 12:26 am
by Kieran Huggins
try
http://Johnson/{whatever goes in here}/main.php
Posted: Tue Mar 20, 2007 5:59 am
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?
Posted: Tue Mar 20, 2007 8:02 am
by feyd
Is PHP installed? Is PHP installed into a web server?
Posted: Tue Mar 20, 2007 9:18 pm
by S_henry
Yes. I have installed both PHP and MySql database.
Posted: Tue Mar 20, 2007 9:23 pm
by feyd
...and a web server? PHP into said web server?
Posted: Tue Mar 20, 2007 9:30 pm
by Kieran Huggins
maybe
uniform server would be a better choice for your server environment?
Posted: Tue Mar 20, 2007 9:44 pm
by S_henry
Yes. I have installed PHP into that web server.