|
Posted by J.O. Aho on 10/01/11 11:30
Phil Nospam wrote:
> 1) If I use one of these inexpensive hosting companies, the kind that have
> web sites with mysql/php capabilities for under $100 per year, how should I
> set up my development environment? Should I set up a development database
> system at home or on the cheap web host?
I think it's better to have the development environment close by, if it's your
private site, then have it at home. This speeds up things like modify the
files or database fast and test run things will be fast too. This may not be
true for remote servers.
Do run a phpinfo() on the hosts machine, so you know what "extensions" they
use, so you can setup a php on your local server which can do the same things.
> 2) If my databases will have some fields containing URLs to pages on my site
> and other URLs to other web sites, what kind of problems will I face when I
> try to update the production DB with what I've developed on the development
> DB?
Don't use hard coded URLs, you let the php script to "ask" the web server what
ip-name it uses and then just hard code the path.
$mainpage=$_SERVER['SERVER_NAME']."/index.php";
> 3) Concidering the above question, should I try to stick with relative or
> static URLs for links to my web site?
Relative are better, as if you would make changes in your system or you change
URL or something, then you have the bad job of finding all those static URLs
before things will work okey.
//Aho
Navigation:
[Reply to this message]
|