|
Posted by Shelly on 07/20/05 03:24
<bettina@coaster.ch> wrote in message
news:1121800699.274740.162640@f14g2000cwb.googlegroups.com...
> I've tried something similar to what you made, but the website is still
> too slow.
> The first php file where you charge the array and then assign it to a
> session array will be executed only once? I've called it search.php and
> then in the main file I wrote include_once("search.php"). But it seems
> that the programm makes the whole search once again every time I return
Of course. include put in the in-line code. So if your search.php does the
search, it will do it every time where it is included.
What you want is to do the search, create the array, and then pass the array
to a page that does the work and is re-entered. That way the driver,
search.php, executes only once.
> to the main file. It's worth to mention that I have 147 countries, from
> each I have to count the coasters, Totally I have 11505 coasters... I
> don't know how long it can take to charge all the information.... If
> you want, you can have a look at my home page www.coaster.ch and tell
> me if it's really too slow.
> I tried taking out the quantity of coasters, that's to say the query
> where they will be counted and it 's rapid, but in such a why I would
> lose important information.
> Any idea?
>
[Back to original message]
|