RE: [PHP] If statements and images

From: Date: Wed, 15 Nov 2000 05:50:01 +0000
Subject: RE: [PHP] If statements and images
Groups: php.general 
Request: Send a blank email to php-general+get-25368@lists.php.net to get a copy of this message
print gets flushed on a flush(); echo does not (according to the php manual). In addition print() function returns a boolean indicating the status of the call. If the write was successful, print() returns 1. If not, it returns 0. This can be used to detect when the client has closed the connection, and appropriate measures can be taken. Lets not turn this into require vs include vs print vs echo? :) -----Original Message----- From: Maxim Maletsky [mailto:maxim.maletsky@japaninc.net] Sent: November 15, 2000 01:42 PM To: 'Mike Tuller'; php Subject: RE: [PHP] If statements and images I have no idea what you asked but echo and print are not diferent at all. guessing your question I would do this: $day = 'Mon'; echo $day.'day.png'; if you do it so then you MUST have a good system to call all of your graphics and know that the variables are called equally to fit into the graphic file names. Cheers, Maxim Maletsky -----Original Message----- From: Mike Tuller [mailto:mitull01@willy.wsc.edu] Sent: Wednesday, November 15, 2000 2:33 PM To: php Subject: [PHP] If statements and images I've been wanting to display the day of the week as an image within Flash, and the only examples I can find of if statements deal with strings. How can I set the variable to display an image? Example: if(date("D") == "Mon") { echo ("Monday"); I want it to display Monday.png rather than "Monday". Do I still use echo or print? Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#25368) next »