Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2013, 04:13:14 AM

Login with username, password and session length
Search:     Advanced search
The look of the forum is still being worked on. Thank you for your patience.
193705 Posts in 16235 Topics by 17056 Members
Latest Member: MckaulieDeaux

* Home Help Login Register
AppleGeeks.com  |  Help / Advice  |  Programming  |  Topic: Checking for the existance of remote files in PHP 0 Members and 1 Guest are viewing this topic.
Pages: 1 [2] Go Down Print
Author Topic: Checking for the existance of remote files in PHP  (Read 7152 times)
Crash
Guest
« Reply #15 on: July 26, 2006, 07:49:56 AM »

Are you absolutely sure your filenames are going in properly?

I'm not familiar with the syntax you are using.
May not be your issue, btu have you tried it as:
Code:
if (file_exists($imgdir . $subsec . $picid . ".jpg")) {blah blah anchor code blah blah}
No, I definately did a hello world of the string I used and it outputted the correct URL. I either need to find a new webhost (which I did: http://www.frihost.net) or hardwire the image into the web page code so that the image data is sent to the user with the web page and it therefore doesn't have to be accessed by the user.
Logged
Noctourn
Newbie
*
Posts: 3


« Reply #16 on: August 16, 2006, 04:21:28 PM »

Have you tried using fopen() instead of fileexists()?
Logged
Crash
Guest
« Reply #17 on: September 19, 2006, 07:47:17 AM »

Have you tried using fopen() instead of fileexists()?
Definately.
Logged
Pages: 1 [2] Go Up Print 
AppleGeeks.com  |  Help / Advice  |  Programming  |  Topic: Checking for the existance of remote files in PHP
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.063 seconds with 18 queries.