|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
remote file data
okay i know i'm just being picky here, i want to access information (ie. Time Last Modified) for images on other servers. Zoombie has helped me with this in creating a function using "fsockopen" but i would like to think there is a simpler way to go about it.. isn't there?
|
|
#2
|
|||
|
|||
|
RE: remote file data
If you're host supports curl, you can use that. Just for a test, type this from a command line:
curl -D file.txt codewalkers.com/images/logo.gif then file.txt should contain the info you want....I can work on making this into a script a little more later... |
|
#3
|
|||
|
|||
|
RE: remote file data
i have no idea what curl is, i was hoping to just use standard PHP..
|
|
#4
|
|||
|
|||
|
RE: remote file data
CURL is something that is becoming rather standard in PHP installations nowadays. Try that command I gave, that will atleast show if curl is installed on your host. If it is, then check a phpinfo(); page and see if curl was compiled in. If both of the above are true, then I can write you up a PHP script to take care of what you want.....
|
|
#5
|
|||
|
|||
|
RE: remote file data
my host isn't all that great, they're running PHP3 and i can't run a command line like that cause i upload everything via FTP.. i highly doubt that they have CURL cause they don't have any extensions for PHP but i'll let you know when i find out.
|
|
#6
|
|||
|
|||
|
RE: remote file data
Ughh..php3...no extensions. No fun
|
|
#7
|
|||
|
|||
|
RE: remote file data
there's no other way other than "fsockopen" then? for php3 anyway?
i know of other hosts but i'm not really paying for anything.. maybe i should start |
|
#8
|
|||
|
|||
|
RE: remote file data
i'm just thinking, with "fread" and "iptcparse" the information has GOT to be in there somewhere cause just like the image size.. i will not sleep until i figure this out. or.. i'll just force myself to use the "fsockopen" function, which i will then have to create yet another function to split my uri's from the db for use in the "fsockopen", which will end up being a really really long bit of code just to get one little timestamp it just isn't digesting right with me...
i have a dream! is that how it goes? |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > remote file data |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|