View Single Post
Old October 28th, 2006, 11:25 PM   #1 (permalink)
dcook8645
Junior Member
Verified Customer
 
Join Date: Oct 2006
Posts: 29
Undefined variable: argv

I am seeing this alot in my apache logs

[client 24.137.213.35] PHP Notice: Undefined variable: argv in /srv/vhosts/cookalbums.ca/photoalbum/index.php on line 15
[client 24.137.213.35] PHP Notice: Undefined variable: argv in /srv/vhosts/cookalbums.ca/photoalbum/index.php on line 15, referer: http://cookalbums.ca/photoalbum/showgallery.php/cat/524
[client 24.137.213.35] PHP Notice: Undefined variable: argv in /srv/vhosts/cookalbums.ca/photoalbum/index.php on line 15, referer: http://cookalbums.ca/photoalbum/showgallery.php/cat/525
[client 24.137.213.35] PHP Notice: Undefined variable: argv in /srv/vhosts/cookalbums.ca/photoalbum/index.php on line 15, referer: http://cookalbums.ca/photoalbum/showgallery.php/cat/517
[client 24.137.213.35] PHP Notice: Undefined variable: argv in /srv/vhosts/cookalbums.ca/photoalbum/index.php on line 15, referer: http://cookalbums.ca/photoalbum/showgallery.php/cat/506
[client 24.137.213.35] PHP Notice: Undefined variable: argv in /srv/vhosts/cookalbums.ca/photoalbum/index.php on line 15, referer: http://cookalbums.ca/photoalbum/showgallery.php/cat/517
[client 24.137.213.35] PHP Notice: Undefined variable: argv in /srv/vhosts/cookalbums.ca/photoalbum/index.php on line 15, referer: http://cookalbums.ca/photoalbum/showgallery.php/cat/509
[client 24.137.213.35] PHP Notice: Undefined variable: argv in /srv/vhosts/cookalbums.ca/photoalbum/index.php on line 15, referer: http://cookalbums.ca/photoalbum/adm-...dmact=sidemenu
[client 24.137.213.35] PHP Notice: Undefined variable: argv in /srv/vhosts/cookalbums.ca/photoalbum/index.php on line 15, referer: http://cookalbums.ca/photoalbum/adm-...dmact=sidemenu
[client 24.137.213.35] PHP Notice: Undefined variable: argv in /srv/vhosts/cookalbums.ca/photoalbum/index.php on line 15



Photopost seems to be working fine, I can not see anything wrong.

Line 15:
if ( is_numeric($argv[0]) )

Here is what the index.php file has around line 15:

// //
// PhotoPost Copyright 2006, All Enthusiast, Inc. //
////////////////////////////////////////////////////////////////////////////

if ( is_numeric($argv[0]) )
{
header("Location: {$Globals['maindir']}/showphoto.php?photo={$argv[0]}");
exit;
}



Thanks
Duane
dcook8645 is offline   Reply With Quote