Click here to Skip to main content
15,867,704 members
Home / Discussions / Web Development
   

Web Development

 
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 
GeneralRe: PHP file_exists being blind? Pin
Quiltfish22-Apr-08 11:36
Quiltfish22-Apr-08 11:36 
Ack! So simple and yet.. Hehe, thanks everyone who replied!
finished snippet:
<code>$FSFriendlyTitle = str_replace(':','-',$VMRow['Title']);
$FSFriendlyTitle = str_replace('!','',$FSFriendlyTitle);
$FSFriendlyTitle = str_replace('\'','',$FSFriendlyTitle);
$FSFriendlyTitle = 'Images/Posters/'.$FSFriendlyTitle.'.jpg';

echo "<h2>".$VMRow['Title']." (Season ".$VMRow['SeasonReleased'].")</h2><br/>";
if(file_exists($FSFriendlyTitle))
{
echo "<img src='/Images/Posters/".basename($FSFriendlyTitle)."' alt='".$VMRow['Title']."'/><p/>";
}
else
{
echo "<img src='/Images/Posters/Poster Missing.jpg' alt='".$VMRow['Title']."'/><br/>";
}</code>
Also, is it just me or are code tags broken?
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 
GeneralRe: print a html page Pin
R. Giskard Reventlov20-Apr-08 21:34
R. Giskard Reventlov20-Apr-08 21:34 

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.