Reply to Re: Issue with PHP and hard coded site name

Your name:

Reply:


Posted by JDS on 03/21/06 16:24

On Mon, 20 Mar 2006 22:24:38 +0000, L C wrote:

> My question is: How do I get around that so I can test my edits without
> going to the web?

One thing that may help is putting the public site name in your hosts
file. In Windows, this file is typically

c:\windows\hosts (win9x)
OR
c:\windows\system32\drivers\etc\hosts (WinNT/2000/XPPro)
OR
c:\winnt\system32\drivers\etc\hosts (WinXP Home)

Put a line like this:
192.168.1.100 www.publicsite.com


Although, I admit, this is an incomplete solution. You really need to
simulate the server environment on your local machine to do proper
testing. "Simulate the server environment" is pretty easy, though -- just
install a PHP-enabled webserver.

Google on

"php webserver install windows"

or something similar.

Post back more questions when you get stuck.

later...


--
JDS | jeffrey@example.invalid
| http://www.newtnotes.com
DJMBS | http://newtnotes.com/doctor-jeff-master-brainsurgeon/

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация