NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > General Marketplace > Web Development > Web Development Wanted
Reload this Page Need a simple function - 15$ to the one who first posts it

Web Development Wanted Requests for websites, templates, custom programming, logos or graphics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 07-11-2007, 05:48 AM THREAD STARTER               #1 (permalink)
Straight from Sweden
 
Jawn's Avatar
Join Date: Oct 2006
Location: Sweden
Posts: 202
Jawn has a spectacular aura aboutJawn has a spectacular aura aboutJawn has a spectacular aura about
 


Animal Rescue

Need a simple function - 15$ to the one who first posts it


I need a simple function.


function ($url,$timeout){




return $pageHtml;
}


I need a function that returns the html source from a specific url.
This can be CURL or fsockopen, it should be able to handle redirects.
Payment will be through paypal.

FOLLOWLOCATION with Curl is broken in latest php versions both php4 and php5.
The function needs to be written in php 4.

Best Regards
Jawn
__________________
Second place in seoworldchampionship 2007.
Jawn is offline  
Old 07-11-2007, 06:05 AM   #2 (permalink)
NamePros Regular
Join Date: Oct 2006
Posts: 963
neroux has a spectacular aura aboutneroux has a spectacular aura about
 



I'd expect this to do the trick
PHP Code:
function getURLContent($url$timeout)
{
    
$oldtimeout=ini_get('default_socket_timeout');
    
ini_set('default_socket_timeout'$timeout);
    
    
$data=file_get_contents($url);
    
    
ini_set('default_socket_timeout'$oldtimeout);

    return 
$data;
????: NamePros.com http://www.namepros.com/web-development-wanted/348691-need-simple-function-15-one-who.html

__________________
Paris loves CityPics

-- Do not let others be treated this way!
neroux is offline  
Old 07-11-2007, 06:41 AM THREAD STARTER               #3 (permalink)
Straight from Sweden
 
Jawn's Avatar
Join Date: Oct 2006
Location: Sweden
Posts: 202
Jawn has a spectacular aura aboutJawn has a spectacular aura aboutJawn has a spectacular aura about
 


Animal Rescue
Thanks neroux, works just great, whats your paypal id?
__________________
Second place in seoworldchampionship 2007.
Jawn is offline  
Old 07-11-2007, 11:12 AM   #4 (permalink)
Ben
Knowledge is Power
Join Date: Aug 2005
Posts: 1,376
Ben has much to be proud ofBen has much to be proud ofBen has much to be proud ofBen has much to be proud ofBen has much to be proud ofBen has much to be proud ofBen has much to be proud ofBen has much to be proud ofBen has much to be proud of
 



PHP already has a function for this, it's called file_get_contents().
__________________
all my offers are valid for 48 hours unless posted otherwise
Ben is offline  
Old 07-11-2007, 11:31 AM   #5 (permalink)
NamePros Member
Join Date: Jun 2007
Posts: 121
arnold123 will become famous soon enougharnold123 will become famous soon enough
 



Originally Posted by Jawn
Thanks neroux, works just great, whats your paypal id?
you can pay him using the donate button
__________________
Fap Turbo |Webmasters Guide
arnold123 is offline  
Old 07-11-2007, 12:09 PM   #6 (permalink)
NamePros Regular
 
papa_face's Avatar
Join Date: Mar 2006
Location: UK
Posts: 628
papa_face has a spectacular aura aboutpapa_face has a spectacular aura about
 




Yeah file_get_contents() is pretty much all you need to do what you want.
papa_face is offline  
Old 07-12-2007, 10:44 PM   #7 (permalink)
NamePros Regular
Join Date: May 2006
Posts: 311
Hayes has a spectacular aura aboutHayes has a spectacular aura about
 



Originally Posted by arnold123
you can pay him using the donate button
quoted for the laugh
Hayes is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 04:06 PM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger