| Web Design & Programming Building websites, coding scripts or developing apps? html, css, javascripts, ajax, php, asp, java, c+, C++ and other geeky info is here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| Status: Junior Member Join Date: Aug 2009 Posts: 1
![]() | I'm trying to delete a file located on my site's directory at mysite/test.php using unlink() 1. If I write unlink('test.php'), everything works perfectly. 2. If I use a variable for the file like $a='test.php'; unlink($a) or unlink('$a') or unlink('<? echo $a?>') or unlink('".$a."'), it's returning an error message. Can you please give me a hint how I can use a variable instead of a string with the function? Many thanks. |
| | |
![]() |
| Thread Tools | |
| Display Modes | |
| |