RE: [PHP] this line throws up an undefined index.

2006-01-30 Thread Albert
Ross wrote: > $link= "../text_only/$filename"; > ?> > > > any ideas how to prevent this error? >From the PHP Documentation: "$_SERVER is an array containing information such as headers, paths, and script locations. The entries in this array are created by the webserver. There is no guarantee that

Re: [PHP] this line throws up an undefined index.

2006-01-30 Thread Jochem Maas
Ross wrote: any ideas how to prevent this error? $_SERVER is an array. and also a variable. we can be sure it exists if we are running a webserver php module, so we don't need to test if it's set or not BUT the index of the array pointed to by 'SCRIPT_FILENAME' does not necessarily exist so

[PHP] this line throws up an undefined index.

2006-01-30 Thread Ross
any ideas how to prevent this error? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php