Shawn McKenzie wrote:
>> if (preg_match('/[\s]*/', $string) === false) {
>> echo 'No spaces!';
>> }
>>
>> -Shawn
>
> Second one doesn't work for some reason. No time now to test, will
> later.
How about:
if (preg_match('/\s/', $string) === false) {
echo 'No spaces!';
}
/Per Jessen,
On Thu, 2008-06-05 at 00:24 -0400, Nathan Nobbe wrote:
>
> you really know how to rub it in there rob. but i was looking at the
> implementation in the php code, looks like somebody likes my idea
> (this code
> found in ext/standard/string.c). on the second line the haystack is
> converted to low
On Wed, Jun 4, 2008 at 11:43 PM, Robert Cummings <[EMAIL PROTECTED]>
wrote:
> On Wed, 2008-06-04 at 23:20 -0400, Nathan Nobbe wrote:
> >
> > i repeated your test using the time program and splitting the script into
> 2,
> > one for each strpos and stripos, to find similar results. imo, there is
>
On Wed, 2008-06-04 at 23:20 -0400, Nathan Nobbe wrote:
>
> i repeated your test using the time program and splitting the script into 2,
> one for each strpos and stripos, to find similar results. imo, there is no
> need for 2 comparisons for case-insensitive searches, because both arguments
> can
On Wed, Jun 4, 2008 at 2:06 PM, Robert Cummings <[EMAIL PROTECTED]>
wrote:
> On Wed, 2008-06-04 at 11:18 -0600, Nathan Nobbe wrote:
> > On Wed, Jun 4, 2008 at 11:12 AM, Robert Cummings <[EMAIL PROTECTED]>
> > wrote:
> >
> > > Did you just try to use a test that used a single iteration to prove me
Shawn McKenzie wrote:
Tyson Vanover wrote:
I need a quick way to make sure that a string is a single word with no
white spaces. I would prefer that it is a command that could fit on a
single line. Or at least an if block.
I have a few thoughts on this but it involves things like explode(),
Tyson Vanover wrote:
I need a quick way to make sure that a string is a single word with no
white spaces. I would prefer that it is a command that could fit on a
single line. Or at least an if block.
I have a few thoughts on this but it involves things like explode(),
stripslashes(), etc.
VamVan wrote:
Hello Guys,
Here is the object. How can I get access to the [Name] = access. People who
help me with this can you please tell me what is the logic behind traversing
the objects and how do you gather the values. Thanks. I am looking for an
answer like this $queryResult->f->dsfsd
There's probably a regex solution that is most elegant, but here is
one solution:
if ($str == str_replace(array(' ', "\n"), '', $str)) {
// if you get here, then $str has no spaces or newline characters
}
~Ted
On 4-Jun-08, at 4:04 PM, Tyson Vanover wrote:
I need a quick way to mak
You should be able to access the "Name" field using this syntax:
QueryResult->records[0]->sobjects[0]->fields->Name
Reading from left-to-right:
1. accessing index 0 (zero) of the "records" array.
2. accessing index 0 (zero) of the "objects" array.
3. accessing the "Name" property of the "fields
I need a quick way to make sure that a string is a
single word with no white spaces. I would prefer that
it is a command that could fit on a single line. Or at
least an if block.
I have a few thoughts on this but it involves things
like explode(), stripslashes(), etc.
--
PHP General Maili
Hello Guys,
Here is the object. How can I get access to the [Name] = access. People who
help me with this can you please tell me what is the logic behind traversing
the objects and how do you gather the values. Thanks. I am looking for an
answer like this $queryResult->f->dsfsdf
QueryResult O
> -Original Message-
> From: Yui Hiroaki [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 04, 2008 12:28 PM
> To: Boyd, Todd M.
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] Avoid object twice
>
> Thanks you for php developer.
>
> If php can not share the parameter each different
On Wed, 2008-06-04 at 11:18 -0600, Nathan Nobbe wrote:
> On Wed, Jun 4, 2008 at 11:12 AM, Robert Cummings <[EMAIL PROTECTED]>
> wrote:
>
> > Did you just try to use a test that used a single iteration to prove me
> > wrong? OMFG ponies!!! Loop each one of those 10 million times, use a
> > separate
On Wed, 2008-06-04 at 13:12 -0400, Robert Cummings wrote:
> On Wed, 2008-06-04 at 10:56 -0600, Nathan Nobbe wrote:
> > On Wed, Jun 4, 2008 at 10:26 AM, Robert Cummings <[EMAIL PROTECTED]>
> > wrote:
> >
> > > Nope, case insensitive is slower since you must make two tests for
> > > characters havin
Thanks you for php developer.
If php can not share the parameter each different
file, it is not reality of my program.
If I use include or requre, php can share the paremeter each file.
But other files call or execute from original file.
setting.php and google_info.php and other.php almost rea
On Wed, Jun 4, 2008 at 11:12 AM, Robert Cummings <[EMAIL PROTECTED]>
wrote:
> Did you just try to use a test that used a single iteration to prove me
> wrong? OMFG ponies!!! Loop each one of those 10 million times, use a
> separate script for each, and use the system time program to
> appropriatel
at least he have some humer ;-)
On 04/06/2008, Robert Cummings <[EMAIL PROTECTED]> wrote:
>
> On Wed, 2008-06-04 at 10:56 -0600, Nathan Nobbe wrote:
> > On Wed, Jun 4, 2008 at 10:26 AM, Robert Cummings <[EMAIL PROTECTED]>
> > wrote:
> >
> > > Nope, case insensitive is slower since you must make tw
On 6/4/08, Yui Hiroaki <[EMAIL PROTECTED]> wrote:
> Uhmm!
>
> It is sure that function can call from other file.
> But it is NOT EXECUTE mail() function.
>
> How mail function be execute!
>
> Please do more advice.
> You may tire of this mail.
Yes.
David
--
PHP General Mailing List (http://www.
On Wed, 2008-06-04 at 10:56 -0600, Nathan Nobbe wrote:
> On Wed, Jun 4, 2008 at 10:26 AM, Robert Cummings <[EMAIL PROTECTED]>
> wrote:
>
> > Nope, case insensitive is slower since you must make two tests for
> > characters having a lower and upper case version. With case sensitive
> > comparisons
I can't find any good reason for regex in this case.
you can try to split it with explode / stristr / create a function by your
own which goes over the string and check when a @ is catched, something
like:
function GetDomainName ($a)
{
$returnDomain = "";
$beigale = false;
for ($i = 0; $i < strl
On Wed, Jun 4, 2008 at 10:26 AM, Robert Cummings <[EMAIL PROTECTED]>
wrote:
> Nope, case insensitive is slower since you must make two tests for
> characters having a lower and upper case version. With case sensitive
> comparisons you only need to make a single comparison.
a quick test shows str
Uhmm!
It is sure that function can call from other file.
But it is NOT EXECUTE mail() function.
How mail function be execute!
Please do more advice.
You may tire of this mail.
BEST REGARDS,
Yui
2008/6/5 Boyd, Todd M. <[EMAIL PROTECTED]>:
>> -Original Message-
>> From: Yui Hiroaki [mai
On Wed, 2008-06-04 at 10:18 -0600, Nathan Nobbe wrote:
> On Wed, Jun 4, 2008 at 10:10 AM, Richard Heyes <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> >
> > and the case insensitive versions are a hair faster still ;)
> >>
> >
> > Are they? I always thought that case-sensitive functions were faster
> > b
Thank you for all!
I try to use script.
But it does not run correctly.
It means that setting.php never call sendMail() from google_info.php.
Are you sure that it is possible to call function from other file?
Best Regards,
Yui
2008/6/5 Boyd, Todd M. <[EMAIL PROTECTED]>:
>> -Original Messag
On Wed, Jun 4, 2008 at 10:10 AM, Richard Heyes <[EMAIL PROTECTED]> wrote:
> Hi,
>
> and the case insensitive versions are a hair faster still ;)
>>
>
> Are they? I always thought that case-sensitive functions were faster
> because they have to test fewer comparisons. Eg To test if i == I in a
> c
Hi,
and the case insensitive versions are a hair faster still ;)
Are they? I always thought that case-sensitive functions were faster
because they have to test fewer comparisons. Eg To test if i == I in a
case-insensitive fashion requires two comparisons (i == I and i == i)
whereas a case-s
> -Original Message-
> From: Yui Hiroaki [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 04, 2008 10:03 AM
> To: Thijs Lensselink
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] Avoid object twice
>
> NO!
> That is what I do not want!
> setting.php need to run mail() function.
> als
VamVan wrote:
Hello All,
For example I have these email addressess -
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
What would be my PHP function[Regular expression[ to that can give me some
thing like
yahoo.com
hotmail.com
gmail.com
Thanks
Or if you know that the address is valid
it's equally slow when viewed from a local machine running
firefox+apache+php+mysql, or from the internet hoster i use..
On Wed, Jun 4, 2008 at 5:48 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote:
> On Wed, Jun 4, 2008 at 8:49 AM, Rene Veerman <[EMAIL PROTECTED]> wrote:
>
>> Using a statis .js file c
$user = trim(strstr($email, '@'), '@);
VamVan wrote:
Hello All,
For example I have these email addressess -
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
What would be my PHP function[Regular expression[ to that can give me some
thing like
yahoo.com
hotmail.com
gmail.com
Thanks
On Wed, Jun 4, 2008 at 8:49 AM, Rene Veerman <[EMAIL PROTECTED]> wrote:
> Using a statis .js file costs 3.54 seconds.
>
> Should i suspect apache now?
is this something youre fetching over a local network, or are you going out
over the internet to get it ?
-nathan
On Wed, Jun 4, 2008 at 10:01 AM, Bastien Koert <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>> Make it write out a static .js file and link to that. Apache can
>> serve up files like that way faster directly than piping it through
>> php. If you don't want to go through that hassle, make sure you have
>>
On Wed, Jun 4, 2008 at 8:45 AM, Rene Veerman <[EMAIL PROTECTED]> wrote:
> Ok, i changed from reading from the database to reading from a file.
> It now clocks at 3.37seconds for the malignant peace of javascript..
> Still too slow :(
>
> Timing the readfile statement that outputs the cache file, is
On 04 June 2008 16:03, Yui Hiroaki advised:
> NO!
> That is what I do not want!
> setting.php need to run mail() function.
> also setting.php need $googlemapkey.
>
> other.php just need $googlemapkey.
> other .php do not need run mail() function.
>
> If I use "include", I will get twice email.
NO!
That is what I do not want!
setting.php need to run mail() function.
also setting.php need $googlemapkey.
other.php just need $googlemapkey.
other .php do not need run mail() function.
If I use "include", I will get twice email.
Please do advice how to share the $googlemapkey.
Regards,
Yui
Quoting Rene Veerman <[EMAIL PROTECTED]>:
Using a statis .js file costs 3.54 seconds.
Should i suspect apache now?
You could try running the php script from the command line.
And see how long it takes. Just to make sure if it's apache or PHP.
Profiling the script will also help tracking dow
Using a statis .js file costs 3.54 seconds.
Should i suspect apache now?
Quoting Yui Hiroaki <[EMAIL PROTECTED]>:
My problem is that I would like to share the parameter.
For instance, goolge map key.
There are actually two files.
example,
main.php
Above is part of code;
I will excute main.php program.
then other.php run
But when other.php run
I use ADOdb Recordset object to accomplish the connection.
The error message is:
mssql error: [: ] in EXECUTE("SELECT * FROM ")
Eduardo Ricardo Hernández Osorio
Técnico Telecomunicaciones Aeronáuticas
U.T.B Servicios Aeronáuticos, ECASA s.a.
Aeropuer
My problem is that I would like to share the parameter.
For instance, goolge map key.
There are actually two files.
example,
main.php
Above is part of code;
I will excute main.php program.
then other.php run
But when other.php run, other.php requre $googlemapkey.
Of couse,
On 30 May 2008 02:56, Usamah M. Ali advised:
> So you're confirming that fgets() doesn't necessarily read a whole
> line? This user note existed on the manual's page of fgets() since
> 2004 and nobody deleted it or commented about:
>
> rstefanowski at wi dot ps dot pl
> 12-Aug-2004 09:03
>
> "Ta
Uh, guys? Nevermind.
To quote someone's .sig: "The truth was out there, but the lies
were in my mind." I cleared out a couple of mis-conceptions, and
the problem went away.
Sorry for the noise.
Robert Huff
--
PHP General Mai
>
>
>
>
> Make it write out a static .js file and link to that. Apache can
> serve up files like that way faster directly than piping it through
> php. If you don't want to go through that hassle, make sure you have
> a far future expire header on the file so that the client does not
> request it
> I knew it .
>
> But "Hello" and "Good" is different file.
> I would like to get "Good" from b.php.
>
> Please tell me goo advice.
> Yui
>
> 2008/6/4 Boyd, Todd M. <[EMAIL PROTECTED]>:
> >> Thank you for your advice me!
> >>
> >> -My.php---
> >> >>
> >> Class My{
> >>pr
I knew it .
But "Hello" and "Good" is different file.
I would like to get "Good" from b.php.
Please tell me goo advice.
Yui
2008/6/4 Boyd, Todd M. <[EMAIL PROTECTED]>:
>> Thank you for your advice me!
>>
>> -My.php---
>> >
>> Class My{
>>private $word;
>>function
Thank you for your good advice.
I excute c.php I did not get "Good" from b.php.
How can I get "Good" from b.php.
Regards,
Yui
2008/6/4 Thijs Lensselink <[EMAIL PROTECTED]>:
> Quoting Yui Hiroaki <[EMAIL PROTECTED]>:
>
>> Thank you for your advice me!
>>
>>
>>
>> -My.php---
>> >
> Thank you for your advice me!
>
> -My.php---
>
> Class My{
>private $word;
>function __construct($getword){
> $this->word=$getword;
>}
>public function buff(){
> mail("[EMAIL PROTECTED]","test","test");
>}
> }
> ?>
hce wrote:
Hi,
1. Does PHP support multithreading?
Yes, it does. I suspect a reply from Manuel Lemos about a multithreading
class on www.phpclasses.org at any time now.;-)
No kidding, I've tested a class from phpclasses.org and it worked. Can't
find the library on my computer(s) right n
Hey Jim,
for what do you need multithreading there can be
some way to do some "multithreading" in PHP via some
"hacks"
On Jun 4, 2008, at 1:57 PM, hce wrote:
Hi,
1. Does PHP support multithreading?
2. When using PHP to access MySQL, does PHP implents a single thread
or multithread with MySQ
On Wed, Jun 4, 2008 at 8:45 AM, Rene Veerman <[EMAIL PROTECTED]> wrote:
> Ok, i changed from reading from the database to reading from a file.
> It now clocks at 3.37seconds for the malignant peace of javascript..
> Still too slow :(
>
> Timing the readfile statement that outputs the cache file, is
Ok, i changed from reading from the database to reading from a file.
It now clocks at 3.37seconds for the malignant peace of javascript..
Still too slow :(
Timing the readfile statement that outputs the cache file, is at 0.00109
seconds according to a measurement done with microtime()
It seems tha
Quoting Yui Hiroaki <[EMAIL PROTECTED]>:
Thank you for your advice me!
-My.php---
word=$getword;
}
public function buff(){
mail("[EMAIL PROTECTED]","test","test");
}
}
?>
--
--b.php
buff(
hce wrote:
> Hi,
>
> 1. Does PHP support multithreading?
>
Not really, no. If you genuinely need multi-threading, use C or C++.
> 2. When using PHP to access MySQL, does PHP implents a single thread
> or multithread with MySQL?
Single thread.
/Per Jessen, Zürich
--
PHP General Mailing L
hce <[EMAIL PROTECTED]> wrote:
> Hi,
>
> 1. Does PHP support multithreading?
Depends
> 2. When using PHP to access MySQL, does PHP implents a single thread
> or multithread with MySQL?
Depends
STFW and RTFM
Here's some basics to get you started:
http://www.google.com/search?q=PHP%3A+Mul
Hi,
1. Does PHP support multithreading?
2. When using PHP to access MySQL, does PHP implents a single thread
or multithread with MySQL?
Thank you.
Jim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
The fact that 59 seconds worked suggested the ini settings was in effect,
otherwise it would have timed out after 30 seconds (default ini setting).
But I also tested your suggestion:
Test timeout - sleep for $t seconds";
echo "max execution time set to ".ini_get("max_execution_time")."";
echo "sle
Could you try setting the max_execution_time with ini_set and
confirming the status of it with ini_get ?
- Waage
2008/6/4 Arno Kuhl <[EMAIL PROTECTED]>:
> I recently picked up an issue when I upgraded my IDE, where the browser
> window timed out while I was debugging the code. I checked with supp
I recently picked up an issue when I upgraded my IDE, where the browser
window timed out while I was debugging the code. I checked with support and
was told the problem was with php 4.4.8 which they'd upgraded to, so to
confirm I installed 4.4.8 and ran a test - and it seems there is a problem
with
Thank you for your advice me!
-My.php---
word=$getword;
}
public function buff(){
mail("[EMAIL PROTECTED]","test","test");
}
}
?>
--
--b.php
buff();
?>
Scott McNaught [Synergy 8] wrote:
Thanks for your reply. I will try upgrading it.
If anyone else has experienced this problem, please let me know.
Something else to note, I'm using pthread locking. I read about various
things and looked a presentation from Facebook's use of APC and the fact
Thank you for your advice me!
-My.php---
word=$getword;
}
public function buff(){
mail("[EMAIL PROTECTED]","test","test");
}
}
?>
--
--b.php
buff();
?>
On Wed, Jun 4, 2008 at 3:05 AM, Rene Veerman <[EMAIL PROTECTED]> wrote:
> Hi..
>
> I've built a cms that's running into a serious speedbump.
> I load several sets of javascript through a custom built db
> caching&compression system.
> Loading it without caching and compression takes between 2 and
Hi..
I've built a cms that's running into a serious speedbump.
I load several sets of javascript through a custom built db
caching&compression system.
Loading it without caching and compression takes between 2 and 3 seconds for
the entire app, 112Kb javascript.
The caching system first compresses
64 matches
Mail list logo