[PHP] time question

2002-03-30 Thread anders nawroth
How do I get the current time() for Central European Time (= GMT +01:00). I want it to work wherever the server stands. How can I get the difference between server time and GMT, for instance? A. Nawroth -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] include_once()

2002-03-19 Thread anders nawroth
Have you put Till: <[EMAIL PROTECTED]> Skickat: den 19 mars 2002 17:43 Ämne: [PHP] include_once() > Hello, > > I have a very long script with several functions in it. I wanted to split > the script into several files, so I created two sub-scripts and one main > script. This is the code from th

Re: [PHP] Targetted redirection?

2002-03-16 Thread anders nawroth
I use this code to break out of frames: if (top.frames.length!=0) top.location=self.document.location; Put this code in the section between

Re: [PHP] Web Hosts and PHP 4.10 +

2002-02-08 Thread anders nawroth
Sorry, should spell aletia.com >From phpinfo at Aleita.com: PHP Version 4.1.0 System Linux cobra.nocdns.com 2.4.7-10smp #1 SMP Thu Sep 6 17:09:31 EDT 2001 i686 unknown Build Date Dec 15 2001 Configure Command './configure' '--with-apache=../apache_1.3.22' '--with-mysql' '--with-gd' '--

Re: [PHP] Web Hosts and PHP 4.10 +

2002-02-08 Thread anders nawroth
>From phpinfo at Aleita.com: PHP Version 4.1.0 System Linux cobra.nocdns.com 2.4.7-10smp #1 SMP Thu Sep 6 17:09:31 EDT 2001 i686 unknown Build Date Dec 15 2001 Configure Command './configure' '--with-apache=../apache_1.3.22' '--with-mysql' '--with-gd' '--with-freetype' '--enable-track-var

Re: [PHP] While on array?

2002-01-21 Thread anders nawroth
> ie - i have: > while($myrow=mysql_fetch_array($result)) { etc... > > But i want the loop to run with an array i created earlier ($anotherarray = > [key1] => value1, [key2] => value2). > use foreach($anotherarray as $key => $value) { . A Nawroth -- PHP General Mailing List (http://www.

SV: [PHP] Matching strings in a flat/text file?

2001-10-23 Thread anders nawroth
Why not use RegEx? I'm doing a similar search with RegEx. Makes the code much shorter. Anders Nawroth www.nawroth.com - Ursprungligt meddelande - Från: "Jack Dempsey" <[EMAIL PROTECTED]> Till: <[EMAIL PROTECTED]>; "Nick Richardson" <[EMAIL PRO

[PHP] PHP/MySQL speed

2001-10-18 Thread anders nawroth
I'm running win98 / apache 1.3.20 / php 4.0.6 / MySQL 3.23.38 Just doing mysql_connect('localhost', 'foo', 'bar'); mysql_select_db('xyz'); is 0.06 second. Is this normal?? My queries take 0.01 second or less, that works fine. But why is the connect so slow? Anders www.nawroth.com -- PHP

SV: [PHP] HTML table creation software

2001-09-06 Thread anders nawroth
I use some rather complex table layouts. I make them with modular programming. Every function that produces a also produces a . And such a function maybe calls another function that also puts a table inside the HTML. And so on ... That way I can keep track on what's happening! Sometimes I also pu

SV: [PHP] Re: The future of PHP - accessory libraries

2001-08-28 Thread anders nawroth
that's how it works with most ISPs, I think. Some ISP don't even run PHP4, they still use PHP3. >If you don't agree that this is a major issue that needs to be addressed, I >fear for the future of PHP. I agree 100%. Anders Nawroth - - - - - - - - - - - - - - - - - - - -