Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
I have trouble of using symlink(). If I tried to symlink a file from a non-public directory, it never works.Code: Select all
if (!symlink('/nonpublic/path/protectedfile.txt', '/public/path/downloadablefile.txt')) die('Bad Symlink');
echo('Successful Symlink');Code: Select all
if (!symlink('/public/path/protectedfile.txt', '/public/path/downloadablefile.txt')) die('Bad Symlink');
if (!unlink(/public/path/downloadablefile.txt)) die("Bad Unlink");
echo('Successful Symlink and Delete');Jcart | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]