View Full Version : Sharing some PHP pages in a LAN
getbiplab
25th February 2008, 06:19
I have some PHP pages where there is a need to share them among some clients..I want the pages to be kept in a server where frm the clients can access them....Is it possible to implement it with CGI????plz suggest and plz in detail...
topdog
25th February 2008, 08:51
What kind of php pages are they web based or command line scripts ?
getbiplab
25th February 2008, 08:54
I have web based php pages....with mysql database connection
topdog
25th February 2008, 09:12
Just setup a webserver on the lan.
make-fun
5th April 2008, 08:43
Hi there,
here's what I've done to have a local testing environment — in detail and assuming you're on Win…?! or if not you figure how to do it on Linux.
Edit your Windows Host-File (C:\WINDOWS\system32\drivers\etc\hosts) with some Domain-Names which will be routed to your own Computer/Localhost/Testserver
Let's say you're working on a project called "newhowtoforge" then set an entry in a new line:
127.0.0.1 www.newhowtoforge--2--mynetwork.com
(you will never be able to access this domain if someone would really register it, as you are telling your computer to look for it at IP 127.0.0.1 - your machine)
Install XAMPP for Windows on your local machine (http://www.apachefriends.org)
Edit the XAMPP Apache-httpd.conf in D:\apachefriends\xampp\apache\conf\httpd.conf (if you install in D:)
Look for the section "NameVirtualHost 127.0.0.1" in httpd.conf and add a VirtualHost for your project called "newhowtoforge":
<VirtualHost 127.0.0.1>
ServerName www.newhowtoforge--2--mynetwork.com
ServerAlias www.newhowtoforge--2--mynetwork.com
DocumentRoot "D:/yourProjects/newhowtoforge"
ErrorLog "D:/yourProjects/newhowtoforge/error.log"
TransferLog "D:/yourProjects/newhowtoforge/access.log"
</VirtualHost>
And put your files in that dir…
And then get your friends to change thier Edit Windows Host-File (as in step 1), but point it to the IP of the XAMPP install. Then they'll all get a nice looking web site when they type http://www.newhowtoforge--2--mynetwork.com in thier browser
Hope this helps — if you still need it ;-)
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.