php-general Digest 12 Sep 2008 09:39:40 -0000 Issue 5677

2008-09-12 Thread php-general-digest-help
php-general Digest 12 Sep 2008 09:39:40 - Issue 5677 Topics (messages 279924 through 279938): Re: New Server Install 279924 by: Tom Chubb Maps / Distance / GeoCoding [php/mysql] 279925 by: Nathan Rixham 279926 by: Nathan Rixham Re: Readdir() question 279927

Re: [PHP] Re: Interntet Explorer 8 beater 2

2008-09-12 Thread Lester Caine
Jochem Maas wrote: Colin Guthrie schreef: Lester Caine wrote: Jochem - You not had the problem of M$ changing default font sizes in different versions of windows? IT departments have enough problems with INSTALLING an upgrade without asking them to CHANGE the font size as well :) The

Re: [PHP] Mysqli issue

2008-09-12 Thread Chris
Jason Pruim wrote: No political undertones in this one I promise! :) Attempting to setup a prepared statement in php that will update a record in a mysql database using mysqli Here is the relevant code: $stmt = mysqli_stmt_init($link); mysqli_stmt_prepare($stmt, UPDATE purl.schreur

Re: [PHP] ASCII Captcha

2008-09-12 Thread Yeti
Not so good if you're using lynx, or if you're blind, I guess. I often tell my clients the reasons for accessibility and usually i get the answer We don't have any blind customers so we don't care about them. So much for fair play in the web. -- PHP General Mailing List (http://www.php.net/)

[PHP] ldapsearch problems

2008-09-12 Thread Michael Fischer
hi there, i'm having a problem regarding ldapsearch(filters). on the console everything works fine: snip ldapsearch -bdc=xxx,dc=at -Dcn=admin,dc=xxx,dc=at -hxx.xx.xx.xx -p389 -x -W socialSecurityNumber=xx /snip with this is get a valid result, but with but in my php script code $ldap =

[PHP] Re: Why MS Won't Retire Browsers -- was: Interntet Explorer 8 beater 2

2008-09-12 Thread Colin Guthrie
Sancar Saran wrote: Don't expect anything good from M$... Oh I don't expect anything good from them, never have, never will, but that still doesn't change my point that sunset dates would probably be better for them in the long run... looking for a reason up upgrade a subborn user who wont

[PHP] Browser could not get mp3 files from http site

2008-09-12 Thread hce
Hi, I have a php file audio.php to send mp3 file audio.mp3 to browsers, the browser needs following html code to play mp3 file. I thought it should work if I put the the audio.mp3 file in the same localtion with the http://www.myweb.com/audio.php. But the browser could not get the audio.mp3. I

[PHP] Re: Google Maps Distance Between UK Postcodes

2008-09-12 Thread Colin Guthrie
Boyd, Todd M. wrote: -Original Message- From: tedd Considering that my other profession is Geophysicist, I'm kind of up on those sort of things. The Earth is an oblate spheroid and the computation to include the curvature of the earth would be a bit more involved. ---8--- snip But

Re: [PHP] namespaces ... coming to a php5.3 near you.

2008-09-12 Thread Lester Caine
Jochem Maas wrote: Jochem Maas schreef: has anyone here downloaded/compiled 5.3 and played with namespaces? have you encountered any issues/problems? so no-one? really? none of you muppets ever even smelled a namespace? I'd like to hear from you as I've been asked to compile a reference

Re: [PHP] switch case - to require the break statements seems strange to me

2008-09-12 Thread Luke
I wonder if this is a shared trait between C and PHP (since I understand PHP is written in C) that the break; and the default: are placed for good practice in all switch statements since they prevent memory leaks? 2008/9/10 Jochem Maas [EMAIL PROTECTED] tedd schreef: At 6:46 PM -0600 8/31/08,

Re: [PHP] namespaces ... coming to a php5.3 near you.

2008-09-12 Thread metastable
Jochem Maas wrote: Jochem Maas schreef: has anyone here downloaded/compiled 5.3 and played with namespaces? have you encountered any issues/problems? so no-one? really? none of you muppets ever even smelled a namespace? I'd like to hear from you as I've been asked to compile a reference

Re: [PHP] php image and javascript include

2008-09-12 Thread Luke
there's three letters VIM! You can make that do most anything if you trawl the scripts site. . . 2008/9/9 Ashley Sheridan [EMAIL PROTECTED] Kate has an auto text feature, and you can set it to start prompting from typing in as few characters as you wish, although it only prompts for things

Re: Re: [PHP] CMS-Blog system

2008-09-12 Thread Luke
don't forget that the complexity of the PHP is increased muchly with multiple databases... Keep it simple... 2008/9/4 Boyd, Todd M. [EMAIL PROTECTED] -Original Message- From: Martin Zvarík [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2008 5:05 AM To:

Re: [PHP] Readdir() question

2008-09-12 Thread Luke
When I need to do 'filesystem' type things I use MySQL to map all of the files. This offers lot's of versatility in that you could just make a single folder called filesystem and have all of your files in the root of that folder - then use mysql to map virtual folders and structures and such.

[PHP] Re: namespaces ... coming to a php5.3 near you.

2008-09-12 Thread Colin Guthrie
Lester Caine wrote: Jochem Maas wrote: Jochem Maas schreef: has anyone here downloaded/compiled 5.3 and played with namespaces? have you encountered any issues/problems? so no-one? really? none of you muppets ever even smelled a namespace? I'd like to hear from you as I've been asked to

Re: [PHP] Re: Why MS Won't Retire Browsers -- was: Interntet Explorer 8 beater 2

2008-09-12 Thread Luke
I wouldn't say Microsoft are strictly anti-web, anymore. They appear to be changing the model of their next operating system to cater for 'the cloud.' I think they finally see that they missed the Internet, and they need it? 2008/9/12 Colin Guthrie [EMAIL PROTECTED] Sancar Saran wrote:

Re: [PHP] namespaces ... coming to a php5.3 near you.

2008-09-12 Thread Jochem Maas
Lester Caine schreef: Jochem Maas wrote: Jochem Maas schreef: has anyone here downloaded/compiled 5.3 and played with namespaces? have you encountered any issues/problems? so no-one? really? none of you muppets ever even smelled a namespace? I'd like to hear from you as I've been asked to

[PHP] Email - Best practice/advice please

2008-09-12 Thread Tom Chubb
I have generally been using the PHP mail function for sending emails from contact forms on websites, but have recently had problems with a lot of mails being delivered to junk/spam folders. I've tried loads of different headers, etc and almost every contact form on sites I've done is different. I

Re: [PHP] namespaces ... coming to a php5.3 near you.

2008-09-12 Thread Jochem Maas
metastable schreef: Jochem Maas wrote: Jochem Maas schreef: has anyone here downloaded/compiled 5.3 and played with namespaces? have you encountered any issues/problems? so no-one? really? none of you muppets ever even smelled a namespace? I'd like to hear from you as I've been asked to

Re: [PHP] Readdir() question

2008-09-12 Thread Jochem Maas
Luke schreef: When I need to do 'filesystem' type things I use MySQL to map all of the files. This offers lot's of versatility in that you could just make a single folder called filesystem and have all of your files in the root of that folder - then use mysql to map virtual folders and

Re: [PHP] Email - Best practice/advice please

2008-09-12 Thread Stut
On 12 Sep 2008, at 11:55, Tom Chubb wrote: I have generally been using the PHP mail function for sending emails from contact forms on websites, but have recently had problems with a lot of mails being delivered to junk/spam folders. I've tried loads of different headers, etc and almost every

Re: [PHP] Email - Best practice/advice please

2008-09-12 Thread Aschwin Wesselius
Tom Chubb wrote: I have generally been using the PHP mail function for sending emails from contact forms on websites, but have recently had problems with a lot of mails being delivered to junk/spam folders. I've tried loads of different headers, etc and almost every contact form on sites I've

Re: [PHP] Re: Why MS Won't Retire Browsers -- was: Interntet Explorer 8 beater 2

2008-09-12 Thread Lester Caine
Colin Guthrie wrote: Sancar Saran wrote: Don't expect anything good from M$... Oh I don't expect anything good from them, never have, never will, but that still doesn't change my point that sunset dates would probably be better for them in the long run... looking for a reason up upgrade a

Re: [PHP] namespaces ... coming to a php5.3 near you.

2008-09-12 Thread Jochem Maas
Jochem Maas schreef: has anyone here downloaded/compiled 5.3 and played with namespaces? have you encountered any issues/problems? so no-one? really? none of you muppets ever even smelled a namespace? I'd like to hear from you as I've been asked to compile a reference documenting

Re: [PHP] Email - Best practice/advice please

2008-09-12 Thread Tom Chubb
2008/9/12 Aschwin Wesselius [EMAIL PROTECTED] Tom Chubb wrote: I have generally been using the PHP mail function for sending emails from contact forms on websites, but have recently had problems with a lot of mails being delivered to junk/spam folders. I've tried loads of different

Re: [PHP] Email - Best practice/advice please

2008-09-12 Thread Tom Chubb
2008/9/12 Stut [EMAIL PROTECTED] On 12 Sep 2008, at 11:55, Tom Chubb wrote: I have generally been using the PHP mail function for sending emails from contact forms on websites, but have recently had problems with a lot of mails being delivered to junk/spam folders. I've tried loads of

[PHP] Regular Expression differences between 4.4 and 5.2

2008-09-12 Thread Ewen Cumming
Hi everybody, I'm trying to migrate our PHP code base to PHP5. For the most part the transition hs been smooth however I'm really stuck on a regular expression which gives different results in 4.4 and 5.2. I've looked through migration guides but as far as I can see nothing should have changed

Re: [PHP] Regular Expression differences between 4.4 and 5.2

2008-09-12 Thread Jochem Maas
Ewen Cumming schreef: Hi everybody, ... ?php include( 'input.inc' ); $pattern = /!T_([^ ]+)([^]*)(.*?)!T_end\\1|!T_([^ ]+)([^]*)/si; preg_match_all( $pattern, $string, $matches ); echo phpversion(); var_dump($matches); ? Input.inc contains the string that is giving the different results

Re: [PHP] Re: uploading file outside WEB Root

2008-09-12 Thread Luke
Could you use a symbolic link? If on Linux 'ln -s /fpath/foldername'? Not sure how to do this on Windows 2008/9/1 Carlos Medina [EMAIL PROTECTED] Angelo Zanetti schrieb: Hi All, For security purposes I would like to upload a file outside the webroot. I have got this to work on my local

Re: [PHP] Email - Best practice/advice please

2008-09-12 Thread Per Jessen
Tom Chubb wrote: I have generally been using the PHP mail function for sending emails from contact forms on websites, but have recently had problems with a lot of mails being delivered to junk/spam folders. I've tried loads of different headers, etc and almost every contact form on sites

Re: [PHP] Email - Best practice/advice please

2008-09-12 Thread Richard Heyes
I use here-doc plus exec(sendmail). Why? -- Richard Heyes HTML5 Graphing for IE7, FF, Chrome, Opera and Safari: http://www.phpguru.org/RGraph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Regular Expression differences between 4.4 and 5.2

2008-09-12 Thread Ewen Cumming
Hi Jochem, Replacing the 's' modifier with 'm' fixed it this instance but broke other parts on the site (the same result as removing 's'). But the other regex ( $pattern = /!T_([^ ]+)([^]*)(.*?)!T_end\\1|!T_([^ ]+)([^]*)/Ui;) is working perfectly. I will continue to test and see if it throws up

[PHP] Problem with function

2008-09-12 Thread Jason Pruim
So, I am fighting with a problem function... I have used this function on a previous project and it worked just fine, so I'm not sure what changed... The only difference is that on this site, I'm using mod_rewrite to write all non-existent folder requests into a php file to process what

Re: [PHP] Regular Expression differences between 4.4 and 5.2

2008-09-12 Thread Jochem Maas
Jochem Maas schreef: Ewen Cumming schreef: Hi everybody, ... BUT I may have work around for you, try this regexp (replaces s modifer with m modifier): $pattern = /!T_([^ ]+)([^]*)(.*?)!T_end\\1|!T_([^ ]+)([^]*)/mi; the following pattern also seems to do what you want: $pattern =

Re: [PHP] Readdir() question

2008-09-12 Thread Luke
Ok, one folder on your webserver, and put all of the files that you want to include on your website/system in this folder (also uploading into this folder); just in the root of that folder, so say you wouldn't have anymore folders under it. Make a table called 'Files,' containing: ID Name Type

Re: [PHP] Regular Expression differences between 4.4 and 5.2

2008-09-12 Thread Ewen Cumming
Actually bummer - testing on wrong version. The U modifier is causing problems too - only matching the first character instead of the whole string. 2008/9/12 Ewen Cumming [EMAIL PROTECTED] Hi Jochem, Replacing the 's' modifier with 'm' fixed it this instance but broke other parts on the

[PHP] Re: Why MS Won't Retire Browsers -- was: Interntet Explorer 8 beater 2

2008-09-12 Thread Colin Guthrie
Lester Caine wrote: Colin Guthrie wrote: Sancar Saran wrote: Don't expect anything good from M$... Oh I don't expect anything good from them, never have, never will, but that still doesn't change my point that sunset dates would probably be better for them in the long run... looking for a

Re: [PHP] Readdir() question

2008-09-12 Thread Nathan Rixham
Luke wrote: Ok, one folder on your webserver, and put all of the files that you want to include on your website/system in this folder (also uploading into this folder); just in the root of that folder, so say you wouldn't have anymore folders under it. Make a table called 'Files,' containing:

Re: [PHP] Problem with function

2008-09-12 Thread Jochem Maas
Jason Pruim schreef: So, I am fighting with a problem function... I have used this function on a previous project and it worked just fine, so I'm not sure what changed... The only difference is that on this site, I'm using mod_rewrite to write all non-existent folder requests into a php file

[PHP] check if a file is included

2008-09-12 Thread clive
I have a file called interceptor.php, which I would like to make use of in two ways 1. either call it directly from the browser or 2. included from another file I know I could use something like this to see if it was called via a url like http://www.site.com/interceptor.php : if

Re: [PHP] Securing pages sections

2008-09-12 Thread Dan Joseph
Hey Guys, Thanks for the tips, both views make sense. I think my main problem was I as overthinking it. Thanks! -- -Dan Joseph www.canishosting.com - Plans start @ $1.99/month. Build a man a fire, and he will be warm for the rest of the day. Light a man on fire, and will be warm for the

Re: [PHP] Browser could not get mp3 files from http site

2008-09-12 Thread Dan Joseph
On Fri, Sep 12, 2008 at 4:14 AM, hce [EMAIL PROTECTED] wrote: Hi, I have a php file audio.php to send mp3 file audio.mp3 to browsers, the browser needs following html code to play mp3 file. I thought it should work if I put the the audio.mp3 file in the same localtion with the

[PHP] Re: Problem with function

2008-09-12 Thread Nathan Rixham
Jason Pruim wrote: So, I am fighting with a problem function... I have used this function on a previous project and it worked just fine, so I'm not sure what changed... The only difference is that on this site, I'm using mod_rewrite to write all non-existent folder requests into a php file

Re: [PHP] Problem with function

2008-09-12 Thread Jason Pruim
On Sep 12, 2008, at 8:44 AM, Jochem Maas wrote: Jason Pruim schreef: So, I am fighting with a problem function... I have used this function on a previous project and it worked just fine, so I'm not sure what changed... The only difference is that on this site, I'm using mod_rewrite to

Re: [PHP] Email - Best practice/advice please

2008-09-12 Thread Per Jessen
Richard Heyes wrote: I use here-doc plus exec(sendmail). Why? Using heredocs is probably habit, but it's also easy, and I like keeping the email template in the code. I use exec(sendmail) because it allows me to set the Return-Path. For purely internal stuff, I just as often use plain

Re: [PHP] check if a file is included

2008-09-12 Thread Richard Heyes
but I would like to know if there is a neater, cleaner, sparkly way of doing this. The way your doing it is fine. You could wrap it up in a custom function, eg: // True means called directly. function wasThisFileIncludedOrCalledDirectly () { return strstr($__SERVER[REQUEST_URI],

Re: [PHP] check if a file is included

2008-09-12 Thread clive
actually $_SERVER[script_name] is probably better if not being used from a webserver. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: check if a file is included

2008-09-12 Thread Nathan Rixham
clive wrote: I have a file called interceptor.php, which I would like to make use of in two ways 1. either call it directly from the browser or 2. included from another file I know I could use something like this to see if it was called via a url like http://www.site.com/interceptor.php :

Re: [PHP] Email - Best practice/advice please

2008-09-12 Thread Richard Heyes
I use exec(sendmail) because it allows me to set the Return-Path. mail() does too. -- Richard Heyes HTML5 Graphing for IE7, FF, Chrome, Opera and Safari: http://www.phpguru.org/RGraph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Regular Expression differences between 4.4 and 5.2

2008-09-12 Thread Jochem Maas
Ewen Cumming schreef: Actually bummer - testing on wrong version. The U modifier is causing problems too - only matching the first character instead of the whole string. hmm, missed that, that might require adding ?U to relevant sub-assertion ... I'm wondering if your regexp is not 'wrong'

Re: [PHP] Problem with function

2008-09-12 Thread Jochem Maas
Jason Pruim schreef: my guess is you never reach this line. I don't think notify_email() is called, find out what is dying before you get to this line. note you'll get 'echo '10';' before you get 'echo '1';' notify_email($Record, $salesRepID); $stmt = mysqli_stmt_init($link);

Re: [PHP] The Best PHP Editor.

2008-09-12 Thread jmatt
hello Brady Mitchell thank you for your reply. Brady Mitchell-2 wrote: On Sep 10, 2008, at 821PM, jmatt wrote: Hi, I was using NVU to edit PHP but when I upload the index.php file back there will always be a slight error in disorientation. Example using NVU I edited the text just a bit

Re: [PHP] check if a file is included

2008-09-12 Thread Jochem Maas
clive schreef: actually $_SERVER[script_name] is probably better if not being used from a webserver. you didn't mention wanting to use the cmdline. untested code follows: ?php function indirectCall($s) { if (php_sapi_name() == 'cli') { return strstr($s, $argv[0])

Re: [PHP] Re: Why MS Won't Retire Browsers -- was: Interntet Explorer 8 beater 2

2008-09-12 Thread Philip Thompson
On Sep 12, 2008, at 3:13 AM, Colin Guthrie wrote: Sancar Saran wrote: Don't expect anything good from M$... Oh I don't expect anything good from them, never have, never will, [snip!] Ok, let's not forget about the Xbox! ;) ~Philip -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] php image and javascript include

2008-09-12 Thread Børge Holen
On Friday 12 September 2008 12:02:13 you wrote: there's three letters VIM! yes and amiga still kicks ass. The old fashioned way works, ok. But ... after a while, you still do the same old thing the same old way, while everything passes you by. I love vim for reading and editing a file here

Re: [PHP] Email - Best practice/advice please

2008-09-12 Thread Per Jessen
Richard Heyes wrote: I use exec(sendmail) because it allows me to set the Return-Path. mail() does too. In additional-parameters? Yeah, I think I knew that, but for some reason I haven't been using it. I don't think it works in safe-mode or something like that. Or maybe it doesn't

Re: [PHP] Re: Problem with function

2008-09-12 Thread Jason Pruim
On Sep 12, 2008, at 8:53 AM, Nathan Rixham wrote: Jason Pruim wrote: nothing obvious to me.. so debug more! ?PHP function notify_email($Record, $salesRepID) { echo in notify_email . PHP_EOL; require(defaults.php); echo already loaded and required defaults loaded

Re: [PHP] Re: Problem with function

2008-09-12 Thread Jason Pruim
On Sep 12, 2008, at 9:21 AM, Jason Pruim wrote: On Sep 12, 2008, at 8:53 AM, Nathan Rixham wrote: Jason Pruim wrote: nothing obvious to me.. so debug more! ?PHP function notify_email($Record, $salesRepID) { echo in notify_email . PHP_EOL; require(defaults.php);

Re: [PHP] ASCII Captcha

2008-09-12 Thread Nisse Engström
On Wed, 10 Sep 2008 09:28:27 -0400, tedd wrote: At 11:14 AM +0200 9/1/08, Nisse =?utf-8?Q?Engstr=C3=B6m?= wrote: On Fri, 29 Aug 2008 16:11:01 -0400, tedd wrote: http://webbytedd.com/aa/assorted-captcha/ Some of these are really cool. Assuming they are actually working, that is... -snip-

Re: [PHP] Re: Problem with function

2008-09-12 Thread Nathan Rixham
Jason Pruim wrote: On Sep 12, 2008, at 8:53 AM, Nathan Rixham wrote: Jason Pruim wrote: nothing obvious to me.. so debug more! ?PHP function notify_email($Record, $salesRepID) { echo in notify_email . PHP_EOL; require(defaults.php); echo already loaded and required

Re: [PHP] Re: Problem with function

2008-09-12 Thread Nathan Rixham
Nathan Rixham wrote: Jason Pruim wrote: On Sep 12, 2008, at 8:53 AM, Nathan Rixham wrote: Jason Pruim wrote: nothing obvious to me.. so debug more! [snip snip snip] have to say this: error_reporting( E_ALL ); at the top would help; + display_errors on in php.ini and problem is

Re: [PHP] Re: Problem with function

2008-09-12 Thread Jason Pruim
On Sep 12, 2008, at 9:34 AM, Nathan Rixham wrote: Nathan Rixham wrote: Jason Pruim wrote: On Sep 12, 2008, at 8:53 AM, Nathan Rixham wrote: Jason Pruim wrote: nothing obvious to me.. so debug more! [snip snip snip] have to say this: error_reporting( E_ALL ); at the top would help; +

Re: [PHP] Re: Problem with function

2008-09-12 Thread Jochem Maas
Jason Pruim schreef: On Sep 12, 2008, at 9:34 AM, Nathan Rixham wrote: Nathan Rixham wrote: Jason Pruim wrote: On Sep 12, 2008, at 8:53 AM, Nathan Rixham wrote: Jason Pruim wrote: nothing obvious to me.. so debug more! [snip snip snip] have to say this: error_reporting( E_ALL ); at

Re: [PHP] CMS-Blog system

2008-09-12 Thread Jochem Maas
Luke schreef: don't forget that the complexity of the PHP is increased muchly with multiple databases... Keep it simple... did you check his interface ... it's way too late for 'simple' 2008/9/4 Boyd, Todd M. [EMAIL PROTECTED] -Original Message- From: Martin Zvarík [mailto:[EMAIL

Re: [PHP] Re: Problem with function

2008-09-12 Thread Jason Pruim
On Sep 12, 2008, at 9:46 AM, Jochem Maas wrote: Jason Pruim schreef: On Sep 12, 2008, at 9:34 AM, Nathan Rixham wrote: Nathan Rixham wrote: Jason Pruim wrote: On Sep 12, 2008, at 8:53 AM, Nathan Rixham wrote: Jason Pruim wrote: nothing obvious to me.. so debug more! [snip snip snip]

Re: [PHP] Re: Problem with function

2008-09-12 Thread Nathan Rixham
Jochem Maas wrote: Jason Pruim schreef: On Sep 12, 2008, at 9:34 AM, Nathan Rixham wrote: Nathan Rixham wrote: Jason Pruim wrote: On Sep 12, 2008, at 8:53 AM, Nathan Rixham wrote: Jason Pruim wrote: nothing obvious to me.. so debug more! [snip snip snip] have to say this:

[PHP] Re: Email - Best practice/advice please

2008-09-12 Thread Ross McKay
On Fri, 12 Sep 2008 11:55:03 +0100, Tom Chubb wrote: I have generally been using the PHP mail function for sending emails from contact forms on websites, but have recently had problems with a lot of mails being delivered to junk/spam folders. [...] If you don't end up using PHPMailer, make sure

Re: [PHP] switch case - to require the break statements seems strange to me

2008-09-12 Thread Jochem Maas
Luke schreef: I wonder if this is a shared trait between C and PHP (since I understand PHP is written in C) that the break; and the default: are placed for good practice in all switch statements since they prevent memory leaks? default is not required, never heard it was good practice to

Re: [PHP] Re: Email - Best practice/advice please

2008-09-12 Thread Tom Chubb
2008/9/12 Ross McKay [EMAIL PROTECTED] On Fri, 12 Sep 2008 11:55:03 +0100, Tom Chubb wrote: I have generally been using the PHP mail function for sending emails from contact forms on websites, but have recently had problems with a lot of mails being delivered to junk/spam folders. [...] If

RE: [PHP] Re: Why MS Won't Retire Browsers -- was: Interntet Explorer 8 beater 2

2008-09-12 Thread Boyd, Todd M.
-Original Message- From: Sancar Saran [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2008 6:15 PM To: php-general@lists.php.net Subject: Re: [PHP] Re: Why MS Won't Retire Browsers -- was: Interntet Explorer 8 beater 2 Because, M$ earning money from Win GUI. No WinGUI

Re: [PHP] Re: Why MS Won't Retire Browsers -- was: Interntet Explorer 8 beater 2

2008-09-12 Thread Rahul S. Johari
On Sep 12, 2008, at 10:18 AM, Boyd, Todd M. wrote: -Original Message- From: Sancar Saran [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2008 6:15 PM To: php-general@lists.php.net Subject: Re: [PHP] Re: Why MS Won't Retire Browsers -- was: Interntet Explorer 8 beater 2

RE: [PHP] Re: Google Maps Distance Between UK Postcodes

2008-09-12 Thread Boyd, Todd M.
-Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Colin Guthrie Sent: Friday, September 12, 2008 3:15 AM To: php-general@lists.php.net Subject: [PHP] Re: Google Maps Distance Between UK Postcodes Boyd, Todd M. wrote: -Original Message- From: tedd

RE: [PHP] Readdir() question

2008-09-12 Thread Boyd, Todd M.
-Original Message- From: Luke [mailto:[EMAIL PROTECTED] Sent: Friday, September 12, 2008 7:13 AM To: Jochem Maas Cc: [EMAIL PROTECTED]; php-general@lists.php.net Subject: Re: [PHP] Readdir() question Ok, one folder on your webserver, and put all of the files that you want to

RE: [PHP] Re: uploading file outside WEB Root

2008-09-12 Thread Boyd, Todd M.
-Original Message- From: Luke [mailto:[EMAIL PROTECTED] Sent: Friday, September 12, 2008 7:16 AM To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Subject: Re: [PHP] Re: uploading file outside WEB Root Could you use a symbolic link? If on Linux 'ln -s /fpath/foldername'? Not

RE: [PHP] Re: Google Maps Distance Between UK Postcodes

2008-09-12 Thread tedd
At 3:54 PM -0500 9/11/08, Boyd, Todd M. wrote: Considering that my other profession is Geophysicist, I'm kind of up on those sort of things. The Earth is an oblate spheroid and the computation to include the curvature of the earth would be a bit more involved. ---8--- snip But it's also

[PHP] Re: Why MS Won't Retire Browsers -- was: Interntet Explorer 8 beater 2

2008-09-12 Thread Colin Guthrie
Boyd, Todd M. wrote: tirade Okay... here it goes. I'm sick and tired of people talking trash on Windows Vista. It came pre-installed on my laptop (Home Premium... not Business Pro, sadly) and I haven't had any issues with it whatsoever. Some of my WinXP programs don't show up in the start

RE: [PHP] Google Maps Distance Between UK Postcodes [0T]

2008-09-12 Thread Boyd, Todd M.
-Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: Friday, September 12, 2008 9:41 AM To: Boyd, Todd M.; php-general@lists.php.net Subject: RE: [PHP] Re: Google Maps Distance Between UK Postcodes At 3:54 PM -0500 9/11/08, Boyd, Todd M. wrote: Considering that my

RE: [PHP] Re: Why MS Won't Retire Browsers -- was: Interntet Explorer 8 beater 2

2008-09-12 Thread Boyd, Todd M.
-Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Colin Guthrie Sent: Friday, September 12, 2008 9:44 AM To: php-general@lists.php.net Subject: [PHP] Re: Why MS Won't Retire Browsers -- was: Interntet Explorer 8 beater 2 Boyd, Todd M. wrote: tirade Okay...

Re: [PHP] switch case - to require the break statements seems strange to me

2008-09-12 Thread Andrew Ballard
On Fri, Sep 12, 2008 at 9:52 AM, Jochem Maas [EMAIL PROTECTED] wrote: Luke schreef: I wonder if this is a shared trait between C and PHP (since I understand PHP is written in C) that the break; and the default: are placed for good practice in all switch statements since they prevent memory

Re: [PHP] ASCII Captcha

2008-09-12 Thread tedd
At 12:43 AM -0700 9/12/08, Yeti wrote: I often tell my clients the reasons for accessibility and usually i get the answer We don't have any blind customers so we don't care about them. Statements like that demonstrate ignorance more than anything else. If they actually knew the potential the

[PHP] Re: Email - Best practice/advice please

2008-09-12 Thread Al
Tom Chubb wrote: I have generally been using the PHP mail function for sending emails from contact forms on websites, but have recently had problems with a lot of mails being delivered to junk/spam folders. I've tried loads of different headers, etc and almost every contact form on sites I've

Re: [PHP] switch case - to require the break statements seems strange to me

2008-09-12 Thread Eric Gorr
On Sep 12, 2008, at 11:39 AM, Andrew Ballard wrote: On Fri, Sep 12, 2008 at 9:52 AM, Jochem Maas [EMAIL PROTECTED] wrote: Luke schreef: I wonder if this is a shared trait between C and PHP (since I understand PHP is written in C) that the break; and the default: are placed for good

Re: [PHP] namespaces ... coming to a php5.3 near you.

2008-09-12 Thread Robert Cummings
On Fri, 2008-09-12 at 11:39 +0200, Jochem Maas wrote: Jochem Maas schreef: has anyone here downloaded/compiled 5.3 and played with namespaces? have you encountered any issues/problems? so no-one? really? none of you muppets ever even smelled a namespace? I like to use techniques that have

Re: [PHP] switch case - to require the break statements seems strange to me

2008-09-12 Thread Robert Cummings
On Fri, 2008-09-12 at 10:58 +0100, Luke wrote: I wonder if this is a shared trait between C and PHP (since I understand PHP is written in C) that the break; and the default: are placed for good practice in all switch statements since they prevent memory leaks? Prevent memory leaks? WHAT? Even

Re: Re: [PHP] CMS-Blog system

2008-09-12 Thread Robert Cummings
On Fri, 2008-09-12 at 11:07 +0100, Luke wrote: don't forget that the complexity of the PHP is increased muchly with multiple databases... Keep it simple... You must be doing it wrong. Global $db perchance? Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP

Re: [PHP] php image and javascript include

2008-09-12 Thread Robert Cummings
On Fri, 2008-09-12 at 15:11 +0200, Børge Holen wrote: On Friday 12 September 2008 12:02:13 you wrote: there's three letters VIM! yes and amiga still kicks ass. The old fashioned way works, ok. But ... after a while, you still do the same old thing the same old way, while everything

Re: [PHP] Re: uploading file outside WEB Root

2008-09-12 Thread Brady Mitchell
On Sep 12, 2008, at 516AM, Luke wrote: Could you use a symbolic link? If on Linux 'ln -s /fpath/foldername'? Not sure how to do this on Windows Windows 2k and up do support symbolic links, take a look at http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx Brady -- PHP General

Re: [PHP] Re: Google Maps Distance Between UK Postcodes

2008-09-12 Thread tedd
At 8:31 AM -0700 9/11/08, mike wrote: On Thu, Sep 11, 2008 at 8:17 AM, tedd [EMAIL PROTECTED] wrote: Considering that my other profession is Geophysicist, I'm kind of up on those sort of things. The Earth is an oblate spheroid and the computation to include the curvature of the earth would

[PHP] [Fwd: Re: [DOC-BUGS] #46054 [NEW]: comment of addcslashes 'A..z' is wrong]

2008-09-12 Thread Maciek Sokolewicz
Forwarding to php-general. Original Message Subject: Re: [DOC-BUGS] #46054 [NEW]: comment of addcslashes 'A..z' is wrong Date: Fri, 12 Sep 2008 10:51:45 -0400 From: [EMAIL PROTECTED] (Tanveer Bhurani) To: miau dot jp at gmail dot com [EMAIL PROTECTED] Newsgroups: php.doc.bugs

Re: [PHP] check if a file is included

2008-09-12 Thread tedd
At 2:44 PM +0200 9/12/08, clive wrote: I have a file called interceptor.php, which I would like to make use of in two ways 1. either call it directly from the browser or 2. included from another file I know I could use something like this to see if it was called via a url like

Re: [PHP] Email - Best practice/advice please

2008-09-12 Thread Richard Heyes
In additional-parameters? Yeah, I think I knew that, but for some reason I haven't been using it. I don't think it works in safe-mode or something like that. Or maybe it doesn't work in older (4.3,4.4) versions? Dunno, it's been over 4 1/2 years since I used PHP4. -- Richard Heyes HTML5

Re: [PHP] Email - Best practice/advice please

2008-09-12 Thread tedd
At 12:03 PM +0100 9/12/08, Stut wrote: On 12 Sep 2008, at 11:55, Tom Chubb wrote: I have generally been using the PHP mail function for sending emails from contact forms on websites, but have recently had problems with a lot of mails being delivered to junk/spam folders. I've tried loads of

Re: [PHP] check if a file is included

2008-09-12 Thread Eric Butera
On Fri, Sep 12, 2008 at 8:44 AM, clive [EMAIL PROTECTED] wrote: I have a file called interceptor.php, which I would like to make use of in two ways 1. either call it directly from the browser or 2. included from another file I know I could use something like this to see if it was called

Re: [PHP] Problem with function

2008-09-12 Thread Brady Mitchell
On Sep 12, 2008, at 544AM, Jochem Maas wrote: the current error_reporting/display_errors settings. and learn about error_log() and how to 'tail' the error log (fuck knows how you go about that on windows ... then there are reasons I have a Mac ;-)) The ability to tail error logs is one of

Re: [PHP] Email - Best practice/advice please

2008-09-12 Thread tedd
At 2:57 PM +0200 9/12/08, Per Jessen wrote: Richard Heyes wrote: I use here-doc plus exec(sendmail). Why? Using heredocs is probably habit, but it's also easy, and I like keeping the email template in the code. I use exec(sendmail) because it allows me to set the Return-Path. For

Re: [PHP] Maps / Distance / GeoCoding [php/mysql]

2008-09-12 Thread tedd
At 11:51 PM +0100 9/11/08, Nathan Rixham wrote: re: an earlier thread as promised here are some note's on geo-coding using mysql and php (and geoip and distance between points) also worth reading up on wiki about the great circle and associated content! (+openGIS) Won't make sense to all

Re: [PHP] Email - Best practice/advice please

2008-09-12 Thread Stut
On 12 Sep 2008, at 18:00, tedd wrote: At 12:03 PM +0100 9/12/08, Stut wrote: On 12 Sep 2008, at 11:55, Tom Chubb wrote: I have generally been using the PHP mail function for sending emails from contact forms on websites, but have recently had problems with a lot of mails being delivered to

RE: [PHP] Re: Why MS Won't Retire Browsers -- was: Interntet Explorer 8 beater 2

2008-09-12 Thread Robert Cummings
On Fri, 2008-09-12 at 09:18 -0500, Boyd, Todd M. wrote: tirade Okay... here it goes. I'm sick and tired of people talking trash on Windows Vista. It came pre-installed on my laptop (Home Premium... not Business Pro, sadly) and I haven't had any issues with it whatsoever. Some of my WinXP

RE: [PHP] Re: uploading file outside WEB Root

2008-09-12 Thread Robert Cummings
On Fri, 2008-09-12 at 09:38 -0500, Boyd, Todd M. wrote: -Original Message- From: Luke [mailto:[EMAIL PROTECTED] Sent: Friday, September 12, 2008 7:16 AM To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Subject: Re: [PHP] Re: uploading file outside WEB Root Could you use

Re: [PHP] switch case - to require the break statements seems strange to me

2008-09-12 Thread Robert Cummings
On Fri, 2008-09-12 at 11:47 -0400, Eric Gorr wrote: On Sep 12, 2008, at 11:39 AM, Andrew Ballard wrote: On Fri, Sep 12, 2008 at 9:52 AM, Jochem Maas [EMAIL PROTECTED] wrote: Luke schreef: I wonder if this is a shared trait between C and PHP (since I understand PHP is written

  1   2   >