Re: [PHP] pear constants

2006-08-16 Thread Chris
JRuiz wrote: Hi All, I have a problem with some pear constants. The pear lists live here: http://pear.php.net/support/lists.php -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] pear constants

2006-08-16 Thread JRuiz
Hi All, I have a problem with some pear constants. I made a new installation of php + pear + propel (http://propel.phpdb.org) and now in my scripts the constant PEAR_INSTALL_DIR is not defined when in my previous installation it used to be... Other constants like the error ones (PEAR_ERROR_DIE, P

Re: [PHP] PHPSESSID used sporatically

2006-08-16 Thread Michael B Allen
On Thu, 17 Aug 2006 14:26:17 +1000 Chris <[EMAIL PROTECTED]> wrote: > Michael B Allen wrote: > > On Thu, 17 Aug 2006 12:06:08 +1000 > > Chris <[EMAIL PROTECTED]> wrote: > > > >> Michael B Allen wrote: > >>> Searching through the logs and browsing my site (see sig) I sometimes see > >>> PHPSESSID

Re: [PHP] PHPSESSID used sporatically

2006-08-16 Thread Chris
Michael B Allen wrote: On Thu, 17 Aug 2006 12:06:08 +1000 Chris <[EMAIL PROTECTED]> wrote: Michael B Allen wrote: Searching through the logs and browsing my site (see sig) I sometimes see PHPSESSID is used as opposed to cookies. I know it's not simply that the client doesn't support cookies be

Re: [PHP] PHPSESSID used sporatically

2006-08-16 Thread Chris
Michael B Allen wrote: Searching through the logs and browsing my site (see sig) I sometimes see PHPSESSID is used as opposed to cookies. I know it's not simply that the client doesn't support cookies because I can see the same IP transition to and from using PHPSESSID. Can someone explain why th

[PHP] PHPSESSID used sporatically

2006-08-16 Thread Michael B Allen
Searching through the logs and browsing my site (see sig) I sometimes see PHPSESSID is used as opposed to cookies. I know it's not simply that the client doesn't support cookies because I can see the same IP transition to and from using PHPSESSID. Can someone explain why this is happening? I'm usi

Re: [PHP] Static Member Variables holding objects w/methods

2006-08-16 Thread Gabe
Richard Lynch wrote: On Wed, August 16, 2006 9:13 am, Gabe wrote: I'm trying to use the following method of a class (DbConnector): public function closeConnector() { // echo "in closeConnector()"; var_dump(DbConnector::$connector); What is $connector ??? Perhaps you want Db

Re: [PHP] Easier way to get the name of a variable?

2006-08-16 Thread Richard Lynch
On Tue, August 15, 2006 7:01 pm, Larry Garfield wrote: > On Tuesday 15 August 2006 16:50, Richard Lynch wrote: > >> If the names are not predictable, the array solution is probably >> best, >> as there is movement in the PHP Internals list that may (or may not) >> make it impossible to dynamically

Re: [PHP] readdir() question

2006-08-16 Thread Richard Lynch
On Tue, August 15, 2006 11:00 pm, John Meyer wrote: > Richard Lynch wrote: > >> Do you really mean opendir() or do you mean readdir() ??? > > > readdir(). > > The point is why do you need to put it as > !== > > vs. > != http://us3.php.net/manual/en/language.types.type-juggling.php -- Like Music?

Re: [PHP] Cookie Variables Maxing Out Using IE6

2006-08-16 Thread Richard Lynch
On Wed, August 16, 2006 9:00 am, [EMAIL PROTECTED] wrote: > Does IE6 limit somehow/somewhere the number of cookie variables I can > create and store? Yes. Read the Cookie spec. There's no need for any site to ever send more than ONE Cookie anyway. Just use session_start() and you can store all

Re: [PHP] Static Member Variables holding objects w/methods

2006-08-16 Thread Richard Lynch
On Wed, August 16, 2006 9:13 am, Gabe wrote: > I'm trying to use the following method of a class (DbConnector): > > public function closeConnector() { > // > echo "in closeConnector()"; > var_dump(DbConnector::$connector); What is $connector ??? Perhaps you want DbConnector::con

Re: [PHP] array problems

2006-08-16 Thread Richard Lynch
On Wed, August 16, 2006 1:08 am, Chris G wrote: > while($line = mysql_fetch_array($result)) { > > $data1y[] = $line['rep_value_perc']; $dataly[][] = $line['rep_value_prec']; > > } > > This gives me just the one array from the above example, $datay1. How > would > > you dynamically create the all

Re: [PHP] Re: Max File Upload

2006-08-16 Thread Richard Lynch
On Wed, August 16, 2006 4:11 am, Colin Guthrie wrote: > I can't rembmer but does Apache have a max size that is independant of > PHP? Perhaps you'll need to set both? Apache has a limit on POST size, which is a super-set of your file upload size limit. > While on the topic, is there a nice way to

Re: [PHP] Cookie Variables Maxing Out Using IE6

2006-08-16 Thread dpgirago
> On Wed, August 16, 2006 9:00 am, [EMAIL PROTECTED] wrote: >> Does IE6 limit somehow/somewhere the number of cookie variables I can >> create and store? Richard Lynch wrote: > Yes. > > Read the Cookie spec. > > There's no need for any site to ever send more than ONE Cookie anyway. > > Just use s

Re: [PHP] simple scrip to stop email injection

2006-08-16 Thread Richard Lynch
On Wed, August 16, 2006 4:53 am, Ross wrote: > > Been having loads of problems with this and have solved it using the > phpmailer. The only problem is I cannot get the class working on the > remote > host I am working on. I am back to using mail() but need to drop in > script > that checks my field

RE: [PHP] Espanol en esto lista

2006-08-16 Thread Richard Lynch
On Wed, August 16, 2006 9:20 am, Peter Lauri wrote: > But I was almost correct. The "hay otra lista en espanol" looks like > something with "list" and spanish :) > > Great stuff... let us learn some Thai too: > > Mee mailing list php pasa Thai mai? > > Or Swedish: > > Finns det någon phplista på sv

Re: [PHP] array problems

2006-08-16 Thread John Wells
On 8/16/06, David Tulloh <[EMAIL PROTECTED]> wrote: Chris G wrote: foreach ($user_input_array as $user_input) { $data_member = array(); # Create an empty array Do SQL query stuff foreach ($sql_results as $sql_member) { $data_member[] = $sql_member;

[PHP] Re: Static Member Variables holding objects w/methods

2006-08-16 Thread Gabe
Gabe wrote: I'm trying to use the following method of a class (DbConnector): public function closeConnector() { // echo "in closeConnector()"; var_dump(DbConnector::$connector); echo ""; //make sure the db object is cleaned up properly if ( gettype(DbConnector

RE: [PHP] fwrite fopen problem

2006-08-16 Thread Programmer
Fixed by re-assigning IUSR... to directory security. Cheers. -Original Message- From: Jeremy Schreckhise [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 10:59 AM To: php-general@lists.php.net Subject: [PHP] fwrite fopen problem System Windows XP: PHP 5 I have a folder i

Re: [PHP] Re: Cookie Variables Maxing Out Using IE6

2006-08-16 Thread dpgirago
>> Does IE6 limit somehow/somewhere the number of cookie variables I can >> create and store? The following code snippet successfully creates 24 >> cookie variables when run in FireFox, but in IE6 it is limited to 20. I >> can provide the full code with HTML/Javascript if anyone wants to test fo

[PHP] Re: Cookie Variables Maxing Out Using IE6

2006-08-16 Thread Adam Zey
[EMAIL PROTECTED] wrote: Does IE6 limit somehow/somewhere the number of cookie variables I can create and store? The following code snippet successfully creates 24 cookie variables when run in FireFox, but in IE6 it is limited to 20. I can provide the full code with HTML/Javascript if anyone wa

RE: [PHP] Espanol en esto lista

2006-08-16 Thread tedd
At 9:20 PM +0700 8/16/06, Peter Lauri wrote: But I was almost correct. The "hay otra lista en espanol" looks like something with "list" and spanish :) Great stuff... let us learn some Thai too: Mee mailing list php pasa Thai mai? Or Swedish: Finns det någon phplista på svenska? Or php, or

[PHP] fwrite fopen problem

2006-08-16 Thread Jeremy Schreckhise
System Windows XP: PHP 5 I have a folder in which I want to write files. The IUSR_... user has full control, yet I am still getting failed to open stream and permission dined errors. Any suggestions? I have done this same task on many XP machines and 2003 servers. I am totally stumpe

Re: [PHP] Espanol en esto lista

2006-08-16 Thread Rory Browne
On 8/16/06, Mario de Frutos <[EMAIL PROTECTED]> wrote: Hi everyone! I'm spanish and i don't have any problem to answer his questions. And I don't have any problem with you answering his questions, provided they're either (a) posted in English, or (b) posted on the Spanish list, or (c) Poste

RE: [PHP] Espanol en esto lista

2006-08-16 Thread Peter Lauri
But I was almost correct. The "hay otra lista en espanol" looks like something with "list" and spanish :) Great stuff... let us learn some Thai too: Mee mailing list php pasa Thai mai? Or Swedish: Finns det någon phplista på svenska? /Peter -Original Message- From: Mario de Frutos [m

[PHP] Cookie Variables Maxing Out Using IE6

2006-08-16 Thread dpgirago
Does IE6 limit somehow/somewhere the number of cookie variables I can create and store? The following code snippet successfully creates 24 cookie variables when run in FireFox, but in IE6 it is limited to 20. I can provide the full code with HTML/Javascript if anyone wants to test for themselves.

[PHP] Static Member Variables holding objects w/methods

2006-08-16 Thread Gabe
I'm trying to use the following method of a class (DbConnector): public function closeConnector() { // echo "in closeConnector()"; var_dump(DbConnector::$connector); echo ""; //make sure the db object is cleaned up properly if ( gettype(DbConnector::

Re: [PHP] Espanol en esto lista

2006-08-16 Thread Andrei
Cool now we learn Spanish too. :) j/k Andy Dave Goodchild wrote: >> >> I don't speak enough Spanish to understand it all, but tratare according >> to altavista is "to treat" - not really sure I get it. >> >> Sorry, should be 'yo tratare', tratar also means to try - I will

Re: [PHP] Espanol en esto lista

2006-08-16 Thread Rory Browne
I have a clue what he's saying - just not much of a one: Hablo espanol, pero lo que Rory dice es verdad, hay otra lista en espanol. Pero, si quieres, you tratare entender tu palabra. ( I speak spanish, but what Rory says is true, there is another list in spanish, But, if you want you **someth

Re: [PHP] Espanol en esto lista

2006-08-16 Thread Mario de Frutos
Hi everyone! I'm spanish and i don't have any problem to answer his questions. Cheers Peter Lauri escribió: > I have no clue what he is saying, but I believe he is asking if there is any > list in Spanish he can join. But I might be wrong :) > > -Original Message- > From: Dave Goodchild

Re: [PHP] Espanol en esto lista

2006-08-16 Thread Dave Goodchild
I don't speak enough Spanish to understand it all, but tratare according to altavista is "to treat" - not really sure I get it. Sorry, should be 'yo tratare', tratar also means to try - I will try and understand... -- http://www.web-buddha.co.uk http://www.projectkarma.co.uk

RE: [PHP] Espanol en esto lista

2006-08-16 Thread Peter Lauri
I have no clue what he is saying, but I believe he is asking if there is any list in Spanish he can join. But I might be wrong :) -Original Message- From: Dave Goodchild [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 5:20 PM To: Rory Browne Cc: php-general@lists.php.net Subjec

[PHP] Re: simple scrip to stop email injection

2006-08-16 Thread Ivo F.A.C. Fokkema
On Wed, 16 Aug 2006 10:53:30 +0100, Ross wrote: > > Been having loads of problems with this and have solved it using the > phpmailer. The only problem is I cannot get the class working on the remote > host I am working on. I am back to using mail() but need to drop in script > that checks my f

Re: [PHP] Espanol en esto lista

2006-08-16 Thread Dave Goodchild
Hablo espanol, pero lo que Rory dice es verdad, hay otra lista en espanol. Pero, si quieres, you tratare entender tu palabra. In short, speaking a language other than English on this list( especially considering that there is a php.general.es - http://news.php.net/php.general.es ), is similar t

[PHP] simple scrip to stop email injection

2006-08-16 Thread Ross
Been having loads of problems with this and have solved it using the phpmailer. The only problem is I cannot get the class working on the remote host I am working on. I am back to using mail() but need to drop in script that checks my fields $fname, $sname, $email, $subject, $message. Regards

[PHP] Espanol en esto lista

2006-08-16 Thread Rory Browne
No tengo bastante espanol para decir lo que quiero decir aqui correctimente, pero hay lista php-general-es para los mesajes espanol. ( I don't have enough spanish to say what I want to say here correctly, but there is a php-general-es list for spanish messages. ) Eso lista es para los mesajes en

[PHP] Re: Max File Upload

2006-08-16 Thread Colin Guthrie
Richard Lynch wrote: On Tue, August 15, 2006 1:50 pm, Jeremy Privett wrote: http://us2.php.net/manual/en/ini.core.php#ini.upload-max-filesize In later versions of PHP, you can't use ini_set to set upload_max_filesize ... The changeable option is PHP_INI_PERDIR now, meaning you can only change i

Re: [PHP] array problems

2006-08-16 Thread David Tulloh
Chris G wrote: > Hi all > > Having a prob with a php script... > > 3 arrays > > $datay1=array(140,110,50,60); > > $datay2=array(35,90,190,190); > > $datay3=array(20,60,70,140); > > which have to be passed to a class like this > > $gbarplot = new GroupBarPlot(array($bplot1,$bplot2,$bplot3));

Re: [PHP] Mail reply-path

2006-08-16 Thread bob pilly
Hi Richard this is exactly what i was after and works perfectly! Cheers Bob Richard Lynch <[EMAIL PROTECTED]> wrote: On Tue, August 15, 2006 6:54 am, bob pilly wrote: > Im trying to send emails using the mail() function but im having a > problem. Because the box that the scripts sit on is a sh