You are here: Re: Case insensitive « All PHP « IT news, forums, messages
Re: Case insensitive

Posted by Joseph Melnick on 09/19/05 01:20

Hello Luigi, You wrote:
"Luigi Donatello Asero" <jaggillarfotboll@telia.com> wrote in message
news:sPjXe.146577$dP1.503262@newsc.telia.net...
>
> How do I make JPG case insensitive in this expression?
>
> <a href="https://www.scaiecat-spa-gigi.com/it/svezia.html">
> <?php
> $picture='https://www.scaiecat-spa-gigi.com/bilder/bilder-hemsida/'.date('m-
> d').'.JPG';
> print("<img src='$picture' alt=\"Amund�n\"/ WIDTH=\"230\"/
> HEIGHT=\"230\"></a>")
> ;
> ?>
>
>
> --
> Luigi Donatello Asero
> (sono italiano ma vivo in Svezia)
> (? ????????? ?? ? ???? ? ?????? )
> (?? ???? , ?? ? ? ? ??)
> (min� olen Italian kansalainen, mutta min� asun Ruotsissa)
> https://www.scaiecat-spa-gigi.com/
>
>
I am assuming that your problem is that you get broken images even though
you have the correct name of the image in question.
Files names are case sensitive on linux systems so you may want to rename
your files with the correct extension before loading them on the server OR
write a script to load the names of all the files in your images directory
into an array and find the image name in question grab the one that matches
the first 5 characters of the m-d string.


Joseph Melnick
JM Web Consultants
Toronto ON Canada
www.jphp.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация