You are here: Re: problems using copy() and rename() « PHP Programming Language « IT news, forums, messages
Re: problems using copy() and rename()

Posted by peter on 10/21/06 23:05

> That has thrown up lots of notices, most of which are of the type:
> Notice: Use of undefined constant archivequest - assumed 'archivequest' in
> ......
>
> seems to be picking up all my variables ie in the above example
> $archivequest do you know how to clear these type of notices?

had a quick look over your code and the reason for those errors are as
follows:-

you have lines such as:-

$archivequest=$_SESSION[archivequest];

it should be:-

$archivequest=$_SESSION['archivequest'];

because you do not have the quotes around them it is assuming they are
constants but as no constant is there it is using it as a string. This will
not always be the desired effect. Try and work with the error reporting
level that I already mentioned and it will cut down on alot of possible bugs
in your code.

 

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

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