Results 1 to 6 of 6
-
11th Jun 2011, 04:38 PM #1OPMember
PHP & unrar problem, please help
Hello Guys,
I am trying to make php script on unrar specific folder, this is the code i wrote so far :
PHP Code:$files=read_folder_directory($fullpath);
foreach ($files as $key => $value) {
echo $key;
echo "<br />";
natsort($value);
foreach($value as $file) {
//echo $file;
echo "$fullpath/$key/$file";
echo "<br />";
echo $string='unrar e -y'."$fullpath/$key/$file $fullpath/$key/";
echo $exec = exec($string);
echo "<br />";
}
}
any advice will be appreciated
Thanksdima1236 Reviewed by dima1236 on . PHP & unrar problem, please help Hello Guys, I am trying to make php script on unrar specific folder, this is the code i wrote so far : $files=read_folder_directory($fullpath); foreach ($files as $key => $value) { echo $key; echo "<br />"; natsort($value); foreach($value as $file) { //echo $file; Rating: 5
-
11th Jun 2011, 10:24 PM #2MemberWebsite's:
digitalbattlefield.net imgnow.coI suspect it has to do with the quotes in this line
PHP Code:echo $string='unrar e -y'."$fullpath/$key/$file $fullpath/$key/";
PHP Code:echo $string='unrar e -y'." $fullpath/$key/$file $fullpath/$key/";
?Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.?
-
11th Jun 2011, 10:28 PM #3MemberWebsite's:
tehMoviez.com 0Senes.com GeekFaceGames.comyep, patt1293 is right, try it, if it didnt work, give us an example of that line executed by the script
JokerHacker Blog
JokerHacker PHP coding Service // back again!
CurlAxel PHP Download Accelerator
hardly remembering the milk :p
-
11th Jun 2011, 10:41 PM #4MemberWebsite's:
wautoposter.comi have made some change try this
PHP Code:$files=read_folder_directory($fullpath);
foreach ($files as $key => $value) {
echo $key;
echo "<br />";
natsort($value);
foreach($value as $file) {
//echo $file;
echo "'.$fullpath.'/'.$key.'/'.$file.'";
echo "<br />";
echo $string='unrar e -y "'.$fullpath.'/'.$key.'/'.$file.'" "'.$fullpath.'/'.$key.'/"';
echo $exec = exec($string);
echo "<br />";
}
}
-
11th Jun 2011, 10:46 PM #5MemberWebsite's:
digitalbattlefield.net imgnow.coThe way jpav did it will output the exact same results as the original.
?Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.?
-
12th Jun 2011, 06:50 AM #6OPMember
Thanks all for the replies, it seems the PHP was correct lol, but the folder didn't have the correct permissions, sorry for that, and once again thank you for helping out.
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
unrar/rar problem in rapidleech
By cyberchennai in forum Server ManagementReplies: 6Last Post: 30th Sep 2011, 02:31 PM -
Rapidleech rar unrar problem
By onel0ve in forum Technical Help Desk SupportReplies: 9Last Post: 5th Sep 2011, 04:16 PM -
Rapidleech Unrar Problem
By congratz in forum Webmaster DiscussionReplies: 2Last Post: 5th May 2011, 04:30 PM -
Rapidleech Rar-Unrar Problem
By pappunsu in forum Technical Help Desk SupportReplies: 0Last Post: 9th Apr 2011, 07:59 PM -
Rapidleech unrar Problem. Help!!
By nYXem in forum Technical Help Desk SupportReplies: 26Last Post: 4th Sep 2010, 03:15 PM
themaLeecher - leech and manage...
Version 5.03 released. Open older version (or...