Log in

View Full Version : [php] readfile() function question


Johannes de Le?n
12-28-2004, 10:24 AM
I would like to know if the readfile() funtion, while reading from some other website, if it sends the file directly to the user or if it parses it first.

I own two websites. One without php, only has 50 mb but unlimited bandwidth, so I would like to store some images there, and then be accessed by a php script that randomizes wich picture to show, and then show it in my other webhost supporting php, but with limited bandwidth.

I would prefer to use the readfile() in order to hide the real address of the picture.

Help, anyone? :)

Thanks in advance.

Zubaz
12-28-2004, 12:25 PM
I use readfile to stream huge video files to users specifically because it doesn't parse it :D

Johannes de Le?n
12-28-2004, 12:53 PM
I use readfile to stream huge video files to users specifically because it doesn't parse it :D Awesome,thank you very much. So this will not be wasting any bandwidth in my main host, right?

Really nice then. Thank you very much.