Re: [PHP] Template system in PHP

2008-02-13 Thread Richard Heyes
when I'm debugging I like to be as concise as possible. Concise? Really? -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and Helpdesk software for £299 hosted for you - no installation, no maintenance, new features automatic and free ** New Helpdesk demo now

Re: [PHP] Better DB Class MySQL

2008-02-10 Thread Richard Heyes
* methods) which speed up development time greatly. 3. I thought of others, but then subsequently forgot them. Doh. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and Helpdesk software for £299 hosted for you - no installation, no maintenance, new features automatic and free

Re: [PHP] Better DB Class MySQL

2008-02-10 Thread Richard Heyes
Larry Garfield wrote: http://www.php.net/pdo All the cool kids are doing it. Except that converting to converting PDO is, undoubtedly, far more work and will entail far more gotchas than the original poster wanted -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base

Re: [PHP] Better DB Class MySQL

2008-02-10 Thread Richard Heyes
Jochem Maas wrote: Larry Garfield schreef: http://www.php.net/pdo All the cool kids are doing it. not true - some of them use firebird ;-) Fire - what? :-) -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and Helpdesk software for £299 hosted for you - no installation

Re: [PHP] PHP Source code protection

2008-02-08 Thread Richard Heyes
that they have in the process of making money. 2. Reverse engineering takes time, and therefore diverts their attention away from the process of making money. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and Helpdesk software for £299 hosted for you - no installation

Re: [PHP] PHP Source code protection

2008-02-07 Thread Richard Heyes
Greg Donald wrote: On 2/6/08, Richard Heyes [EMAIL PROTECTED] wrote: There's the Zend Encoder at www.zend.com. Though it may be called something else now. Pointless. http://www.phprecovery.com/ Pointless? I think it is exactly the answer to the original persons question. -- Richard

Re: [PHP] Exception handling in PHP

2008-02-07 Thread Richard Heyes
, so there may be a few errors. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and Helpdesk software for £299 hosted for you - no installation, no maintenance, new features automatic and free ** New Helpdesk demo now available ** -- PHP General Mailing List (http

Re: [PHP] Exception handling in PHP

2008-02-07 Thread Richard Heyes
handling code } catch (DBException $e) { // ... // Generic Exception handling code (The Exception class is // built in to PHP) } catch (Exception $e) { // ... } -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and Helpdesk software for £299 hosted for you - no installation

Re: [PHP] PHP Source code protection

2008-02-06 Thread Richard Heyes
... Is htere a way to secoure my code so when they put it on the server, they can't see it! There's the Zend Encoder at www.zend.com. Though it may be called something else now. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and Helpdesk software for £299 hosted for you

Re: [PHP] Effecient mass mailings

2008-02-04 Thread Richard Heyes
I would say no, but for files, then why not? Also prevents pissing off the user by not having to download the attachment if they're not interested in it (and assuming it will be base64 encoded as most attachments are, don't forget it will grow in size by a third). -- Richard Heyes http

Re: [PHP] Schedule tasks from server

2008-02-04 Thread Richard Heyes
. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and Helpdesk software for £299 hosted for you - no installation, no maintenance, new features automatic and free -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Efficient mass mailings

2008-02-04 Thread Richard Heyes
. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and Helpdesk software for £299 hosted for you - no installation, no maintenance, new features automatic and free -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Schedule tasks from server

2008-02-04 Thread Richard Heyes
as-still non-caffeinated brain missing something obvious here this morning? Well exec() et-al aren't the only thing that use paths. You might have an include/require that begins with C:\ for example. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and Helpdesk software

Re: [PHP] Schedule tasks from server

2008-02-04 Thread Richard Heyes
your code should be portable Except in reality, it probably isn't. Off the top of my head, think file paths. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and Helpdesk software for £299 hosted for you - no installation, no maintenance, new features automatic and free

Re: [PHP] Effecient mass mailings

2008-02-04 Thread Richard Heyes
send to say 100 recipients at once but only transfer the attachment data once. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and Helpdesk software for £299 hosted for you - no installation, no maintenance, new features automatic and free -- PHP General Mailing List (http

Re: [PHP] Resetting a session variable

2008-02-03 Thread Richard Heyes
unset($_SESSION); or $_SESSION = array(); This reset all of the session variables. To reset only one, try this: ?php unset($_SESSION['key']); ? -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and Helpdesk software for £299 hosted for you - no installation

Re: [PHP] PEAR website and MSIE 6 (M$ forcing IE7)

2008-02-02 Thread Richard Heyes
Feb 12th is D-day. [Microsoft] has posted guidelines on how to ward off the automatic update Not exactly forcing if they've provided an alternative. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and Helpdesk software for £299pa hosted for you - no installation

Re: [PHP] Redirecting STDERR to a file?

2008-02-02 Thread Richard Heyes
to you which forks processes: http://www.phpguru.org/downloads/pcntl/ You need pcntl and it only works on *nix (I understand). It does make fork()ing somewhat easier though. Be careful of defunct processes though. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base

Re: [PHP] PEAR website and MSIE 6

2008-02-01 Thread Richard Heyes
Daevid Vincent wrote: I will be very sad in 15 days when M$ FORCES everyone to it. WT? -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and Helpdesk software for £299pa hosted for you - no installation, no maintenance, new features automatic and free -- PHP General

Re: [PHP] Pass Variable Names to a Function

2008-02-01 Thread Richard Heyes
]) ? $_SESSION[$name] : false; -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and Helpdesk software for £299pa hosted for you - no installation, no maintenance, new features automatic and free -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] PEAR website and MSIE 6

2008-01-31 Thread Richard Heyes
Anyone have any trouble with this combination? It consistently crashes for me. http://pear.php.net Thanks. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and Helpdesk software for £299pa hosted for you - no installation, no maintenance, new features automatic and free

Re: [PHP] PEAR website and MSIE 6

2008-01-31 Thread Richard Heyes
firefox not an option? Nope. or anything else that resembles a proper browser ;-) Strange, IE has been working fine for me for the last eight years... -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and Helpdesk software for £299pa hosted for you - no installation

Re: [PHP] PEAR website and MSIE 6

2008-01-31 Thread Richard Heyes
, but certainly it's a rarity. http://www.thecounter.com reports Opera as having 1% of the market - 1% isn't exactly a lot. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and Helpdesk software for £299pa hosted for you - no installation, no maintenance, new features automatic

Re: [PHP] PEAR website and MSIE 6

2008-01-31 Thread Richard Heyes
Jochem Maas wrote: Richard Heyes schreef: firefox not an option? Nope. or anything else that resembles a proper browser ;-) Strange, IE has been working fine for me for the last eight years... that's the kind of thing people say just after they hear they have prostrate cancer ;-) Lol

Re: [PHP] PEAR website and MSIE 6

2008-01-31 Thread Richard Heyes
PHP is a server-side page generator. It has NOTHING to do with the browser. The PHP programmer determines the content of the resulting HTML and the browser reacts to THAT. Browsers never see a line of PHP script! What's your point? -- Richard Heyes http://www.websupportsolutions.co.uk

Re: [PHP] How can I do this -- method chaining

2008-01-29 Thread Richard Heyes
Undefined function Bob. I've also tried echo new Bob( 'Hello!' )-getBlah(); echo (new Bob( 'Hello!' ))-getBlah(); Bob is a class, not a method. You could try this: ?php $obj = new Bob(); $obj-getBlah(); ? It's not method chaining though. -- Richard Heyes http

Re: [PHP] avoid server folder reading

2008-01-20 Thread Richard Heyes
header('Location: /'); ? If it's index.html, you could use the following: script type=text/javascript !-- location.href = '/'; -- /script Try the PHP version first. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and Helpdesk software that eases your support burden

Re: [PHP] avoid server folder reading

2008-01-20 Thread Richard Heyes
Will that not result in an infinite redirection loop? Or am i missing something very obvious ! If it's placed in the root folder of the website, yes. But why do that? If, however, that's what is required just put an empty index.html file there. -- Richard Heyes http

Re: [PHP] Question About Blocking Email Addresses in Forms

2008-01-19 Thread Richard Heyes
://www.phpguru.org) site it reduced comment spam by nearly 100%. Not completely; I still get maybe 1 per month, but it was well worth adding. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and Helpdesk software that eases your support burden and helps increase your sales. ** NOW

Re: [PHP] Posting Summary for Week Ending 18 January, 2008: php-general@lists.php.net

2008-01-19 Thread Richard Heyes
across the Console_Table class in PEAR. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and Helpdesk software that eases your support burden and helps increase your sales. ** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS ** -- PHP General Mailing List (http

Re: [PHP] Question About Blocking Email Addresses in Forms

2008-01-18 Thread Richard Heyes
PROTECTED], and of course it is always just a bit different every time. Any help is greatly appreciated. Could add a CAPTCHA image (Type the letters in the image...) to your form. It eliminated comment junk when I added one to my website. -- Richard Heyes http://www.websupportsolutions.co.uk

Re: [PHP] Question About Blocking Email Addresses in Forms

2008-01-18 Thread Richard Heyes
Or even a simple text CAPTCHA What is 16 divided by 4?. Careful though, I made a class which converted numbers to text (TextualNumbers IIRC) and it got broken. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and Helpdesk software that eases your support burden and helps

Re: [PHP] SMTP vs mail()

2008-01-17 Thread Richard Heyes
You can easily make a mail queue in php yourself with a daemon that checks the queue and sends waiting mail in batches of say 200 per minute. (provided you have access to the cli on the server) Why when there MTAs? -- Richard Heyes http://www.websupportsolutions.co.uk Mailing list management

Re: [PHP] Count

2008-01-17 Thread Richard Heyes
option tags to add more items to the select. -- Richard Heyes http://www.websupportsolutions.co.uk Mailing list management service allowing you to reach your Customers and increase your sales. ** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS ** -- PHP General Mailing List (http

Re: [PHP] re[PHP] gister_globals

2008-01-16 Thread Richard Heyes
this in a .htaccess file if you're using Apache: php_flag register_globals 1 -- Richard Heyes http://www.websupportsolutions.co.uk Mailing list management service allowing you to reach your Customers and increase your sales. ** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS ** -- PHP General Mailing

Re: [PHP] checking user input of MM-DD-YYYY

2008-01-15 Thread Richard Heyes
... } echo Date: {$date}br /; echo Month: {$month}br /; echo Year: {$year}br /; ? -- Richard Heyes http://www.websupportsolutions.co.uk Mailing list management service allowing you to reach your Customers and increase your sales. ** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS

Re: [PHP] anaylyze email

2008-01-14 Thread Richard Heyes
reading the email you can do pretty much anything. Have a look at the mail() function. I try to read pop3. I can not find any example! Go to http://pear.php.net and get the Net_POP3 class which will allow you to read the contents of POP3 accounts. -- Richard Heyes http

Re: [PHP] SMTP vs mail()

2008-01-12 Thread Richard Heyes
mail delivery and the script has to return immediately, so I'll be launching a separate process to insert the addresses into a minimal mail_queue table in my db, and then a 5 minutely cron script which will pass them to the MTA. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge

Re: [PHP] SMTP vs mail()

2008-01-12 Thread Richard Heyes
1. Using mail(), same email sent to 1000 users. Script finished in 200ms (1000 emails delivered to local MTA). Delivery to target MTA over 100Mbit LAN took about 6s. That settles it then. The mail() command will be more than fast enough for my needs. Thanks. -- Richard Heyes http

Re: [PHP] SMTP vs mail()

2008-01-12 Thread Richard Heyes
. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support ** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS ** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP shell commands

2008-01-11 Thread Richard Heyes
the Zend Encoder. This turns them into byte code IIRC, so it's hard (not totally impossible I think) to get the clear text. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support ** NOW OFFERING FREE ACCOUNTS TO CHARITIES

[PHP] Browser cache setting

2008-01-11 Thread Richard Heyes
Hi, What's the default setting for caching in browsers? With IE is it Automatically as I think it is? And what about other browsers? Some equivalent? Thanks. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support

Re: [PHP] Browser cache setting

2008-01-11 Thread Richard Heyes
I'm pretty certain it's automatic in most. I think Firefox has a default 50Mb of cache-space. Great, thanks. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support ** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON

Re: [PHP] SMTP vs mail()

2008-01-11 Thread Richard Heyes
to the local SMTP server. Thanks. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support ** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS ** -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] SMTP vs mail()

2008-01-11 Thread Richard Heyes
I used to use htmlMimeMail, but now I use Zend_Mail as it has a better API and is also faster in regards to the quoted printable encoding. IIRC htmlMimeMail use the PHP built in function to do quoted printable encoding. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base

Re: [PHP] Re: SMTP vs mail()

2008-01-11 Thread Richard Heyes
If you have your sendmail equivalent program properly configured, no SMTP connection is used when queueing messages using the sendmail program. What about when you take into consideration this program could be sending 1000's of emails, say, 100 per SMTP connection? -- Richard Heyes http

Re: [PHP] SMTP vs mail()

2008-01-11 Thread Richard Heyes
Assuming you're talking delivery to a local MTA (which will subsequently do the remote delivery), is speed really important? For the amount of email I'm looking at (1000s, growing), yes. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut

Re: [PHP] SMTP vs mail()

2008-01-11 Thread Richard Heyes
There is no such thing. :) Perhaps not then... :-) -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support ** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS ** -- PHP General Mailing List (http://www.php.net

[PHP] SMTP vs mail()

2008-01-11 Thread Richard Heyes
Hi, Bearing in mind I haven't yet done any benchmarks, which do you think is faster - SMTP with multiple RCPT commands or the PHP mail() function (with it launching a separate sendmail process for each mail() function call)? Thanks. -- Richard Heyes http://www.websupportsolutions.co.uk

Re: [PHP] ereg help!

2008-01-09 Thread Richard Heyes
name with white space? -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support ** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS ** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] PHPInfo - the application

2008-01-09 Thread Richard Heyes
Does anyone have a URL for it? Naturally Google returns a lot of pages which are about the actual function. Thanks. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support ** NOW OFFERING FREE ACCOUNTS TO CHARITIES

Re: [PHP] PHPInfo - the application

2008-01-09 Thread Richard Heyes
Do you mean phpsysinfo? http://phpsysinfo.sf.net/ Bingo, thanks. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support ** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS ** -- PHP General Mailing List (http

Re: [PHP] PHPInfo - the application

2008-01-09 Thread Richard Heyes
Lester Caine wrote: Richard Heyes wrote: Does anyone have a URL for it? Naturally Google returns a lot of pages which are about the actual function. http://www.php.net/ just put phpinfo into the 'search for' and you will get the REAL data for it. Google is never the best starting point

Re: [PHP] global address collection

2008-01-08 Thread Richard Heyes
The best design for a form comes from using it. To a certain extent, but I think the best design for a form stems from watching someone else use it. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support ** NOW

Re: [PHP] global address collection

2008-01-08 Thread Richard Heyes
Nathan Nobbe wrote: On Jan 8, 2008 2:04 PM, Richard Heyes [EMAIL PROTECTED] wrote: this is not only convenient from a user perspective in the user interface, but also on the server side. It's not so convenient when you consider Google (and presumably others) toolbars auto fill. fortunately

Re: [PHP] global address collection

2008-01-08 Thread Richard Heyes
this is not only convenient from a user perspective in the user interface, but also on the server side. It's not so convenient when you consider Google (and presumably others) toolbars auto fill. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software

Re: [PHP] Re: website tree

2008-01-08 Thread Richard Heyes
'] There's also $_SERVER['PHP_SELF']. Probably others too. Simply: ?php print_r($_SERVER); ? This will show you what's available to you. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support ** NOW OFFERING FREE

Re: [PHP] global address collection

2008-01-08 Thread Richard Heyes
tedd wrote: At 8:23 PM +0100 1/8/08, Per Jessen wrote: Richard Heyes wrote: Nathan Nobbe wrote: On Jan 8, 2008 2:04 PM, Richard Heyes [EMAIL PROTECTED] wrote: this is not only convenient from a user perspective in the user interface, but also on the server side. It's not so

Re: [PHP] global address collection

2008-01-07 Thread Richard Heyes
/State Postal/Zip code Country Full international phone number (eg. 0044 1623 123456) -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support ** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS ** -- PHP General

Re: [PHP] Just to confirm...

2007-12-22 Thread Richard Heyes
makes up roughly 37-40% of users, and being a technically orientated site they probably aren't representative of the Interweb at large, for that you might be better looking at thecounter.com (http://www.thecounter.com/stats/). That shows 80%, which is probably closer to actual usage. -- Richard

Re: [PHP] Just to confirm...

2007-12-20 Thread Richard Heyes
understand more, but purposefully cutting out a large chunk of your audience? -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support ** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS ** -- PHP General Mailing

Re: [PHP] Opinion about the using $GLOBALS directly

2007-12-19 Thread Richard Heyes
is) to get the database object. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support ** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS ** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Just to confirm...

2007-12-19 Thread Richard Heyes
I think that any MTA or client that doesn't work with the Reply-To header isn't worth beans. very very true Well the Reply-To: header isn't for bounces. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support

Re: [PHP] Re: [PHP-DB] force to download file

2007-12-18 Thread Richard Heyes
: attachment; filename='.$filename.''); readfile($dir.$filename); } else { echo No file selected; } } ? FYI You have Content-Disposition twice; you only need the second. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut

[PHP] Just to confirm...

2007-12-18 Thread Richard Heyes
Emails that bounce get sent back to the address in the Return-Path: header. Correct? -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support ** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS ** -- PHP General

Re: [PHP] Just to confirm...

2007-12-18 Thread Richard Heyes
Daniel Brown wrote: On Dec 18, 2007 10:17 AM, Richard Heyes [EMAIL PROTECTED] wrote: Emails that bounce get sent back to the address in the Return-Path: header. Correct? Yes, sir. Thanks. Is there usually a delay? Eg the mail server tries again after 4 hours. -- Richard Heyes http

Re: [PHP] nested array...

2007-12-17 Thread Richard Heyes
($nestedarray as $v) { if ($v['id'] == 5) { $in_array = true; break; } } ? -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support ** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON

Re: [PHP] Session timeout

2007-12-13 Thread Richard Heyes
... There are various configuration options for this (which you change in the php.ini or by using the ini_set() function): session.gc_maxlifetime session.cookie_lifetime Read all about sessions here: http://uk.php.net/manual/en/ref.session.php -- Richard Heyes http://www.websupportsolutions.co.uk

Re: [PHP] Session timeout

2007-12-13 Thread Richard Heyes
session.cache_expire... but... nothing happens... session does not expire If you change them in your php.ini don't forget you'll need to restart your web server. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support ** NOW OFFERING

Re: [PHP] Session timeout

2007-12-13 Thread Richard Heyes
You can simulate that, because not always you'll be able to do init_set ini_set(), and when? -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support ** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS

Re: [PHP] Mysqli support - test or complain? [SOLVED]

2007-12-11 Thread Richard Heyes
can't see the harm in calling it on every invocation. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support ** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS ** -- PHP General Mailing List (http://www.php.net

Re: [PHP] Mysqli support - test or complain? [SOLVED]

2007-12-11 Thread Richard Heyes
. If it's the same for all users then it doesn't belong in the session, it belongs in a server-wide cache. Sessions are for whatever you choose to put in them. And why implement a cache when you've got something perfectly usable (sessions) already? -- Richard Heyes http

Re: [PHP] Mysqli support - test or complain? [SOLVED]

2007-12-11 Thread Richard Heyes
of the web server. It's probably not likely to happen but that could seriously break your application. Then use the function directly. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support ** NOW OFFERING FREE ACCOUNTS

Re: [PHP] Mysqli support - test or complain? [SOLVED]

2007-12-11 Thread Richard Heyes
Sre, sessions are for whatever you choose to put in them. That's like saying bodies are for whatever a crazed murderer chooses to put in them... No it's not. the statement is true, but it's not optimal. Real life is rarely optimal. -- Richard Heyes http

Re: [PHP] Mysqli support - test or complain? [SOLVED]

2007-12-11 Thread Richard Heyes
an email address with phpguru in it. But I guess anyone can claim whatever they want... it doesn't make it true. Maybe you could see if phpsloppypig.org is available (it is btw). Ah personal insults. Always a good argument. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base

Re: [PHP] Mysqli support - test or complain? [SOLVED]

2007-12-11 Thread Richard Heyes
name is, you're still advocating a poor choice IMHO. Practical though. And I'm conscientious as far as business allows. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support ** NOW OFFERING FREE ACCOUNTS TO CHARITIES

Re: [PHP] Mysqli support - test or complain?

2007-12-10 Thread Richard Heyes
ever make assumptions, particularly when your dealing with software distributions. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support ** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS ** -- PHP General

Re: [PHP] Mysqli support - test or complain?

2007-12-10 Thread Richard Heyes
, and use one DSN if it's there. If not, use another. This is one of the reasons abstraction layers exist. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support ** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON

Re: [PHP] How to create multipart e-mail bodies?

2007-12-07 Thread Richard Heyes
Thanks, but unfortunately my ISP does not implemented PEAR, and uses PHP 4.3.10. You can view the source code on http://pear.php.net and use that. Your ISP doesn't have to support PEAR. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut

Re: [PHP] How to create multipart e-mail bodies?

2007-12-07 Thread Richard Heyes
I don't know if it is a PHP question, but I give it a try. I've been trying this subject for a while, but with less success. Now I can create mail bodies like this: http://www.phpguru.org/downloads/html.mime.mail/ -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base

Re: [PHP] convert hex message to ascii msg, How?

2007-12-07 Thread Richard Heyes
How could I convert a hex msg to ascii msg? Is there a php function or sth? Try posting a small example. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support ** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON

Re: [PHP] Calendar

2007-12-06 Thread Richard Heyes
On Dec 5, 2007 6:09 AM, Richard Heyes [EMAIL PROTECTED] wrote: There is not much simple about a calendar, especially when you start dealing with recurring events. How far into the future your calendar allow events to recur will depend at least in part on how you intend to store them

Re: [PHP] Calendar

2007-12-05 Thread Richard Heyes
-- there is not much simple when it comes to calendars. Calendars can be simple, or they can account for a lot and be complex. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support ** NOW OFFERING FREE ACCOUNTS

Re: [PHP] Calendar

2007-12-03 Thread Richard Heyes
that runs every x minutes. That could check a database for jobs/tasks that need running, using the current time and an option like run this job every 10 minutes to determine what needs running, (ie in that case if the current time isn't divisible by ten then don't run it). -- Richard Heyes http

Re: [PHP] calculate a varchar

2007-12-03 Thread Richard Heyes
if it is a calculation. If so, give me an integer and round it off to two decimal points: $price = 58.08; You may want to look at eval(). -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support ** NOW OFFERING FREE ACCOUNTS

Re: [PHP] include config.php does not work anymore after PHP 5.2

2007-12-02 Thread Richard Heyes
from PHP 4.x to PHP 5.x? This is a major upgrade so you should expect things to stop working. Using the long version of the open tags (ie ?php ) has been best practice for a long time. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut

Re: [PHP] URL Parsing...

2007-11-26 Thread Richard Heyes
Chris wrote: Richard Heyes wrote: well if you take a string (filename) and wish to change the end of it somone then I don't think str_replace() is the correct function. what's to say a script doesn't exist called 'my.cfm.php'? How does this: /\.cfm$/ take into account that? $ in regex's

Re: [PHP] URL Parsing...

2007-11-25 Thread Richard Heyes
; Anything would be helpful. :) You don't need the overhead of PCRE, though it is the fastest to write, since it's already above for you... Or parse_url(). basename(__FILE__) will get you the filename. -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base

Re: [PHP] URL Parsing...

2007-11-25 Thread Richard Heyes
well if you take a string (filename) and wish to change the end of it somone then I don't think str_replace() is the correct function. what's to say a script doesn't exist called 'my.cfm.php'? How does this: /\.cfm$/ take into account that? -- Richard Heyes +44 (0)800 0213 172 http

Re: [PHP] Logic Help please

2007-11-22 Thread Richard Heyes
, an IFRAME might be needed with left/right scrolling. -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] freeing resourses after the end of the session

2007-11-19 Thread Richard Heyes
to have many garbage images in the temp directory). Is there any way to do that? From PHP? http://uk.php.net/manual/en/function.register-shutdown-function.php -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost

Re: [PHP] Looking for a navigation recommendation

2007-11-17 Thread Richard Heyes
I could view and learn from? The PEAR Pager class can do this for you. Together with the Pager_Sliding package it works very well. http://pear.php.net/package/Pager -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut

Re: [PHP] Tree-like structure in PHP?

2007-11-16 Thread Richard Heyes
What is the most obvious way to implement a tree-like structure in PHP? Use someone elses code that already works. :) Array based tree class is here: http://www.phpguru.org/Tree/Tree.phps -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk

Re: [PHP] Open Source BTS??

2007-11-16 Thread Richard Heyes
/ No complaints here. -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Generating sequence of AlphaNumber

2007-11-15 Thread Richard Heyes
get a sequence of values like: AX0001 AX0002 AX0003 AX0004 . AX0099 AX0100 and so on ? ?php for ($i=0; $i=100; $i++) { echo 'AX' . sprintf('%04d', $i) . 'br /'; } ? -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk

Re: [PHP] PHP ide?

2007-11-08 Thread Richard Heyes
Eclipse with PDT plugin Scite. Not quite an IDE per-se, but still very very good and extremely versatile. IDE of champions ;) That somewhat subjective... :) -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut

Re: [PHP] PHP installation

2007-10-31 Thread Richard Heyes
... Thanks for the help. I've got it installed now. In the end I found that the server came with 5.1.6 installed (:/), which despite not being 5.2.x, is still a jump from the 5.0.x I had before. -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base

[PHP] PHP installation

2007-10-30 Thread Richard Heyes
() { xmlInitParser(); return 0; } Thanks. -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] PHP installation

2007-10-30 Thread Richard Heyes
Per Jessen wrote: Richard Heyes wrote: The following is in config.log: configure:20028: checking whether libxml build works configure:20055: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl -lxml2 -lz -lm 15 /usr/bin/ld: cannot find -lz Looks like you need to install

Re: [PHP] PHP installation

2007-10-30 Thread Richard Heyes
Richard Heyes wrote: Per Jessen wrote: Richard Heyes wrote: The following is in config.log: configure:20028: checking whether libxml build works configure:20055: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl -lxml2 -lz -lm 15 /usr/bin/ld: cannot find -lz Looks

<    2   3   4   5   6   7   8   9   >