Page 1 of 1

Getting data via HTTP-Request

Posted: Sat Jun 01, 2002 12:10 pm
by metallison
Hi!

I'm trying to get Data (jpgs or gifs) from one to another server via HTTP. Can someone give me an Example-Code, how I can manage this as quick as possible? If tried to solve the problem via the fsockopen- and the fputs-function to read the data from the server on the client-side and a special php-script, that gives just the requested picture back on the server-side. but this solution is really slow. does someone have a good solution?

thank you in advance.

greetings lars

Posted: Sat Jun 01, 2002 2:48 pm
by MattF
Would fopen() be quicker than opening a socket connection?

Posted: Sun Jun 02, 2002 11:06 pm
by MacDaddy
mattF,

fopen(); would be faster, however, some sites prevent the use of it.

Right now I'm in the process of finishing a script that integrates with an online rpg (alienaa.com), my url (http://alienaa.allthewrongstuff.com) doesn't have all my code on it yet, I still have a few sections to add.