|
Best Porn Sites | Live Sex | Register | FAQ | Search | Today's Posts | Mark Forums Read |
Forum Help Tutorials and tips. Post any problems or bugs with the forum. |
|
Thread Tools |
27th April 2010, 04:15 | #1 |
Newbie Join Date: Jan 2010
Posts: 28
Thanks: 932
Thanked 150 Times in 20 Posts
|
Infamous showing.php, showimg.php image! :)
Isn't it sort of a drag to save a file... and find out that it is being saved as, filename "showimg.php", "showing.php" or some x.php? Shouldn't they just come up with some unique name? It's okay when the image is a good download, but it's a silly thing. Is there anything one can do about it?
Good luck to you all!
__________________
Last edited by kbobo; 27th April 2010 at 05:36.
kbobo |
|
27th April 2010, 04:36 | #2 |
Walking on the Moon
Beyond Redemption Join Date: Oct 2007
Posts: 30,978
Thanks: 163,452
Thanked 152,811 Times in 28,696 Posts
|
Sometimes it happes to me to. I have no idea why. I usually change the file extention to .jpeg if it is an image.
__________________
SOME OF MY CONTENT POSTS ARE DOWN: FEEL FREE TO CONTACT ME AND I'LL RE-UPLOAD THEM |
27th April 2010, 05:12 | #3 |
Newbie Join Date: Jan 2010
Posts: 28
Thanks: 932
Thanked 150 Times in 20 Posts
|
What follows is sort of a remedy, but it's overkill, specially if you are not a programmer. Really, the best is to have content published on image hosts that just give you the right filenames. If the image hosting service comes up with showimg.php or something absurd like this please skip, don't use such a service please, please.
-- This is a Perl script to rename the showimg.php* files in a folder to .jpg names sorted by the date/time they were saved. The script itself does not modify any file, but prints the cmd.exe commands that would do the job. Just save the image files with names like showimg.php2398, showimg.php329, showimg.phpksajf. This to avoid writing them over. The filenames will all begin with showimg.php and some garbage expression using filename-friendly characters. INSTALLATION First, install Activestate's Perl on your computer (Perl, free computer language interpreter). Find it in Activestate.com . Then, with notepad.exe create c:\nosho.pl and paste the code below. Code:
#!/usr/local/bin/perl @files = glob("showimg.php*"); foreach $file (@files){ $filestamp = getfiletimestamp($file); $filestamph{$file} = $filestamp; } @files = sort { $filestamph{$a} <=> $filestamph{$b} } keys %filestamph; $trunk = getnowtimestamp(); $i = 1; foreach $file (@files){ $ix = sprintf("%03d",$i); print "ren $file i$trunk-$ix.jpg\n"; $i++; } sub getfiletimestamp{ my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size, $atime,$mtime,$ctime,$blksize,$blocks) = stat($_[0]); return($mtime); } sub getnowtimestamp{ my $t = time; my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime($t); my $tx = $t % (3600*24); my $s = sprintf("%04d-%02d-%02d-%d",1900+$year,$mon+1,$mday+1,$tx); return($s); } EXECUTION Run cmd.exe and switch to the folder where the showimg.php* files are. Run the script from that folder. Below, one run to see what the script would rename and then one run to actually rename the files. Code:
C:\auch>c:\nosho.pl ren showimg.phpaaaaaaa i2010-04-27-11278-001.jpg ren showimg.phpaaaaaaaa i2010-04-27-11278-002.jpg ren showimg.phpwhatever i2010-04-27-11278-003.jpg ren showimg.php3454341534 i2010-04-27-11278-004.jpg C:\auch>c:\nosho.pl | cmd C:\auch>ren showimg.phpaaaaaaa i2010-04-27-11318-001.jpg C:\auch>ren showimg.phpaaaaaaaa i2010-04-27-11318-002.jpg C:\auch>ren showimg.phpwhatever i2010-04-27-11318-003.jpg C:\auch>ren showimg.php3454341534 i2010-04-27-11318-004.jpg C:\auch>dir Volume in drive C has no label. Volume Serial Number is XXXXXXXX Directory of C:\auch 04/26/2010 10:08 PM <DIR> . 04/26/2010 10:08 PM <DIR> .. 04/26/2010 09:44 PM 112,223 i2010-04-27-11318-001.jpg 04/26/2010 09:44 PM 112,223 i2010-04-27-11318-002.jpg 04/26/2010 09:43 PM 160,381 i2010-04-27-11318-003.jpg 04/26/2010 09:43 PM 143,829 i2010-04-27-11318-004.jpg 6 File(s) 529,689 bytes 2 Dir(s) 2,234,431,558 bytes free C:\auch>
__________________
Last edited by kbobo; 29th April 2010 at 04:42.
kbobo |
The Following 4 Users Say Thank You to kbobo For This Useful Post: |
2nd May 2010, 02:12 | #4 |
Novice
Join Date: Aug 2008
Posts: 61
Thanks: 614
Thanked 73 Times in 34 Posts
|
Having just learned basic web design (xhtml,css,php), I found this remedy to be quite educational and useful. Thanks so much.
|
18th May 2010, 18:02 | #6 |
Virgin Join Date: May 2010
Posts: 6
Thanks: 383
Thanked 13 Times in 6 Posts
|
|
The Following User Says Thank You to tinworm For This Useful Post: |
18th May 2010, 23:26 | #7 |
Walking on the Moon
Beyond Redemption Join Date: Oct 2007
Posts: 30,978
Thanks: 163,452
Thanked 152,811 Times in 28,696 Posts
|
Speaking of .PHP, recently (over the past couple of weeks) I often get this strange download prompt when I try to access a message or thread:
I have no idea what this means of why it occurs. I just hope my machine is OK... Speaking of .PHP, recently (over the past couple of weeks) I often get this strange download prompt when I try to access a message or thread: I have no idea what this means of why it occurs. I just hope my machine is OK... Oh shit: I'm trying to post the message above, and get this: Now I see that my previous message did indeed post OK: I wonder what the is going on.
__________________
Last edited by pockets; 18th May 2010 at 23:37.
Reason: Continuation replys.
SOME OF MY CONTENT POSTS ARE DOWN: FEEL FREE TO CONTACT ME AND I'LL RE-UPLOAD THEM |
19th May 2010, 01:56 | #8 |
Newbie Join Date: Jan 2010
Posts: 28
Thanks: 932
Thanked 150 Times in 20 Posts
|
Alexora,
I suspect it is a Firefox add-on that you enabled. Try disabling the DownloadthemAll add-on.
__________________
kbobo |
The Following User Says Thank You to kbobo For This Useful Post: |
Thread Tools | |
|
|