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
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) {
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) {
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.
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
- 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
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
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
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
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
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 =
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
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 ?
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
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
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
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
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
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
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
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
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
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
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
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.
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
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 =
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
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
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:
- 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
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,
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
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 --
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
-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
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
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
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
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
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
[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
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
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 -
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
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
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
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
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
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
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
51 matches
Mail list logo