Hi. Just found some code at PHP.net, it is;
echo "Dir does not exist!";
mkdir("/your/path",0777);
}
What exactly does the @ do? Anyone who does PHP programming know? Why not just use;
echo "Dir does not exist!";
mkdir("/your/path",0777);
}
Thanks
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Code:
if(!@is_dir("/your/path")){ echo "Dir does not exist!";
mkdir("/your/path",0777);
}
What exactly does the @ do? Anyone who does PHP programming know? Why not just use;
Code:
if(!@is_dir("/your/path")){ echo "Dir does not exist!";
mkdir("/your/path",0777);
}
Thanks
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!