You are here: Re: filename parsing....stuck! « PHP Programming Language « IT news, forums, messages
Re: filename parsing....stuck!

Posted by Sonnich on 01/18/07 14:26

cbmeeks wrote:
> I'm a newbie to PHP.
>
> What I am trying to do is take a filename from a URL
> (http://example.com/?i=image-t.jpg) and dynamically re-size it based on
> the "-t"
>
> For example, I have an original image that is called "image.jpg"
>
> If someone changes the URL to point to: "image-t.jpg" I want to parse
> the "-t", resize it to a thumbnail and display that.
>
> I have the resizing down so no problem there. I just can't wrap my
> head around regular expressions.

Take a look at substr and strpos. That should do it. If you dont know
them, then look at www.php.net

BR
S

 

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

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