[PHP] Array mysteries

2007-03-11 Thread Otto Wyss
I want to convert weekdays with a simple function like $wdays = array (0 = Sonntag ,1 = Montag ,2 = Dienstag ,3 = Mittwoch ,4 = Donnerstag ,5 = Freitag ,6 = Samstag ); function convert_from_weekday ($weekday) { return $wdays[$weekday]; } but this doesn't

Re: [PHP] Array mysteries

2007-03-11 Thread Tijnema !
On 3/11/07, Otto Wyss [EMAIL PROTECTED] wrote: I want to convert weekdays with a simple function like $wdays = array (0 = Sonntag ,1 = Montag ,2 = Dienstag ,3 = Mittwoch ,4 = Donnerstag ,5 = Freitag ,6 = Samstag ); function convert_from_weekday ($weekday) {

Re: [PHP] Array mysteries

2007-03-11 Thread Steve Edberg
At 9:51 AM +0100 3/11/07, Otto Wyss wrote: I want to convert weekdays with a simple function like $wdays = array (0 = Sonntag ,1 = Montag ,2 = Dienstag ,3 = Mittwoch ,4 = Donnerstag ,5 = Freitag ,6 = Samstag ); function convert_from_weekday ($weekday) {

Re: [PHP] Separating HTML code from PHP code

2007-03-11 Thread Paul Novitski
At 3/10/2007 11:47 AM, Don Don wrote: Hi all, i am building a system using php and am trying to separate the html codes from the php codes (i.e. placing them in separate files), I am from the java struts/spring background and seem to be finding it difficult doing that at the moment with php.

Re: [PHP] Array mysteries

2007-03-11 Thread Otto Wyss
Steve Edberg wrote: At 9:51 AM +0100 3/11/07, Otto Wyss wrote: function convert_from_weekday ($weekday) { return $wdays[$weekday]; } If the above is your exact code, then the problem is one of scope; move the $wdays declaration inside your convert_from_weekday() function. I'm

Re: [PHP] Array mysteries

2007-03-11 Thread Satyam
- Original Message - From: Otto Wyss [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Sunday, March 11, 2007 11:14 AM Subject: Re: [PHP] Array mysteries Steve Edberg wrote: At 9:51 AM +0100 3/11/07, Otto Wyss wrote: function convert_from_weekday ($weekday) { return

[PHP] Value evaluation library

2007-03-11 Thread Sancar Saran
Hi, Does anyone suggest to evaluation lib. I want to build sometin for check user posted values in php. If I remember correctly zend framework has someting like this... So I cust need evaluation part. Is there any other good lib around there ? Regards Sancar -- PHP General Mailing List

Re: [PHP] FW: looking for two remote functions

2007-03-11 Thread Myron Turner
Myron Turner wrote: Tijnema ! wrote: On 3/10/07, Németh Zoltán [EMAIL PROTECTED] wrote: 2007. 03. 10, szombat keltezéssel 12.42-kor Riyadh S. Alshaeiq ezt írta: Actually if right click on any file or folder on a machine you will see that there are two values (Size on disk Size). Files

Re: [PHP] FW: looking for two remote functions

2007-03-11 Thread Tijnema !
On 3/11/07, Myron Turner [EMAIL PROTECTED] wrote: Myron Turner wrote: Tijnema ! wrote: On 3/10/07, Németh Zoltán [EMAIL PROTECTED] wrote: 2007. 03. 10, szombat keltezéssel 12.42-kor Riyadh S. Alshaeiq ezt írta: Actually if right click on any file or folder on a machine you will see

Re: [PHP] Array mysteries

2007-03-11 Thread tedd
At 10:05 AM +0100 3/11/07, Tijnema ! wrote: - You could define $wdays inside the function function convert_from_weekday ($weekday,$wdays) { $wdays = array (0 = Sonntag ,1 = Montag ,2 = Dienstag ,3 = Mittwoch ,4 = Donnerstag ,5 = Freitag ,6 = Samstag ); return

Re: [PHP] Array mysteries

2007-03-11 Thread Tijnema !
On 3/11/07, tedd [EMAIL PROTECTED] wrote: At 10:05 AM +0100 3/11/07, Tijnema ! wrote: - You could define $wdays inside the function function convert_from_weekday ($weekday) { $wdays = array (0 = Sonntag ,1 = Montag ,2 = Dienstag ,3 = Mittwoch ,4 = Donnerstag ,5 =

RE: [PHP] php and javascript error

2007-03-11 Thread tedd
At 5:28 PM +0100 3/7/07, [EMAIL PROTECTED] wrote: PS: If you want your code to validate, change the to amp; Add the closing /a tag too. PPS: It's advisable not to use the short tags, use ?php instead of ? in such a cases I usually use ?= $var ? instead ?php echo $var ?. At least it's

Re: [PHP] php and javascript error

2007-03-11 Thread Tijnema !
On 3/11/07, tedd [EMAIL PROTECTED] wrote: At 5:28 PM +0100 3/7/07, [EMAIL PROTECTED] wrote: PS: If you want your code to validate, change the to amp; Add the closing /a tag too. PPS: It's advisable not to use the short tags, use ?php instead of ? in such a cases I usually use ?= $var ?

Re: [PHP] Save and Continue

2007-03-11 Thread tedd
At 10:51 AM -0500 3/7/07, Robert Cummings wrote: On Wed, 2007-03-07 at 10:39 -0500, Dan Shirah wrote: then return to the same screen with the credit card information still populated You should treat credit card information like a hot potato... get rid of it as soon as possible. What

Re: [PHP] php and javascript error

2007-03-11 Thread tedd
At 3:25 PM +0100 3/11/07, Tijnema ! wrote: On 3/11/07, tedd mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: At 5:28 PM +0100 3/7/07, mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: PS: If you want your code to validate, change the to amp; Add the closing /a tag too. PPS: It's

Re: [PHP] Array mysteries

2007-03-11 Thread tedd
At 3:05 PM +0100 3/11/07, Tijnema ! wrote: On 3/11/07, tedd mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: At 10:05 AM +0100 3/11/07, Tijnema ! wrote: - You could define $wdays inside the function function convert_from_weekday ($weekday) { $wdays = array (0 = Sonntag ,1 = Montag ,2

Re: [PHP] FW: looking for two remote functions

2007-03-11 Thread Myron Turner
Tijnema ! wrote: I'm not very familiar with PERL, so will this work with remote files? As it seems that you are just reading from local hard drive... Tijnema It has to be on the machine from which the pages are being served. There have been several workable suggestions for different

Re: [PHP] FW: looking for two remote functions

2007-03-11 Thread Tijnema !
On 3/11/07, Myron Turner [EMAIL PROTECTED] wrote: Tijnema ! wrote: I'm not very familiar with PERL, so will this work with remote files? As it seems that you are just reading from local hard drive... Tijnema It has to be on the machine from which the pages are being served. He was

[PHP] Why won't this query go through?

2007-03-11 Thread Mike Shanley
Hi, I am just not understanding what I could have possibly done wrong with this query. All of the variables are good, without special characters in any sense of the word... So why isn't it importing anything? Thanks! $q = INSERT INTO

Re: [PHP] FW: looking for two remote functions

2007-03-11 Thread Myron Turner
I think we've been talking to ourselves. The guy with the original question seems to have folded his hand and gone home. This is exactly what my script also did, get the content-length from the header. But i don't see what the actual problem is, there have been a lot of solutions around here

Re: [PHP] Why won't this query go through?

2007-03-11 Thread Tijnema !
On 3/11/07, Mike Shanley [EMAIL PROTECTED] wrote: Hi, I am just not understanding what I could have possibly done wrong with this query. All of the variables are good, without special characters in any sense of the word... So why isn't it importing anything? Thanks! $q = INSERT INTO

Re: [PHP] Separating HTML code from PHP code

2007-03-11 Thread Michael Weaver
Hi Don, I understand what you mean by separating out the code from the view or display. I ran into this issue with PHP several years ago and ended up writing a templating engine to allow for complete separation of the code from the display. The DynaCore System has been in development for

Re: [PHP] Array mysteries

2007-03-11 Thread Edward Vermillion
On Mar 11, 2007, at 10:02 AM, tedd wrote: At 3:05 PM +0100 3/11/07, Tijnema ! wrote: On 3/11/07, tedd mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: At 10:05 AM +0100 3/11/07, Tijnema ! wrote: - You could define $wdays inside the function function convert_from_weekday ($weekday) { $wdays

Re: [PHP] Save and Continue

2007-03-11 Thread Robert Cummings
On Sun, 2007-03-11 at 10:31 -0400, tedd wrote: At 10:51 AM -0500 3/7/07, Robert Cummings wrote: On Wed, 2007-03-07 at 10:39 -0500, Dan Shirah wrote: then return to the same screen with the credit card information still populated You should treat credit card information like a hot

Re: [PHP] My help with adding captcha

2007-03-11 Thread Tijnema !
On 3/11/07, Joker7 [EMAIL PROTECTED] wrote: Hi- as you know I have been working on adding a captcha image to my guestbook. Well I have managed to get a very basic one working ;) but !I have been trying to get one that would make it more easy to use ,I have it working until I add it to my form.

[PHP] Stream Functions

2007-03-11 Thread ccspencer
Hello, I have been trying to get the stream functions to work in PHP. While undoubtedly my problems are due to ignorance I'd appreciate anything helpful anyone would care to say that might alleviate that ignorance. Basically, I have just been trying to get the examples given in the manual to

Re: [PHP] Array mysteries

2007-03-11 Thread Larry Garfield
On Sunday 11 March 2007 12:02 pm, Edward Vermillion wrote: At 10:05 AM +0100 3/11/07, Tijnema ! wrote: - You could define $wdays inside the function function convert_from_weekday ($weekday) { $wdays = array (0 = Sonntag ,1 = Montag ,2 = Dienstag ,3 = Mittwoch ,4 =

Re: [PHP] Array mysteries

2007-03-11 Thread tedd
At 12:02 PM -0500 3/11/07, Edward Vermillion wrote: On Mar 11, 2007, at 10:02 AM, tedd wrote: At 3:05 PM +0100 3/11/07, Tijnema ! wrote: On 3/11/07, tedd mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: At 10:05 AM +0100 3/11/07, Tijnema ! wrote: - You could define $wdays inside the

[PHP] PEAR not found

2007-03-11 Thread rwhartung
Hi all, I have a new install and am trying to get PEAR working - MDB2 to be exact. I have modified /etc/php.ini to have the following include_path = .:/php/includes:/usr/share/pear phpinfo() reports the directive --includedir=/usr/include I can confirm that MDB2.php exists in that

Re: [PHP] Array mysteries

2007-03-11 Thread Edward Vermillion
On Mar 11, 2007, at 1:59 PM, tedd wrote: At 12:02 PM -0500 3/11/07, Edward Vermillion wrote: On Mar 11, 2007, at 10:02 AM, tedd wrote: At 3:05 PM +0100 3/11/07, Tijnema ! wrote: On 3/11/07, tedd mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: At 10:05 AM +0100 3/11/07, Tijnema ! wrote:

Re: [PHP] Array mysteries

2007-03-11 Thread Satyam
- Original Message - From: Edward Vermillion [EMAIL PROTECTED] To: tedd [EMAIL PROTECTED] Cc: Tijnema ! [EMAIL PROTECTED]; php-general@lists.php.net Sent: Sunday, March 11, 2007 8:57 PM Subject: Re: [PHP] Array mysteries On Mar 11, 2007, at 1:59 PM, tedd wrote: At 12:02 PM -0500

Re: [PHP] Array mysteries

2007-03-11 Thread Tijnema !
On 3/11/07, Satyam [EMAIL PROTECTED] wrote: - Original Message - From: Edward Vermillion [EMAIL PROTECTED] To: tedd [EMAIL PROTECTED] Cc: Tijnema ! [EMAIL PROTECTED]; php-general@lists.php.net Sent: Sunday, March 11, 2007 8:57 PM Subject: Re: [PHP] Array mysteries On Mar 11, 2007,

Re: [PHP] Array mysteries

2007-03-11 Thread Robert Cummings
On Sun, 2007-03-11 at 21:41 +0100, Satyam wrote: - Original Message - From: Edward Vermillion [EMAIL PROTECTED] To: tedd [EMAIL PROTECTED] Cc: Tijnema ! [EMAIL PROTECTED]; php-general@lists.php.net Sent: Sunday, March 11, 2007 8:57 PM Subject: Re: [PHP] Array mysteries On

[PHP] Using array_search I get error

2007-03-11 Thread Richard Kurth
This array comes from $_REQUEST of all data submitted $array='Array ( [id] = 17 [takeaction] = saveCustomFields [notes] = -- Feb 4, 2007 @ 9:16 PM --fdsfdsfsdfdsfsfsfds -- Feb 4, 2007 @ 9:21 PM --fdfdsfsdffsd -- February 11, 2007, @ 9:31 PM -- This is a tes -- February 14, 2007, @ 10:10 PM --

Re: [PHP] Using array_search I get error

2007-03-11 Thread Stut
Richard Kurth wrote: This array comes from $_REQUEST of all data submitted $array='Array ( [id] = 17 [takeaction] = saveCustomFields [notes] = -- Feb 4, 2007 @ 9:16 PM --fdsfdsfsdfdsfsfsfds -- Feb 4, 2007 @ 9:21 PM --fdfdsfsdffsd -- February 11, 2007, @ 9:31 PM -- This is a tes -- February

RE: [PHP] Using array_search I get error

2007-03-11 Thread Richard Kurth
-Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Sunday, March 11, 2007 2:53 PM To: Richard Kurth Cc: php-general@lists.php.net Subject: Re: [PHP] Using array_search I get error Richard Kurth wrote: This array comes from $_REQUEST of all data submitted $array='Array

Re: [PHP] PEAR not found

2007-03-11 Thread Chris
rwhartung wrote: Hi all, I have a new install and am trying to get PEAR working - MDB2 to be exact. I have modified /etc/php.ini to have the following include_path = .:/php/includes:/usr/share/pear phpinfo() reports the directive --includedir=/usr/include I can confirm that MDB2.php exists

Re: [PHP] Using array_search I get error

2007-03-11 Thread Stut
Richard Kurth wrote: -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Sunday, March 11, 2007 2:53 PM To: Richard Kurth Cc: php-general@lists.php.net Subject: Re: [PHP] Using array_search I get error Richard Kurth wrote: This array comes from $_REQUEST of all data

[PHP] PHP 5.2 + IE 7 = HTTP 304 in login procedure

2007-03-11 Thread Yannick Warnier
Hello, One of my clients is currently having a problem when logging into one of my site. Investigating further (because it works with Firefox with his login/pass from my machine), it appears the problem is caused for an obscure reason when IE7 requests the page and obviously does a conditional

RE: [PHP] Using array_search I get error

2007-03-11 Thread Richard Kurth
Richard Kurth wrote: -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Sunday, March 11, 2007 2:53 PM To: Richard Kurth Cc: php-general@lists.php.net Subject: Re: [PHP] Using array_search I get error Richard Kurth wrote: This array comes from $_REQUEST of all

[PHP] php 4 and 5

2007-03-11 Thread edwardspl
Dear All, What different between 4 and 5 ? Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php 4 and 5

2007-03-11 Thread Chris
[EMAIL PROTECTED] wrote: Dear All, What different between 4 and 5 ? http://www.php.net/manual/en/migration5.php#migration5.changes -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php 4 and 5

2007-03-11 Thread Larry Garfield
On Sunday 11 March 2007 7:14 pm, [EMAIL PROTECTED] wrote: Dear All, What different between 4 and 5 ? Edward. http://us2.php.net/manual/en/faq.migration5.php http://us2.php.net/manual/en/migration5.php Really, I normally am not an RTFMer, but it's not like the information isn't already

Re: [PHP] php 4 and 5

2007-03-11 Thread Robert Cummings
On Mon, 2007-03-12 at 08:14 +0800, [EMAIL PROTECTED] wrote: Dear All, What different between 4 and 5 ? http://www.php.net/manual/en/migration5.php#migration5.changes Cheers, Rob. -- .. | InterJinn Application Framework -

[PHP] xml parsing

2007-03-11 Thread Marije van Deventer
I have been trying to parse this xml, and want to use it with childnodes Label and Tekst, but sofar due to the li and p and image elements no luck. How can i do this in a simple way ??? ?xml version=1.0 encoding=UTF-8? Menu Item LabelAlgemeen/Label Teksta/Tekst

Re: [PHP] xml parsing

2007-03-11 Thread Robert Cummings
On Mon, 2007-03-12 at 01:38 +0100, Marije van Deventer wrote: I have been trying to parse this xml, and want to use it with childnodes Label and Tekst, but sofar due to the li and p and image elements no luck. How can i do this in a simple way ??? You're having trouble because the person who

Re: [PHP] Why won't this query go through?

2007-03-11 Thread Jochem Maas
Tijnema ! wrote: On 3/11/07, Mike Shanley [EMAIL PROTECTED] wrote: Hi, I am just not understanding what I could have possibly done wrong with this query. All of the variables are good, without special characters in any sense of the word... So why isn't it importing anything? Thanks! $q

Re: [PHP] Why won't this query go through?

2007-03-11 Thread Myron Turner
Jochem Maas wrote: Tijnema ! wrote: On 3/11/07, Mike Shanley [EMAIL PROTECTED] wrote: Hi, I am just not understanding what I could have possibly done wrong with this query. All of the variables are good, without special characters in any sense of the word... So why isn't it importing

Re: [PHP] My help with adding captcha

2007-03-11 Thread Chris
Joker7 wrote: Hi- as you know I have been working on adding a captcha image to my guestbook. Well I have managed to get a very basic one working ;) but !I have been trying to get one that would make it more easy to use ,I have it working until I add it to my form. My form use's print see

Re: [PHP] Variable variables and references

2007-03-11 Thread Martin Alterisio
2007/3/10, Dave Goodchild [EMAIL PROTECTED]: Hi guys, I have just read 'Programming PHP' (O'Reilly) and although I think it's a great book, I am confused about variable variables and references - not the mechanics, just where you would use them. The subject of variable variables is explained

[PHP] __autoload() no workie on my 5.2 install...

2007-03-11 Thread Nathan Hawks
Hey all. This is my first post, 'coz it's the first time I've ever had such a confusing problem with PHP. I recently got a VPS and compiled PHP 5.2.1 with the following options: --prefix=/usr/local/php5 --with-apxs2=/usr/local/apache2/bin/apxs --with-config-file-path=/etc/php5 --with-curl