Click here to Skip to main content
15,895,011 members
Home / Discussions / Web Development
   

Web Development

 
GeneralWebsite maintainence with CMS Pin
ASPnoob21-Apr-08 18:20
ASPnoob21-Apr-08 18:20 
GeneralRe: Website maintainence with CMS Pin
Bradml22-Apr-08 2:23
Bradml22-Apr-08 2:23 
GeneralRe: Website maintainence with CMS Pin
lbothell22-Apr-08 6:28
lbothell22-Apr-08 6:28 
GeneralPlesk Problem Pin
aj.esler21-Apr-08 17:55
aj.esler21-Apr-08 17:55 
GeneralRe: Plesk Problem Pin
Bradml22-Apr-08 1:17
Bradml22-Apr-08 1:17 
GeneralRe: Plesk Problem Pin
aj.esler22-Apr-08 13:07
aj.esler22-Apr-08 13:07 
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 
Hi all! PHP Newb here,hoping you could help..

I've got the following code:
<code>
$FSFriendlyTitle = str_replace(':','&#58;',$VMRow['Title']);

echo "<h2>".$VMRow['Title']." (Season ".$VMRow['SeasonReleased'].")</h2><hr/>";
//echo "/Images/Posters/".$FSFriendlyTitle.".jpg";
if(file_exists("/Images/Posters/".$FSFriendlyTitle.".jpg"))
{
echo "<img src='/Images/Posters/".$FSFriendlyTitle.".jpg' alt='".$VMRow['Title']."'/><p/>";
}
else
{
echo "<img src='/Images/Posters/Poster Missing.jpg' alt='".$VMRow['Title']."'/><br/>";
}
</code>
which is supposed to display an image file if it exists and a predefined one if it doesn't. The problem is that it always displays the predefined file, unless I negate the result from file_exists (but then the code attempts to display images that doesn't exist too). Yes, the images exist(the path is correct too, if I paste the output path[by the commented echo] into the url it works) and I have have a near identical setup with a different set of images, which works.If you need more info, just ask. Anybody got any idea here?

<div class="ForumMod">modified on Monday, April 21, 2008 3:30 PM</div>
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 
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 

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.