Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

System Command - Permission Error

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

Full Member

10+ Year Member

joined:Feb 13, 2003
votes: 0


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.= $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


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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 13, 2003
votes: 0

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

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members