[PHP] MySQL vs Session?

2002-08-14 Thread Tino Didriksen
Which is generally faster/better, doing a SELECT or doing session_start()? Rephrased, are sessions significantly faster/lighter than using MySQL? I'd imagine they are, since they won't need to do a connection or anything, but I am not familiar with how sessions scale. -- Tino

[PHP] Slow references?

2002-01-13 Thread Tino Didriksen
. Meaning that working with references takes 750% the time. In my head, making a copy should be slowest, but apparently referencing is far slower... Am I missing a point anywhere? --|-- Tino Didriksen http://ProjectJJ.dk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

[PHP] Re: PHP and search engine???

2002-01-13 Thread Tino Didriksen
You check the $HTTP_USER_AGENT for what robot is going through your site. Yahoo, which gets their results from Google, would then have Googlebot somewhere in the var. To control webcrawlers more, you can look up robots.txt ( http://www.robotstxt.org/ ). --|-- Tino Didriksen http://ProjectJJ.dk

[PHP] Re: Passing variables with include()

2002-01-14 Thread Tino Didriksen
> include("http://www.someremote.server/calculate_drivers.php";); Very simple really: You cannot include remote files... --|-- Tino Didriksen http://ProjectJJ.dk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

[PHP] Re: php modify my javascipt code before output????

2002-01-15 Thread Tino Didriksen
When you echo or print to the HTML stream, strings are delimited by " or '. Your case, return "http://www.php.net/manual/en/language.types.string.php Another function you might want to look at is stripslashes(): http://www.php.net/manual/en/function.stripslashes.php --|-- Tino

[PHP] Re: Page load based on logic

2004-07-30 Thread Tino Didriksen
load()" or goto() type call. I do NOT want to do the "header" thing and reload the same page back onto itself. I can't believe a language as powerful as PHP does have this basic function. I must be missing it. Any suggestions? Thanks. require_once() seems suitable. -- Tino Didriks

[PHP] Is preg_quote() UTF8 safe?

2004-07-30 Thread Tino Didriksen
Is preg_quote() UTF8 safe? Or any other mb_string encoding really, but for me UTF8 is the important one. As far as I can see from the source it does not check encodings, but I don't know if there would ever be conflicts even without such a check. -- Tino Didriksen / Project JJ -- PHP Ge