Re: include_once() within a function



Mikhail Kovalev wrote:
On 8 Sep, 22:33, Michael Fesser <neti...@xxxxxx> wrote:
.oO(Mikhail Kovalev)

On 8 Sep, 22:05, Jerry Stuckle <jstuck...@xxxxxxxxxxxxx> wrote:
But the real question is - why does it take several seconds to load?
I've never had a PHP file take that long!
It loads a 1,8 MB array stored as serialized in a file....=)
Just curious - what's in that array? Wouldn't it be possible to use a
database instead?

Micha

It's a tree of 20 levels. Like arrays in an array in etc

I have no experience with Mysql which would be the only option in my
case, sort of new to php as well, and im unsure of amount of work
needed to rewrite the code,
Load time is only some 10-15 seconds anyway, but very heavy on RAM on
my machine, illl tell you hehe


A relational database would speed things up considerably. Especially if you don't need all of the items.

And 10-15 seconds? Very few users are going to wait that long, and only the most desperate will do it repeatedly.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.



Relevant Pages

  • Call a local function or a separate PHP file?
    ... some data to/from a mySQL database whenever a user hit an HTML form button ... multiple rows of data queried from a database, with a check box next to each ... PHP begins executing a different PHP file, ... script can call instead a local function to execute the job? ...
    (comp.lang.php)
  • Re: Is PHP suitable for this task?
    ... >> One php file, data strings for movies and images ... Text, if short, also from the database. ...
    (comp.lang.php)
  • Re: TRyng to write a simple web stat program
    ... I’m trying to make a simple web stats program. ... I have a php file that ... updates the database every time it is called. ...
    (comp.lang.php)
  • Re: Setting drop-down box to database value
    ... You would have to have a recordset that loads the values into the dropdown, ... Total_Hours is a drop-down box. ... | the value stored in the database. ...
    (microsoft.public.frontpage.programming)
  • Re: autolink function?
    ... Database - Very Good - More manageable than the PHP file if you want to ... With the database you can do something easy... ... //start loop results ... As you can see I didn't really write you out the full regular expression ...
    (comp.lang.php)