PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
jaymoore_299
Forum Contributor
Posts: 128 Joined: Wed May 11, 2005 6:40 pm
Contact:
Post
by jaymoore_299 » Wed Feb 08, 2006 5:03 pm
If I have the address of some image at someone else's domain like
http://www.domain.com/image.jpg
how do I grab that file and save it to a directory on my own domain without having to download it to my harddrive then uploading it with forms?
josh
DevNet Master
Posts: 4872 Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida
Post
by josh » Wed Feb 08, 2006 6:10 pm
jaymoore_299
Forum Contributor
Posts: 128 Joined: Wed May 11, 2005 6:40 pm
Contact:
Post
by jaymoore_299 » Wed Feb 08, 2006 6:25 pm
I figured it out. Copy is so much easier.
raghavan20
DevNet Resident
Posts: 1451 Joined: Sat Jun 11, 2005 6:57 am
Location: London, UK
Contact:
Post
by raghavan20 » Wed Feb 08, 2006 6:44 pm
do fwrite and other file writing functions are good enough to read image files???
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Wed Feb 08, 2006 10:26 pm
why would a function that writes read anything?
raghavan20
DevNet Resident
Posts: 1451 Joined: Sat Jun 11, 2005 6:57 am
Location: London, UK
Contact:
Post
by raghavan20 » Thu Feb 09, 2006 4:31 am
feyd wrote: why would a function that writes read anything?
I was not really talking about fwrite...I was referring to the set of file functions (fread, fwrite,...) and I just want to confirm are they good enough to read images...
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Thu Feb 09, 2006 9:32 am
they are binary safe, if that's what you're asking..