For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > November 2004 > Re: [SMARTY] Page don't renew (WITHOUT caching!) Help, please...









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [SMARTY] Page don't renew (WITHOUT caching!) Help, please...
Messju Mohr

2004-11-09, 3:58 pm

On Tue, Nov 09, 2004 at 07:42:41PM +0200, Vitaly wrote:
> Hello val,
>
> Thank you for your answer!
>
> Tuesday, November 9, 2004, 6:58:48 PM, you wrote:
>
> v> Hello Vitaly,
>
> v> I believe this problem arise from register_globals not smarty caching.
>
> v> do you use $country or $_GET['country'] in your script?
>
> I use as
>
> $country=$HTTP_GET_VARS['country'];
>
> It is real string from the page...


are you sure $HTTP_GET_VARS is defined?

with php5 and register_long_arrays=Off it isn't.


> V>> Hello, all!
>
> V>> I wrote the site engine (Smarty+PHP+MySQL).
>
> V>> url for each page similar as:
> V>> country_info.php?country=austria
> V>> - here 'austria' is a needed country...
>
> V>> This is work correctly on my local web-server. Ok!
>
> V>> But when I uploaded this to host, I have a trouble.
> V>> country_info.php?country=<country> give me a first asked country.
>
> V>> For example:
> V>> country_info.php?country=austria - good, I see info about Austria
> V>> country_info.php?country=andorra - shit! I see Austria again :(
>
> V>> Where can be a problem?
>
> V>> I use
> $smarty->>>caching = false;
>
> V>> And I use
> V>> header("Cache-Control: no-cache, must-revalidate"); too...
>
> V>> Nothing to cache, I guess!
>
> V>> --
> V>> Best regards,
> V>> Vitaly mailto:softdeveloping@nm.ru
>
>
>
>
>
>
>
> --
> Best regards,
> Vitaly mailto:softdeveloping@nm.ru
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com