Click to See Complete Forum and Search --> : PHP on home network


MaxDax
03-15-2004, 04:02 PM
Hi

I have a 2 computer home network and I have installed PHP on one computer ('server'). Is it possible to access PHP from the other computer which does not have PHP installed?

If so how?

My 'server' computer is running win2K has PHP & MySQL installed and IIS is enabled.

Thanks
MaxDax

The Cheat
03-15-2004, 08:00 PM
try typing in
http://COMPUTERNAMEHERE/
insead of http://localhost/ or http://127.0.0.1

i tried this and it works in IE but not in Moz for some reason.

good luck


EDIT: i tried this on apache web server, i do not know about IIS.... its worth a try though

ermau
03-16-2004, 05:40 AM
What you want to do is (for apache) make sure your httpd.conf file is set up to accept connections from whatever address you're trying to reach it from (search for "ServerName" in httpd.conf w/o the quotes.)

What I would suggest is to use it's network IP, rather than it's computer name. Usually 192.168.0.x you can find this by doing the following actions on the server machine (assuming it's Win32)

Start -> run: cmd
Type in: ipconfig
It should give you the ip of the machine, try setting it up in httpd.conf and accessing it through that ip.

budihost
03-16-2004, 07:34 AM
IIS somehow can have PHP interpreter with it, but I'm not sure about the configuration. You can access the pc from other computer using its IP...

MaxDax
03-16-2004, 01:46 PM
Thanks everyone.

It's still not working. I wll have to play some more and find out why.

I think the next step is to see if it all works on the server computer and once it is, then try and access it from my other computer.

Cheers
MaxDax

budihost
03-16-2004, 04:16 PM
for a network, you have to configure both computer for network. have you setup the ip and computer name of each computer in tcp/ip in control panel?