Hank Tt wrote:
Either of these should work:
preg_match("/\b.*\b/", trim($zutat), $matches);
Thank you - that's the solution :-)
mfg - micha
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Lee Doolan wrote:
"Michael" == Michael Temeschinko <[EMAIL PROTECTED]> writes:
Michael> Hello,
Michael> I would like to split a String containing ingredience with additional
Michael> assigned footnotes...
Michael> my problem I only get the first ingredience ($zutat at line 32 has
James,
My question had more to do with why the authors would give this usage when
array_push is not documented to behave so (as you correctly described).
Were they describing an earlier version of array_push? A simple buggy
example? A typo perhaps?
Since the authors Hughes and Zmievski are big
Either of these should work:
preg_match("/\b.*\b/", trim($zutat), $matches);
preg_match("/\b.+\b/", $zutat, $matches);
I'll leave the why to someone else :)
- Original Message -
From: "Michael Temeschinko" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 02, 2003 7:55
On Sunday 03 August 2003 13:02, Hank TT wrote:
> Well, I might have been more specific about their example, since not
> everyone has the book. An excerpt below (so I don't need to retype all the
> names of characters and foul creatures from the Lord of the Rings):
>
> ---
>
Well, I might have been more specific about their example, since not
everyone has the book. An excerpt below (so I don't need to retype all the
names of characters and foul creatures from the Lord of the Rings):
---
$arr1 = array('G', 'R', 'Sr');
$arr2 = array('N', 'Su', '
> "Michael" == Michael Temeschinko <[EMAIL PROTECTED]> writes:
Michael> Hello,
Michael> I would like to split a String containing ingredience with additional
Michael> assigned footnotes...
Michael> my problem I only get the first ingredience ($zutat at line 32 has
Michael>
* Thus wrote Andrew Brampton ([EMAIL PROTECTED]):
> No there is a difference...
>
> Take the example
> [ [a, b, c] , [ d, e, f] ]
> In a 2 dimensional array those values would be stored adjacent in memory...
> ie
> a b c d e f
>
> In a Array of Arrays, the first and 2nd elements would be pointers
yeah, thats the code i wrote myself (nearly). it gets the job done.
thanks
"Curt Zirzow" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> * Thus wrote John Ryan ([EMAIL PROTECTED]):
> > Hi,
> >
> hello ryan,
>
> > In mySQL, I store dates as -MM-DD, a standard DATE type. It stores
* Thus wrote James Johnson ([EMAIL PROTECTED]):
> Hello,
hello james.
>
> Is there a limit or something to the number of Session vars that can be
> used? I've even tried setting a Session var called "foo" and that doesn't
> work.
None that php enforces, only the operating system's filesystem an
php-general Digest 2 Aug 2003 23:40:47 - Issue 2213
Topics (messages 158040 through 158060):
Re: LDAP_connect()
158040 by: Bogdan Stancescu
158045 by: Craig Roberts
connecting access (*.mdb) database with PHP
158041 by: pehepe php
158042 by: skate
158
Hello,
I would like to split a String containing ingredience with additional
assigned footnotes...
my problem I only get the first ingredience ($zutat at line 32 has only
one times the awaited value) but the print on line 29 shows me that the
value of $zutat is right at this point.
what's wro
DOH! Nevermind, I mis-spelled session_start().
:(
-Original Message-
From: James Johnson [mailto:[EMAIL PROTECTED]
Sent: Saturday, August 02, 2003 4:19 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Trouble with Session var
Hello,
This one has me stumped.
I'm setting a session var to a value
Hello,
This one has me stumped.
I'm setting a session var to a value returned from a query, then redirecting
to another page. I get the following error on the second page:
Notice: Undefined index: sv_adCatText
On the page that sets the session var, I can do an echo of
$HTTP_SESSION_VARS['sv_ad
* Thus wrote John Ryan ([EMAIL PROTECTED]):
> Hi,
>
hello ryan,
> In mySQL, I store dates as -MM-DD, a standard DATE type. It stores users
> date of births. I need to calculate in a PHP script, the users age from this
> DOB. I get a PHP date in the same format as the mySQL and subtract, which
> I've found some bugs there too, so dont worry. Like the
lol...sorry but it was a quick reply...
-dan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thursday, July 31, 2003, 9:13:03 PM, John wrote:
JWH> Jay Paulson wrote:
>> The company I work for just got bought out by a larger company. The larger company
>> uses .NET from Micro$oft. I of course use all open source stuff for our web sites
>> and now the new company wants
>> to come in a
I found this code at Google's cached version of the manual for the
date() function:
http://216.239.37.104/search?q=cache:kq0aNfZeEp8J:www.php.net/date+diffe
rence+two+date+site:www.php.net&hl=en&ie=UTF-8
This code only returned the number of hours, minutes, and seconds
between the two points in ti
* Thus wrote Andrew Brampton ([EMAIL PROTECTED]):
> Well I just coded up a very small example, and it pushing 1 array into the
> other...
>
> Check out: http://81.102.229.151/push.php and
> http://81.102.229.151/push.phps
>
> It works exactly how it should... However really the array isn't a 2
>
Dan Anderson wrote:
Thanks a lot.
hehe no thanks needed. Just remember to read up on the functions so
you'll know how they work. ;-)
-Dan
I've found some bugs there too, so dont worry. Like the
...($li_tag_start_position + 4), ($li_tag_end_position + 4)...
It actually has to be (4 + $l
On Sat, Aug 02, 2003 at 08:30:34PM +0100, John Ryan wrote:
>
> In mySQL, I store dates as -MM-DD, a standard DATE type. It stores users
> date of births. I need to calculate in a PHP script, the users age from this
> DOB. I get a PHP date in the same format as the mySQL and subtract, which
> re
Another idea (slightly simpler)...
how about using mktime(); to create a timestamp from your date info, and
subtract that from the current timestamp - leaving (i think) the person's
age in seconds...
Then just do some math...
hmm... is that really simpler? well it seemed it when i started typing
yeah, i was thinking that before i decided to post to the newsgroup. i
thought there was some simple way of doing it and id be wasting my time.
obviosuly not
"Craig Roberts" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Try something along the lines of
>
> if($current_MM < $MM) {
Try something along the lines of
if($current_MM < $MM) {
$age = $calculatedage - 1;
}
you'll also need to do something like this with the day of the month if the
user's bday is in the current month.
at least... i think that works out :$
Craig Roberts
"John Ryan" <[EMAIL PROTECTED]> wrote in
Hi,
In mySQL, I store dates as -MM-DD, a standard DATE type. It stores users
date of births. I need to calculate in a PHP script, the users age from this
DOB. I get a PHP date in the same format as the mySQL and subtract, which
returns the year rounded off. ie, it doesnt matter if your birthda
Hello,
This is a reply to an e-mail that you wrote on Sat, 2 Aug 2003 at
15:31, lines prefixed by '>' were originally written by you.
> how can I connect access database(*.mdb) with php? what is the
code?
> I
> will be happy if you write php code.
Windows Control Panel > Administrative Tools >
Have you enabled the module in php.ini?
Uncomment the line
extension=php_ldap.dll
in php.ini (windows..) I think LDAP support needs to be complied in on Linux
but I've never used it so cant say.
Craig Roberts
"Ron Allen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Everytime I
Have a look for MyODBC. I've got Access talking to SQL easily, dont know if
it can be done the other way round.
Craig Roberts
"Skate" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
>
> > how can I connect access database(*.mdb) with php? what is the code?
I
> > will be happy if yo
Well I just coded up a very small example, and it pushing 1 array into the
other...
Check out: http://81.102.229.151/push.php and
http://81.102.229.151/push.phps
It works exactly how it should... However really the array isn't a 2
dimensional one, since PHP doesn't have them, its rather a array o
> how can I connect access database(*.mdb) with php? what is the code? I
> will be happy if you write php code.
>
>
damn, i'd be happy if other would write my code too...
check out the COM connections in the manual. best place for you to start,
should be able to connect to most ms applicati
how can I connect access database(*.mdb) with php? what is the code? I
will be happy if you write php code.
Thank you!
_
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail
-
http://ro.php.net/manual/en/ref.ldap.php#ldap.requirements
Ron Allen wrote:
Everytime I try to run this function it says that it is an undefined
function LDAP_connection
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
php-general Digest 2 Aug 2003 11:39:33 - Issue 2212
Topics (messages 158019 through 158039):
Re: A long float number.
158019 by: zavaboy
strings
158020 by: Anthony Ritter
158024 by: Curt Zirzow
158028 by: Anthony Ritter
158032 by: Curt Zirzow
Everytime I try to run this function it says that it is an undefined
function LDAP_connection
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
34 matches
Mail list logo