Re: variables empty

From: Date: Tue, 17 Apr 2001 16:37:45 +0000
Subject: Re: variables empty
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-49007@lists.php.net to get a copy of this message
Dennis Haller schrieb: > I've got this problem with variables. In the code below I've got the > variables: $jaar and $vak, if I echo them they r displayed correctly, but if > the function unlink is called it doesnt seem to know what $jaar and $vak > are. If I do $the_path = "/home/H0RNET/ftp/jaar1/PRO/"; then the function > unlink works just fine. > Do I have to declare the 2 variables again? What is the problem here? > > Thx, > H0RNET > > <?php > $the_path = "/home/H0RNET/ftp/$jaar/$vak/"; > > if ($d) > { > unlink ("$the_path$d"); > } What's the value of $d is unlink ever executed? Try unlink($the_path . $d). Ulf -- Neu: PEAR Menu 3 - Navigationsstrukturen dynamisch dargestellt http://www.ulf-wendel.de/projekte/menu/tutorial.php | http://www.phpdoc.de

« previous php.general (#49007) next »