variables empty

From: Date: Tue, 17 Apr 2001 11:56:01 +0000
Subject: variables empty
Groups: php.general 
Request: Send a blank email to php-general+get-48939@lists.php.net to get a copy of this message
Hi all, 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"); } $handle = dir($the_path); $upl = $upl."<table width=\"28%\" border=\"0\">"; while ($file = $handle->read()) { if (($file != ".") && ($file != "..")) { $con = <<<giveup <tr><td width="13%" height="2">$file</a> </td><td width="87%" height="2"> <a href="$PHP_SELF?d=$file">DELETE</a></td></tr> giveup; $upl = $upl."$con"; } } $upl = $upl."</table>"; echo $upl; ?>

« previous php.general (#48939) next »