Reply to Undefined variable

Your name:

Reply:


Posted by Bertman on 10/07/31 11:12

Hello,



I get an error with a lot off php pages. Most common error is: Undefined
variable. I know how to solve it, by using 'isset', but I have it with
existing scripts like PHPnuke. I also can solve it by changing
'error_reporting' but then something would work on the PHPnuke portal. So I
have to find a good solution.



I did a little test, I downloaded and installed MSAS (Mambo Stand Alone
Server). And on my own server I had made a little php file with this text:



<?php
if ($httpref==1) { }
?>



And I get the error:

Notice: Undefined variable: httpref in
D:\Apache\Apache2\htdocs\vakd\website\test\test.php on line 2



I tried it on the MSAS server and I didn't get an error. So I tried to find
a different between php.ini and httpd.conf. But I didn't saw a real
different.



Does anyone has an idea ?



I have:

Windows 2000

Apache 2.0.53

PHP 4.3.10




Bertman

[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

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