Click here to Skip to main content
15,893,337 members
Home / Discussions / Web Development
   

Web Development

 
News.NET 3.5 Enhanced Training Kit now in CTP Pin
brucedkyle21-Apr-08 14:19
brucedkyle21-Apr-08 14:19 
GeneralPHP file_exists being blind? [modified] Pin
Quiltfish21-Apr-08 9:19
Quiltfish21-Apr-08 9:19 
GeneralRe: PHP file_exists being blind? Pin
Christian Graus21-Apr-08 14:36
protectorChristian Graus21-Apr-08 14:36 
GeneralRe: PHP file_exists being blind? Pin
Quiltfish21-Apr-08 19:53
Quiltfish21-Apr-08 19:53 
GeneralRe: PHP file_exists being blind? Pin
Vasudevan Deepak Kumar23-Apr-08 21:55
Vasudevan Deepak Kumar23-Apr-08 21:55 
GeneralRe: PHP file_exists being blind? Pin
Bradml22-Apr-08 1:15
Bradml22-Apr-08 1:15 
GeneralRe: PHP file_exists being blind? Pin
markkuk21-Apr-08 22:23
markkuk21-Apr-08 22:23 
GeneralRe: PHP file_exists being blind? Pin
Bradml22-Apr-08 1:15
Bradml22-Apr-08 1:15 
Hey Quiltfish. Before I answer your question I'd like to notify you about the new PHP forum offered by CP. It is located at: http://lamp.codeproject.com/script/Forums/View.aspx?fid=1213656[^]


Quiltfish wrote:
if(file_exists("/Images/Posters/".$FSFriendlyTitle.".jpg"))


I think you will find that on a Linux server this will try look for the image in the root folder. To make it so that it searches from the current location in the file system then remove the "/" before the Images directory in the above code. If that doesn't solve your problem let me know and I'll give you some other suggestions.



Brad
Australian
The PHP MVP

- Christian Graus on "Best books for VBscript"

A big thick one, so you can whack yourself on the head with it.

GeneralRe: PHP file_exists being blind? Pin
Quiltfish22-Apr-08 11:36
Quiltfish22-Apr-08 11:36 
GeneralRe: PHP file_exists being blind? Pin
Vasudevan Deepak Kumar23-Apr-08 21:54
Vasudevan Deepak Kumar23-Apr-08 21:54 
GeneralStore a google map api location Pin
Erisa85d21-Apr-08 7:12
Erisa85d21-Apr-08 7:12 
GeneralRe: Store a google map api location Pin
Shog921-Apr-08 7:15
sitebuilderShog921-Apr-08 7:15 
QuestionReading sent string using POST method in ASP Pin
gangar21-Apr-08 6:54
gangar21-Apr-08 6:54 
AnswerRe: Reading sent string using POST method in ASP Pin
Shog921-Apr-08 7:13
sitebuilderShog921-Apr-08 7:13 
GeneralRe: Reading sent string using POST method in ASP [modified] Pin
gangar21-Apr-08 9:56
gangar21-Apr-08 9:56 
GeneralWeb Service secured with UsernameToken - WSE 3.0 - Soap Header Exception Pin
Spooks20-Apr-08 21:30
Spooks20-Apr-08 21:30 
QuestionHow do I make on-line help? Pin
Winkles20-Apr-08 19:57
Winkles20-Apr-08 19:57 
GeneralWSDL error "Unable to connect to the remote server" Pin
Steve Holdorf20-Apr-08 9:39
Steve Holdorf20-Apr-08 9:39 
GeneralRe: WSDL error "Unable to connect to the remote server" Pin
Steve Holdorf21-Apr-08 4:14
Steve Holdorf21-Apr-08 4:14 
GeneralRe: WSDL error "Unable to connect to the remote server" Pin
Steve Holdorf21-Apr-08 4:21
Steve Holdorf21-Apr-08 4:21 
Generalprint a html page Pin
ptvce19-Apr-08 19:40
ptvce19-Apr-08 19:40 
GeneralRe: print a html page Pin
R. Giskard Reventlov20-Apr-08 2:27
R. Giskard Reventlov20-Apr-08 2:27 
GeneralRe: print a html page Pin
ptvce20-Apr-08 3:08
ptvce20-Apr-08 3:08 
GeneralRe: print a html page Pin
R. Giskard Reventlov20-Apr-08 3:37
R. Giskard Reventlov20-Apr-08 3:37 
GeneralRe: print a html page Pin
ptvce20-Apr-08 18:32
ptvce20-Apr-08 18:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.