what does $annrow[id] return?
I HAVE found that I have to refer to a file when using file_exists() from /
so
file_exists(/path/to/me/cherpdocs/filename.doc)
for it to work right.
Jim
- Original Message -
From: Charles Kline [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, March
because you can't directly use the $annrow[id] within single quotes, you
should use double quotes to do so.
file_exists(cherpdocs/$annrow[id].doc)
or
file_exists('cherpdocs/'.$annrow[id].'.doc')
or
file_exists(cherpdocs/.$annrow[id]..doc)
Note: i heared it's prefered to always use the .
You will probably need to use
file_exists(cherpdocs/{$annrow['id']}.doc) you could also use
file_exists('cherpdocs/' . $annrow['id'] . '.doc')
You should use single quotes to identify your element in an array,
otherwise PHP will try to use it as a constant first.
Jason
On Sat, 2003-03-08 at
At 22:40 08.03.2003, Khalid El-Kary said:
[snip]
because you can't directly use the $annrow[id] within single quotes, you
should use double quotes to do so.
file_exists(cherpdocs/$annrow[id].doc)
or
file_exists('cherpdocs/'.$annrow[id].'.doc')
or
on 09/03/03 8:10 AM, Charles Kline ([EMAIL PROTECTED]) wrote:
if(file_exists('cherpdocs/$annrow[id].doc')){
echo br /a href=\cherpdocs/$annrow[id].doc\Funding
details paper/a;
}
This is a pretty simple debugging type query, so:
First things first, make sure that $annrow[id] is what you
5 matches
Mail list logo