Reply to Re: help check if file exist and repond accordingly

Your name:

Reply:


Posted by JD on 07/07/05 05:10

I want it set if the sitethumbs exist, just don't know the proper way to do
it

"Mike Willbanks" <pencap@gmail.com> wrote in message
news:LKYye.3132$x82.2004@fe03.lga...
> JD wrote:
>> What im trying to do is something like this maybe in my profile.php file
>>
>>
>> //site thumbnail check////////////
>> $filename = "sitethumbs/".$user['login'].".jpg";
>> if (file_exists($filename)) {
>> } else {
>> $t->assign('sitethumbs', $filename);
>> }
>> /////end////////////
>
> I think you are doing it unexpectedly... you are asking for the sitethumbs
> to be set when the file does not exist? Shouldn't it be the otherway
> around?
>
>
>> then I have a file called viewprofile.html which uses the profile.php
>> with
>> smarty templates so in this file I use
>>
>>
>> {if ($sitethumbs)}
>> <img src="members/sitethumbs/thumbs/{$user.login}.jpg" border="0"
>> width="145" alt="Visit {$user.login}'s website">
>> {/if}
>>
>>
>>
>> Basicly in the template file it is always showing ($sitethumbs)

[Back to original 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

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