Re: [PHP] performance issues

2008-04-17 Thread Robert Cummings
On Wed, 2008-04-16 at 23:37 -0400, Nathan Nobbe wrote: all, i have heard from various sources that using the in php can at times be costly, and therefore, it should not be used when it is not needed. for example, passing an array by reference because you think youre passing the actual

Re: [PHP] Database abstraction?

2008-04-17 Thread Chris
Jason Pruim wrote: On Apr 16, 2008, at 5:37 PM, Chris wrote: Jason Pruim wrote: Hi Everyone! I'm back with yet another question But getting closer to sounding like I know what I'm talking about and that's all thanks to all of you. A free beer (Or beverage of choice)* for everyone who

Re: [PHP] PHP with NNTP?

2008-04-17 Thread Per Jessen
vester_s wrote: I need to get the list for all of the people that subscribing to this newsreader, this list will be used to modify the other mailing list programs. Basically by getting the list of the people that subscribing on this newsgroup, then i could migrate it to our new forum

[PHP] FRench characters not displayed correctly

2008-04-17 Thread Angelo Zanetti
Hi all. We have taken over a site and a problem we have is that French special characters aren't displaying correctly, they are displaying a weird square block. I have checked the content type and it's as follows: meta http-equiv=Content-Type content=text/html;charset=utf-8 I also notice

Re: [PHP] PHP with NNTP?

2008-04-17 Thread Stut
On 16 Apr 2008, at 23:50, vester_s wrote: I need to get the list for all of the people that subscribing to this newsreader, this list will be used to modify the other mailing list programs. Basically by getting the list of the people that subscribing on this newsgroup, then i could migrate it

RE: [PHP] FRench characters not displayed correctly

2008-04-17 Thread Angelo Zanetti
-Original Message- From: Angelo Zanetti [mailto:[EMAIL PROTECTED] Sent: 17 April 2008 09:48 To: php-general@lists.php.net Subject: [PHP] FRench characters not displayed correctly Hi all. We have taken over a site and a problem we have is that French special characters aren't

[PHP] PHP5 and the DOM model

2008-04-17 Thread Michael Preminger
Hello! Seems that PHP gets more and more object oriented, which is good. I am now running a course in PHP, using PHP 5, where we are going to use the *DOM* interface. I am trying to teach them good OO practices, meaning that we insistently hide properties and expose them as get or set methods.

Re: [PHP] FRench characters not displayed correctly

2008-04-17 Thread Robert Cummings
On Thu, 2008-04-17 at 09:47 +0200, Angelo Zanetti wrote: Hi all. We have taken over a site and a problem we have is that French special characters aren't displaying correctly, they are displaying a weird square block. I have checked the content type and it's as follows: meta

RE: [PHP] French characters not displayed correctly

2008-04-17 Thread Per Jessen
Angelo Zanetti wrote: I have also found that we can do this: html lang=fr But I am interested in finding out if the doctype declaration is a contributing factor. Neither will affect the character set used when rendering the page. The meta http-equiv=Content-Type in a page is ignored by

RE: [PHP] FRench characters not displayed correctly

2008-04-17 Thread Angelo Zanetti
-Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: 17 April 2008 10:38 To: Angelo Zanetti Cc: php-general@lists.php.net Subject: Re: [PHP] FRench characters not displayed correctly On Thu, 2008-04-17 at 09:47 +0200, Angelo Zanetti wrote: Hi all. We have taken

RE: [PHP] FRench characters not displayed correctly

2008-04-17 Thread Robert Cummings
On Thu, 2008-04-17 at 10:57 +0200, Angelo Zanetti wrote: Thanks Robert, I have the following headers: http://fr..com/student/themes/english/locker_room/student.html GET /student/themes/english/locker_room/student.html? HTTP/1.1 Host: fr..com User-Agent: Mozilla/5.0

RE: [PHP] FRench characters not displayed correctly

2008-04-17 Thread Angelo Zanetti
-Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: 17 April 2008 11:05 To: Angelo Zanetti Cc: php-general@lists.php.net Subject: RE: [PHP] FRench characters not displayed correctly On Thu, 2008-04-17 at 10:57 +0200, Angelo Zanetti wrote: Thanks Robert, I

Re: [PHP] DateTime... What else ?

2008-04-17 Thread Stut
On 17 Apr 2008, at 10:05, David BERCOT wrote: I've got a problem with DateTime. I have a short code which gives an error : CODE $date = new DateTime(date(d/m/Y)); $date-modify(-1 month); $mois_en_cours1 = $date-format(Y-m); $date-modify(-1 month); $mois_en_cours2 = $date-format(Y-m);

RE: [PHP] FRench characters not displayed correctly

2008-04-17 Thread Robert Cummings
On Thu, 2008-04-17 at 11:11 +0200, Angelo Zanetti wrote: -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: 17 April 2008 11:05 To: Angelo Zanetti Cc: php-general@lists.php.net Subject: RE: [PHP] FRench characters not displayed correctly On Thu,

Re: [PHP] DateTime... What else ?

2008-04-17 Thread Simon Welsh
On 17/04/2008, at 9:05, David BERCOT wrote: Hi, I've got a problem with DateTime. I have a short code which gives an error : CODE $date = new DateTime(date(d/m/Y)); $date-modify(-1 month); $mois_en_cours1 = $date-format(Y-m); $date-modify(-1 month); $mois_en_cours2 = $date-format(Y-m);

[PHP] DateTime... What else ?

2008-04-17 Thread David BERCOT
Hi, I've got a problem with DateTime. I have a short code which gives an error : CODE $date = new DateTime(date(d/m/Y)); $date-modify(-1 month); $mois_en_cours1 = $date-format(Y-m); $date-modify(-1 month); $mois_en_cours2 = $date-format(Y-m); $date-modify(-1 month); $mois_en_cours3 =

RE: [PHP] FRench characters not displayed correctly

2008-04-17 Thread Per Jessen
Angelo Zanetti wrote: Thanks again, but as far as I have read, it seems that UTF-8 has better handling for French characters? Not really - I'm pretty certain ISO-8859-1 will cover all of the special french characters. But it's irrelevant - if your code/pages are written in UTF8, you won't get

RE: [PHP] FRench characters not displayed correctly

2008-04-17 Thread Per Jessen
Robert Cummings wrote: No, that's what kind of content the server is willing to accept from various sources such as POST. You want the following somewhere near the beginning of your script: ?php header( 'Content-type: text/html; charset=iso-8859-1' ); ? I think that is better done

Re: [PHP] What is the practical use of abstract and interface?

2008-04-17 Thread Robin Vickery
On 16/04/2008, Tony Marston [EMAIL PROTECTED] wrote: -Original Message- From: Robin Vickery [mailto:[EMAIL PROTECTED] Sent: 16 April 2008 17:23 To: Jay Blanchard Cc: Tony Marston; php-general@lists.php.net Subject: Re: [PHP] What is the practical use of abstract and

RE: [PHP] FRench characters not displayed correctly

2008-04-17 Thread Robert Cummings
On Thu, 2008-04-17 at 11:39 +0200, Per Jessen wrote: Robert Cummings wrote: No, that's what kind of content the server is willing to accept from various sources such as POST. You want the following somewhere near the beginning of your script: ?php header( 'Content-type:

RE: [PHP] FRench characters not displayed correctly

2008-04-17 Thread Per Jessen
Robert Cummings wrote: ?php header( 'Content-type: text/html; charset=iso-8859-1' ); ? I think that is better done with the default_charset setting in php.ini. I don't. But then I have several projects and some use utf-8 (preferred) and some use iso-8859-1 (not preferred). I

Re: [PHP] performance issues

2008-04-17 Thread Bojan Tesanovic
On Apr 17, 2008, at 5:37 AM, Nathan Nobbe wrote: all, i have heard from various sources that using the in php can at times be costly, and therefore, it should not be used when it is not needed. for example, passing an array by reference because you think youre passing the actual array

Re: [PHP] DateTime... What else ?

2008-04-17 Thread David BERCOT
Hi again, Le Thu, 17 Apr 2008 21:10:44 +1200, Simon Welsh [EMAIL PROTECTED] a écrit : On 17/04/2008, at 9:05, David BERCOT wrote: Hi, I've got a problem with DateTime. I have a short code which gives an error : CODE $date = new DateTime(date(d/m/Y)); $date-modify(-1 month);

Re: [PHP] DateTime... What else ?

2008-04-17 Thread David BERCOT
Le Thu, 17 Apr 2008 10:19:10 +0100, Stut [EMAIL PROTECTED] a écrit : On 17 Apr 2008, at 10:05, David BERCOT wrote: I've got a problem with DateTime. I have a short code which gives an error : CODE $date = new DateTime(date(d/m/Y)); $date-modify(-1 month); $mois_en_cours1 =

Re: [PHP] Hack question

2008-04-17 Thread Al
Can you explain this in more detail for me. Sounds like this code is providing the entry point for the other hack code. Greg Bowser wrote: I can sort of figure what is doing; but, I can't figure out what the hacker is using it for. It will allow him to upload and execute arbitrary code on

Re: [PHP] Database abstraction?

2008-04-17 Thread Jason Pruim
On Apr 17, 2008, at 2:16 AM, Chris wrote: Jason Pruim wrote: On Apr 16, 2008, at 5:37 PM, Chris wrote: Jason Pruim wrote: Hi Everyone! I'm back with yet another question But getting closer to sounding like I know what I'm talking about and that's all thanks to all of you. A free beer

Re: [PHP] Database abstraction?

2008-04-17 Thread Jason Pruim
On Apr 16, 2008, at 10:55 AM, Richard Heyes wrote: I'm back with yet another question But getting closer to sounding like I know what I'm talking about and that's all thanks to all of you. A free beer (Or beverage of choice)* for everyone who has helped me over the years! I would

Re: [PHP] Database abstraction?

2008-04-17 Thread Stut
On 17 Apr 2008, at 13:33, Jason Pruim wrote: Maybe I'm showing my ignorance here in programming... Maybe it's because I delt with a kid who decided to scream for a good share of the night and I'm sleep deprived :) But in my current system I have this: echo HTML div

[PHP] kadm5

2008-04-17 Thread Donald Miller
When I try to use the Kadm5_init_with_password function, or any of the kerberos (kadm5) functions, I get an error that tells me that it is an undefined function, yet it is supposed to be part of the php core. What do I need to do to use this function?? Thanks, Donald Miller [EMAIL PROTECTED]

Re: [PHP] kadm5

2008-04-17 Thread Daniel Brown
On Wed, Apr 16, 2008 at 1:35 PM, Donald Miller [EMAIL PROTECTED] wrote: When I try to use the Kadm5_init_with_password function, or any of the kerberos (kadm5) functions, I get an error that tells me that it is an undefined function, yet it is supposed to be part of the php core. What do I

Re: [PHP] Hack question

2008-04-17 Thread Daniel Brown
On Thu, Apr 17, 2008 at 8:15 AM, Al [EMAIL PROTECTED] wrote: Can you explain this in more detail for me. Sounds like this code is providing the entry point for the other hack code. It probably is, by reading the code from the malicious /tmp files (/tmp should not allow any execution, by the

Re: [PHP] Database abstraction?

2008-04-17 Thread Daniel Brown
On Thu, Apr 17, 2008 at 8:38 AM, Jason Pruim [EMAIL PROTECTED] wrote: I took a quick look at it, and quickly realized you know more then me :P I'll dig into it more today hopefully once the caffeine kicks in better and I can make a full sentence without having it take me 5 minutes :) For

Re: [PHP] Database abstraction?

2008-04-17 Thread Richard Heyes
Daniel Brown wrote: On Thu, Apr 17, 2008 at 8:38 AM, Jason Pruim [EMAIL PROTECTED] wrote: I took a quick look at it, and quickly realized you know more then me :P I'll dig into it more today hopefully once the caffeine kicks in better and I can make a full sentence without having it take me 5

Re: [PHP] Database abstraction?

2008-04-17 Thread Richard Heyes
SASH That should have been SSH of course - seems my spell checker isn't very technical... -- Richard Heyes +-+ |Access SSH through a Windows mapped drive| |http://www.phpguru.org/sftpdrive | +-+ -- PHP

Re: [PHP] Database abstraction?

2008-04-17 Thread Daniel Brown
On Thu, Apr 17, 2008 at 10:19 AM, Richard Heyes [EMAIL PROTECTED] wrote: Daniel Brown wrote: On Thu, Apr 17, 2008 at 8:38 AM, Jason Pruim [EMAIL PROTECTED] wrote: I took a quick look at it, and quickly realized you know more then me :P I'll dig into it more today hopefully once the

Re: [PHP] Database abstraction?

2008-04-17 Thread Jason Pruim
On Apr 17, 2008, at 10:26 AM, Daniel Brown wrote: On Thu, Apr 17, 2008 at 10:19 AM, Richard Heyes [EMAIL PROTECTED] wrote: Daniel Brown wrote: On Thu, Apr 17, 2008 at 8:38 AM, Jason Pruim [EMAIL PROTECTED] wrote: I took a quick look at it, and quickly realized you know more then me :P

Re: [PHP] Database abstraction?

2008-04-17 Thread Daniel Brown
On Thu, Apr 17, 2008 at 10:24 AM, Richard Heyes [EMAIL PROTECTED] wrote: SASH That should have been SSH of course - seems my spell checker isn't very technical... +-+ |Access SSH through a Windows mapped drive| |

Re: [PHP] Database abstraction?

2008-04-17 Thread Richard Heyes
And since no word in the English language begins with FT You're forgetting Ftork... -- Richard Heyes +-+ |Access SSH through a Windows mapped drive| |http://www.phpguru.org/sftpdrive | +-+ -- PHP General

[PHP] FROM httpd.conf TO .htaccess

2008-04-17 Thread Alberto García Gómez
Fellows, I need to change this configuration from my httpd.conf file to an .htacces file so my scripts can work in any apache without having access (or change) the server httpd.conf file Here's the piece of the httpd.conf RewriteEngine On RewriteLogLevel 9 RewriteLog

Re: [PHP] FROM httpd.conf TO .htaccess

2008-04-17 Thread Daniel Brown
On Thu, Apr 17, 2008 at 10:44 PM, Alberto García Gómez [EMAIL PROTECTED] wrote: Fellows, I need to change this configuration from my httpd.conf file to an .htacces file so my scripts can work in any apache without having access (or change) the server httpd.conf file Here's the piece of the

Re: [PHP] FROM httpd.conf TO .htaccess

2008-04-17 Thread Wolf
Alberto García Gómez [EMAIL PROTECTED] wrote: Fellows, I need to change this configuration from my httpd.conf file to an .htacces file so my scripts can work in any apache without having access (or change) the server httpd.conf file Here's the piece of the httpd.conf

Re: [PHP] Database abstraction?

2008-04-17 Thread Jim Lucas
Stut wrote: On 17 Apr 2008, at 13:33, Jason Pruim wrote: Maybe I'm showing my ignorance here in programming... Maybe it's because I delt with a kid who decided to scream for a good share of the night and I'm sleep deprived :) But in my current system I have this: echo HTML div

[PHP] CAN NOT read qmail

2008-04-17 Thread Yui Hiroaki
HI! I have a question about read to qmail. I try to read qmail using php. But I can not read it. the code is below- ?php $file=213434534.domain.com; $fp = fopen($file, r); while(!feof($fp)) { $data = fgets($fp, 1024); echo $data br; } fclose($fp);

RE: [PHP] CAN NOT read qmail

2008-04-17 Thread Jay Blanchard
[snip] I have a question about read to qmail. I try to read qmail using php. But I can not read it. the code is below- ?php $file=213434534.domain.com; $fp = fopen($file, r); while(!feof($fp)) { $data = fgets($fp, 1024); echo $data br; } fclose($fp);

Re: [PHP] CAN NOT read qmail

2008-04-17 Thread Yui Hiroaki
I do not get it. I do not where code has basic mistake. I do not have any error message. When I read qmail. My browser is stopped. Regards, yui 2008/4/18, Jay Blanchard [EMAIL PROTECTED]: [snip] I have a question about read to qmail. I try to read qmail using php. But I can not read

RE: [PHP] CAN NOT read qmail

2008-04-17 Thread Jay Blanchard
[snip] I do not get it. I do not where code has basic mistake. [/snip] And that is why putting in basic error checking will help, for instance; $fp = fopen($file, r); if($fp){ while(!feof($fp)) { $data = fgets($fp, 1024); echo $data br; } } else {

Re: [PHP] What is the practical use of abstract and interface?

2008-04-17 Thread Nathan Nobbe
On Thu, Apr 17, 2008 at 3:42 AM, Robin Vickery [EMAIL PROTECTED] wrote: On 16/04/2008, Tony Marston [EMAIL PROTECTED] wrote: -Original Message- From: Robin Vickery [mailto:[EMAIL PROTECTED] Sent: 16 April 2008 17:23 To: Jay Blanchard Cc: Tony Marston;

Re: [PHP] performance issues

2008-04-17 Thread Nathan Nobbe
On Thu, Apr 17, 2008 at 12:14 AM, Robert Cummings [EMAIL PROTECTED] wrote: If it's faster, it's faster so that would suggest a performance gain... but as many will tell you, and you most likely already know... is the gain worth the effort? BTW, rote replacement of references like that, may

Re: [PHP] performance issues

2008-04-17 Thread Nathan Nobbe
On Thu, Apr 17, 2008 at 4:57 AM, Bojan Tesanovic [EMAIL PROTECTED] wrote: in PHP5 by default Objects are passed by reference and as you can see at this graph passing array by reference in PHP5 is slower http://nathan.moxune.com/arrayVsArrayIteratorReport.php wow, thats hilarious, thats my

Re: [PHP] Most viewed?

2008-04-17 Thread Philip Thompson
On Apr 15, 2008, at 5:26 PM, tedd wrote: At 10:41 AM -0500 4/15/08, Steve Marquez wrote: Greetings, Can any of you point me in the right direction on how to use PHP to create a most viewed or most clicked articles list? Can it be done with PHP? Thank you so much, Steve Marquez [EMAIL

Re: [PHP] Newbie question about sending email

2008-04-17 Thread Pete Holsberg
Daniel Brown has written on 4/16/2008 5:20 PM: On Wed, Apr 16, 2008 at 5:14 PM, Pete Holsberg [EMAIL PROTECTED] wrote: Why do I need both from_addr and field_4 (Email Address)? Could I just use $from = $_POST['field_4']? Sorry, I noticed it after I started rewriting the form

Re: [PHP] CAN NOT read qmail

2008-04-17 Thread Yui Hiroaki
I try your code; It is great. But I get faile. It means I can not open the file, which is from qmail. It may be different format of qmail I get below from code failed for 1208434346177.9690.domain.com code--- ?php $file = 1208434346177.9690.domain.com; $fp =

Re: [PHP] Newbie question about sending email

2008-04-17 Thread Daniel Brown
On Thu, Apr 17, 2008 at 12:17 PM, Pete Holsberg [EMAIL PROTECTED] wrote: [snip!] OK. Here's what I have now for processor.php: ?php // $where_form_is=http://.$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),/)); $where_form_is =

Re: [PHP] Most viewed?

2008-04-17 Thread Andrew Ballard
On Thu, Apr 17, 2008 at 12:07 PM, Philip Thompson [EMAIL PROTECTED] wrote: [snip] If you want to take it a step further and only record a *click* if a person hasn't clicked this article before, you have several options. You can save a cookie on their computer saying they've clicked that

Re: [PHP] Newbie question about sending email

2008-04-17 Thread Pete Holsberg
Daniel Brown has written on 4/17/2008 12:29 PM: I'll reiterate: Note the mail() parameters. There's no header information there. RTFM: http://php.net/mail You just have your mail() function wrong. Reiterating my code as well (with updated field_4 data): ?php

Re: [PHP] Most viewed?

2008-04-17 Thread Richard Heyes
If you want to take it a step further and only record a *click* if a person hasn't clicked this article before, you have several options. You can save a cookie on their computer saying they've clicked that article - of course they can delete the cookie, which may skew the count. Or you can save

Re: [PHP] Newbie question about sending email

2008-04-17 Thread Daniel Brown
On Thu, Apr 17, 2008 at 12:37 PM, Pete Holsberg [EMAIL PROTECTED] wrote: OK. I don't see a mail() in your code. Would it be mail($to, $subject, $body, $headers); ? Entirely my fault, Pete. I'm a moron sometimes. Could've sworn it was in there. Sorry about that. Yes, you've

Re: [PHP] Newbie question about sending email

2008-04-17 Thread Pete Holsberg
Ooops! processor.php is now: ?php $where_form_is = http://.$_SERVER['SERVER_NAME'].dirname($_SERVER['PHP_SELF'])./; $to = [EMAIL PROTECTED],[EMAIL PROTECTED]; $subject = SUBSCRIBE; //$from = $_POST['field_4']; == this was the culprit $body = Form data: Name: .$_POST['field_1'].

RE: [PHP] CAN NOT read qmail

2008-04-17 Thread Jay Blanchard
[snip] I try your code; It is great. But I get faile. [/snip] If you get a failure then you might not have permission to open the file. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newbie question about sending email

2008-04-17 Thread Daniel Brown
On Thu, Apr 17, 2008 at 12:50 PM, Pete Holsberg [EMAIL PROTECTED] wrote: 1E6 thank yous!! My TI SR-10 couldn't handle that calculation and blew up in my hand. ;-P -- /Daniel P. Brown Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract!

Re: [PHP] CAN NOT read qmail

2008-04-17 Thread Yui Hiroaki
Thank you! the perssion is 600 even when I try to change permission. This mail will return 600 soon. Regards, yui 2008/4/18, Jay Blanchard [EMAIL PROTECTED]: [snip] I try your code; It is great. But I get faile. [/snip] If you get a failure then you might not have permission to

Re: [PHP] SERVER_PORT always at 80 ?

2008-04-17 Thread Julien Pauli
I read the source yes, but my C skills are not good enought to say. I think about an Apache problem as well, I dont see why it would have been hardcoded into PHP source (and I cant find it hardcoded anyway ...). I will try another language, or even another server, to see thx:) Julien.P

Re: [PHP] performance issues

2008-04-17 Thread Eric Butera
On Thu, Apr 17, 2008 at 12:00 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Thu, Apr 17, 2008 at 4:57 AM, Bojan Tesanovic [EMAIL PROTECTED] wrote: in PHP5 by default Objects are passed by reference and as you can see at this graph passing array by reference in PHP5 is slower

Re: [PHP] Database abstraction?

2008-04-17 Thread Jason Pruim
On Apr 17, 2008, at 11:14 AM, Jim Lucas wrote: Stut wrote: On 17 Apr 2008, at 13:33, Jason Pruim wrote: Maybe I'm showing my ignorance here in programming... Maybe it's because I delt with a kid who decided to scream for a good share of the night and I'm sleep deprived :) But in my current

[PHP] module access rights

2008-04-17 Thread Alain Roger
Hi, i face now a little issue regarding how end user can access to some modules of my web portal. Let imagine we have several modules (let say: mod1, mod 2, mod3) and 2 users (usr1, usr2). i would like to use a simple way how to established access rights for each user to grant/forbidden access to

Re: [PHP] Database abstraction?

2008-04-17 Thread Jim Lucas
Jason Pruim wrote: On Apr 17, 2008, at 11:14 AM, Jim Lucas wrote: Stut wrote: On 17 Apr 2008, at 13:33, Jason Pruim wrote: Maybe I'm showing my ignorance here in programming... Maybe it's because I delt with a kid who decided to scream for a good share of the night and I'm sleep deprived :)

Re: [PHP] Database abstraction?

2008-04-17 Thread Jason Pruim
On Apr 17, 2008, at 2:12 PM, Jim Lucas wrote: Jason Pruim wrote: On Apr 17, 2008, at 11:14 AM, Jim Lucas wrote: Stut wrote: [/snip] Both ideas worked great... Thank you! Now I do still have one question, I decided that what Jim put up worked a little bit better for me so I'm going

Re: [PHP] Database abstraction?

2008-04-17 Thread Jim Lucas
Jim Lucas wrote: Jason Pruim wrote: On Apr 17, 2008, at 11:14 AM, Jim Lucas wrote: Stut wrote: On 17 Apr 2008, at 13:33, Jason Pruim wrote: Maybe I'm showing my ignorance here in programming... Maybe it's because I delt with a kid who decided to scream for a good share of the night and I'm

Re: [PHP] Database abstraction?

2008-04-17 Thread Jim Lucas
Jason Pruim wrote: On Apr 17, 2008, at 2:12 PM, Jim Lucas wrote: Jason Pruim wrote: On Apr 17, 2008, at 11:14 AM, Jim Lucas wrote: Stut wrote: [/snip] Both ideas worked great... Thank you! Now I do still have one question, I decided that what Jim put up worked a little bit better for

Re: [PHP] Database abstraction?

2008-04-17 Thread Jim Lucas
Jim Lucas wrote: Jim Lucas wrote: Jason Pruim wrote: On Apr 17, 2008, at 11:14 AM, Jim Lucas wrote: Stut wrote: On 17 Apr 2008, at 13:33, Jason Pruim wrote: Maybe I'm showing my ignorance here in programming... Maybe it's because I delt with a kid who decided to scream for a good share of

Re: [PHP] Database abstraction?

2008-04-17 Thread Jason Pruim
On Apr 17, 2008, at 2:22 PM, Jim Lucas wrote: Jim Lucas wrote: Jim Lucas wrote: Jason Pruim wrote: On Apr 17, 2008, at 11:14 AM, Jim Lucas wrote: Stut wrote: On 17 Apr 2008, at 13:33, Jason Pruim wrote: Maybe I'm showing my ignorance here in programming... Maybe it's because I delt with

[PHP] PHP console script vs C/C++/C#

2008-04-17 Thread Daniel Kolbo
Hello, I am writing a PHP script for a local application (not web/html based). My script is taking a longer time to execute than I want. The source code is a few thousand lines, so I will spare you all this level of detail. I prefer to write in PHP because that is what I know best.

Re: [PHP] PHP console script vs C/C++/C#

2008-04-17 Thread Nathan Nobbe
On Thu, Apr 17, 2008 at 3:30 PM, Daniel Kolbo [EMAIL PROTECTED] wrote: Hello, I am writing a PHP script for a local application (not web/html based). My script is taking a longer time to execute than I want. The source code is a few thousand lines, so I will spare you all this level of

Re: [PHP] performance issues

2008-04-17 Thread Nathan Nobbe
On Thu, Apr 17, 2008 at 11:51 AM, Eric Butera [EMAIL PROTECTED] wrote: On Thu, Apr 17, 2008 at 12:00 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Thu, Apr 17, 2008 at 4:57 AM, Bojan Tesanovic [EMAIL PROTECTED] wrote: in PHP5 by default Objects are passed by reference and as you can

[PHP] loop inside a loop

2008-04-17 Thread Alan Willsher
Hi can you put a loop inside a loop? what I want to do is have something looping every 1 second and then something else looping once every 10 seconds. something like a combination of these two.. $x = 0; while ($x 1000) { echo 1; $x++; sleep(1); } $y = 0; while ($y 100) { echo 2; $y++;

Re: [PHP] loop inside a loop

2008-04-17 Thread TG
Yup.. you can do that. Easiest way to find out is to give it a try :) As long as your loop conditions don't conflict or you do stuff to change variables in a counter-productive way (ie. breaking your logic) then you should be ok. -TG - Original Message - From: Alan Willsher [EMAIL

Re: [PHP] loop inside a loop

2008-04-17 Thread Casey
On Thu, Apr 17, 2008 at 6:51 PM, Alan Willsher [EMAIL PROTECTED] wrote: Hi can you put a loop inside a loop? what I want to do is have something looping every 1 second and then something else looping once every 10 seconds. something like a combination of these two.. $x = 0; while ($x

Re: [PHP] performance issues

2008-04-17 Thread Eric Butera
On Thu, Apr 17, 2008 at 7:10 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Thu, Apr 17, 2008 at 11:51 AM, Eric Butera [EMAIL PROTECTED] wrote: On Thu, Apr 17, 2008 at 12:00 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Thu, Apr 17, 2008 at 4:57 AM, Bojan Tesanovic [EMAIL PROTECTED]

Re: [PHP] PHP console script vs C/C++/C#

2008-04-17 Thread Eric Butera
On Thu, Apr 17, 2008 at 5:30 PM, Daniel Kolbo [EMAIL PROTECTED] wrote: Hello, I am writing a PHP script for a local application (not web/html based). My script is taking a longer time to execute than I want. The source code is a few thousand lines, so I will spare you all this level of

RE: [PHP] FRench characters not displayed correctly

2008-04-17 Thread Ford, Mike
On 17 April 2008 10:05, Robert Cummings advised: On Thu, 2008-04-17 at 10:57 +0200, Angelo Zanetti wrote: Thanks Robert, I have the following headers: http://fr..com/student/themes/english/locker_room/student.html GET /student/themes/english/locker_room/student.html? HTTP/1.1

RE: [PHP] FRench characters not displayed correctly

2008-04-17 Thread Robert Cummings
On Thu, 2008-04-17 at 11:24 +0100, Ford, Mike wrote: On 17 April 2008 10:05, Robert Cummings advised: On Thu, 2008-04-17 at 10:57 +0200, Angelo Zanetti wrote: Thanks Robert, I have the following headers: http://fr..com/student/themes/english/locker_room/student.html