homepage Welcome to WebmasterWorld Guest from 54.204.141.129
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
System Command - Permission Error
woldie




msg:1271728
 7:02 pm on Jan 23, 2005 (gmt 0)

Hi,

I'm trying to use the system command so that it changes to the correct directory using the 'cd' command

Now I'm getting a file permission error, however I do know why because the system command shown below is not doing what it suppose to be doing.

Can anyone tell me why?

$home_dir="/home/woldie/domain.com/";
$home_dir.= $main_cat_name;
$sys = system ("cd $home_dir");
echo "sys =(($sys)).<br><br>";

when I do echo the 'sys' variable I get nothing. Am I using the system function correctly, once I have cracked this then the whole script should work fine.

Thanks again

W.

 

Timotheos




msg:1271729
 4:21 pm on Jan 24, 2005 (gmt 0)

What do you think the returned value should be? I would expect nothing but I may be showing my ignorance here ;-)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved