File_get_contents vs stream_get_contents

software development

#1

Hi all.
I’m trying to connect directly via HTTP post to a remote server. The server I’m working on is PHP4.4, which means I can’t use stream_get_contents and it’s not in PEAR COMPAT. What do I need to do to get file_get_contents to do the same thing as stream_get_contents?

If I just replace file_get_contents with stream_get_contents, will file_get_contents initiate a new connection, or will it get the reply from the existing connection?

Any help would be appreciated, I’m on a deadline. sigh

================================
Angela Gann
CrimsonDryad Web Design Services
Web Design, Custom Software Development
http://www.crimsondryad.com


#2

Can you post your existing code?


Simon’s website
Save $100 on 1-year plans with promo code [color=#CC0000]SCJESSEY100[/color] (details)