Anyone?
//frank
8 feb 2007 kl. 11.24 skrev Frank Arensmeier:
Hello.
I would like to hook up on this issue a little bit more. I am
wondering if anybody is willing to share some good advices
regarding how to implement a good (normative) url structure so to
say when it comes to multi lingua
On p, 2007-02-09 at 09:24 +0200, Steven Macintyre wrote:
> Hi all,
>
> I have an array ($articles) that contains content in this format
>
> Text
> More text
>
> I am currently calling the creation of the array as such;
>
> $articles = split("Section break", $mystring); <-- this works
>
> NOW .
8 feb 2007 kl. 11.24 skrev Frank Arensmeier:
I would like to hook up on this issue a little bit more. I am
wondering if anybody is willing to share some good advices
regarding how to implement a good (normative) url structure so to
say when it comes to multi lingual sites. Let me give you an e
I am wondering about the "Predefined Classes" for PHP5.
I see that this page:
http://us3.php.net/manual/en/reserved.classes.php
and
http://devzone.zend.com/manual/view/page/reserved.classes.html
and
http://livedocs.phpdoc.info/index.php?l=en&q=reserved
Doesn't have much on the new classes that
Hello Jim Lucas,
try get_declared_classes and get_declared_interfaces
Best regards,
=== At 2007-02-09, 17:26:01 you wrote: ===
>I am wondering about the "Predefined Classes" for PHP5.
>
>I see that this page:
>
>http://us3.php.net/manual/en/reserved.classes.php
>and
>http://devzon
Thank you Paul for your comments - very valuable!
//frank
9 feb 2007 kl. 10.08 skrev Paul Novitski:
8 feb 2007 kl. 11.24 skrev Frank Arensmeier:
I would like to hook up on this issue a little bit more. I am
wondering if anybody is willing to share some good advices
regarding how to implemen
On p, 2007-02-09 at 10:10 +0100, Németh Zoltán wrote:
> On p, 2007-02-09 at 09:24 +0200, Steven Macintyre wrote:
> > Hi all,
> >
> > I have an array ($articles) that contains content in this format
> >
> > Text
> > More text
> >
> > I am currently calling the creation of the array as such;
> >
# [EMAIL PROTECTED] / 2007-02-09 01:22:14 -0800:
> I am wondering about the "Predefined Classes" for PHP5.
>
> I see that this page:
>
> http://us3.php.net/manual/en/reserved.classes.php
> That page only shows two (2) new predefined classes for PHP5
>
> But, as you can see from the first post o
Best group member,
I want to match a four digit number. I allow user to enter with * syntax. So
8* would match anything that starts with 8 and is 4 digit long so:
/^8[0-9]{3}$/
That was easy. Ok then my other case was: *8, so anything that ends with 8
/^[0-9]{3}8$/
Ok, now the t
On Fri, 2007-02-09 at 09:03 +0100, Frank Arensmeier wrote:
> Anyone?
If you use top level domains like that then if someone wants to swith
between languages you won't be able to share session information without
employing session propogation tricks.
Cheers,
Rob.
>
> //frank
> 8 feb 2007 kl. 11.
On Fri, 2007-02-09 at 14:13 +0200, Peter Lauri wrote:
> Best group member,
>
>
>
> I want to match a four digit number. I allow user to enter with * syntax. So
> 8* would match anything that starts with 8 and is 4 digit long so:
>
>
>
> /^8[0-9]{3}$/
>
>
>
> That was easy. Ok then my ot
On Fri, 2007-02-09 at 07:23 -0500, Robert Cummings wrote:
> On Fri, 2007-02-09 at 09:03 +0100, Frank Arensmeier wrote:
> > Anyone?
>
> If you use top level domains like that then if someone wants to swith
Oh no, I've developed a lithp :)
Cheers,
Rob.
--
.
# [EMAIL PROTECTED] / 2007-02-09 14:13:27 +0200:
> I want to match a four digit number. I allow user to enter with * syntax. So
> 8* would match anything that starts with 8 and is 4 digit long so:
>
> /^8[0-9]{3}$/
>
> That was easy. Ok then my other case was: *8, so anything that ends with 8
>
[snip]
Why not use two checks? One that checks for 4 digits, the other checks
for existence of 8 anywhere in the string?
Cheers,
Rob.
[/snip]
Of course that is a possibility. But I wonder if there is a way to do it
with ONE expression. So there are no AND operator in Regular Expressions
then I a
Thanks. I will look into more of the lookahead and lookbehind operators.
Best regards,
Peter Lauri
www.dwsasia.com - company web site
www.lauri.se - personal web site
www.carbonfree.org.uk - become Carbon Free
-Original Message-
From: Roman Neuhauser [mailto:[EMAIL PROTECTED]
Sent: Fri
Roman Neuhauser wrote:
This shouldn't do too much backtracking, try it out:
"*8*" => /^(?:\d*8\d*){4}$/
The {4} in there repeats the subpattern 4 times, rather than limiting it
to 4 characters.
I really can't think of an elegant to do what you ask with regex - why
limit yourself to regex a
> [snip]
>
> Why not use two checks? One that checks for 4 digits, the other checks
> for existence of 8 anywhere in the string?
>
> Cheers,
> Rob.
> [/snip]
>
> Of course that is a possibility. But I wonder if there is a way to do it
> with ONE expression. So there are no AND operator in Regular E
# [EMAIL PROTECTED] / 2007-02-09 12:44:40 +:
> Roman Neuhauser wrote:
> >This shouldn't do too much backtracking, try it out:
> >
> >"*8*" => /^(?:\d*8\d*){4}$/
> >
> >
> The {4} in there repeats the subpattern 4 times, rather than limiting it
> to 4 characters.
OMG. Sorry, haven't got eno
On Fri, 2007-02-09 at 12:56 +, Edward Kay wrote:
> > [snip]
> >
> > Why not use two checks? One that checks for 4 digits, the other checks
> > for existence of 8 anywhere in the string?
> >
> > Cheers,
> > Rob.
> > [/snip]
> >
> > Of course that is a possibility. But I wonder if there is a way
Jim Lucas wrote:
> I am wondering about the "Predefined Classes" for PHP5.
>
> I see that this page:
>
> http://us3.php.net/manual/en/reserved.classes.php
> and
> http://devzone.zend.com/manual/view/page/reserved.classes.html
> and
> http://livedocs.phpdoc.info/index.php?l=en&q=reserved
>
> Does
Khai wrote:
> STDERR and STDOUT are defined as constants. Is there a way to redefine
> these constants?
only if you use runkit (which is probably not recommended in production
environments):
http://php.net/runkit
consider that constants are called as such for a reason. you should consi
Thank you Robert.
Actually, I am not so sure anymore if my idea of "binding" localized
content to domains is the right path to go. After a litte research, I
saw that many of the major sites out there are redirecting the user
to subfolders. Maybe this is the right thing to do. What would hap
# [EMAIL PROTECTED] / 2007-02-09 14:44:32 +0100:
> Jim Lucas wrote:
> > I am wondering about the "Predefined Classes" for PHP5.
vv
> > I don't have all the various extensions loaded, so I don't have
> > access to the various class
> -Message d'origine-
> De : Frank Arensmeier [mailto:[EMAIL PROTECTED]
> Envoyé : vendredi 9 février 2007 14:51
> À : Robert Cummings
> Cc : PHP List; Jochem Maas; Otto Wyss
> Objet : Re: [PHP] Multi lingual pages
>
> Thank you Robert.
>
> Actually, I am not so sure anymore if my ide
Roman Neuhauser wrote:
> # [EMAIL PROTECTED] / 2007-02-09 14:44:32 +0100:
>> Jim Lucas wrote:
>>> I am wondering about the "Predefined Classes" for PHP5.
>
> vv
>>> I don't have all the various extensions loaded, so I don't have
>
> > As Rob suggested, why not just use two checks? e.g.
> >
> > if ( (strlen($input) == 4) && (strpos($input, '8') !== FALSE ) ) {
> > // OK
> > } else {
> > // Not OK
> > }
> >
> > Not only is this logic much easier to understand than a regexp
> - important
> > when someone else has to ma
Jim Lucas wrote:
So, to my question. Does anybody have a place they can refer me to to
find out about all the available classes in PHP5. Granted that I don't
have all the various extensions loaded, so I don't have access to the
various classes. I would, however, like to be able to read about
Am Donnerstag 08 Februar 2007 20:36 schrieb Robert Cummings:
> Or...
>
> wget --save-cookies cookies.txt --load-cookies cookies.txt
> --keep-session-cookies http://my.domain/tracker.php
>
> You only need one cumulative call.
Dear Rob, thanks again. However, my server uses Debian Sarge with wget
Nicholas Yim wrote:
> Hello Jim Lucas,
>
>try get_declared_classes and get_declared_interfaces
>
> Best regards,
>
> === At 2007-02-09, 17:26:01 you wrote: ===
>
>> I am wondering about the "Predefined Classes" for PHP5.
>>
>> I see that this page:
>>
>> http://us3.php.net/manual
Stut wrote:
Jim Lucas wrote:
So, to my question. Does anybody have a place they can refer me to to
find out about all the available classes in PHP5. Granted that I
don't have all the various extensions loaded, so I don't have access
to the various classes. I would, however, like to be able
Roman Neuhauser wrote:
# [EMAIL PROTECTED] / 2007-02-09 14:44:32 +0100:
Jim Lucas wrote:
I am wondering about the "Predefined Classes" for PHP5.
vv
I don't have all the various extensions loaded, so I don't have
access to th
Roman Neuhauser wrote:
# [EMAIL PROTECTED] / 2007-02-09 01:22:14 -0800:
I am wondering about the "Predefined Classes" for PHP5.
I see that this page:
http://us3.php.net/manual/en/reserved.classes.php
That page only shows two (2) new predefined classes for PHP5
But, as you can see from the
Jim Lucas wrote:
Stut wrote:
Jim Lucas wrote:
So, to my question. Does anybody have a place they can refer me to
to find out about all the available classes in PHP5. Granted that I
don't have all the various extensions loaded, so I don't have access
to the various classes. I would, however
# [EMAIL PROTECTED] / 2007-02-09 16:04:35 +0100:
> Roman Neuhauser wrote:
> > # [EMAIL PROTECTED] / 2007-02-09 14:44:32 +0100:
> >> Jim Lucas wrote:
> >>> I am wondering about the "Predefined Classes" for PHP5.
> >
> > vv
> >>> I
Jim Lucas wrote:
I am wondering about the "Predefined Classes" for PHP5.
I see that this page:
http://us3.php.net/manual/en/reserved.classes.php
and
http://devzone.zend.com/manual/view/page/reserved.classes.html
and
http://livedocs.phpdoc.info/index.php?l=en&q=reserved
Doesn't have much on the
Dear PHP Users,
I have two questions regarding PHP 5's Reflection API (I apologize if this
isn't the right list to ask):
1) Is there a way to inject a method into a Class such that future
instantiations of that Class will have the method? For example:
Before ---
class A {
# [EMAIL PROTECTED] / 2007-02-09 08:15:33 -0800:
> Roman Neuhauser wrote:
> >The manual? If it's not documented there, try the source.
> try the source <-- Joke, right?
It's just English text with lots of curly braces. ;)
--
How many Vietnam vets does it take to screw in a light bulb?
You don't
# [EMAIL PROTECTED] / 2007-02-09 08:33:29 -0800:
> Jim Lucas wrote:
> >So, to my question. Does anybody have a place they can refer me to to
> >find out about all the available classes in PHP5. Granted that I don't
> >have all the various extensions loaded, so I don't have access to the
> >var
# [EMAIL PROTECTED] / 2007-02-09 10:46:44 -0600:
> 1) Is there a way to inject a method into a Class such that future
> instantiations of that Class will have the method?
Try runkit.
--
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man. You don't KNOW.
Cause you w
Roman Neuhauser wrote:
# [EMAIL PROTECTED] / 2007-02-09 08:33:29 -0800:
Jim Lucas wrote:
So, to my question. Does anybody have a place they can refer me to to
find out about all the available classes in PHP5. Granted that I don't
have all the various extensions loaded, so I don't have access
Check out the runkit extension to PHP
(http://www.php.net/manual/en/ref.runkit.php). It should let you do all
the class mucking you need to do.
jon
Jim Wilson wrote:
Dear PHP Users,
I have two questions regarding PHP 5's Reflection API (I apologize if
this
isn't the right list to ask):
1)
# [EMAIL PROTECTED] / 2007-02-09 08:57:39 -0800:
> Roman Neuhauser wrote:
> ># [EMAIL PROTECTED] / 2007-02-09 08:33:29 -0800:
> >>Jim Lucas wrote:
> >>>So, to my question. Does anybody have a place they can refer me to to
> >>>find out about all the available classes in PHP5. Granted that I don'
Roman Neuhauser wrote:
> # [EMAIL PROTECTED] / 2007-02-09 16:04:35 +0100:
>> Roman Neuhauser wrote:
>>> # [EMAIL PROTECTED] / 2007-02-09 14:44:32 +0100:
Jim Lucas wrote:
> I am wondering about the "Predefined Classes" for PHP5.
>>> vv
If you want to do it in one regular expression, without listing each case,
you can use a lookahead assertion:
/^(?=.*8.*)[0-9]{4}$/
The assertion (?=.*8.*) checks that the following matches the expression
contained (.*8.*) which fails if there is not an 8.
2007/2/9, Peter Lauri <[EMAIL PROTECTE
PS: I think you can remove the last .*, leaving the assertion like this:
(?=.*8), and it will still work fine and probably faster (which dosen't
matter under these conditions). But I haven't tried that one (and have
already erased the test file I did to check the regular expression).
2007/2/9, Ma
Jim Lucas wrote:
I am wondering about the "Predefined Classes" for PHP5.
I see that this page:
http://us3.php.net/manual/en/reserved.classes.php
and
http://devzone.zend.com/manual/view/page/reserved.classes.html
and
http://livedocs.phpdoc.info/index.php?l=en&q=reserved
Doesn't have much on the
9 feb 2007 kl. 15.38 skrev Tim:
-Message d'origine-
De : Frank Arensmeier [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 9 février 2007 14:51
À : Robert Cummings
Cc : PHP List; Jochem Maas; Otto Wyss
Objet : Re: [PHP] Multi lingual pages
Thank you Robert.
Actually, I am not so sure any
Hi,
I was not having PHP on the machine I am reading this email for the
moment. But I tried to use it together with egrep, but it didn't work.
Maybe egrep is using different syntax for these lookaheads, but with
other tests it has been working same as for preg_match in PHP. As you
see the
Hello,
I have seen some implementations of Server in php implementing HTTP Digest
Authentication but I have not seen any guidelines on HTTP Client connecting
to a specific host, and using the "realm", the username and password to get
authenticated and thereby do something like download files etc.
[EMAIL PROTECTED] wrote:
> Hi,
>
> I was not having PHP on the machine I am reading this email for the
> moment. But I tried to use it together with egrep, but it didn't work.
> Maybe egrep is using different syntax for these lookaheads, but with
> other tests it has been working same as for preg_
On Fri, 2007-02-09 at 19:21 +0100, Frank Arensmeier wrote:
> 9 feb 2007 kl. 15.38 skrev Tim:
>
> >
> >
> >> -Message d'origine-
> >> De : Frank Arensmeier [mailto:[EMAIL PROTECTED]
> >> Envoyé : vendredi 9 février 2007 14:51
> >> À : Robert Cummings
> >> Cc : PHP List; Jochem Maas; Otto Wy
On Fri, 2007-02-09 at 15:16 +, Edward Kay wrote:
> > > As Rob suggested, why not just use two checks? e.g.
> > >
> > > if ( (strlen($input) == 4) && (strpos($input, '8') !== FALSE ) ) {
> > > // OK
> > > } else {
> > > // Not OK
> > > }
> > >
> > > Not only is this logic much easier to unde
Hi,
I am a Mac person first and foremost, but the Windows people that I
know tend to use Homesite:
http://www.adobe.com/products/homesite/
From what I can tell, even though it is bundled with Dreamweaver 8,
it still looks like it can be purchased and demoed separately.
On Feb 9, 2007, a
gives in depth, detailed advice on how to design/setup redundant,
load-balanced, high-performance web-server systems/applications with particular
focus on PHP.
I just bought 'Building Scalable Websites' by Cal Henderson and that's looking
like it's a good place for me to start, maybe someone has a
On Fri, 2007-02-09 at 16:50 +0100, RalfGesellensetter wrote:
> Am Donnerstag 08 Februar 2007 20:36 schrieb Robert Cummings:
> > Or...
> >
> > wget --save-cookies cookies.txt --load-cookies cookies.txt
> > --keep-session-cookies http://my.domain/tracker.php
> >
> > You only need one cumulative call.
I understand that the headers_sent() function will tell me whether headers
have been sent or not.
What I do not understand is what triggers the headers to be sent to the
browser in the first place.
Does this happen as soon as the first output occurs?
On 2/9/07, Philippe Piernot <[EMAIL PROTECTED]> wrote:
I understand that the headers_sent() function will tell me whether headers
have been sent or not.
What I do not understand is what triggers the headers to be sent to the
browser in the first place.
Does this happen as soon as the first outpu
Hopefully I will manage to explain my problem and you will have a solution
for it :).
I have a checkout page, coded in PHP (by some other coder, not available
anymore). On the page I have one table containing shopping cart items and
one submission form, to collect all information from the custom
On Fri, 2007-02-09 at 11:24 -0800, Philippe Piernot wrote:
> I understand that the headers_sent() function will tell me whether headers
> have been sent or not.
> What I do not understand is what triggers the headers to be sent to the
> browser in the first place.
> Does this happen as soon as the
I've been using SciTE for many years now.
http://www.scintilla.org/SciTE.html
It's small and lightweight, has code folding and bracket highlighting and a
lot of other nifty features.
I also have Zend Studio IDE Professional but it is slow and bloated compared
with SciTE.
2 more pennies...
Dav
On Friday 09 February 2007 21:29, Robert wrote:
Greetings,
This is about to your aproach to problem.
For my point of view there are too many solution.
1-) Is that customer may have to register himself? If so you may get from his
state date from here (when customer register himself you require hi
I bet for one more week about this topic ? Any bidders ?
:)
Regards
Sancar
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RalfGesellensetter wrote:
> Am Donnerstag 08 Februar 2007 20:36 schrieb Robert Cummings:
>> Or...
>>
>> wget --save-cookies cookies.txt --load-cookies cookies.txt
>> --keep-session-cookies http://my.domain/tracker.php
>>
>> You only need one cumulative call.
>
>
> Dear Rob, thanks again. However,
Robert Cummings wrote:
> On Fri, 2007-02-09 at 11:24 -0800, Philippe Piernot wrote:
>> I understand that the headers_sent() function will tell me whether headers
>> have been sent or not.
>> What I do not understand is what triggers the headers to be sent to the
>> browser in the first place.
>> Do
please keep the replies 'on list' ...
Khai Doan wrote:
> Sorry, I hit the Send button by mistake. My problem is that these
> constant are defined at compile / startup time, before my script get to
> run. In Perl, I can close STDERR and STDOUT and re-open them to any
> file at anytime. In Perl,
Ligaya A. Turmelle wrote:
> Law of mass tonnage - better to be in the big motorized vehicle then the
> little one when *crunch* happens.
and especially not under it as Richard pointed out. :-/
>
> Respectfully,
> Ligaya Turmelle
> Systems Analyst
> Guamcell Communications
> Phone: (671)689-2377
Sancar Saran wrote:
I bet for one more week about this topic ? Any bidders ?
:)
Regards
Sancar
I bet that a week after that, the question will be asked again... :)
--
Enjoy,
Jim Lucas
Different eyes see different things. Different hearts beat on different
strings. But there are times for
Hi list, I'm trying to make a script which requires that I perform a
printf() formatting on a string, but instead of outputting the result I
need to set the result as a variable to write to a file. Can any one
advise me on how to do this? or if it's even possible?
Kind regards, Stephen.
--
PH
Stephen wrote:
Hi list, I'm trying to make a script which requires that I perform a
printf() formatting on a string, but instead of outputting the result
I need to set the result as a variable to write to a file. Can any one
advise me on how to do this? or if it's even possible?
Kind regards,
Thanks for the quick response... I feel stupid now though! I can't
believe I missed that.
Kind regards, Stephen.
Fredrik Thunberg wrote:
Stephen wrote:
Hi list, I'm trying to make a script which requires that I perform a
printf() formatting on a string, but instead of outputting the result
I
Robert Cummings writes:
> Dear numnutz, get off your lazy arse and read the doc for yourself:
>
> http://wp.netscape.com/newsref/std/cookie_spec.html
>
> It clearly states:
>
> NAME=VALUE
> This string is a sequence of characters excluding semi-colon, comma and
> white space. If there is
On Fri, 2007-02-09 at 20:38 -0600, Fletcher Mattox wrote:
> Robert Cummings writes:
>
> > Dear numnutz, get off your lazy arse and read the doc for yourself:
> >
> > http://wp.netscape.com/newsref/std/cookie_spec.html
> >
> > It clearly states:
> >
> > NAME=VALUE
> > This string is a seq
Fletcher Mattox wrote:
Actually, wouldn't you say it is left up to whoever is sending the cookie?
But more on that later.
It is totally left up to the user with PHP as well, but you agree with
that (grudgingly) later. There is no way that you can argue the fact
that there are two mechanisms.
73 matches
Mail list logo