Results 1 to 8 of 8
-
11th Dec 2010, 04:42 PM #1OPMemberWebsite's:
maxneeds.infoNeed faster function - help :(
CLOSED...
Porsche_maniak Reviewed by Porsche_maniak on . Need faster function - help :( CLOSED... Rating: 5
-
11th Dec 2010, 04:47 PM #2It begins...
This is the function I use to return the filesize of a remote image.
PHP Code:function ffilesize($file){
$ch = curl_init($file);
curl_setopt($ch, CURLOPT_NOBODY, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, true);
$data = curl_exec($ch);
curl_close($ch);
if ($data === false)
return false;
if (preg_match('/Content-Length: (\d+)/', $data, $matches)) {
return (float)$matches[1];
}
elseif (preg_match('/content-length: (\d+)/', $data, $matches)) {
return (float)$matches[1];
}
}
-
11th Dec 2010, 05:24 PM #3OPMemberWebsite's:
maxneeds.infoStill slow
-
11th Dec 2010, 07:00 PM #4OPMemberWebsite's:
maxneeds.infoI have another question.
What will be the fastest way to check if remote image exist ?
Maybe i can use again the filesize ? 404 and the other errors have no filesize or it is in bytes?
-
11th Dec 2010, 07:10 PM #5MemberWebsite's:
Elite.SO Defendos.com Motionite.comIts tour server dude, maybe CPU?
-
11th Dec 2010, 07:19 PM #6MemberWebsite's:
Tastro.org HDTVXviDLOL.com EpisodeSeasons.com FileBorg.org W-47.comi don't think that there is any faster.
but why don't you just store the images on your own server (resized) ?LE with your pr2 site? <a href="http://tastro.org/">Tastro.org</a> or link exchance with our category page: <a href="http://tastro.org/i/hdtv">HDTV</a> | <a href="http://tastro.org/i/dvdrip">DVDRip</a> | <a href="http://tastro.org/i/r5">R5</a> | <a href="http://tastro.org/i/bdrip">BDRip</a> | <a href="http://tastro.org/i/brrip">BRRip</a>
-
11th Dec 2010, 07:23 PM #7Respected DeveloperWebsite's:
wrzc.orgWhat exactly are you trying to do. Where are the images and what are you trying to do to them. We may then be able to offer a better way of doing it.
Tutorial How to SEO your Warez Site a guide to help you increase your organic traffic
Huge list of Warez Sites and free Multiposter Templates
-
11th Dec 2010, 07:54 PM #8OPMemberWebsite's:
maxneeds.infoupdated dd
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Faster TV releases?
By EL-Warez in forum Webmaster ResourcesReplies: 24Last Post: 14th May 2012, 12:36 AM -
Make Photosoph Faster
By Faizann20 in forum Graphics AreaReplies: 7Last Post: 8th Nov 2011, 11:10 PM -
Make your Firefox to run faster
By aman8819 in forum Tutorials and GuidesReplies: 10Last Post: 14th Apr 2011, 01:40 AM -
Which CPU is faster?
By mahjong in forum Technical Help Desk SupportReplies: 4Last Post: 10th Mar 2011, 09:07 PM -
How to make my site faster?
By WaReZ in forum Technical Help Desk SupportReplies: 11Last Post: 8th Mar 2011, 06:10 PM
themaCreator - create posts from...
Version 3.24 released. Open older version (or...