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 Tim Van Wassenhove on 12/18/40 11:48

On 2006-05-23, Phil Latio <phil.latio@f-in-stupid.co.uk> wrote:
>
> "Geoff Muldoon" <geoff.muldoon@trap.gmail.com> wrote in message
> news:MPG.1edd53b5f57714e29897e1@news.readfreenews.net...
>> phil.latio@f-in-stupid.co.uk says...
>>
>> > <?php
>> > /* Script 2
>> > This script does not seem assign a value to $localhost
>> > Here is the contents of config.php without the open/close PHP tags.
>> > $host = "localhost";
>>
>> Maybe because you've called it $host not $localhost ??
>>
>> GM
>
> Yes, typical I've been looking at this for 2 hours and 5 mins after posting
> I spot my obvious mistake.

Just add the following lines to your scripts (or change your php.ini)
while you're developping: (It really does make you write less mistakes)

ini_set('error_reporting', E_ALL);
ini_set('display_errors', TRUE);


--
Met vriendelijke groeten,
Tim Van Wassenhove <http://timvw.madoka.be>

 

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

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