Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 30th, 2008, 10:56 PM
Authorized User
 
Join Date: Jan 2008
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default connect to other localhost komputer

Hi

i have some problem need somebody help me.
i have been trying the connection between 2 computer.
1st computer with Apache2Triad installed and the website is stored over here.
then i connect the 1st computer with the 2nd computer.
and at 2nd computer's browser, i typed as below
http://{ip 1st Computer}/{name of the website which i want access from 1st computer}
is it correct for above statement like
http://192.168.1.2/MyPage

then give me the bad results which the website become messy as unlike i run it locally at 1st komputer.

do have any way/step that i must do?

thanks in advance and last.

 
Old January 31st, 2008, 12:50 AM
Friend of Wrox
 
Join Date: Oct 2007
Posts: 130
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via AIM to urtrivedi
Default

Try everything on same pc1
1)Try that address on same pc, if it works or not
2) do you have set index.html or index.php or default.html or default.php in you web settig, if not then try follwing

http://192.168.1.2/MyPage/anypage.php

here anypage.php may be any page in you website
3) check whether apache service is on or not, apache monitor.

if it works on same pc and if you network is proper then it should work on any lan pc.


urt
 
Old January 31st, 2008, 11:04 PM
Authorized User
 
Join Date: Jan 2008
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi

i still can't view it.
i set my pc ip address 192.168.1.3
then i type http://192.168.1.3/MyPage on my pc or other pc in LAN, prompted me the object not found.

if i try http://127.0.0.1/MyPage, it worked on my pc only.

so do anybody know how to solve this issue?
thanks in advance and last.


 
Old February 1st, 2008, 12:34 AM
Friend of Wrox
 
Join Date: Oct 2007
Posts: 130
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via AIM to urtrivedi
Default

Are you able to view you computer from network place?
Also check ping command works from you client pc or not.

urt

Help yourself by helping someone.
 
Old February 1st, 2008, 12:39 AM
Friend of Wrox
 
Join Date: Oct 2007
Posts: 130
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via AIM to urtrivedi
Default

Try following from client pc's browser
http://SERVER_PC_NAME/MyPage


urt

Help yourself by helping someone.
 
Old February 1st, 2008, 12:43 AM
Authorized User
 
Join Date: Jan 2008
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

everything is ok and i already try to ping it.
i forgot to tell, i used CMS to build my website.

is it any problem?






Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to connect to Visual Studio's Localhost Web davidc BOOK: Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter ISBN: 978-0-7645-8807-5 2 May 1st, 2007 12:01 PM
can't connect to localhost dmlocke Beginning PHP 1 October 16th, 2006 01:29 PM
Can't connect to mySql server using localhost RobinR MySQL 3 January 30th, 2006 10:07 PM
CAN'T CONNECT TO LOCALHOST.... lamada BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 3 December 13th, 2005 06:01 PM
do not want to use localhost p2ptolu Classic ASP Databases 1 September 15th, 2005 06:03 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.