On 07-08-30 08:22 -0400, Gary Mort wrote: > > $path = "/var/www/vhosts/mydomain.com/httpdocs/j/components/com_test/test/"; > $mode = 0777; > if ([EMAIL PROTECTED](substr($path,0,-1),$mode)) { > die ("Cannot create ".substr($path,0,-1)); > } >
Hi Gary, what does it complain about when you remove the error supression @s ? also, i'm curious, why are the calls to substr() necessary? does shelling out to mkdir work? `mkdir -p /var/www/vhosts/mydomain.com/httpdocs/j/components/com_test/test` is this a cli script, or one you trigger via apache? what user is running it & what exactly are the permissions? _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php