PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old June 4th, 2002, 11:56 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
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?

Reply With Quote
  #2  
Old June 5th, 2002, 12:13 AM
Matt Matt is offline
Contributing User
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
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...

Reply With Quote
  #3  
Old June 5th, 2002, 12:17 AM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
RE: remote file data

i have no idea what curl is, i was hoping to just use standard PHP..

Reply With Quote
  #4  
Old June 5th, 2002, 12:48 AM
Matt Matt is offline
Contributing User
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
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.....

Reply With Quote
  #5  
Old June 5th, 2002, 12:55 AM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
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.

Reply With Quote
  #6  
Old June 5th, 2002, 12:59 AM
Matt Matt is offline
Contributing User
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
RE: remote file data

Ughh..php3...no extensions. No fun ...if you're paying for that, I can recommend some nice cheap hosts that will do you better than that

Reply With Quote
  #7  
Old June 5th, 2002, 01:03 AM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
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

Reply With Quote
  #8  
Old June 5th, 2002, 06:43 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
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?

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > remote file data


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT