You are here: Re: Defining variables in a seperate file « PHP Programming Language « IT news, forums, messages
Re: Defining variables in a seperate file

Posted by Rik on 10/16/15 11:48

Rik wrote:
> One of two?
>
>> $host = "localhost";
>> $db = new MySQL($localhost.....
>
>> Here is the contents of config.php
>> require_once("configuration.php");

BTW: this is one of the reasons I like to build code with E_NOTICE on: if
would have given me notive $localhost is undefined...

Grtz,
--
Rik Wasmus

 

Navigation:

[Reply to this 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

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