2009/10/25 Raymond Irving :
> Hello,
>
> Does any know of an optimized solution to get all the subclasses for a parent
> class?
That's not exactly a typical thing to want, although I can see a
couple of ways to do it... what exactly are you trying to do, and are
you using PHP5.3?
--
PHP Genera
I want to automatically initialize a specific sub class when the php page is
loaded.
I'm looking for a solution for php 5.1+ or anything that's optimized for 5.3
From: David Otton
To: Raymond Irving
Cc: php-general@lists.php.net
Sent: Sun, October 25, 2009 8
I'm trying to follow the RewriteRule docs to make it so that:
http://benchwarmersports.com/packages/super-bowl-xliv/1
can be entered into the web-browser, and it transforms into:
http://benchwarmersports.com/packages.php?title=super-bowl-xliv&eventid=1
The good news is that it does transform
Hi,
how to replace many spaces in any string of character with one space?
Regrads
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
2009/10/25 Raymond Irving :
> I want to automatically initialize a specific sub class when the php page is
> loaded.
>
> I'm looking for a solution for php 5.1+ or anything that's optimized for 5.3
You may be able solve this with a simple class_exists() (pseudo-code ahead):
if(class_exists($var
2009/10/25 Jeffry Lunggot :
> Hi,
>
> how to replace many spaces in any string of character with one space?
$str = preg_replace('/\s\s+/', ' ', $str);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sun, 2009-10-25 at 11:04 -0400, Rob Gould wrote:
> I'm trying to follow the RewriteRule docs to make it so that:
>
> http://benchwarmersports.com/packages/super-bowl-xliv/1
>
> can be entered into the web-browser, and it transforms into:
>
> http://benchwarmersports.com/packages.php?title=
On Sun, 2009-10-25 at 16:59 +0100, David Otton wrote:
> 2009/10/25 Jeffry Lunggot :
> > Hi,
> >
> > how to replace many spaces in any string of character with one space?
>
> $str = preg_replace('/\s\s+/', ' ', $str);
>
$str = preg_replace('/\s+/', ' ', $str);
You don't need both space charac
Hi,
So I found out there are two bugs filed in bugs.php.net that are
related to this problem. The bugs are http://bugs.php.net/bug.php?id=49332and
http://bugs.php.net/bug.php?id=49267.
To anyone else that has the same issues as me, here is how to get
around the problem if you are trying
Isn't there a way to tell the Rewrite rule to skip anything found in a
js or images subfolder?
On Oct 25, 2009, at 12:26 PM, Ashley Sheridan wrote:
On Sun, 2009-10-25 at 11:04 -0400, Rob Gould wrote:
I'm trying to follow the RewriteRule docs to make it so that:
http://benchwarmersports.
On Sun, 2009-10-25 at 12:51 -0400, Rob Gould wrote:
> Isn't there a way to tell the Rewrite rule to skip anything found in a
> js or images subfolder?
>
>
> On Oct 25, 2009, at 12:26 PM, Ashley Sheridan wrote:
>
> > On Sun, 2009-10-25 at 11:04 -0400, Rob Gould wrote:
> >>
> >> I'm trying to f
Sorry for the long post but this problem have plagued us for a few
months and we suspect that this is a OS-specific issue with
FreeBSD/PHP, AFAICS it has not been reported from the Linux camp. I'm
posting here in the hope that someone on this list might have a clue.
In brief, intermittently, the
As Ashley said, its the wrong way to approach this problem.
I suggest you read about "base href". (http://."; /> )
it is a HTML tag.
On Sun, Oct 25, 2009 at 6:51 PM, Rob Gould wrote:
> Isn't there a way to tell the Rewrite rule to skip anything found in a js
> or images subfolder?
>
>
>
>
Jeffry Lunggot wrote:
Hi,
how to replace many spaces in any string of character with one space?
Regrads
Be careful about the word "spaces" do you mean exactly " "; or white spaces
defined by "\s", which include spaces, tabs CRLFs.
If you want specifically spaces and not all white spac
I have a script which uploads csv data into a database. This works well
and has worked in every instance so far. However what I am noticing is
that today, even if I escape the data before putting it into mysql it
will not enter a line if it has a single quote, once I take out the
single quote i
Brian Hazelton wrote:
I have a script which uploads csv data into a database. This works
well and has worked in every instance so far. However what I am
noticing is that today, even if I escape the data before putting it
into mysql it will not enter a line if it has a single quote, once I
take
Brian Hazelton wrote:
Brian Hazelton wrote:
I have a script which uploads csv data into a database. This works
well and has worked in every instance so far. However what I am
noticing is that today, even if I escape the data before putting it
into mysql it will not enter a line if it has a sin
http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#RewriteCond
Brian Hazelton wrote:
Brian Hazelton wrote:
Brian Hazelton wrote:
I have a script which uploads csv data into a database. This works
well and has worked in every instance so far. However what I am
noticing is that today, even if I escape the data before putting it
into mysql it will not enter
Oct 25 22:00:01 sql02 php: PHP Warning: mysqli_connect():
(HY000/2013): Lost connection to MySQL server at 'sending
authentication information', system error: 32 in
/home/foo/web/foo.com/core.php on line 2394
It's either this or one or two others. What is odd is I have switched
to making it socke
20 matches
Mail list logo