php-general Digest 10 Feb 2006 09:47:46 -0000 Issue 3955

2006-02-10 Thread php-general-digest-help
php-general Digest 10 Feb 2006 09:47:46 - Issue 3955 Topics (messages 230179 through 230189): problem with code between 4.3.4rc1 upgrading to php 4.4.2 230179 by: Brent 230181 by: Curt Zirzow Limitation on PEAR : Spreadsheet_Excel_Writer 230180 by: Bagus Nugroho

RE: [PHP] vaidation and mail function question

2006-02-10 Thread Weber Sites LTD
You may want to have a look at : Power Form Validation http://www.weberdev.com/get_example-4248.html Sincerely berber Visit the Weber Sites Today, To see where PHP might take you tomorrow. PHP MySQL Forums : http://www.weberforums.com Learn PHP MySQL Playing Trivia :

[PHP] hmmm

2006-02-10 Thread Jochem Maas
Oracle buying Zend helps the general population?: http://www.theregister.co.uk/2006/02/10/oracle_opens_source_acquisition/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Newbie Question Can't insert values into MySQL DB via PHP

2006-02-10 Thread Duggles Temple
Hi, I'd like to say in advance that I am sorry about the silly and very newbie question I'm asking. I am having a problem with a shop system. I can't add values into the MySQL DB via a PHP statement. The values are being transferred from one page to another (know that from the echo statement),

[PHP] Re: Newbie Question Can't insert values into MySQL DB via PHP

2006-02-10 Thread Barry
Duggles Temple wrote: Hi, I'd like to say in advance that I am sorry about the silly and very newbie question I'm asking. I am having a problem with a shop system. I can't add values into the MySQL DB via a PHP statement. The values are being transferred from one page to another (know that

RE: [PHP] Re: Newbie Question Can't insert values into MySQL DB via PHP

2006-02-10 Thread Dan Parry
Also when specifying the field list (and table name) it may be a better idea to wrap the values in backticks (`) rather than quotes (') Always works for me Dan -Original Message- From: Barry [mailto:[EMAIL PROTECTED] Sent: 10 February 2006 10:31 To: php-general@lists.php.net Subject:

Re: [PHP] Newbie Question Can't insert values into MySQL DB via PHP

2006-02-10 Thread Jochem Maas
Duggles Temple wrote: Hi, I'd like to say in advance that I am sorry about the silly and very newbie question I'm asking. don't be - life's too short. I am having a problem with a shop system. I can't add values into the MySQL DB via a PHP statement. The values are being transferred from

Re: [PHP] Newbie Question Can't insert values into MySQL DB via PHP

2006-02-10 Thread Tom Rogers
Hi, Friday, February 10, 2006, 8:16:41 PM, you wrote: DT Hi, DT I'd like to say in advance that I am sorry about the silly and very newbie DT question I'm asking. DT I am having a problem with a shop system. I can't add values into the MySQL DT DB via a PHP statement. The values are being

[PHP] PHP Examples

2006-02-10 Thread Dave Jarvis
Hi, I didn't quite know where this should go inside the PHP user manual. It is a collection of six simple tricks I use to give websites that extra flair of functionality. http://joot.com/dave/writings/articles/php-examples.shtml I hope you find the auto-complete city and country is especially

[PHP] Re: PHP Examples

2006-02-10 Thread Barry
Dave Jarvis wrote: Hi, I didn't quite know where this should go inside the PHP user manual. It is a collection of six simple tricks I use to give websites that extra flair of functionality. http://joot.com/dave/writings/articles/php-examples.shtml I hope you find the auto-complete city and

[PHP] Re: vaidation and mail function question

2006-02-10 Thread Manuel Lemos
Hello, on 02/10/2006 05:48 AM Paul Goepfert said the following: I am beginnging to do vaidation on my web form and I know of a few functions to do this with. For example the empty fuction and the is_ functions. Ok to give you a picture of what I am vaildating its just your basic form, Name,

[PHP] Debugging custom streams

2006-02-10 Thread Jared Williams
Hi, Short version, is there any way of listing all open resources from within a PHP script? Think I may have a problem relating to the object/resource shutdown order within PHP, but cant see which custom stream handler still has an open resource. Long version...

Re: [PHP] Debugging custom streams

2006-02-10 Thread Jochem Maas
Jared Williams wrote: Hi, Short version, is there any way of listing all open resources from within a PHP script? Think I may have a problem relating to the object/resource shutdown order within PHP, but cant see which custom stream handler still has an open resource. Long

Re: [PHP] Newbie Question Can't insert values into MySQL DB via PHP

2006-02-10 Thread Duggles Temple
...I knew I would forget something... The echo statement show the values that I would input from the last page. The MySQL error would be Query was empty.

RE: [PHP] Debugging custom streams

2006-02-10 Thread Jared Williams
-Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: 10 February 2006 14:17 To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Subject: Re: [PHP] Debugging custom streams Jared Williams wrote: Hi, Short version, is there any way of listing all open

RE: [PHP] Limitation on PEAR : Spreadsheet_Excel_Writer

2006-02-10 Thread Kristen G. Thorson
-Original Message- From: Bagus Nugroho [mailto:[EMAIL PROTECTED] Sent: Thursday, February 09, 2006 5:48 PM To: php-general Subject: [PHP] Limitation on PEAR : Spreadsheet_Excel_Writer Hello Everyone, I'm succesfully generate report from mysql table using PEAR :

Re: [PHP] Debugging custom streams

2006-02-10 Thread Jochem Maas
Jared Williams wrote: -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: 10 February 2006 14:17 To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Subject: Re: [PHP] Debugging custom streams Jared Williams wrote: Hi, Short version, is there any way of

RE: [PHP] static variables

2006-02-10 Thread Miguel Guirao
and static variables do not lose it's value as long as the script is not called again!! Since you are calling the script again, that's why the static variables lose it's value!! Miguel Guirao -Original Message- From: Hugh Danaher [mailto:[EMAIL PROTECTED] Sent: Viernes, 10 de Febrero

Re: [PHP] Newbie Question Can't insert values into MySQL DB via PHP

2006-02-10 Thread Jochem Maas
Duggles Temple wrote: ...I knew I would forget something... The echo statement show the values that I would input from the last page. I don't think so - you should be echo'ing a SQL statement that _contains_ the (sanitized???) The MySQL error would be Query was empty. how do you know? (I

[PHP] Static and Global at the same time!

2006-02-10 Thread Miguel Guirao
Hello list!! Can I have a variable that is static and global at the same time within a function? Let's say I have: $data = ; function newdata() { static global $data; $data [$i] = $newdatatobestored_inthearray; } Best Regards, --- Miguel Guirao Aguilera Logistica R8

RE: [PHP] TMP directory

2006-02-10 Thread Miguel Guirao
ups, my finger did it's own thing!! Thanks for the response!! -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Jueves, 09 de Febrero de 2006 07:36 p.m. To: Miguel Guirao Cc: PHP List Subject: Re: [PHP] TMP directory Hi, Well, firstly there is no php 7.. By default it

RE: [PHP] Limitation on PEAR : Spreadsheet_Excel_Writer

2006-02-10 Thread George Pitcher
Does your text get truncated or turned into hash '#' signs? I know that Excel has some limits regarding how many characters will go into a text column. There is also a 64k row limit as well, but most sane people wouldn't use a spreadsheet to handle such a dataset. George -Original

Re: [PHP] Static and Global at the same time!

2006-02-10 Thread Chris Boget
Can I have a variable that is static and global at the same time within a function? Let's say I have: $data = ; function newdata() { static global $data; $data [$i] = $newdatatobestored_inthearray; } Isn't a global variable static within the function by it's nature of being global? Making

Re: [PHP] Static and Global at the same time!

2006-02-10 Thread Andrei
What's the use of global static variables? Andy Miguel Guirao wrote: Hello list!! Can I have a variable that is static and global at the same time within a function? Let's say I have: $data = ; function newdata() { static global $data; $data [$i] =

Re: [PHP] Static and Global at the same time!

2006-02-10 Thread Jochem Maas
Miguel Guirao wrote: Hello list!! my name is not 'list' but I'll let you off this time. Can I have a variable that is static and global at the same time within a function? here is some [linux] command line output that took about 30 seconds to generate, it answers your question. you'll

Re: [PHP] Static and Global at the same time!

2006-02-10 Thread Jochem Maas
Andrei wrote: What's the use of global static variables? humor small_print=no accounting for taste heh! we need to teach them to test out their own basic questions and assumptions before we move them onto real analysis deduction. /humor I agree though that a 'global static' looks to be

Re: [PHP] Newbie Question Can't insert values into MySQL DB via PHP

2006-02-10 Thread Duggles Temple
I WOULD tell you the exact string that the echo statement outpus, but the SQL has chrashed and now PHP ownt interact (damn tin of worms i've opened here). But, I know that if i send the data from the other page, it will arrive to the addvalue.php page and be echoed successfully (do you really

RE: [PHP] Debugging custom streams

2006-02-10 Thread Jared Williams
-Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: 10 February 2006 14:17 To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Subject: Re: [PHP] Debugging custom streams Jared Williams wrote: Hi, Short version, is there any way of listing all open

Re: [PHP] Static and Global at the same time!

2006-02-10 Thread Andrei
A static defined variable used in a function will keep it's value each time the function is called, but this function is available only for function's scope. A global defined variable used in a function will keep it's values (as long as this value is not changed in body of the script or in

Re: [PHP] Newbie Question Can't insert values into MySQL DB via PHP

2006-02-10 Thread Barry
Duggles Temple wrote: I WOULD tell you the exact string that the echo statement outpus, but the SQL has chrashed and now PHP ownt interact (damn tin of worms i've opened here). But, I know that if i send the data from the other page, it will arrive to the addvalue.php page and be echoed

RE: [PHP] Newbie Question Can't insert values into MySQL DB via PHP

2006-02-10 Thread Jim Moseby
There must be a problem between [Form of the page] [PHP code] For me the problem is usually between [Keyboard] [Chair] ;-) JM -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Debugging custom streams

2006-02-10 Thread Jared Williams
Ahha, after some rethinking, I've dropped the append custom stream, as its not really required. And instead of using a custom in memory stream for handling the central directory stream, just using tmpfile(), the application error has disappeared. Jared Jared Williams wrote: Hi,

Re: [PHP] PHP Examples

2006-02-10 Thread Paul Novitski
At 04:08 AM 2/10/2006, Dave Jarvis wrote: It is a collection of six simple tricks I use to give websites that extra flair of functionality. http://joot.com/dave/writings/articles/php-examples.shtml I hope you find the auto-complete city and country is especially useful. Nice collection,

Re: [PHP] PHP Examples

2006-02-10 Thread tedd
Hi, I didn't quite know where this should go inside the PHP user manual. It is a collection of six simple tricks I use to give websites that extra flair of functionality. http://joot.com/dave/writings/articles/php-examples.shtml I hope you find the auto-complete city and country is especially

[PHP] php versions between os/platform

2006-02-10 Thread pedro mpa
Greetings! I am building a website using PHP 5.1.2 and MySQL 5.0.18 and I am using windows xp with IIS. All the hosting companies I have contacted are using php 4.x.x and mysql 4.x.x or 3.x.x, on linux I suppose. Are php versions the same for every os/platform? Thanks in advance. -- PHP

Re: [PHP] gettting last assigned key in an array

2006-02-10 Thread Evan Priestley
function get_last_key( $array ) { // end( $array ); return key( $array ); return array_search( reset( array_reverse( array_values( array_flip( $array ) ) ) ) ,array_reverse( array_values( array_flip( $array ) ) ) ,true

Re: [PHP] gettting last assigned key in an array

2006-02-10 Thread Curt Zirzow
On Fri, Feb 10, 2006 at 11:39:13AM -0800, jonathan wrote: im mapping some data from a sql select into a custom object that will have a couple associative arrays. I have some code that I think looks a little ugly such as: $x=0; if($row['slot']=2) {

Re: [PHP] php versions between os/platform

2006-02-10 Thread Dan Trainor
pedro mpa wrote: Greetings! I am building a website using PHP 5.1.2 and MySQL 5.0.18 and I am using windows xp with IIS. All the hosting companies I have contacted are using php 4.x.x and mysql 4.x.x or 3.x.x, on linux I suppose. Are php versions the same for every os/platform? Thanks in

Re: [PHP] php versions between os/platform

2006-02-10 Thread Richard Lynch
On Fri, February 10, 2006 2:01 pm, pedro mpa wrote: I am building a website using PHP 5.1.2 and MySQL 5.0.18 and I am using windows xp with IIS. All the hosting companies I have contacted are using php 4.x.x and mysql 4.x.x or 3.x.x, on linux I suppose. Are php versions the same for every

Re: [PHP] gettting last assigned key in an array

2006-02-10 Thread Richard Lynch
On Fri, February 10, 2006 1:39 pm, jonathan wrote: im mapping some data from a sql select into a custom object that will have a couple associative arrays. I have some code that I think looks a little ugly such as: $x=0; if($row['slot']=2) {

Re: [PHP] Static and Global at the same time!

2006-02-10 Thread Richard Lynch
On Fri, February 10, 2006 9:07 am, Miguel Guirao wrote: Can I have a variable that is static and global at the same time within a function? Let's say I have: $data = ; function newdata() { static global $data; $data [$i] = $newdatatobestored_inthearray; } No. But if you need

RE: [PHP] Debugging custom streams

2006-02-10 Thread Richard Lynch
WILD GUESS!!! Since you're NOT closing off the streams, PHP is trying to close them for you, but you've unset various variables and whatnot, and confused PHP into fclose()ing the WRONG thing. Try closing your own files. If that doesn't do it, just for fun, tack on an exit; at the very end of

Re: [PHP] PHP Examples

2006-02-10 Thread Richard Lynch
On Fri, February 10, 2006 1:36 pm, Paul Novitski wrote: At 04:08 AM 2/10/2006, Dave Jarvis wrote: It is a collection of six simple tricks I use to give websites that extra flair of functionality. http://joot.com/dave/writings/articles/php-examples.shtml I hope you find the auto-complete city

RE: [PHP] Debugging custom streams

2006-02-10 Thread Jared Williams
WILD GUESS!!! Since you're NOT closing off the streams, PHP is trying to close them for you, but you've unset various variables and whatnot, and confused PHP into fclose()ing the WRONG thing. Hmm, I said all streams are getting closed. If they were not then a malformed zip would be

RE: [PHP] Static and Global at the same time!

2006-02-10 Thread Miguel Guirao
Thanks for all your suggestions!! specially to list!! Regards, Miguel Guirao -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Viernes, 10 de Febrero de 2006 03:20 p.m. To: Miguel Guirao Cc: PHP List Subject: Re: [PHP] Static and Global at the same time! On Fri,

[PHP] Weirdness with PHP FreeBSD/OSX/Linux headers already sent

2006-02-10 Thread Eric Butera
PHP List, Perhaps one of you might know the answer to this, because I certainly do not, nor do any of my coworkers. The problem is that scripts on our OSX 10.4 (our local development machines) and RedHat/Debian linux servers do not throw the headers already sent message. I could have an entire

Re: [PHP] php versions between os/platform

2006-02-10 Thread Kevin Kinsey
pedro mpa wrote: Greetings! I am building a website using PHP 5.1.2 and MySQL 5.0.18 and I am using windows xp with IIS. All the hosting companies I have contacted are using php 4.x.x and mysql 4.x.x or 3.x.x, on linux I suppose. Are php versions the same for every os/platform? Thanks in

[PHP] Updated PHP Examples

2006-02-10 Thread Dave Jarvis
Hi, folks. A few of you provided me with some great feedback. I've encorporated most of the suggestions into the examples. There is a bug fix in there, too (get_tag_contents()), so be sure to check it out. =) http://www.joot.com/dave/writings/articles/php-examples.shtml Now that we all know how

[PHP] SQL request on DBase file...

2006-02-10 Thread David BERCOT
Hi, I have to rewrite an application from ASP. In this application, I receive DBase files which may be saved into Oracle. In ASP, I used a generic driver and I made SQL requests on these files. It is possible with PHP on Linux ? Do you have some examples ? Thank you very much. David.

Re: [PHP] Weirdness with PHP FreeBSD/OSX/Linux headers already sent

2006-02-10 Thread Curt Zirzow
On Fri, Feb 10, 2006 at 05:44:26PM -0500, Eric Butera wrote: PHP List, Perhaps one of you might know the answer to this, because I certainly do not, nor do any of my coworkers. The problem is that scripts on our OSX 10.4 (our local development machines) and RedHat/Debian linux servers do

Re: [PHP] Weirdness with PHP FreeBSD/OSX/Linux headers already sent

2006-02-10 Thread Kevin Kinsey
Eric Butera wrote: PHP List, Perhaps one of you might know the answer to this, because I certainly do not, nor do any of my coworkers. The problem is that scripts on our OSX 10.4 (our local development machines) and RedHat/Debian linux servers do not throw the headers already sent message. I

Re: [PHP] Newbie Question Can't insert values into MySQL DB via PHP

2006-02-10 Thread Kevin Kinsey
Jochem Maas wrote: Duggles Temple wrote: I am having a problem with a shop system. I can't add values into the MySQL DB via a PHP statement. The values are being transferred from one page to another (know that from the echo statement), but the SQL statement isn't working. The statement

[PHP] how to learn php

2006-02-10 Thread /dev/null
hello i have been trying to learn php. what is the best approach to learning php for someone who has no programming experience? i am very familiar with html, xhtml, and css. i'm not an idiot when it comes to using computers. i have bought several books and have subscribed to a couple of the

Re: [PHP] how to learn php

2006-02-10 Thread Philip Hallstrom
i have been trying to learn php. what is the best approach to learning php for someone who has no programming experience? i am very familiar with html, xhtml, and css. i'm not an idiot when it comes to using computers. i have bought several books and have subscribed to a couple of the php

Re: [PHP] SQL request on DBase file...

2006-02-10 Thread Miles Thompson
At 07:27 PM 2/10/2006, David BERCOT wrote: Hi, I have to rewrite an application from ASP. In this application, I receive DBase files which may be saved into Oracle. In ASP, I used a generic driver and I made SQL requests on these files. It is possible with PHP on Linux ? Do you have some

[PHP] Oracle buying out Zend ... how does that affect PHP?

2006-02-10 Thread Marc G. Fournier
http://www.businessweek.com/technology/content/feb2006/tc20060209_810527.htm Also in Oracle's crosshairs: closely held Zend, based in Cupertino, Calif. Zend's PHP software language is one of the most prevalent on the Web, present in more than 18 million Web sites. The company, which snared

Re: [PHP] how to learn php

2006-02-10 Thread Kim Briggs
On 2/10/06, /dev/null [EMAIL PROTECTED] wrote: hello i have been trying to learn php. what is the best approach to learning php for someone who has no programming experience? i am very familiar with html, xhtml, and css. i'm not an idiot when it comes to using computers. i have bought

[PHP] Re: Clone of the concurrent users limit of Zend Encoder 4.0 ?

2006-02-10 Thread HoWang Wang
HoWang Wang wrote: Hi all, The Zend Encoder 4.0 (beta) have a new function in the license manager which can limit the number of concurrent users. I have wriiten something to work like it. But I found a problem. My script can limit the number of concurrent running script only. When the

Re: [PHP] how to learn php

2006-02-10 Thread Murray @ PlanetThoughtful
On 11/02/2006 10:10 AM, /dev/null wrote: hello i have been trying to learn php. what is the best approach to learning php for someone who has no programming experience? i am very familiar with html, xhtml, and css. i'm not an idiot when it comes to using computers. i have bought several