On Thu, Sep 6, 2012 at 2:28 PM, Matijn Woudt wrote:
> Op 6 sep. 2012 12:48 schreef "rene7705" het volgende:
>>
>> Hi Folks..
>
>>
>> I seem to have figured most of this out, but before I embark on weeks
>> of coding, I'd like to give the SQL experts here a chance to convince
>> me to stick to My
Op 6 sep. 2012 12:48 schreef "rene7705" het volgende:
>
> Hi Folks..
>
> I seem to have figured most of this out, but before I embark on weeks
> of coding, I'd like to give the SQL experts here a chance to convince
> me to stick to MySQL for my data storage and distribution needs. I'd
> love to h
On 24 Jul 2011 at 19:57, Dajka Tamás wrote:
> You want to do it in a greater text, I think.
See below.
> 1,$s/^>(>*From )/\1/
>
> $line = preg_replace ($pattern, $replacement, $line);
>
> Adding one '>':
>
> preg_replace('/(^[>]+From )/','>$1', $line)
>
> Removing one '>':
>
> preg_replace('/(
On 24 Jul 2011 at 19:57, Dajka Tamás wrote:
> You want to do it in a greater text, I think.
>
> 1,$s/^>(>*From )/\1/
>
> $line = preg_replace ($pattern, $replacement, $line);
>
> Adding one '>':
>
> preg_replace('/(^[>]+From )/','>$1', $line)
>
> Removing one '>':
>
> preg_replace('/(^>([>]+From
;([>]+From )/','$1', $line)
Cheers,
Tamas
-Original Message-
From: Tim Streater [mailto:t...@clothears.org.uk]
Sent: Sunday, July 24, 2011 8:51 PM
To: Dajka Tamás; PHP General List
Subject: Re: RE: [PHP] Use of preg_replace
On 24 Jul 2011 at 19:35, Dajka Tamás
On 24 Jul 2011 at 19:35, Dajka Tamás wrote:
> I lost trail, what do you want to do?
>
> You want to convert
>
From
>
> to this:
>
>>> From
The number of > in front of "From " is not known. I want to be able to add or
remove one.
--
Cheers -- Tim
--
PHP General Mailing List (http://ww
Hi,
I lost trail, what do you want to do?
You want to convert
>>>From
to this:
>>From
Or what's the goal?
Cheers,
Tamas
-Original Message-
From: Tim Streater [mailto:t...@clothears.org.uk]
Sent: Sunday, July 24, 2011 8:07 PM
To: PHP General List
Subject: [PHP] Use of preg_
On Tue, Dec 14, 2010 at 11:43, Paul M Foster wrote:
>
> Er... that's Paul McCartney, not Paul Foster. Whew!
HA! Sorry to make your heart jump. ;-P
--
Network Infrastructure Manager
Documentation, Webmaster Teams
http://www.php.net/
--
PHP General Mailing List (http://www.php.net/)
To u
On Tue, Dec 14, 2010 at 8:43 AM, Paul M Foster wrote:
> Er... that's Paul McCartney, not Paul Foster. Whew!
>
Paul McCartney's dead?? But the Beatles just released a ton of albums on
iTunes! So sad...
On Tue, Dec 14, 2010 at 11:15:59AM -0500, Daniel Brown wrote:
> On Tue, Dec 14, 2010 at 09:29, Robert Cummings wrote:
> >
> > I must have been under a rock when the reference came out :|
>
> Or you may have still been in shock from hearing that Paul was dead.
Er... that's Paul McCartney, no
On Tue, Dec 14, 2010 at 09:29, Robert Cummings wrote:
>
> I must have been under a rock when the reference came out :|
Or you may have still been in shock from hearing that Paul was dead.
--
Network Infrastructure Manager
Documentation, Webmaster Teams
http://www.php.net/
--
PHP General
On 10-12-14 07:11 AM, Jay Blanchard wrote:
[snip]
Nah, if he'd read it backwards, you'd be able to hear MePHPistoPHPeles
say, "Rasmus is the Penguin".
(Yes, you have to be dang old to get that obscure reference. ;-)
Pshaw, not *that* old! I get the reference, and I'm only . . . oh, damn.
:(
[snip]
> Nah, if he'd read it backwards, you'd be able to hear MePHPistoPHPeles
> say, "Rasmus is the Penguin".
>
> (Yes, you have to be dang old to get that obscure reference. ;-)
>
Pshaw, not *that* old! I get the reference, and I'm only . . . oh, damn.
:(
[/snip]
Uhhyeah
--
PHP Genera
On Mon, Dec 13, 2010 at 8:48 PM, Paul M Foster wrote:
> Nah, if he'd read it backwards, you'd be able to hear MePHPistoPHPeles
> say, "Rasmus is the Penguin".
>
> (Yes, you have to be dang old to get that obscure reference. ;-)
>
Pshaw, not *that* old! I get the reference, and I'm only . . . oh,
On Mon, Dec 13, 2010 at 11:04:52PM -0500, Robert Cummings wrote:
> On 10-12-13 07:28 PM, Daevid Vincent wrote:
> >
> >
[snip]
> >
> >I believe it was in the Old PHPestament,
> >"The Book of Rasmus" chapter 42 verse 69...
> >
> >66 ...
> >67 And behold as he opened the 5th point 2nd seal
> >68
On 10-12-13 07:28 PM, Daevid Vincent wrote:
-Original Message-
From: Robert Cummings [mailto:rob...@interjinn.com]
Sent: Friday, December 10, 2010 6:54 AM
To: Daevid Vincent
Cc: php-general@lists.php.net
Subject: Re: [PHP] ORM doctrine
On 10-12-09 10:41 PM, Daevid Vincent wrote:
Use
> -Original Message-
> From: Robert Cummings [mailto:rob...@interjinn.com]
> Sent: Friday, December 10, 2010 6:54 AM
> To: Daevid Vincent
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] ORM doctrine
>
> On 10-12-09 10:41 PM, Daevid Vincent wrote:
> > Use PHP the way God intended i
> -Original Message-
> From: Tamara Temple [mailto:tamouse.li...@gmail.com]
> Sent: Thursday, November 11, 2010 11:04 AM
> To: PHP General
> Subject: [PHP] use of ini vs include file for configuration
>
> I'm curious what the lists' opinions are regarding the use of
> an .ini
> file ve
> > $pattern = '|^.+?display:none.+?$|mi';
[8<]
> I found your use of ? rather... creative... Anyway, just add the
You mean the non-greedy flag? I think that's necessary the way the
regex was originally formulated -- without it, ".+display" would
gobble up all of the list-items until the last one
On Sun, Aug 9, 2009 at 12:17 AM, Rob Gould wrote:
> I wish I could say this works, but I'm not having success with this pattern.
> All the lines with display: none are still in the $bl string.
>
> On Aug 9, 2009, at 1:50 AM, LinuxManMikeC wrote:
>
> Reserved Frontstretch
>
> Tower Ticket to the Ca
Yay! That worked. Thanks!
On Aug 9, 2009, at 1:53 AM, Michael A. Peters wrote:
Rob Gould wrote:
I have a bunch of bullets in a list coming from a previous post,
and I need to eliminate any line from this string that contains
"display: none"
Reserved
Frontstretch Tower Ticket to the Cam
I wish I could say this works, but I'm not having success with this
pattern. All the lines with display: none are still in the $bl string.
On Aug 9, 2009, at 1:50 AM, LinuxManMikeC wrote:
Reserved
Frontstretch
Tower Ticket to the Camping World 300 on Saturday
Reserved
Frontstretch T
Rob Gould wrote:
I have a bunch of bullets in a list coming from a previous post, and I
need to eliminate any line from this string that contains "display: none"
Reserved
Frontstretch Tower Ticket to the Camping World 300 on Saturday
Reserved Frontstretch
Tower Ticket to the Daytona 500 on
On Sat, Aug 8, 2009 at 11:14 PM, Rob Gould wrote:
> I have a bunch of bullets in a list coming from a previous post, and I need
> to eliminate any line from this string that contains "display: none"
>
>
> Reserved Frontstretch
> Tower Ticket to the Camping World 300 on Saturday
> Reserved Frontstr
Bob McConnell wrote:
From what I have seen of PHP, it is strictly interpreted. i.e. a line is
read, and executed. Then the next line is read, and executed. etc. So
there is no way to get it to block execution from the beginning even
when there are fatal errors. It will already have printed out
So, in the end, following should output something in php?
Anyway we are far off topic now :-)
Cheers
--- On Fri, 2/27/09, Bob McConnell wrote:
From: Bob McConnell
Subject: RE: [PHP] "use strict" or similar in PHP?
To: h.schult...@yahoo.com, a...@ashleysheridan.co.uk
Cc: p
On Fri, 2009-02-27 at 08:43 -0500, Bob McConnell wrote:
> From: Hans Schultz
> >
> > Hahahah,I was thinking the same thing :D
> >
> > --- On Fri, 2/27/09, Ashley Sheridan wrote:
> > From: Ashley Sheridan
> > Subject: Re: [PHP] "use strict" or si
> -Original Message-
> From: Bob McConnell [mailto:r...@cbord.com]
> Sent: Friday, February 27, 2009 7:44 AM
> To: h.schult...@yahoo.com; a...@ashleysheridan.co.uk
> Cc: php-general@lists.php.net; 9el
> Subject: RE: [PHP] "use strict" or similar in
From: Hans Schultz
>
> Hahahah,I was thinking the same thing :D
>
> --- On Fri, 2/27/09, Ashley Sheridan wrote:
> From: Ashley Sheridan
> Subject: Re: [PHP] "use strict" or similar in PHP?
> To: "Hans Schultz"
> Cc: php-general@lists.php.net, "
On Fri, 2009-02-27 at 13:11 +, Ashley Sheridan wrote:
> But if it never compiles, it can never run, but it can't run without
> compiling? Arggh, my head. So does that mean if I go back in time and
> shoot my grandfather, then nobody is in the woods to hear PHP try to
> compile?
There's a blurr
Hahahah,I was thinking the same thing :D
--- On Fri, 2/27/09, Ashley Sheridan wrote:
From: Ashley Sheridan
Subject: Re: [PHP] "use strict" or similar in PHP?
To: "Hans Schultz"
Cc: php-general@lists.php.net, "9el"
Date: Friday, February 27, 2009, 1:11 PM
On
On Fri, 2009-02-27 at 14:04 +0100, Hans Schultz wrote:
> Sorry, I didn't want to offend anyone :-) It was just very weird argument
> - to quote:
> "There is no "compile" time. PHP is interpreted so it is compiled and
> then executed."
> Sounds like contradiction in this very sentence :-).
>
>
Sorry, I didn't want to offend anyone :-) It was just very weird argument
- to quote:
"There is no "compile" time. PHP is interpreted so it is compiled and
then executed."
Sounds like contradiction in this very sentence :-).
My apologies
On Fri, 27 Feb 2009 10:22:44 +0100, 9el wrote:
--
9el wrote:
---
Use FreeOpenSourceSoftwares, Stop piracy, Let the developers live. Get
a Free CD of Ubuntu mailed to your door without any cost. Visit :
www.ubuntu.com
--
On Thu, 26 Feb 2009 22:38:13 +0100, Shawn McKenzie
wrote:
There is no "compile" time. PHP is interpreted so it is compiled and
then executed.
If you always want error reporting, then set it in php.ini.
It is compiled in no time, so there is no compile time?
LOL
--
Using Opera's revolut
---
Use FreeOpenSourceSoftwares, Stop piracy, Let the developers live. Get
a Free CD of Ubuntu mailed to your door without any cost. Visit :
www.ubuntu.com
--
On
Hans Schultz wrote:
> Is there some way for PHP to cache some data on the page? I like very
> much PHP's speed but it would be even better to be able to cache some
> frequently used data from database?
Databases such as MySQL are very good at caching.
--
Per Jessen, Zürich (3.6°C)
--
PHP G
Hans Schultz wrote:
> Thanks a lot for your info, I will check that IDE too. But those
> warning levels give me warning only when they encounter offending
> code? Are you telling me that it can be setup to fail entire script
> prior to any execution if there are errors in it? Can you please
> point
installation that way?
--- On Thu, 2/26/09, 9el wrote:
From: 9el
Subject: Re: [PHP] "use strict" or similar in PHP?
To: h.schult...@yahoo.com
Date: Thursday, February 26, 2009, 9:34 PM
---
Use FreeOpenSourceSoftwares, S
Hans Schultz wrote:
> Oh, I didn't mentioned that I tried that, I was thinking something like
> failing at compile time (like perl with "use strict" in programs)Thanks for
> reply,
> Hans
> --- On Thu, 2/26/09, Lewis Wright wrote:
> From: Lewis Wright
>
On Thu, Feb 26, 2009 at 10:45 PM, Hans Schultz wrote:
> Hello,
> I am beginner with PHP and prior to PHP I have worked with java for some
> time
> and with perl for very short period. I can't help to notice some things
> that
> are little annoyance for me with PHP, but I am sure someone more
> exp
I have no ideea why my response from half an hour ago was not sent, but here
it is again:
1. Error reporting set to show notices, warnings and errors. See
http://www.php.net/manual/en/function.error-reporting.php
2. For caching you can use memcache. See http://www.php.net/memcache
3. These are c
Oh, I didn't mentioned that I tried that, I was thinking something like
failing at compile time (like perl with "use strict" in programs)Thanks for
reply,
Hans
--- On Thu, 2/26/09, Lewis Wright wrote:
From: Lewis Wright
Subject: Re: [PHP] "use strict" or similar in PH
---
Use FreeOpenSourceSoftwares, Stop piracy, Let the developers live. Get
a Free CD of Ubuntu mailed to your door without any cost. Visit :
www.ubuntu.com
--
On
I was thinking more of something to fail at compile time if possible
:-)regarding second, that solution with sprintf is vulnerable to SQL injection,
that is why I wanted something with parameters, instead of escaping everything
myself
Thanks for your help anyway
--- On Thu, 2/26/09, 9el wrote:
Hans Schultz wrote:
Hello,
I am beginner with PHP and prior to PHP I have worked with java for
some time
and with perl for very short period. I can't help to notice some
things that
are little annoyance for me with PHP, but I am sure someone more
experienced
can help me :-)
Is there in PHP so
---
Use FreeOpenSourceSoftwares, Stop piracy, Let the developers live. Get
a Free CD of Ubuntu mailed to your door without any cost. Visit :
www.ubuntu.com
--
20
Yes you can use:
error_reporting(E_ALL);
Which will enable notices. You can even do:
error_reporting(E_ALL | E_STRICT);
To enable strict messages.
Lewis.
2009/2/26 Hans Schultz :
> Hello,
> I am beginner with PHP and prior to PHP I have worked with java for some
> time
> and with perl for ver
Adam Richardson wrote:
If the functionality doesn't conceptually promote the inclusion of the
variables it works on (i.e., no class variables), doesn't conceptually
fit a scheme where instances can exist, and likely won't benefit from
refactoring into component methods, then I could see using a
If the functionality doesn't conceptually promote the inclusion of the
variables it works on (i.e., no class variables), doesn't conceptually fit a
scheme where instances can exist, and likely won't benefit from refactoring
into component methods, then I could see using a namespaced function.
Most
On Mon, January 29, 2007 5:36 pm, Roman Neuhauser wrote:
> # [EMAIL PROTECTED] / 2007-01-29 17:32:43 -0600:
>> > Mon, January 29, 2007 11:55 am, Roman Neuhauser wrote:
>> > # [EMAIL PROTECTED] / 2007-01-29 09:19:41 -0800:
>> >> I remember this discussion 7 years ago. This feature is not
>> >> poss
# [EMAIL PROTECTED] / 2007-01-29 17:32:43 -0600:
> > Mon, January 29, 2007 11:55 am, Roman Neuhauser wrote:
> > # [EMAIL PROTECTED] / 2007-01-29 09:19:41 -0800:
> >> I remember this discussion 7 years ago. This feature is not
> >> possible.
> >
> > I also remember the debate, but don't recall why
> Mon, January 29, 2007 11:55 am, Roman Neuhauser wrote:
> # [EMAIL PROTECTED] / 2007-01-29 09:19:41 -0800:
>> I remember this discussion 7 years ago. This feature is not
>> possible.
>
> I also remember the debate, but don't recall why it's not possible,
> AFAIR it was shot down because someone o
On Mon, January 29, 2007 7:03 am, [EMAIL PROTECTED] wrote:
> What's the best way to achieve something like this:
> explode($needle, $array)[3]
> It's too clumsy to use temporary array, and I suppose, quite slow. Is
> there any option, or I'll have to stick to temporary arrays?
Maybe some kind of p
Roman Neuhauser wrote:
# [EMAIL PROTECTED] / 2007-01-29 09:19:41 -0800:
I remember this discussion 7 years ago. This feature is not possible.
I also remember the debate, but don't recall why it's not possible,
AFAIR it was shot down because someone on php-dev@ said so.
Thats what I remember
# [EMAIL PROTECTED] / 2007-01-29 09:19:41 -0800:
> I remember this discussion 7 years ago. This feature is not possible.
I also remember the debate, but don't recall why it's not possible,
AFAIR it was shot down because someone on php-dev@ said so.
--
How many Vietnam vets does it take to screw
[EMAIL PROTECTED] wrote:
What's the best way to achieve something like this:
explode($needle, $array)[3]
It's too clumsy to use temporary array, and I suppose, quite slow. Is there any
option, or I'll have to stick to temporary arrays?
Best Regards,
Ivailo Karamanolev
I think you are meaning
On Fri, November 3, 2006 12:33 am, jekillen wrote:
> I am scratching my head over the following:
> I have written code that is supposed to format text
> sent from a form in a textarea form element.
> This text does not have new lines added if
> the text is allowed to automatically wrap to the
> nex
function format_text($a, $b) // $a is text to format, from textarea, $b
is line length
{ $line = array();
$limit = (strlen($a)/$b);
for($i = 0; $i < $limit; $i++)
{
$start =
jekillen wrote:
Hello all;
I am scratching my head over the following:
I have written code that is supposed to format text
sent from a form in a textarea form element.
This text does not have new lines added if
the text is allowed to automatically wrap to the
next line. I want to automatically ad
On Thu, October 5, 2006 2:50 pm, Justin Cook wrote:
> I took over a website that uses a htaccess file to auto append a file
> to every page. I have one page that I do not want to do this one. Is
> there a way to disable the htaccess file with a php statement on this
> one page? Thanks!
Not with a
On Wed, January 25, 2006 6:11 pm, Fernando Anchorena wrote:
> I'm stuck trying to get work this :
>
> This is an example
> page1.php
> ===
>
> $sql_pro ="SELECT Sid FROM table";
> $res_pro = @mysql_query( $sql_pro);
>while ($campo_pro = @mysql_fetch_array($
Sorry I totally didn't read the question fully
-Original Message-
From: Mark Steudel [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 25, 2006 4:28 PM
To: php-general@lists.php.net
Subject: RE: [PHP] Use VAR string value AS VAR Name
Either try:
$sid_pro = "p".$s
Either try:
$sid_pro = "p".$sid_pro;
or try:
-Original Message-
From: Fernando Anchorena [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 25, 2006 4:12 PM
To: php-general@lists.php.net
Subject: [PHP] Use VAR string value AS VAR Name
I'm stuck trying to get work this :
This is an
Hey,
Check out this example at famous http://www.weberdev.com
http://www.weberdev.com/get_example-3871.html
Let me know if you need more information.
Thanks,
Richard
-Original Message-
From: Nirmalya Lahiri [mailto:[EMAIL PROTECTED]
Sent: Monday, January 23, 2006 8:34 AM
To: php-gener
On Jan 22, 2006, at 7:04 PM, Nirmalya Lahiri wrote:
Can any one tell me, what is the use of ampersand '&' in php?
This might help:
http://us2.php.net/manual/en/language.references.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sun, November 6, 2005 1:32 pm, Ross wrote:
> Ok been looking into in and know a bit of terminology now.
>
> I have an SMB share on my mac which is my WWWROOT folder on my windows
> computer. These files have all permissions enabled so I can edit in
> dreamweaver (on mac). All I want to so is set
Dan Trainor wrote:
> Curt Zirzow wrote:
>
>>On Tue, Nov 08, 2005 at 01:36:24PM -0700, Dan Trainor wrote:
>>
>>
>>>Dan Trainor wrote:
>>>
>>>
Good afternoon, all -
I've had problems with auto_prepend_file off and on for as long as I can
remember. It's hit or miss, and browsing the
On Tue, Nov 08, 2005 at 02:25:03PM -0700, Dan Trainor wrote:
> Curt Zirzow wrote:
> > On Tue, Nov 08, 2005 at 01:36:24PM -0700, Dan Trainor wrote:
> >>...
> >>
> >>
> >>DocumentRoot /var/www/virtual
> >>...
> >># begin dan's protected directory stuff
> >>
> >>
Curt Zirzow wrote:
> On Tue, Nov 08, 2005 at 01:36:24PM -0700, Dan Trainor wrote:
>
>>Dan Trainor wrote:
>>
>>>Good afternoon, all -
>>>
>>>I've had problems with auto_prepend_file off and on for as long as I can
>>>remember. It's hit or miss, and browsing the archives, it looks like
>>>I'm not a
On Tue, Nov 08, 2005 at 01:36:24PM -0700, Dan Trainor wrote:
> Dan Trainor wrote:
> > Good afternoon, all -
> >
> > I've had problems with auto_prepend_file off and on for as long as I can
> > remember. It's hit or miss, and browsing the archives, it looks like
> > I'm not alone. I've even writt
Jasper Bryant-Greene wrote:
> On Tue, 2005-11-08 at 13:43 -0700, Dan Trainor wrote:
>
>>Well, the problem is simple; it just doesn't work. No script is
>>prepended to the page that I access from within /demo/protected. My
>>prepend script consists of the following line of code:
>>
>>"; ?>
>>
>>
On Tue, 2005-11-08 at 13:43 -0700, Dan Trainor wrote:
> Well, the problem is simple; it just doesn't work. No script is
> prepended to the page that I access from within /demo/protected. My
> prepend script consists of the following line of code:
>
> "; ?>
>
> Sorry about that.
Thanks. Have y
Jasper Bryant-Greene wrote:
> On Tue, 2005-11-08 at 13:36 -0700, Dan Trainor wrote:
> [snip]
>
>>>So, as you can see, nothing completely out of the 'norm. The examples
>>>given in the manual are not all that clear, so by using absolute path
>>>names, I'm just guessing. I have used relative paths
On Tue, 2005-11-08 at 13:36 -0700, Dan Trainor wrote:
[snip]
> > So, as you can see, nothing completely out of the 'norm. The examples
> > given in the manual are not all that clear, so by using absolute path
> > names, I'm just guessing. I have used relative paths as well - same thing.
> >
> >
Dan Trainor wrote:
> Good afternoon, all -
>
> I've had problems with auto_prepend_file off and on for as long as I can
> remember. It's hit or miss, and browsing the archives, it looks like
> I'm not alone. I've even written to the list on several occasions
> looking for a solution, to no avail
On Fri, 28 Oct 2005, mbneto wrote:
is it possible to use sqlite with php 4.4 ? What do I have to do ?
I could not find and option in ./configure.
http://php.net/sqlite
--
Greg Donald
Zend Certified Engineer
MySQL Core Certification
http://destiney.com/
--
PHP General Mailing List (http:/
On Wed, July 6, 2005 12:43 pm, Bob Stearns said:
> In a note on 31-Jul-2002 added to the unshift function the writer
> stated that array2=arrray1+array2 was equivalent to
> unshift(arrayw,list(array1)). My php seems to take strong objection to
> this [Fatal error: Unsupported operand types in
> /v
DemonGloom wrote:
subj. its really to develop on php language applications with GUI (for
windows/linux), but not php-gtk.
Go ahead and implement wxWindows extension. Or Qt, or fltk, or... :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thu, 20 Jan 2005 13:06:54 -
"Shaun" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have the following query:
>
> $result = mysql_query("SELECT * FROM Users");
> while( $r = db_fetch_array( $result ) ){
> echo $r['Name'];
> }
>
> Is it possible to use the same result set to loop through the
thanks :)
On Jan 16, 2005, at 6:05 PM, Greg Donald wrote:
$_SERVER[ 'HTTP_USER_AGENT' ]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sat, 15 Jan 2005 18:30:02 -0800, Graham Anderson <[EMAIL PROTECTED]> wrote:
> is there a php function out there that can get the operating system of
> the user...Mac/PC/Linux
$_SERVER[ 'HTTP_USER_AGENT' ]
--
Greg Donald
Zend Certified Engineer
http://destiney.com/
--
PHP General Mailing Li
Bret Hughes wrote:
On Wed, 2005-01-12 at 12:08, Jochem Maas wrote:
...
Try this, put your code in a file, say, testparse.php and
testparsebracket.php
and try something like
myseq=`seq 1 1000`
time for i in $myseq; do php testparse.php;done
time for i in $myseq; do php testparsebracket.php;done
of
On Wed, 2005-01-12 at 12:08, Jochem Maas wrote:
> Marek Kilimajer wrote:
> > Jochem Maas wrote:
> >
> >> hi guys,
> >
> >
> >> I always use curly braces around vars placed in double quoted strings,
> >> I do this for 2 reasons:
> >>
> >> 1. I believe It helps the engine because the var delimita
Jochem Maas wrote:
Marek Kilimajer wrote:
The difference happens at parse time, so if you want to measure any
difference execute php script in a loop, not loop inside php script.
DOH! nice one Marek, will make an attempt to 'bash' a script together
asap (I'm crap at shell scripting! but the chal
Jochem Maas wrote:
hi guys,
I always use curly braces around vars placed in double quoted strings, I
do this for 2 reasons:
1. I believe It helps the engine because the var delimitation is
explicit, and this means the interpolation is (should be?) faster.
2. it looks nice (easier to read!)
I h
Marek Kilimajer wrote:
Jochem Maas wrote:
hi guys,
I always use curly braces around vars placed in double quoted strings,
I do this for 2 reasons:
1. I believe It helps the engine because the var delimitation is
explicit, and this means the interpolation is (should be?) faster.
2. it looks nice
Jay Blanchard wrote:
[snip]
a, always use them (its faster/better)
b, only when absolutely necessary
c, go away troll and figure it out for yourself
(this one is tempting, n'est pas ;-)
d, something I haven't had the presence of mind to think of!
[/snip]
e. All of the above
WTF? :-) - I assume
[snip]
a, always use them (its faster/better)
b, only when absolutely necessary
c, go away troll and figure it out for yourself
(this one is tempting, n'est pas ;-)
d, something I haven't had the presence of mind to think of!
[/snip]
e. All of the above
--
PHP General Mailing List (http://ww
On Sat, 18 Sep 2004 10:13:47 -0700, AMC <[EMAIL PROTECTED]> wrote:
> Does anyone have any sample code that will download a mysql table to an
> excel file?
http://sourceforge.net/projects/psxlsgen/
--
Greg Donald
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http:
it maybe too much work, but FirebirdDB + PHP5 allows the use of
ibase_backup() & ibase_restore() - very nifty.
otherwise maybe take a look at the phpMyAdmin source for how they handle
such thing -
Robb Kerr wrote:
Is there an easy way to create an HTML page that uses PHP to copy selected
MySQL
On 15 March 2004 12:12, Stuart wrote:
> Ben Joyce wrote:
>
> On the contrary, the @ prefix suppresses all errors for the block of
> code it precedes where a block is a function or variable. Essentially
> it sets error_reporting to 0 while it evaluates that block.
In fact, to be completely accura
: "Ben Joyce" <[EMAIL PROTECTED]>
Sent: Monday, March 15, 2004 2:32 PM
Subject: Re: [PHP] use of @ operator to suppress errors
> - Original Message -
> From: Ben Joyce <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, March 15, 2004 2:04
is in my error handling function, ignoring any
NOTICE errors, but ideally I'd like to leave it as-is and suppress them when
referencing.
I'm not sure if I'm making much sense. Any help appreciated!
Cheers,
Ben
- Original Message -
From: "Stuart" <[EMAIL PROT
Richard, Tom, and Stuart... thanks for your responses much appreciated.
I shall now go and fiddle.
Cheers,
Ben
- Original Message -
From: "Tom Meinlschmidt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 15, 2004 12:01 PM
Subject: Re: [PHP
Ben Joyce wrote:
i'm using error_reporting(0) and set_error_handler("MyErrorHandler") to
manage my errors but I'm getting situations where a NOTICE error is thrown.
For example if I refer to $_GET['this'] when there is no 'this' querystring
key then i get the error.
I've tried using @$_GET['this']
Yes, it's normal.
You've to check if is that variable set if (isset($_GET['this'])) and than you didn't
get any
NOTICE about that undefined variable.
condition "if ($_GET['this'])" is not sufficient to check whether is variable set or
not.
/tom
On Mon, 15 Mar 2004 11:43:24 -
"Ben Joyce"
Hello Ben,
Monday, March 15, 2004, 11:43:24 AM, you wrote:
BJ> For example if I refer to $_GET['this'] when there is no 'this' querystring
BJ> key then i get the error.
BJ> I've tried using @$_GET['this'] but it makes no difference.
BJ> Is this normal?
Yes because @ suppresses the errors on fu
Hi,
I need to be polling the connection constantly for new messages as well
as have a check that the connection is on. These need to be done in one
connection. That's where the headache comes in. In order to poll
constantly, I placed the socket read in a while loop. Since the script
is looping
Hi,
If you only need to make a connection to the server every ten minutes
you will be saving a lot of resources if you use a cron job to connect
at intervals instead of keeping a permanently open connections. Creating
a cron job is quite simple, if you type
man 5 crontab
you will be able to r
1 - 100 of 148 matches
Mail list logo