Re: [PHP] check if a file is included

2008-09-12 Thread Eric Butera
On Fri, Sep 12, 2008 at 7:41 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: > Could you not check one of the variables in the $_SERVER array to > determine if the script called by the browser is the current file? > > -- Forwarded message -- > To: clive <[EMAIL PROTECTED]> >> 2. incl

Re: [PHP] Thank you...

2008-09-12 Thread Ashley Sheridan
Send me the doll and the beer... Ash www.ashleysheridan.co.uk --- Begin Message --- On Fri, 2008-09-12 at 14:39 -0400, tedd wrote: > At 2:31 PM -0400 9/12/08, Robert Cummings wrote: > >On Fri, 2008-09-12 at 14:24 -0400, tedd wrote:> > > > >I don't drink beer -- send money. :-) > > > >No, no, no.

Re: [PHP] php image and javascript include

2008-09-12 Thread Ashley Sheridan
I've never been a huge fan of Vi or Vim, but I am a fan of coding in a text editor, not a GUI, I just guess I prefer Kate. I know for certain that one thing that really bugs me about Dreamweaver is the fact that it has a tendency to really nerf up the spacing, and it replaces tabs with spaces more

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

2008-09-12 Thread Ashley Sheridan
Well, I've often found the need to treat several conditions with the same set of statements within a switch: switch($some_number) { case 1: case 2: { // do some shizzle break; } case 3: { // foshizzle that nizzle break; } default:

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

2008-09-12 Thread Ashley Sheridan
As far as I'm aware, the embed tag is not supported in any HTML standard, and as such, it's a little hit and miss. Depending on what you want to achieve, you should look towards the object tag instead: http://joliclic.free.fr/html/object-tag/en/ Ash www.ashleysheridan.co.uk --- Begin Message --

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

2008-09-12 Thread Ashley Sheridan
Wow, anyone could be mistaken for thinking you two were Microshaft employees... Vista sucks because: * it uses far more memory than it should, even with the visual effects turned off * IE7 on Vista is more flaky than IE7 on XP FACT! * The registry hacks to get around the draconian limits on Vis

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

2008-09-12 Thread Ross McKay
Tom Chubb wrote: >I have read somewhere before about creating a message id with the date&time >and a random number. Something like this: '<' . date('U') . '.' . rand() . '.php@' . $_SERVER['SERVER_NAME'] . '>' >Still I think I'm going to be ending up down the phpmailer route! It's the easiest

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

2008-09-12 Thread Brady Mitchell
On Fri, Sep 12, 2008 at 12:47 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: >> Microsoft sucks because they didn't make their symbolic linking >> methodology public knowledge and charge additional fees to obtain the >> Win2k system kit they suggest you use to make the links in the first >> place.

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

2008-09-12 Thread Jochem Maas
Maciek Sokolewicz schreef: Forwarding to php-general. I think /dev/null would have been a better place. wtf is anyone supposed to do with this? (apart from ignore it?) Original Message Subject: Re: [DOC-BUGS] #46054 [NEW]: comment of addcslashes 'A..z' is wrong Date: Fri

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 16:51 -0400, Eric Gorr wrote: > On Sep 12, 2008, at 4:27 PM, Robert Cummings wrote: > > > On Fri, 2008-09-12 at 16:11 -0400, Eric Gorr wrote: > >> On Sep 12, 2008, at 3:44 PM, Robert Cummings wrote: > >>> > >>> I don't see how that in any way makes an argument for or against.

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

2008-09-12 Thread Eric Gorr
On Sep 12, 2008, at 4:27 PM, Robert Cummings wrote: On Fri, 2008-09-12 at 16:11 -0400, Eric Gorr wrote: On Sep 12, 2008, at 3:44 PM, Robert Cummings wrote: I don't see how that in any way makes an argument for or against. Once still must spend client's money wasting time on code that has

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 16:11 -0400, Eric Gorr wrote: > On Sep 12, 2008, at 3:44 PM, Robert Cummings wrote: > > > > I don't see how that in any way makes an argument for or against. Once > > still must spend client's money wasting time on code that has > > questionable merit. Yes, some debugging code

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

2008-09-12 Thread Eric Gorr
On Sep 12, 2008, at 3:44 PM, Robert Cummings wrote: I don't see how that in any way makes an argument for or against. Once still must spend client's money wasting time on code that has questionable merit. Yes, some debugging code is a great boon in any application, but littered everywhere to fu

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

2008-09-12 Thread Robert Cummings
On Fri, 2008-09-12 at 14:39 -0500, Boyd, Todd M. wrote: > > -Original Message- > > From: Robert Cummings [mailto:[EMAIL PROTECTED] > > Sent: Friday, September 12, 2008 1:12 PM > > To: Boyd, Todd M. > > Cc: Luke; php-general@lists.php.net > > Subject: RE: [PHP] Re: uploading file outside WEB

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 15:15 -0400, Eric Gorr wrote: > On Sep 12, 2008, at 2:51 PM, Robert Cummings wrote: > > > On Fri, 2008-09-12 at 14:33 -0400, Eric Gorr wrote: > >> On Sep 12, 2008, at 2:14 PM, Robert Cummings wrote: > >> > >>> On Fri, 2008-09-12 at 11:47 -0400, Eric Gorr wrote: > On Sep

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

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

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

2008-09-12 Thread Boyd, Todd M.
> -Original Message- > From: Robert Cummings [mailto:[EMAIL PROTECTED] > Sent: Friday, September 12, 2008 1:11 PM > To: Boyd, Todd M. > Cc: php-general@lists.php.net > Subject: RE: [PHP] Re: Why MS Won't Retire Browsers -- was: > InterntetExplorer 8 beater 2 ---8<--- snip > > > > I coul

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

2008-09-12 Thread Boyd, Todd M.
> -Original Message- > From: Brady Mitchell [mailto:[EMAIL PROTECTED] > Sent: Friday, September 12, 2008 11:44 AM > To: Luke > Cc: [EMAIL PROTECTED]; php-general@lists.php.net > Subject: Re: [PHP] Re: uploading file outside WEB Root > > > On Sep 12, 2008, at 516AM, Luke wrote: > > > Coul

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

2008-09-12 Thread Eric Gorr
On Sep 12, 2008, at 2:51 PM, Robert Cummings wrote: On Fri, 2008-09-12 at 14:33 -0400, Eric Gorr wrote: On Sep 12, 2008, at 2:14 PM, Robert Cummings wrote: 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 A

Re: [PHP] Thank you...

2008-09-12 Thread Robert Cummings
On Fri, 2008-09-12 at 14:39 -0400, tedd wrote: > At 2:31 PM -0400 9/12/08, Robert Cummings wrote: > >On Fri, 2008-09-12 at 14:24 -0400, tedd wrote:> > > > >I don't drink beer -- send money. :-) > > > >No, no, no... send me Tedd's beer! > > > >Cheers, > >Rob. > > No, no, no send me both our monies

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 14:33 -0400, Eric Gorr wrote: > On Sep 12, 2008, at 2:14 PM, Robert Cummings wrote: > > > 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]> >

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

2008-09-12 Thread tedd
At 6:47 PM +0100 9/12/08, Stut wrote: Chain saws make excellent playthings for 4 year olds*. -Stut Believe it or not, but when I was first introduced to my grand father, he gave me a baby rattlesnake to play with. My mother was horrified when she found out some time later and took it away -

Re: [PHP] Thank you...

2008-09-12 Thread tedd
At 2:31 PM -0400 9/12/08, Robert Cummings wrote: On Fri, 2008-09-12 at 14:24 -0400, tedd wrote:> I don't drink beer -- send money. :-) No, no, no... send me Tedd's beer! Cheers, Rob. No, no, no send me both our monies! Beside, Rob will just spill the beer on his blow-up doll anyway. Cheer

Re: [PHP] Thank you...

2008-09-12 Thread tedd
At 3:27 PM +0200 9/11/08, Aschwin Wesselius wrote: I'm not an American (nor I ever will be), but GW declared the War himself, so he started it. There's no defense if you start a war and start attacking another country on behalf of it's citizens. Our knowledge and opinions of such events should

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

2008-09-12 Thread Eric Gorr
On Sep 12, 2008, at 2:14 PM, Robert Cummings wrote: 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 an

Re: [PHP] Thank you...

2008-09-12 Thread Robert Cummings
On Fri, 2008-09-12 at 14:24 -0400, tedd wrote: > At 7:08 AM -0400 9/11/08, Jason Pruim wrote: > >Hey everyone, > > > >Okay, so the first time I typed this out it got rejected for being > >off topic... so here is my attempt to make it on topic > > > > > > >$day="Sept 11 2008"; > >While($day=dat

Re: [PHP] Thank you...

2008-09-12 Thread tedd
At 7:08 AM -0400 9/11/08, Jason Pruim wrote: Hey everyone, Okay, so the first time I typed this out it got rejected for being off topic... so here is my attempt to make it on topic Sorry for the off topic post... But I just wanted to say that if there is anyone on this list that either w

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

2008-09-12 Thread tedd
At 10:58 AM +0100 9/12/08, 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? First, the evolution of computer languag

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 > >>> underst

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 > > >

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: > > > 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 pro

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: > > > 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 pro

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] 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 unl

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 purely

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 t

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 c

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 diff

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

2008-09-12 Thread Richard Heyes
> In ? 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 Graphing for IE7,

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 http://www.sit

[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.bu

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

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 Ma

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 every

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] 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? Ev

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 tha

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

[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 d

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

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 prev

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: > > > > > >

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 tha

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

2008-09-12 Thread Colin Guthrie
Boyd, Todd M. wrote: 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 menu when

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 als

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'?

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 w

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- > >> Fro

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 Because,

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

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. [

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 always

[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 sur

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: error_rep

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] 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 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] 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 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 probably

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! Okay, when I had that in the notify_email.php file it looked like it all loaded just fine... the echo's were displayed. When I put that in my process.php file

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.

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! Okay, when I had that in the notify_email.php file it looked like it all loaded just fine... the echo's were displayed. When I

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! Okay, when I had that in the notify_email.php file it looked like it all loaded just fine... the echo's were displayed. When I put that in my process.php file I got this output:

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 ? 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

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] 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 uns

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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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 j

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] 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' (b

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

[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] 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

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"], 'interc

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 m

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 wri

[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 to

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 http:/

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 res

[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 (strstr('in

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

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:

[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 r

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

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] 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] 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 = "/ ]+)([^>]*)>(.*?)| ]+)([^>]*)>/Ui";) is working perfectly. I will continue to test and see if it throws up any other probl

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

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 t

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 = "/ ]+)([^>]*)>(.*?)| ]+)([^>]*)>/mi"; the following pattern also seems to do what you want: $pattern = "/ ]+)([^>]*)>(.*

  1   2   >