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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]