Re: [PHP] Best Practice to Create Dynamic URL's- With Username

2009-09-21 Thread Richard Heyes
"article" is actually a PHP file without the .php extension. It's forced to run as a PHP file using this: ForceType application/x-httpd-php And you will find the URL in $_SERVER somewhere. -- Richard Heyes HTML5 graphing: RGraph - www.rgraph.net (updated 5th September) Lots of PH

Re: [PHP] anyone interested in PHP? Call for moderator

2009-09-15 Thread Richard Heyes
Hi, > It is good to hear that they teach PHP in kindergarden these days. I've heard it's soon to be part of the national curriculum here in the UK. -- Richard Heyes HTML5 graphing: RGraph - www.rgraph.net (updated 5th September) Lots of PHP and Javascript code - http://www.phpguru

Re: [PHP] Taking body of an email and storing it in MySQL database

2009-09-07 Thread Richard Heyes
you. -- Richard Heyes HTML5 graphing: RGraph - www.rgraph.net (updated 5th September) Lots of PHP and Javascript code - http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP6 Stable Release Schedule

2009-09-05 Thread Richard Heyes
Hi, > E_STRICT is now part of E_ALL Oopsy. Shows how much PHP I do these days... -- Richard Heyes HTML5 graphing: RGraph - www.rgraph.net (updated 5th September) Lots of PHP and Javascript code - http://www.phpguru.org 50% reseller discount on licensing now available - ideal for web design

Re: [PHP] PHP6 Stable Release Schedule

2009-09-05 Thread Richard Heyes
Hi (again), >  error_reporting(E_STRICT); > ?> This might work better: -- Richard Heyes HTML5 graphing: RGraph - www.rgraph.net (updated 5th September) Lots of PHP and Javascript code - http://www.phpguru.org 50% reseller discount on licensing now available - ideal for web designer

Re: [PHP] PHP6 Stable Release Schedule

2009-09-05 Thread Richard Heyes
Hi, > Also, will PHP ever implement the Strict mode similar to Perl's 'using > Strict'? Don't know if it's similar having never used Pearl, but there's always the E_STRICT error level. -- Richard Heyes HTML5 graphing: RGraph - www.rgraph.net (updated 5th S

Re: [PHP] Why aren't you rich? (was Re: unset() something that doesn't exist)

2009-08-26 Thread Richard Heyes
I actually don't have a driving license either... :-/ -- Richard Heyes HTML5 graphing: RGraph - www.rgraph.net (updated 8th August) Lots of PHP and Javascript code - http://www.phpguru.org 50% reseller discount on licensing now available - ideal for web designers -- PHP General Mailing Li

Re: [PHP] Why aren't you rich? (was Re: unset() something that doesn't exist)

2009-08-26 Thread Richard Heyes
Hi, > time is really what i want more of. Personally I'd settle for a Ferrari. Or two. It would be hard, but I think I could just about manage. -- Richard Heyes HTML5 graphing: RGraph - www.rgraph.net (updated 8th August) Lots of PHP and Javascript code - http://www.phpguru.org 50%

Re: [PHP] Rounding down?

2009-08-22 Thread Richard Heyes
Hi, > ... A little modification: = 50 ? '50' : '00')); } echo myRound(449) . ''; // 400 echo myRound(450) . ''; // 450 echo myRound(356) . ''; // 350 echo myRound(79) . ''; // 50 ?> PS I haven't checke

Re: [PHP] Rounding down?

2009-08-22 Thread Richard Heyes
Hi, > It should be round() and not floor(). > > 449 / 50 = 8.98 > floor(8.98) = 8 > 8 * 50 = 400 > > round(8.98) = 9 > 9 * 50 = 450 Not based on the examples given: > Example: Any number between 400 and 449 I would 400 to be displayed -- Richard Heyes HTML5 graphi

Re: [PHP] Rounding down?

2009-08-22 Thread Richard Heyes
1. 449 / 50 = 9.whatever 2. floor(9.whatever) = 9 3. 9 * 50 = 450 -- Richard Heyes HTML5 graphing: RGraph - www.rgraph.net (updated 8th August) Lots of PHP and Javascript code - http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HTML text extraction

2009-08-18 Thread Richard Heyes
HI, > ... The easy way (Back to the Future 2 anyone...?) would be to use strip_tags() first: http://uk.php.net/strip_tags -- Richard Heyes HTML5 graphing: RGraph - www.rgraph.net (updated 8th August) Lots of PHP and Javascript code - http://www.phpguru.org -- PHP General Mailing List (h

Re: [PHP] Sending email w/ attachments

2009-08-11 Thread Richard Heyes
Hi, > ... Sorry, quoted wrong email. Oopsy... -- Richard Heyes HTML5 graphing: RGraph - www.rgraph.net (updated 8th August) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sending email w/ attachments

2009-08-11 Thread Richard Heyes
Hi, > Very cool! I'll take that as a compliment... :-) -- Richard Heyes HTML5 graphing: RGraph - www.rgraph.net (updated 8th August) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ZCE Question

2009-08-09 Thread Richard Heyes
Hi, > Looks like XMLRPC to me. Agreed - it's not gibberish so it can't be SOAP... -- Richard Heyes HTML5 graphing: RGraph - www.rgraph.net (updated 8th August) Lots of PHP and Javascript code - http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To unsub

Re: [PHP] Re: Dan Brown

2009-08-03 Thread Richard Heyes
Hi, > ... As said over IM, best wishes. -- Richard Heyes HTML5 graphing: RGraph - www.rgraph.net (updated 25th July) Lots of PHP and Javascript code - http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Problem: Writing into Files?

2009-08-03 Thread Richard Heyes
#x27;t, the file won't be truncated, so you won't lose your count. -- Richard Heyes HTML5 graphing: RGraph - www.rgraph.net (updated 25th July) Lots of PHP and Javascript code - http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Problem: Writing into Files?

2009-08-02 Thread Richard Heyes
> I don't quite know how I can write a bite into a file. I also looked into a > manual and couldn't find a mention of FLock-ing in the explaination for > FOpen parameters. Ok, from memory: The 1 could be any single byte character I guess. -- Richard Heyes HTM

Re: [PHP] Re: Problem: Writing into Files?

2009-08-02 Thread Richard Heyes
the file gets to a certain size (eg 1 gazillion k) you could use a summary file. -- Richard Heyes HTML5 graphing: RGraph - www.rgraph.net (updated 25th July) Lots of PHP and Javascript code - http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Better Formatting Options?

2009-07-31 Thread Richard Heyes
d going for verbosity/readability. It will help when you come back to re-read it in X months. -- Richard Heyes HTML5 graphing: RGraph - www.rgraph.net (updated 25th July) Lots of PHP and Javascript code - http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] How to pull window to the foreground - Window Focus

2009-07-27 Thread Richard Heyes
dal part). It beats the crappy confirm() dialogs. The older version is here: http://www.phpguru.org/static/Modal-Dialog.html -- Richard Heyes HTML5 graphing: RGraph - www.rgraph.net (updated 25th July) Lots of PHP and Javascript code - http://www.phpguru.org -- PHP General Mailing Li

Re: [PHP] Sessions

2009-07-03 Thread Richard Heyes
$db = getDatabase(); Wunderbar. -- Richard Heyes HTML5 graphing: RGraph (www.rgraph.net - updated 3rd July) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Push an Array, Comma separated.

2009-06-30 Thread Richard Heyes
could use array_push(), or the shorter syntax: o array_push(); array_push($myArr, 'Demo2.txt', 'Demo.txt', 'Demo.txt'); o Shorter syntax: $myArr[] = 'Demo2.txt'; $myArr[] = 'Demo.txt'; $myArr[] = 'Demo.txt'; -- Richard Heyes HTML5 g

Re: [PHP] CSV file

2009-06-25 Thread Richard Heyes
1 line at a time is far more efficient and with larger files will be faster. -- Richard Heyes HTML5 graphing: RGraph (www.rgraph.net - updated 20th June) PHP mail: RMail (www.phpguru.org/rmail) PHP datagrid: RGrid (www.phpguru.org/rgrid) PHP Template: RTemplate (www.phpguru.org/rtemplate) PHP SMTP:

Re: [PHP] CSV file

2009-06-24 Thread Richard Heyes
Hi, > To do the line count first, you have to read the whole file, how would > you do it? Something like this: $fp = fopen('/tmp/foo', 'r'); $count = 0; while (!feof($fp)) { fgets($fp); ++$count; } -- Richard Heyes HTML5 graphing: RGraph (www.rgraph.net - u

Re: [PHP] CSV file

2009-06-24 Thread Richard Heyes
line count first, then the insert. If it's a big file it will still be quicker than reading the whole thing into memory. -- Richard Heyes HTML5 graphing: RGraph (www.rgraph.net - updated 20th June) PHP mail: RMail (www.phpguru.org/rmail) PHP datagrid: RGrid (www.phpguru.org/rgrid) PHP Temp

Re: [PHP] CSV file

2009-06-24 Thread Richard Heyes
tabase. If you have a billion line CSV then speed may suffer somewhat though. Best to still use fgets() or fgetcsv() and count as you go. -- Richard Heyes HTML5 graphing: RGraph (www.rgraph.net - updated 20th June) PHP mail: RMail (www.phpguru.org/rmail) PHP datagrid: RGrid (www.phpguru.org/rgrid) P

Re: [PHP] mirroring website

2009-06-21 Thread Richard Heyes
27;nt there a better/newer approach? I used to use rsync (with a bunch of options) whenever I did this. With you being on Linux, it would be trivial to automate it with a script. -- Richard Heyes HTML5 graphing: RGraph (www.rgraph.net - updated 20th June) PHP mail: RMail (www.phpguru.org/rmail)

Re: [PHP] Periodic Actions in PHP?

2009-06-13 Thread Richard Heyes
be scheduled at most once per minute. And if you're using Windows then I believe the equivalent would be task scheduler, but I've no idea how you would go about using it. -- Richard Heyes HTML5 graphing: RGraph (www.rgraph.net - updated 6th June) PHP mail: RMail (www.phpguru.org/rmail)

Re: [PHP] Mail function and hotmail

2009-06-10 Thread Richard Heyes
Hi, > pear's mime mail I believe I had a hand in that too. It's like a bad rash - it gets everywhere... :-) -- Richard Heyes HTML5 graphing: RGraph (www.rgraph.net - updated 6th June) PHP mail: RMail (www.phpguru.org/rmail) PHP datagrid: RGrid (www.phpguru.org/rgrid) PHP Templa

Re: [PHP] Mail function and hotmail

2009-06-10 Thread Richard Heyes
Hi, > ... Use something that is already proven to work. It will save you an awful lot of time. -- Richard Heyes HTML5 graphing: RGraph (www.rgraph.net - updated 6th June) PHP mail: RMail (www.phpguru.org/rmail) PHP datagrid: RGrid (www.phpguru.org/rgrid) PHP Template: RTempl

Re: [PHP] php applications

2009-06-08 Thread Richard Heyes
Hi, >> Real men use perl ;) > >    's/Real men/Masochists' There's always VB... -- Richard Heyes HTML5 graphing: RGraph (www.rgraph.net - updated 6th June) PHP mail: RMail (www.phpguru.org/rmail) PHP datagrid: RGrid (www.phpguru.org/rgrid) PHP Template: RTemplate

Re: [PHP] Show the entire browser request

2009-06-08 Thread Richard Heyes
it. Sounds like what you really want is Fiddler (MSIE, http://www.fiddlertool.com) or Firebug (Firefox, http://getfirebug.com/). The latter is indispensable. -- Richard Heyes HTML5 graphing: RGraph (www.rgraph.net - updated 6th June) PHP mail: RMail (www.phpguru.org/rmail) PHP datagrid: RGrid

Re: [PHP] php applications

2009-06-08 Thread Richard Heyes
general it can be used to create command line stuff, and also GUI based apps using the Gtk extension. -- Richard Heyes HTML5 graphing: RGraph (www.rgraph.net - updated 6th June) PHP mail: RMail (www.phpguru.org/rmail) PHP datagrid: RGrid (www.phpguru.org/rgrid) PHP Template: RTemplate (www.phpgur

Re: [PHP] PHP Graphing Libraries...?

2009-06-08 Thread Richard Heyes
Hi, > Don't see anything except a grid on Firefox 3.0.10 on PC. Yes the whole library requires FF3.5+, Safari 4+ or Chrome 2+. http://www.rgraph.net/#browser -- Richard Heyes HTML5 graphing: RGraph (www.rgraph.net - updated 6th June) PHP mail: RMail (www.phpguru.org/rmail) PHP datagri

Re: [PHP] PHP Graphing Libraries...?

2009-06-08 Thread Richard Heyes
Hi (again), > And before you ask, you can only have one line :-) Though thinking a bit more about this, you could achieve it straight forwardly enough. -- Richard Heyes HTML5 graphing: RGraph (www.rgraph.net - updated 6th June) PHP mail: RMail (www.phpguru.org/rmail) PHP datagrid: RG

Re: [PHP] PHP Graphing Libraries...?

2009-06-08 Thread Richard Heyes
> ... Something like the last example? http://dev.rgraph.net/examples/scatter.html And before you ask, you can only have one line :-) -- Richard Heyes HTML5 graphing: RGraph (www.rgraph.net - updated 6th June) PHP mail: RMail (www.phpguru.org/rmail) PHP datagrid: RGrid (www.phpguru.org/rg

Re: [PHP] PHP Graphing Libraries...?

2009-06-07 Thread Richard Heyes
us. I'm still not sure I get it. What about a Scatter chart with the points connected? Would that be reasonable? With this you'd specify a max X value of say 365 to represent a year, and then plot the values based on that, ie: 67,57|234,80|57,89 ad infinitum. Then just connect the points. If

Re: [PHP] PHP Graphing Libraries...?

2009-06-07 Thread Richard Heyes
tirely likely) ? -- Richard Heyes HTML5 graphing: RGraph (www.rgraph.net - updated 6th June) PHP mail: RMail (www.phpguru.org/rmail) PHP datagrid: RGrid (www.phpguru.org/rgrid) PHP Template: RTemplate (www.phpguru.org/rtemplate) PHP SMTP: http://www.phpguru.org/smtp -- PHP General Mailing List (http://www

Re: [PHP] PHP Graphing Libraries...?

2009-06-05 Thread Richard Heyes
ntrol them independently.  Surely there's > something that can accommodate this...? Well the line doesn't do this, the X values are linear. However the Scatter works like this. ie You set an maximum X value and the X values are put in the corresponding places. -- Richard Heyes HTM

Re: [PHP] PHP Graphing Libraries...?

2009-06-05 Thread Richard Heyes
> ... I would have to suggest RGraph... ( http://www.rgraph.net ) :-) It's uses canvas though, so browser support is limited at the moment though to Firefox 3.5, Safari 4 and Chrome 2. -- Richard Heyes HTML5 graphing: RGraph (www.rgraph.net - updated 23rd May) PHP mail: RMail (www.php

Re: [PHP] Web friendly file names

2009-06-03 Thread Richard Heyes
is: /product/2009/06/03/24ct-gold-earrings Or if using the date is not applicable, you could get something like this: /product/24ct-gold-earrings -- Richard Heyes HTML5 graphing: RGraph (www.rgraph.net - updated 23rd May) PHP mail: RMail (www.phpguru.org/rmail) PHP datagrid: RGrid (www.php

Re: [PHP] recipes anyone?

2009-05-29 Thread Richard Heyes
them, and have a URL like this: http://www.pig-supper.com/recipe/pork-roast.html "recipe" could be a PHP file that adds a common header and footer. I do similar with my site. Eg: http://www.phpguru.org/static/canvas.html Or did you mean something else entirely...? -- Richard Heye

Re: [PHP] Create multipart email

2009-05-28 Thread Richard Heyes
lick on the version numbers to get at the code. You can then treat it like you would any other PHP file. You'll have to resolve any depenencies yourself though. -- Richard Heyes HTML5 graphing: RGraph (www.rgraph.net - updated 23rd May) PHP mail: RMail (www.phpguru.org/rmail) PHP datagrid: RGrid

Re: [PHP] templating engine options

2009-05-25 Thread Richard Heyes
> That's where your integrity is called into question. What's that...? :-) -- Richard Heyes HTML5 graphing: RGraph (www.rgraph.net - updated 23rd May) PHP mail: RMail (www.phpguru.org/rmail) PHP datagrid: RGrid (www.phpguru.org/rgrid) PHP Template: RTemplate (www.phpguru.org/rtempl

Re: [PHP] executing background process from php

2009-05-25 Thread Richard Heyes
e a background task you need to redirect all output streams, like this (on Unix - on Windows I have no idea I'm afraid): /dev/null 2>&1 &'); ?> -- Richard Heyes HTML5 graphing: RGraph (www.rgraph.net - updated 23rd May) PHP mail: RMail (www.phpguru.org/rmail) PHP datagrid

Re: [PHP] templating engine options

2009-05-25 Thread Richard Heyes
Hi, > and then you have the joy of telling the client its 6 months work 6 months vs 1 day... Ka-Ching! :-) -- Richard Heyes HTML5 graphing: RGraph (www.rgraph.net - updated 23rd May) PHP mail: RMail (www.phpguru.org/rmail) PHP datagrid: RGrid (www.phpguru.org/rgrid) PHP Template: RTempl

Re: [PHP] templating engine options

2009-05-24 Thread Richard Heyes
use require()... :-/ -- Richard Heyes HTML5 graphing: RGraph (www.rgraph.net) PHP mail: RMail (www.phpguru.org/rmail) PHP datagrid: RGrid (www.phpguru.org/rgrid) PHP Template: RTemplate (www.phpguru.org/rtemplate) PHP SMTP: http://www.phpguru.org/smtp -- PHP General Mailing List (http://www.php.

Re: [PHP] Accepting Credit Card Payments

2009-05-20 Thread Richard Heyes
Hi, > ... If you're in the US or UK then you could look at using Google Checkout - it's very easy to setup. Plus your punters (/Customers) may feel a little better about giving their CC details to a recognized brand like Google. Or if they're in Switzerland, maybe not... :-/

Re: [PHP] object literals

2009-05-03 Thread Richard Heyes
> i'm really lazy about typing. I think every good programmer is... ;-) -- Richard Heyes HTML5 graphing: RGraph (www.rgraph.net) PHP mail: RMail (www.phpguru.org/rmail) PHP datagrid: RGrid (www.phpguru.org/rgrid) PHP Template: RTemplate (www.phpguru.org/rtemplate) -- PHP General Mail

Re: [PHP] object literals

2009-05-01 Thread Richard Heyes
t the added boon of ease of portability to JS (if that's even a factor). -- Richard Heyes HTML5 graphing: RGraph (www.rgraph.net) PHP mail: RMail (www.phpguru.org/rmail) PHP datagrid: RGrid (www.phpguru.org/rgrid) PHP Template: RTemplate (www.phpguru.org/rtemplate) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] object literals

2009-05-01 Thread Richard Heyes
'value')); It's not great, but PHP doesn't have a object literal syntax AFAIK. -- Richard Heyes HTML5 graphing: RGraph (www.rgraph.net) PHP mail: RMail (www.phpguru.org/rmail) PHP datagrid: RGrid (www.phpguru.org/rgrid) PHP Template: RTemplate (www.phpguru.org/rtemplate)

Re: [PHP] CamelCase conversion to proper_c_style

2009-04-27 Thread Richard Heyes
be my preference.) I'd say, if you must, then change as you go. If you do it all in a oner you'll likely introduce a shed load of problems. -- Richard Heyes HTML5 graphing: RGraph (www.rgraph.net) PHP mail: RMail (www.phpguru.org/rmail) PHP datagrid: RGrid (www.phpguru.org/rg

Re: [PHP] PHP CLI vs WebServed

2009-04-25 Thread Richard Heyes
Hi, >... Never done this, but could you set environment variables, which would then be picked up by PHP (and stuffed in $_ENV)? -- Richard Heyes HTML5 graphing: RGraph (www.rgraph.net) PHP mail: RMail (www.phpguru.org/rmail) PHP datagrid: RGrid (www.phpguru.org/rgrid) PHP Template: RTempl

Re: [PHP] Multiple return statements in a function.

2009-04-24 Thread Richard Heyes
Hi, > your function could be condensed to this: > > function check($a) > { >    return is_array($a) ? true : false; > } Or even better, this: function check($a) { return is_array($a); } Not that I'd imagine it makes a great deal of difference. -- Richard Heyes

Re: [PHP] Multiple return statements in a function.

2009-04-23 Thread Richard Heyes
n is nullified somewhat. -- Richard Heyes HTML5 graphing: RGraph (www.rgraph.net) PHP mail: RMail (www.phpguru.org/rmail) PHP datagrid: RGrid (www.phpguru.org/rgrid) PHP Template: RTemplate (www.phpguru.org/rtemplate) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Select List/Menu

2009-04-17 Thread Richard Heyes
> in VBSCRIPT In what? Use [] at the end of your selects name: ... -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.net (Updated April 11th) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

Re: [PHP] alt() - unknown function?

2009-04-15 Thread Richard Heyes
> grep gets my vote, since i don't use netbeans I'd go for grep too (unix or Win32): grep -rin "function alt" * What's the exact error? -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.net (Updated April 11th) -- PH

Re: [PHP] https and Credit Cards

2009-04-15 Thread Richard Heyes
r "buy" page(s), so you don't end up with the hassle of buying and installing your own SSL certificate. -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.net (Updated April 11th) -- PHP General Mailing List (http://www.php

Re: [PHP] https and Credit Cards

2009-04-14 Thread Richard Heyes
web site's server? Yes. Any connection to you where your punter supplies CC details should be secure. If the punters ISP runs a transparent proxy for example, then these details could be easily captured if not sent over a secure connection. -- Richard Heyes HTML5 Canvas graphing for Firefox,

Re: [PHP] Caching

2009-04-11 Thread Richard Heyes
vate and public determine which kinds of cache should cache it. IIRC (which isn't likely). -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.net (Updated April 11th) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Caching

2009-04-10 Thread Richard Heyes
t can give you more control. > How do I use *Header set Expires* (on htaccess) and specifying "in a week"? A quick Google found this: Header set Expires "Thu, 15 Apr 2010 20:00:00 GMT" -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: h

Re: [PHP] Increase your monthly income!

2009-04-09 Thread Richard Heyes
> In the history of email, the only > better SPAM blocking stuff has been a pair of scissors applied to the > power cord. Wearing insulating gloves I would add... -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.net (Updated March 28th)

Re: [PHP] Increase your monthly income!

2009-04-09 Thread Richard Heyes
ng list. Wow, someone is playing Mr. Misery Guts in the school play aren't they? -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.net (Updated March 28th) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Increase your monthly income!

2009-04-09 Thread Richard Heyes
> Get paid for your opinion! Y'know, I really think I should... -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.net (Updated March 28th) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Am I being hacked?

2009-04-08 Thread Richard Heyes
this code - is this an attempt to do something nefarious, > or nothing I should worry about? Looks like it may be. As long as you escape you SQL correctly using mysql_real_escape_string() or the equivalent, you should be OK. -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Op

Re: [PHP] file_get_contents for URLs?

2009-04-07 Thread Richard Heyes
ment to file_get_contents(). So create a stream, set the timeout on that (using stream_context_create() & stream_context_set_option() ), and then pass it to file_get_contents(). -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.net (Updated Mar

Re: [PHP] PHP/MySQL ISP recommendation that lets one edit ft_min_word_len variable?

2009-04-04 Thread Richard Heyes
ental variables.  I really need to adjust ft_min_word_len so > that I can do rapid text searches on words less than 4 chars. Dan the man on this very mailing list. Or Rackspace. -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.net (Updated M

Re: [PHP] Button id's - firefox and IE different ?

2009-04-02 Thread Richard Heyes
> Any suggestions ? Try this: And then you can check the value of $_POST['btid']. Oh and btw... ... seriously? That's so 9 years ago. ;-) -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.net (Updated March 28th) -- PHP Ge

Re: [PHP] time() TIMER in seconds or just numbers

2009-03-30 Thread Richard Heyes
> When someone does that, it means the execution time between $t1 and $t2... Is that for my benefit? Believe it or not, I do know the arcane art of subtraction... -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.net (Updated March 14th) --

Re: [PHP] time() TIMER in seconds or just numbers

2009-03-30 Thread Richard Heyes
umber of seconds) it took to go from $t1 to $t2. $duration might be better. > how do you determine the next 5 mins? Eh? time() + 300 is five minutes from now. -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.net (Updated March 14th) -- PHP General

Re: [PHP] Namespce operator

2009-03-25 Thread Richard Heyes
> Backslash doesn't sound like it will look very pretty Well no, but practically I can't see any dis/advantages. Except that it saves two whole keypresses over something like :::. Think of the RSI lawsuits prevented... -- Richard Heyes HTML5 Canvas graphing for Firefox, Chro

[PHP] Namespce operator

2009-03-25 Thread Richard Heyes
Backslash? Seriously? I'm hurt that my suggestion of "¬" (ASCII170 ?) wasn't used. :-( -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.net (Updated March 14th) -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] preg_replace() question

2009-03-18 Thread Richard Heyes
spaces and non alpha numerical > characters from text strings? I suspect not... Have a look through the string functions. the ctype_* functions too. See if one fits your needs. -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.net (Updated March 14th)

Re: [PHP] Sanitizing Numbers

2009-03-13 Thread Richard Heyes
> ereg [Gasps and runs off shouting "PCRE"] ... -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.net (Updated February 28th) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Database Abstraction Class

2009-03-07 Thread Richard Heyes
the stuff that I've written. I suppose it depends very much on each individual package author (there are a fair few). -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.net (Updated February 28th) -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Database Abstraction Class

2009-03-07 Thread Richard Heyes
now been deprecated in favour of MDB2. Which may or may not also be in PEAR. -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.net (Updated February 28th) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Sending out large amounts of email

2009-03-07 Thread Richard Heyes
> thanks a thousand A thousand? That's a bit stingy - usually it's "thanks a million"... :-) -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.net (Updated February 28th) -- PHP General Mailing List (http://www.php.net/

Re: [PHP] Sending out large amounts of email

2009-03-06 Thread Richard Heyes
my use was very brief. These types of company will also have far more success in getting the emails delivered (and not flagged as spam). -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.net (Updated February 28th) -- PHP General Mailing List (http://

Re: [PHP] Question about template systems

2009-03-03 Thread Richard Heyes
ark is collectively known as the query string. You can retrieve these by examining the $_GET variable. You will aalso find some useful things, in $_SERVER. Eg: -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.net (Updated February 28th) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Just a test

2009-03-02 Thread Richard Heyes
ure, is that what you're testing? Nope. Email addresses. I think. -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.net (Updated February 28th) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Just a test

2009-03-02 Thread Richard Heyes
2009/3/2 Daniel Brown : > On Mon, Mar 2, 2009 at 05:55, Richard Heyes wrote: >> >> This is just a test to see who here still thinks I'm a dork. > >    I still do, Richy. I see. You won't be wanting any of billion dollar empire when I make it then. Ho hum.

[PHP] Just a test

2009-03-02 Thread Richard Heyes
-- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.org (Updated February 28th) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A puzzler (well, for me at least)

2009-02-28 Thread Richard Heyes
>>>> Your answer is neither relevant nor funny. :-| >>> >>>    And your response wasn't welcome.  So there, everyone's even. >> >> I'm even?? You sure? People been telling me my entire life that I'm odd! >> > > rob, that

Re: [PHP] A puzzler (well, for me at least)

2009-02-26 Thread Richard Heyes
out, and since it's usually got most of the CPU to play with, I reckon it will be plenty fast enough. Nice to know that I can be sloppy though if I wanted to. -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.org (Updated February 14th) -- PHP G

Re: [PHP] A puzzler (well, for me at least)

2009-02-26 Thread Richard Heyes
> Your answer is neither relevant nor funny. :-| Someone didn't get any last night... -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.org (Updated February 14th) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vis

[PHP] A puzzler (well, for me at least)

2009-02-26 Thread Richard Heyes
hands... Cheers. -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.org (Updated February 14th) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] display_errors and error_reporting not enough?

2009-02-17 Thread Richard Heyes
your php.ini file (and restart your web server). Either way you won't be able to use the constants (which you use only in a PHP script. IIRC the correct directive would be: error_reporting 2047 -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.org

Re: [PHP] E-Mail Attachment Filename Encoding Problem

2009-02-17 Thread Richard Heyes
> Cats are the other white meat. Sorry have flu, may be delirious You haven't been around any birds recently have you? -- (A concerned) Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.org (Updated February 14th) -- PHP General Mailing Li

Re: [PHP] E-Mail Attachment Filename Encoding Problem

2009-02-17 Thread Richard Heyes
> The *other* white meat? Sorry, no idea what that means. -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.org (Updated February 14th) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] E-Mail Attachment Filename Encoding Problem

2009-02-17 Thread Richard Heyes
> Can someone explain to me why pear mail_mime is not a good idea to use? I > noticed some comments like that a few times but no explanation There's no reason not to use it - it works for a good many people. And a few cats too. -- Richard Heyes HTML5 Canvas graphing for Firefox, Ch

Re: [PHP] E-Mail Attachment Filename Encoding Problem

2009-02-16 Thread Richard Heyes
> I'm already using pear Mail_Mime. [Ducks and runs off] -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.org (Updated February 14th) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP]

2009-02-16 Thread Richard Heyes
> ... Sorry, should've mentioned, I'm talking about PHP6. -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.org (Updated February 14th) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] E-Mail Attachment Filename Encoding Problem

2009-02-16 Thread Richard Heyes
(nur für Lehre) > Will be: US-ASCII''PC-Beschaffung%202008%20(nur%20f%C3%BCr%20Lehre) > > I think I have to encode the file name and already tried utf8encode but this > didn't help. This may help: http://www.phpguru.org/static/mime.mail.html -- Richard Heyes HTML5 Canv

Re: [PHP] Reverse IP lookup

2009-02-15 Thread Richard Heyes
> Is there anyway to get a list of sitess that are on a specific IP? Not AFAIK. You can get the name associated with that IP adress (IIRC), but one IP could be serving multiple sites using virtual hosting. -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: h

[PHP]

2009-02-15 Thread Richard Heyes
Hi, Does anyone the status of http://www.rgraph.org (Updated February 14th) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] sprintf thousand separator.

2009-02-11 Thread Richard Heyes
> Thanks for your answer, but my real problem is to get thousand separator in > jpgraph class which uses sprintf to display almost everithing; Can you format it first, and then pass it to JPGraph ? -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari

Re: [PHP] Re: paging

2009-02-10 Thread Richard Heyes
> ... Are you the same Tony Marston who was on the Demon Internet webmaster type mailing list? (I don't remember the actual name). -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.org (Updated January 31st) -- PHP General Mailing Li

Re: [PHP] paging

2009-02-10 Thread Richard Heyes
> ... Hi, Too lazy to actually read the email (tsk), but there's rather a nice paging library in PEAR that may help. Imaginitively called "Pager". -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.org (Updated January 31st

Re: [PHP] PHP usage stats

2009-02-08 Thread Richard Heyes
Hi, > Why anyone would see value in such a number is beyond me. Just trying to get an (over)view of the market. -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.org (Updated January 31st) -- PHP General Mailing List (http://www.php.net/)

  1   2   3   4   5   6   7   8   9   >