View Single Post
Old 04-29-2008, 07:11 AM   · #1
Hossam
New Member
 
Trader Rating: (0)
Join Date: Apr 2008
Posts: 2
NP$: 0.00 (Donate)
Hossam is an unknown quantity at this point
Help! CURL alternative to fopen - revisited

Hello!

There is already a thread that was created that touched on this issue, but it was locked.

My host provider is no longer allowing fopen and fgets command calls due to security issues and CURL was suggested as an alternative method to achieve the same results.

Here is a snippet of the code which is giving errors in my php script:

Code:
if($address!='') { $fp = fopen($address,"r"); $i=0; while($i<1000){ $html_data.=fgets($fp); $i++; }


I know this is probably a very simple fix, but my knowledge of CURL is limited at best, any help would be appreciated! Thank you.


Please register or log-in into NamePros to hide ads
Hossam is offline   Reply With Quote
Site Sponsors
Grow your forum! Buy Flash Arcade Game Script Proof is in the Parking
Advertise your business at NamePros
All times are GMT -7. The time now is 01:21 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.