php-general Digest 26 Oct 2008 10:57:23 - Issue 5756
Topics (messages 282430 through 282436):
Re: clear a mysql table
282430 by: Micah Gersten
282434 by: Ashley Sheridan
Replacing with f*ck and f*cking
282431 by: Ryan S
282432 by: Andrew Barnett
php-general Digest 26 Oct 2008 23:43:23 - Issue 5757
Topics (messages 282437 through 282459):
Re: Replacing with f*ck and f*cking
282437 by: Maciek Sokolewicz
282438 by: Colin Guthrie
282439 by: Ashley Sheridan
282441 by: Dotan Cohen
282457 by: Larry
My question is this, for just two words its fine to use the above, but a
pal tells me that if using a lot of words (eg: 15) and the $comment is big
then it can take quite some time and be a bit of a processing strain as
well because php first checks the first word from the good list against
On Sat, 2008-10-25 at 20:47 -0500, Micah Gersten wrote:
Ronald Wiplinger (Lists) wrote:
I need to clear a table (cache) from a database based on the database size.
Our web site uses cached pages. Our webhost only allow us 100 MB
storage. Usually the database is just 10 MB, but when a
On Sun, 2008-10-26 at 10:18 +0200, Stan Vassilev | FM wrote:
My question is this, for just two words its fine to use the above, but a
pal tells me that if using a lot of words (eg: 15) and the $comment is big
then it can take quite some time and be a bit of a processing strain as
well
Hi,
Had to show this off - I'm so proud. READ: full of myself... I've
tried it in Firefox 3, Opera 9.6, Chrome and Safari, all on Windows.
http://dev.rgraph.org/examples/interactive.html
--
Richard Heyes
HTML5 Graphing for FF, Chrome, Opera and Safari:
http://www.rgraph.org (Updated October
Ryan S wrote:
Hey!
I'm just trying to replace some of the more bad words with their slightly
censored counterparts like so
$bad_words = array(/*Well you know the words so am not going to write them
here*/);
$bad_words_replacements = array(f*ck, f*cking);
$comment =
Ashley Sheridan wrote:
What you really need to watch out for is words which you're going to
censor which might be part of other names. Sex is an obvious one, as it
appeared in the borough name of my old address: Middlesex.
I can't believe you didn't use the infamous Scunthorpe as your example
On Sun, 2008-10-26 at 11:06 +, Colin Guthrie wrote:
Ashley Sheridan wrote:
What you really need to watch out for is words which you're going to
censor which might be part of other names. Sex is an obvious one, as it
appeared in the borough name of my old address: Middlesex.
I can't
On Sun, Oct 26, 2008 at 10:57:19AM +, Richard Heyes wrote:
Hi,
Had to show this off - I'm so proud. READ: full of myself... I've
tried it in Firefox 3, Opera 9.6, Chrome and Safari, all on Windows.
http://dev.rgraph.org/examples/interactive.html
--
Richard Heyes
HTML5 Graphing
2008/10/26 Colin Guthrie [EMAIL PROTECTED]:
Ashley Sheridan wrote:
What you really need to watch out for is words which you're going to
censor which might be part of other names. Sex is an obvious one, as it
appeared in the borough name of my old address: Middlesex.
I can't believe you
It worked for me. Although I had some quite CPU intensive processes
running, so it lagged a bit.
Had no time to look into the code, so I was wondering if you could
answer my question ...
That yellow information box popping up onclick(), is it drawn by JS or
is it something like a hidden div?
It worked for me. Although I had some quite CPU intensive processes
running, so it lagged a bit.
Had no time to look into the code, so I was wondering if you could
answer my question ...
That yellow information box popping up onclick(), is it drawn by JS or
is it something like a hidden div?
Hi all,
i was wondering whats the best approach to do next.
I have an xml file delivered from service of my partner. On my web server
(windows) i have xslt files used for xml transformation.
Those files are getting bigger, so i have request to cash them and use
cashed. I was thinkging about
Rob Gould schrieb:
Question about mySQL and PHP, when using the mySQL ORDER BY method...
Basically I've got data coming from the database where a wine
producer-name is a word like:
Château Bahans Haut-Brion
or
La Chapelle de La Mission Haut-Brion
or
Le Clarence
Richard Heyes wrote:
Hi,
Had to show this off - I'm so proud. READ: full of myself... I've
tried it in Firefox 3, Opera 9.6, Chrome and Safari, all on Windows.
http://dev.rgraph.org/examples/interactive.html
Very nice. Looks good on Kubuntu FF3. The only issue I see is that no
matter
vladimirn wrote:
Hi all,
i was wondering whats the best approach to do next.
I have an xml file delivered from service of my partner. On my web server
(windows) i have xslt files used for xml transformation.
Those files are getting bigger, so i have request to cash them and use
cashed. I was
JS I suppose. Though it creates a DIV element on demand. The function
in question is RGraph.Tooltip() in RGraph.common.js.
OK, I found it. Thank you for showing me. I was thinking of something
similar recently.
/**
* Shows a tooltip next to the mouse pointer
*
* @param text The tooltip text
*
Thank you Col
I will go into Zend_Cache as you suggested.
One more thing- does Zend_Cache saces data into file or use a server memory?
Colin Guthrie-6 wrote:
vladimirn wrote:
Hi all,
i was wondering whats the best approach to do next.
I have an xml file delivered from service of my
At 10:57 AM + 10/26/08, Richard Heyes wrote:
Hi,
Had to show this off - I'm so proud. READ: full of myself... I've
tried it in Firefox 3, Opera 9.6, Chrome and Safari, all on Windows.
http://dev.rgraph.org/examples/interactive.html
--
Richard Heyes
Richard:
Very nice graph.
Instead of
Very nice. Looks good on Kubuntu FF3. The only issue I see is that no
matter which bar I click on, it says January 2007 Sales: 80%, which
may just be your example, but I would think each bar should be different.
Yes, I've still got to make an easy way to tie in differing tooltips.
--
Now I wonder why you are creating a new tooltip each time the user
clicks on the graph?
Why not? There's no need to cache it and it lessens the complexity if I don't.
Why not do it the following way?
Which is?
Secondly CanvasTextFunctions.letters() really is in a class of its own.
I
Very nice graph.
Instead of requiring the user to click, try using css and have it produce
the details on roll-over, like so:
Hmm, should be as easy as changing the event from onclick to on
mouseover. I think. But yes, onmouseover would be far better.
--
Richard Heyes
HTML5 Graphing for
Hmm, should be as easy as changing the event from onclick to on
mouseover. I think. But yes, onmouseover would be far better.
But it's not, since the mouse is already over the canvas when you move
it over a bar, thus not triggering a new event. Ho hum.
--
Richard Heyes
HTML5 Graphing for FF,
vladimirn wrote:
Thank you Col
I will go into Zend_Cache as you suggested.
One more thing- does Zend_Cache saces data into file or use a server memory?
As I said in my original mail, but perhaps wasn't clear, Zend_Cache can
support file, memcache, APC and other backends.
Col
--
Colin
...
Ok, a little more playing and I've managed to whittle the public API
down, so animated bar charts galore!
--
Richard Heyes
HTML5 Graphing for FF, Chrome, Opera and Safari:
http://www.rgraph.org (Updated October 25th)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
On Sunday 26 October 2008 5:06:09 am Ashley Sheridan wrote:
Obviously, this list could get pretty comprehensive, so like Andrew
said, maybe you should look to see how some of the open source projects
do it.
Ash
www.ashleysheridan.co.uk
The way Drupal handles such filtering is simple
vladimirn wrote:
i was wondering whats the best approach to do next.
I have an xml file delivered from service of my partner. On my web
server (windows) i have xslt files used for xml transformation.
Those files are getting bigger, so i have request to cash them and use
cashed.
Your xslt
Ronald Wiplinger (Lists) wrote:
I need to clear a table (cache) from a database based on the database size.
Our web site uses cached pages. Our webhost only allow us 100 MB
storage. Usually the database is just 10 MB, but when a search engine
crawls our calendar, then the storage is quickly 108
truncate cash;
Hey, my wife does that all the time!
--
Bastien
Cat, the other other white meat
i have a question about how to use sql database with php instead of using my
sql database
when i use my sql database the php code to connect to the my sql database is
=
$conn = mysql_connect($hostname, $user, $password);
if(!$conn)
{
echo Unable to connect to Database;
}
else
{
if i have to connect to a sql databse instead of my sql database as some
companies use sql database, how can i change the php code to connect, run a
query and close connection to the sql database.
apart from changing the code to connect to sql database is there something
else i need to do.
PHP Version 5.2.4
?
$node = '[5][1][]';
${'tpl'.$node} = 'some text';
print_r($tpl); // null
?
I really don't like to use the EVAL function, but do I have choice??
This sucks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Martin Zvarík wrote:
PHP Version 5.2.4
?
$node = '[5][1][]';
${'tpl'.$node} = 'some text';
print_r($tpl); // null
?
I really don't like to use the EVAL function, but do I have choice??
This sucks.
You should print the results that you are looking for!
Are you looking for something like
No offense, but I thought it's obvious what I want to print.
print_r() shows null, and it should print what you just wrote = array field.
It works when first defining with eval():
eval('$tpl'.$node.'=array();');
I guess that's the only way.
Anyway, I appreciate your quick reply,
Martin
Jim
Nope, you have to use the eval() everytime for read/write.
Martin Zvarík napsal(a):
No offense, but I thought it's obvious what I want to print.
print_r() shows null, and it should print what you just wrote = array
field.
It works when first defining with eval():
Martin Zvarík wrote:
Nope, you have to use the eval() everytime for read/write.
Wrong. Their is always more then one way to skin a cat!
?php
$node = '[5][1][]';
$text = 'some text';
preg_match_all('|\[([^\]\[]*)\]|', $node, $matches, PREG_PATTERN_ORDER);
$recursive = $matches[1];
Jim Lucas wrote:
Martin Zvarík wrote:
Nope, you have to use the eval() everytime for read/write.
Wrong. Their is always more then one way to skin a cat!
?php
$node = '[5][1][]';
$text = 'some text';
preg_match_all('|\[([^\]\[]*)\]|', $node, $matches, PREG_PATTERN_ORDER);
$recursive =
38 matches
Mail list logo