İyinet'e Hoşgeldiniz!

Türkiye'nin En Eski Webmaster Forum'una Hemen Kayıt Olun!

Kayıt Ol!

ssh da db yi yedeklemek.

Angelo

0
İyinet Üyesi
Katılım
13 Aralık 2004
Mesajlar
9,603
Reaction score
111
Konum
AZ
Yeah, the script reads the source file and write the target file. So its ok to have the source file as URL or path, no difference. But the target file must be a writeable path, not an HTTP connection.
 

Desi-Instincts

0
İyinet Üyesi
Katılım
11 Mart 2008
Mesajlar
66
Reaction score
0
After making the changes it says this :

Warning: fopen(/mounted-storage/home90b/sub008/sc42254-ESFQ/www/tmp/http://desi-instincts.com/Games%20(Latest)%20(2007)/GtASa/GTA%20San%20Andreas.part01.exe.001) [function.fopen]: failed to open stream: No such file or directory in /mounted-storage/home90b/sub008/sc42254-ESFQ/www/filesplit.php on line 62
Splitting http://desi-instincts.com/Games (Latest) (2007)/GtASa/GTA San Andreas.part01.exe into 100 Mb files (last piece may be smaller in size) ...
/mounted-storage/home90b/sub008/sc42254-ESFQ/www/tmp/http://desi-instincts.com/Games%20(Latest)%20(2007)/GtASa/GTA%20San%20Andreas.part01.exe.001

Warning: fwrite(): supplied argument is not a valid stream resource in /mounted-storage/home90b/sub008/sc42254-ESFQ/www/filesplit.php on line 67
filesplit.php is unable to write to current folder.
I think it does not have write permission!
Try chmod +w folder
 

Angelo

0
İyinet Üyesi
Katılım
13 Aralık 2004
Mesajlar
9,603
Reaction score
111
Konum
AZ
Use this file.
On lines 63 and 78, i replaced $file with $filename.
 

Desi-Instincts

0
İyinet Üyesi
Katılım
11 Mart 2008
Mesajlar
66
Reaction score
0
It worked and created a .001 file upto 56MB.... then it reported the following error :

Splitting http://desi-instincts.com/Games (Latest) (2007)/GtASa/GTA San Andreas.part01.exe into 100 Mb files (last piece may be smaller in size) ...
tmp/GTA-San-Andreas.part01.exe.001
tmp/http://desi-instincts.com/Games%20(Latest)%20(2007)/GtASa/GTA%20San%20Andreas.part01.exe.002

Warning: fopen(tmp/http://desi-instincts.com/Games%20(Latest)%20(2007)/GtASa/GTA%20San%20Andreas.part01.exe.002) [function.fopen]: failed to open stream: No such file or directory in /mounted-storage/home90b/sub008/sc42254-ESFQ/www/filesplit.php on line 80

Warning: fwrite(): supplied argument is not a valid stream resource in /mounted-storage/home90b/sub008/sc42254-ESFQ/www/filesplit.php on line 69
filesplit.php is unable to write to current folder.
I think it does not have write permission!
Try chmod +w folder
 

Angelo

0
İyinet Üyesi
Katılım
13 Aralık 2004
Mesajlar
9,603
Reaction score
111
Konum
AZ
I've changed the file twice, i guess you downloaded the first version. Sorry, download it again and it will work:) And you may need to delete the 001 file and start over.
 

Desi-Instincts

0
İyinet Üyesi
Katılım
11 Mart 2008
Mesajlar
66
Reaction score
0
I run the file just now. . . . it has started working and creating files but its not doing it in proportion. I mean i had told it to prepare 100MB parts but its creating files with random file sizes :

GTA-San-Andreas.part01.exe.001 11-Mar-2008 11:14 61M
GTA-San-Andreas.part01.exe.002 11-Mar-2008 11:14 60M
GTA-San-Andreas.part01.exe.003 11-Mar-2008 11:14 58M
GTA-San-Andreas.part01.exe.004 11-Mar-2008 11:15 58M
GTA-San-Andreas.part01.exe.005 11-Mar-2008 11:15 61M
GTA-San-Andreas.part01.exe.006 11-Mar-2008 11:15 59M
GTA-San-Andreas.part01.exe.007 11-Mar-2008 11:15 0
GTA-San-Andreas.part01.exe.008 11-Mar-2008 11:15 11M

and also when i run the filesplit.php script it shows loading bar in Internet explorer and eventually it shows that page that says IE cannot display this page.
 

Angelo

0
İyinet Üyesi
Katılım
13 Aralık 2004
Mesajlar
9,603
Reaction score
111
Konum
AZ
The sizing structure in the script, seemed fine to me. However iyinet may be able to check it when he's online again. The other thing is probably related with your connection or timeout of your site.
 

Desi-Instincts

0
İyinet Üyesi
Katılım
11 Mart 2008
Mesajlar
66
Reaction score
0
The file split procedure seems to stop at all files at 56MB exact when in the file its mentioned to be 100MB. That's really strange.... It really breaks the heart when something comes to a sorrow end even after so much of progress. !
 

Desi-Instincts

0
İyinet Üyesi
Katılım
11 Mart 2008
Mesajlar
66
Reaction score
0
I just tried changing the the split size in the file to 150 MB and it yielded 15 files ::

GTA-San-Andreas.part01.exe.001 11-Mar-2008 11:50 95M
GTA-San-Andreas.part01.exe.002 11-Mar-2008 11:50 96M
GTA-San-Andreas.part01.exe.003 11-Mar-2008 11:50 93M
GTA-San-Andreas.part01.exe.004 11-Mar-2008 11:51 90M
GTA-San-Andreas.part01.exe.005 11-Mar-2008 11:51 30M
GTA-San-Andreas.part01.exe.006 11-Mar-2008 11:50 28M
GTA-San-Andreas.part01.exe.007 11-Mar-2008 11:50 28M
GTA-San-Andreas.part01.exe.008 11-Mar-2008 11:50 28M
GTA-San-Andreas.part01.exe.009 11-Mar-2008 11:50 28M
GTA-San-Andreas.part01.exe.010 11-Mar-2008 11:50 30M
GTA-San-Andreas.part01.exe.011 11-Mar-2008 11:50 29M
GTA-San-Andreas.part01.exe.012 11-Mar-2008 11:51 28M
GTA-San-Andreas.part01.exe.013 11-Mar-2008 11:51 28M
GTA-San-Andreas.part01.exe.014 11-Mar-2008 11:51 29M
GTA-San-Andreas.part01.exe.015 11-Mar-2008 11:51 5.2M

which totals to be 665.2 MB which isnt possible because the split archives total size cant exceed the original size viz. 403MB
 

Desi-Instincts

0
İyinet Üyesi
Katılım
11 Mart 2008
Mesajlar
66
Reaction score
0
Admin please help me on this issue. I just managed to create <100MB parts by using a filesize of 150 mentioned in filesplit.php, now i want to as k will it work and is it rejoinable after someone downloads all parts of a particular file ?

Note : the size of the files is not contiguous as it should be, it has random filesizes.
 

iyinet

Root
Admin
Hosting Firması
Katılım
2 Eylül 2002
Mesajlar
5,028
Reaction score
63
Konum
Sakarya
Admin please help me on this issue. I just managed to create <100MB parts by using a filesize of 150 mentioned in filesplit.php, now i want to as k will it work and is it rejoinable after someone downloads all parts of a particular file ?

Note : the size of the files is not contiguous as it should be, it has random filesizes.

Original code did not support remote files.
I have attached updated version, this version supports remote files.
Please let us know if you have any issues.
 

Desi-Instincts

0
İyinet Üyesi
Katılım
11 Mart 2008
Mesajlar
66
Reaction score
0
I tried it, its not working.

Content i modified ::

// File to split, is its not in the same folder with filesplit.php, full path is required.
$filename = "http://desi-instincts.com/Games%20(Latest)%20(2007)/GtASa/GTA%20San%20Andreas.part01.exe";

// Target folder. Splitted files will be stored here. Original file never gets touched.
// Do not append slash! Make sure webserver has write permission on this folder.
$targetfolder = '/tmp';

// File size in Mb per piece. For a 200Mb file if piecesize=10 it will result with 20 x 10Mb files
$piecesize = 99;


Error the file showed in the browser ::

Warning: fopen(GTA%20San%20Andreas.part01.exe) [function.fopen]: failed to open stream: No such file or directory in /mounted-storage/home90b/sub008/sc42254-ESFQ/www/filesplit.php on line 66
Unable to open GTA%20San%20Andreas.part01.exe.
Make sure you edited filesplit.php correctly!

Permission of the source file to be splitted : 644 (Read allowed)
Permission of the writing folder :: 777 (Everything allowed)
 

iyinet

Root
Admin
Hosting Firması
Katılım
2 Eylül 2002
Mesajlar
5,028
Reaction score
63
Konum
Sakarya
When I copy/paste your link I get "403 Forbidden" error.
Are you using a valid link/stream?
 

Desi-Instincts

0
İyinet Üyesi
Katılım
11 Mart 2008
Mesajlar
66
Reaction score
0
i change permission to 644 from 640 whenever i try to execute the file. I can enable it if you want to see it. Its a file 403 MB each.
 

Desi-Instincts

0
İyinet Üyesi
Katılım
11 Mart 2008
Mesajlar
66
Reaction score
0
actually there are 10 total parts :
1-9 Part : 403 MB each
10th Part : 378MB

because of high bandwidth usage i had to hide the links from public
 

Desi-Instincts

0
İyinet Üyesi
Katılım
11 Mart 2008
Mesajlar
66
Reaction score
0
i want to break all of the parts in 100mb files, creating sub-parts from the already on-server files mentioned above. Your original script, was modified by a member "angelo" and it was hence starting to split the files. . . . just wanted to inform if u missed it.
 

iyinet

Root
Admin
Hosting Firması
Katılım
2 Eylül 2002
Mesajlar
5,028
Reaction score
63
Konum
Sakarya
Well what I meant in my last message is, I get 403 error = "You are not allowed to access this page."
BTW, I understand what you are trying to do.
 

Desi-Instincts

0
İyinet Üyesi
Katılım
11 Mart 2008
Mesajlar
66
Reaction score
0
I had understood what you said ... I have deliberately not allowed people to access it due to bandwidth shortages
 

Desi-Instincts

0
İyinet Üyesi
Katılım
11 Mart 2008
Mesajlar
66
Reaction score
0
Admin where have you gone ? Please help !! i know im getting impatient but its an emergency !!
 

Türkiye’nin ilk webmaster forum sitesi iyinet.com'da forum üyeleri tarafından yapılan tüm paylaşımlardan; Türk Ceza Kanunu’nun 20. Maddesinin, 5651 Sayılı Kanununun 4. maddesinin 2. fıkrasına göre, paylaşım yapan üyeler sorumludur.

Backlink ve Tanıtım Yazısı için iletişime geçmek için Skype Adresimiz: .cid.1580508955483fe5

Üst