Re: [PHP] Why PHP won

2009-02-23 Thread Per Jessen
Michael A. Peters wrote: [anip] > and you can use DOMDocument to completely > construct the page before sending it to the browser - allowing you to > translate xhtml to html for browsers that don't properly support > xhtml+xml. I suspect you meant "translate xml to html"? I publish everything in

Re: [PHP] Why PHP won

2009-02-23 Thread Michael A. Peters
Paul M Foster wrote: On Mon, Feb 23, 2009 at 01:39:51PM -0800, Daevid Vincent wrote: http://startuplessonslearned.blogspot.com/2009/01/why-php-won.html I *like* the way this guy thinks. Paul It was a decent page. Point #2 though - you can use mod_rewrite to do wonders with respect to ur

Re: [PHP] Why PHP won

2009-02-23 Thread Paul M Foster
On Mon, Feb 23, 2009 at 01:39:51PM -0800, Daevid Vincent wrote: > http://startuplessonslearned.blogspot.com/2009/01/why-php-won.html > I *like* the way this guy thinks. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

Re: [PHP] Why is this secure?

2009-02-17 Thread Ashley Sheridan
On Mon, 2009-02-16 at 20:23 -0500, Sean DeNigris wrote: > lol, neither. It was from a site I had coded. I read an article > about session fixation and it seemed vulnerable based on what I read, > but when I tested it, it didn't seem to be and I wasn't sure why. > What made you think that? >

Re: [PHP] Why is this secure?

2009-02-16 Thread Sean DeNigris
lol, neither. It was from a site I had coded. I read an article about session fixation and it seemed vulnerable based on what I read, but when I tested it, it didn't seem to be and I wasn't sure why. What made you think that? - Sean On Feb 16, 2009, at 8:16 PM, Ashley Sheridan wrote: On

Re: [PHP] Why is this secure?

2009-02-16 Thread Ashley Sheridan
On Mon, 2009-02-16 at 13:49 -0500, Sean DeNigris wrote: > Hi all! The following code seems like it should be open to session > fixation attacks, but is not. Why?! > > This is the beginning of the private page... > session_start(); > if (!isset($_SESSION['user'])) > { > header("Location:

Re: [PHP] why does a html mail send as text ?

2009-02-05 Thread Richard Heyes
Hi, > The From header shouldn't have " in at all, not even escaped as you've > done. It should be a valid email address only, and I'm not entirely sure > that " in email addresses are allowed in most email systems/clients, so > it will cause problems. Sure it can. It denotes a quoted string. Like

Re: [PHP] why does a html mail send as text ?

2009-02-04 Thread Ashley Sheridan
On Wed, 2009-02-04 at 18:43 +0200, Bulend Kolay wrote: > Thanks to Bastien > I think, I wrote wrong the expression > I have entered the string again as below > $headers .= "From: \"Site Admin\" \n"; > > the mail comes as html and also server name at from part doesn't appear. > > > > > > > Ok

Re: [PHP] why does a html mail send as text ?

2009-02-04 Thread Bulend Kolay
Thanks to Bastien I think, I wrote wrong the expression I have entered the string again as below $headers .= "From: \"Site Admin\" \n"; the mail comes as html and also server name at from part doesn't appear. Ok it works. it comes as html, But it comes with servername at From part. That'

Re: [PHP] why does a html mail send as text ?

2009-02-04 Thread Bulend Kolay
Ok it works. it comes as html, But it comes with servername at From part. That's to say, I get the mail no-re...@sitename.com@full.servername.com How can I conceal the servername at the From part ? Thanks 2009/2/4 Bulend Kolay I attached my code Thanks Show your code, but it sou

Re: [PHP] why does a html mail send as text ?

2009-02-04 Thread Bastien Koert
2009/2/4 Bulend Kolay > I attached my code > Thanks > > > > > Show your code, but it sounds like maybe the HTML flag is not set. >> Consider using a class like phpmailer or the mime mail class from >> phpclasses.org >> >> Bastien >> >> Sent from my iPod >> >> On Feb 4, 2009, at 6:28, "Bulend Ko

Re: [PHP] why does a html mail send as text ?

2009-02-04 Thread Bulend Kolay
I attached my code Thanks Show your code, but it sounds like maybe the HTML flag is not set. Consider using a class like phpmailer or the mime mail class from phpclasses.org Bastien Sent from my iPod On Feb 4, 2009, at 6:28, "Bulend Kolay" wrote: I use php-5.2.6 and apache2.2.x on

Re: [PHP] why does a html mail send as text ?

2009-02-04 Thread Phpster
Show your code, but it sounds like maybe the HTML flag is not set. Consider using a class like phpmailer or the mime mail class from phpclasses.org Bastien Sent from my iPod On Feb 4, 2009, at 6:28, "Bulend Kolay" wrote: I use php-5.2.6 and apache2.2.x on opensuse11 I have a file called

Re: [PHP] why does a html mail send as text ?

2009-02-04 Thread Stuart
2009/2/4 Bulend Kolay : > I use php-5.2.6 and apache2.2.x on opensuse11 > > I have a file called mailsend.php to send a mail of html format. > the server sends the mail form of html format. But I get it as text instead > of html. > default_mimetype is set as text/html in php.ini file. > > How can I

Re: [PHP] why this code needs mysql.sock instead of mysqld.sock

2008-12-02 Thread Stut
On 2 Dec 2008, at 20:15, ann kok wrote: The location of the socket is compiled into the mysql lib. I believe it can be changed from php.ini - check the manual for details. If not then your easiest option is to create a symlink, or alternatively recompile the extension. -Stut -- http:/

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

2008-09-11 Thread Wolf
Micah Gersten <[EMAIL PROTECTED]> wrote: > The problem is that if you're running on older hardware, IE7 might be > too CPU intensive to run correctly. That's why MS won't set Sunset > Dates for an old browser. They instead set the Sunset Dates for the OS > and that's how they make things ou

Re: [PHP] Why PHP4?

2008-08-08 Thread Per Jessen
Robert Cummings wrote: > > I'm calling shenanigans. It was a breeze to setup windows 3.11 WFWG in > VMWare. There's a VM for almost every old system these days. Very true, but not every one is a breeze. I've been trying to get to play "Master Of Magic" on DOS for quite some time. On OS2 it _wa

Re: [PHP] Why PHP4?

2008-08-08 Thread Per Jessen
Luke wrote: > A friend works in a place where they use pascal as a database > interface! Nothing wrong with that - Pascal is a decent language. I know places that still use APL2 - you need a special keyboard for that. And you'll probably have to go and look up what it is :-) http://en.wikipedi

Re: [PHP] Why PHP4?

2008-08-08 Thread Luke
A friend works in a place where they use pascal as a database interface! Luke Slater Lead Developer NuVoo On 8 Aug 2008, at 16:25, V S Rawat <[EMAIL PROTECTED]> wrote: On 8/8/2008 3:59 AM India Time, _Micah Gersten_ wrote: You can't steal it, but you can't do anything with it either, so wha

Re: [PHP] Why PHP4?

2008-08-08 Thread V S Rawat
On 8/8/2008 3:59 AM India Time, _Micah Gersten_ wrote: You can't steal it, but you can't do anything with it either, so what's the point of having it? They are getting it printed and processing the printed hard copy further. That's all. They even have full fledged working programs (say, in

Re: [PHP] Why PHP4?

2008-08-07 Thread Robert Cummings
On Thu, 2008-08-07 at 17:29 -0500, Micah Gersten wrote: > You can't steal it, but you can't do anything with it either, so what's > the point of having it? > > > V S Rawat wrote: > > > > I was surprised to see some very busy and well to do Chartered > > Accountants, Company Secretaries still usin

Re: [PHP] Why PHP4?

2008-08-07 Thread Micah Gersten
You can't steal it, but you can't do anything with it either, so what's the point of having it? Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com V S Rawat wrote: > > I was surprised to see some very busy and well to do Chartered > Accountants, Company Secretar

Re: [PHP] Why PHP4?

2008-08-07 Thread V S Rawat
On 8/7/2008 7:42 PM India Time, _Judson Vaughn_ wrote: Kudos to Richard. If its fixed, don't break it. Jud. == Per Jessen wrote: Richard Heyes wrote: I'm interested - why are people still using PHP4? It's been over 4 years (I think) - plenty of time to upgrade to five. Migrat

Re: [PHP] Why PHP4?

2008-08-07 Thread Judson Vaughn
Kudos to Richard. If its fixed, don't break it. Jud. == Per Jessen wrote: Richard Heyes wrote: I'm interested - why are people still using PHP4? It's been over 4 years (I think) - plenty of time to upgrade to five. Migration issues for instance - we have quite a bit of code th

Re: [PHP] Why PHP4?

2008-08-05 Thread Jason
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 n3or wrote: > Compatibility to older Software of the hosters and sloth of the developers > > Richard Heyes schrieb: >> I'm interested - why are people still using PHP4? It's been over 4 >> years (I think) - plenty of time to upgrade to five. Don't lu

Re: [PHP] Why PHP4?

2008-07-30 Thread Chris
Per Jessen wrote: > Lester Caine wrote: > >> Some ISP's are still only supporting rather ancient versions of PHP4. >> They should simply be warned of the security risks. Some ISP's have a >> PHP5 offering, but again an older version simply because it causes >> less problems when converting from PH

Re: [PHP] Why PHP4?

2008-07-30 Thread Kevin Waterson
This one time, at band camp, "Richard Heyes" <[EMAIL PROTECTED]> wrote: > I'm interested - why are people still using PHP4? It's been over 4 > years (I think) - plenty of time to upgrade to five. I asked that question and was called a troll... Kevin -- PHP General Mailing List (http://www.php.

Re: [PHP] Why PHP4?

2008-07-30 Thread Per Jessen
Jason Pruim wrote: > > On Jul 30, 2008, at 10:50 AM, Micah Gersten wrote: > >> Sometimes speed improvements require removing things. If you end up >> backwards supporting everything you end up with a big monster engine >> that is incredibly slow. > > > Just ask Microsoft about that ;) Better

Re: [PHP] Why PHP4?

2008-07-30 Thread Jason Pruim
On Jul 30, 2008, at 10:50 AM, Micah Gersten wrote: Sometimes speed improvements require removing things. If you end up backwards supporting everything you end up with a big monster engine that is incredibly slow. Just ask Microsoft about that ;) -- Jason Pruim Raoset Inc. Technology Mana

Re: [PHP] Why PHP4?

2008-07-30 Thread Jim Lucas
Per Jessen wrote: Richard Heyes wrote: I agree but not everyone think in the sameway. I have seen several big websites that got hit because they haven't used super globals in the code and their hosting provided would just change the PHP.ini setting and nothing would work. Well if it's a "big"

Re: [PHP] Why PHP4?

2008-07-30 Thread Sancar Saran
Because, People believes Do not fix until broke Motto. Testing new online application may painfull. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why PHP4?

2008-07-30 Thread Micah Gersten
Sometimes speed improvements require removing things. If you end up backwards supporting everything you end up with a big monster engine that is incredibly slow. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Hélio Rocha wrote: > Brainfuck rox! LOL :) > > S

Re: [PHP] Why PHP4?

2008-07-30 Thread Micah Gersten
Sometimes deprecation is necessary is a language feature is created out of necessity but is superseded by a superior language form. A great example is the HTML FONT tag. Font tags slow down downloads and renderings, and were deprecated in favor of CSS style sheets which offer much more control and

Re: [PHP] Why PHP4?

2008-07-30 Thread Lester Caine
Per Jessen wrote: Lester Caine wrote: Some ISP's are still only supporting rather ancient versions of PHP4. They should simply be warned of the security risks. Some ISP's have a PHP5 offering, but again an older version simply because it causes less problems when converting from PHP4. The pr

Re: [PHP] Why PHP4?

2008-07-30 Thread Per Jessen
Lester Caine wrote: > Some ISP's are still only supporting rather ancient versions of PHP4. > They should simply be warned of the security risks. Some ISP's have a > PHP5 offering, but again an older version simply because it causes > less problems when converting from PHP4. The problem for an I

Re: [PHP] Why PHP4?

2008-07-30 Thread Per Jessen
Richard Heyes wrote: >> Umm, I beg to differ. A developer should not need to worry about a >> possible/future upgrade of the runtime platform. I certainly don't >> worry about the next release of gcc or glibc when I write C. > > Minor point releases certainly, but not major ones. They're major

Re: [PHP] Why PHP4?

2008-07-30 Thread Lester Caine
Per Jessen wrote: Richard Heyes wrote: When U write code, U must not be worried 'bout the next upgrade of your server! Of course you should. Writing code with every eventuality in mind is simply ludicrous. Umm, I beg to differ. A developer should not need to worry about a possible/future u

Re: [PHP] Why PHP4?

2008-07-30 Thread Richard Heyes
> Umm, I beg to differ. A developer should not need to worry about a > possible/future upgrade of the runtime platform. I certainly don't > worry about the next release of gcc or glibc when I write C. Minor point releases certainly, but not major ones. They're major upgrades for a reason - thing

Re: [PHP] Why PHP4?

2008-07-30 Thread Per Jessen
Richard Heyes wrote: > >> When U write code, U must not be worried 'bout the next upgrade of >> your server! > > Of course you should. Writing code with every eventuality in mind is > simply ludicrous. Umm, I beg to differ. A developer should not need to worry about a possible/future upgrade

Re: [PHP] Why PHP4?

2008-07-30 Thread Per Jessen
Hélio Rocha wrote: > methods and worst, some hosters didn't know how to virtualize a > f1ck1n' server with Apache+PHP5. Despite their many inabilities, I doubt if any hosting service would have a problem with that. If you're trying to figure out why so many haven't changed, there's one question

Re: [PHP] Why PHP4?

2008-07-30 Thread Hélio Rocha
Brainfuck rox! LOL :) Sure you must see the changelog and other things but take a look: I can do more and better things with the next generation of the language in which i wrote my app, but i don't think that it's fair that my app doens't compile (if it was a compiled language) or stops executing

Re: [PHP] Why PHP4?

2008-07-30 Thread Richard Heyes
> Sorry to disagree, That's nothing to apologise for. > But I think that with PHP4 a lot of people start thinking that they could be > programmers (maybe they can, developers it's another story). When php5 came > they didn't know how do deal with the deprecated methods and worst, some > hosters d

Re: [PHP] Why PHP4?

2008-07-30 Thread Thijs Lensselink
Quoting Hélio Rocha <[EMAIL PROTECTED]>: Sorry to disagree, But I think that with PHP4 a lot of people start thinking that they could be programmers (maybe they can, developers it's another story). When php5 came they didn't know how do deal with the deprecated methods and worst, some hosters d

Re: [PHP] Why PHP4?

2008-07-30 Thread Hélio Rocha
Sorry to disagree, But I think that with PHP4 a lot of people start thinking that they could be programmers (maybe they can, developers it's another story). When php5 came they didn't know how do deal with the deprecated methods and worst, some hosters didn't know how to virtualize a f1ck1n' serve

Re: [PHP] Why PHP4?

2008-07-30 Thread Richard Heyes
> The technical abilities and awareness is often inversely proportional to > the size of the hoster. Lol. -- Richard Heyes http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why PHP4?

2008-07-30 Thread Per Jessen
Richard Heyes wrote: >> I agree but not everyone think in the sameway. I have seen several >> big websites that got hit because they haven't used super globals in >> the code and their hosting provided would just change the PHP.ini >> setting and nothing would work. > > Well if it's a "big" websi

Re: [PHP] Why PHP4?

2008-07-30 Thread Richard Heyes
> I agree but not everyone think in the sameway. I have seen several big > websites that got hit because they haven't used super globals in the code > and their hosting provided would just change the PHP.ini setting and nothing > would work. Well if it's a "big" website then why use a hoster that

Re: [PHP] Why PHP4?

2008-07-29 Thread VamVan
I agree but not everyone think in the sameway. I have seen several big websites that got hit because they haven't used super globals in the code and their hosting provided would just change the PHP.ini setting and nothing would work. GET, POST , SESSION, REQUEST everything was all dealt as just va

Re: [PHP] Why PHP4?

2008-07-29 Thread mike
I started using superglobals since 4.x; not even thinking about it from a security angle per se, but because it just makes sense to know the source of where your input data is coming from. I guess technically security is a byproduct of that thinking too. On Jul 29, 2008, at 7:31 PM, VamVa

Re: [PHP] Why PHP4?

2008-07-29 Thread VamVan
Its because PHP got really famous with version 4.0 and many people actually converted their CGI or other websites in to PHP 4 websites because it was easy and cheap. But 5.0 brought too many changes like serious OOPS and register global concepts for security, which is useful but made transition dif

Re: [PHP] Why PHP4?

2008-07-28 Thread Richard Heyes
> actually, a lot of stuff is finally saying "php5 only" now ... Just in time for PHP6... :-) -- Richard Heyes http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why PHP4?

2008-07-28 Thread mike
On 7/28/08, n3or <[EMAIL PROTECTED]> wrote: > Compatibility to older Software of the hosters and sloth of the developers i think this is a cop-out, any halfass open source package should be compatible with php5 now. i've been running php5 since it came out and everything i have tried never has a

Re: [PHP] Why PHP4?

2008-07-28 Thread Per Jessen
Richard Heyes wrote: >> Finally - why migrate? What's the rush? Lots of people are still >> running back-level software > > That I can understand. I'm still running Apache 1.3.33 (I think) along > with PHP 5.0.4. Right, you've answered your own question. You're still on Apache 1.3.33 because y

Re: [PHP] Why PHP4?

2008-07-28 Thread Richard Heyes
> Finally - why migrate? What's the rush? Lots of people are still > running back-level software That I can understand. I'm still running Apache 1.3.33 (I think) along with PHP 5.0.4. -- Richard Heyes http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vis

Re: [PHP] Why PHP4?

2008-07-28 Thread Aschwin Wesselius
n3or wrote: Compatibility to older Software of the hosters and sloth of the developers Richard Heyes schrieb: I'm interested - why are people still using PHP4? It's been over 4 years (I think) - plenty of time to upgrade to five. I think because retro is hot these daysor wasor will b

Re: [PHP] Why PHP4?

2008-07-28 Thread Richard Heyes
> Why is COBOL still in use? :) What is COBOL? :-) -- Richard Heyes http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why PHP4?

2008-07-28 Thread Eric Butera
On Mon, Jul 28, 2008 at 8:12 AM, Richard Heyes <[EMAIL PROTECTED]> wrote: > I'm interested - why are people still using PHP4? It's been over 4 > years (I think) - plenty of time to upgrade to five. > > -- > Richard Heyes > http://www.phpguru.org Why is COBOL still in use? :) -- PHP General Maili

Re: [PHP] Why PHP4?

2008-07-28 Thread Per Jessen
Richard Heyes wrote: > I'm interested - why are people still using PHP4? It's been over 4 > years (I think) - plenty of time to upgrade to five. Migration issues for instance - we have quite a bit of code that uses sablotron - in PHP5 that's been changed to libxslt, which requires extensive code-

Re: [PHP] Why PHP4?

2008-07-28 Thread n3or
Compatibility to older Software of the hosters and sloth of the developers Richard Heyes schrieb: I'm interested - why are people still using PHP4? It's been over 4 years (I think) - plenty of time to upgrade to five. -- Viele Grüße Dominik Strauß - www.n3or.de Webentwicklung, PHP und Linux M

Re: [PHP] why are passwords stored encrypted in databases even when the data they protect is stored in the same database?

2008-06-13 Thread Per Jessen
Dietrich Bollmann wrote: > As far as I remember, in all books I read about PHP and SQL, the > password was stored in an encrypted form, even when all the data which > should be protected by the password was stored in the same database. > > Can anybody tell me what is the motivation behind this ap

Re: [PHP] Why doesn't working with array's ever stick in my thick head?

2008-05-13 Thread Jason Pruim
Hi Everyone, I am taking another stab at this problem, complete with code and an example... Here is the issue: I need to be able to display pounds and ounces of a given number of pieces, the code I have does this just fine for a single route... But what I can't seem to get through my hea

Re: [PHP] Why doesn't working with array's ever stick in my thick head?

2008-05-09 Thread Roberto Mansfield
Jason Pruim wrote: >> Why do you want tenth's of pounds? Just divide pounds by 16 and you'll >> get ounces. > > It's actually for a weight calculator that we use for some of our > mailings. when you take .226 and multiply that by 464 you get 104.864 > ounces. > > I need to be able to display that

Re: [PHP] Why doesn't working with array's ever stick in my thickhead?

2008-05-09 Thread Jason Pruim
On May 9, 2008, at 4:23 PM, Roberto Mansfield wrote: Roberto Mansfield wrote: (I'm assuming .226 is the cost per ounce and 464 is the total number of ounces) It sure is Friday. This assumption doesn't make any sense! Yeah... and my work day is almost done! SO Happy Friday to you all! B

Re: [PHP] Why doesn't working with array's ever stick in my thickhead?

2008-05-09 Thread Roberto Mansfield
Roberto Mansfield wrote: > (I'm assuming .226 is the cost per ounce and 464 is the total number of > ounces) It sure is Friday. This assumption doesn't make any sense! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why doesn't working with array's ever stick in my thick head?

2008-05-09 Thread tedd
At 1:29 PM -0400 5/9/08, Jason Pruim wrote: Hey tedd On May 9, 2008, at 1:21 PM, tedd wrote: At 12:56 PM -0400 5/9/08, Jason Pruim wrote: Hi Everyone, SO it's friday, I'm tired, and I can't seem to think straight... I am attempting to do some very basic math with some arrays... Here's the

Re: [PHP] Why doesn't working with array's ever stick in my thick head?

2008-05-09 Thread Jason Pruim
Hey tedd On May 9, 2008, at 1:21 PM, tedd wrote: At 12:56 PM -0400 5/9/08, Jason Pruim wrote: Hi Everyone, SO it's friday, I'm tired, and I can't seem to think straight... I am attempting to do some very basic math with some arrays... Here's the pseudo code that I'm working with: Numbe

Re: [PHP] Why doesn't working with array's ever stick in my thick head?

2008-05-09 Thread Jason Pruim
On May 9, 2008, at 1:05 PM, Dan Joseph wrote: On Fri, May 9, 2008 at 12:56 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: Hi Everyone, SO it's friday, I'm tired, and I can't seem to think straight... I am attempting to do some very basic math with some arrays... Here's the pseudo code that

Re: [PHP] Why doesn't working with array's ever stick in my thick head?

2008-05-09 Thread tedd
At 12:56 PM -0400 5/9/08, Jason Pruim wrote: Hi Everyone, SO it's friday, I'm tired, and I can't seem to think straight... I am attempting to do some very basic math with some arrays... Here's the pseudo code that I'm working with: NumberOfPieces * PieceWeight = TotalWeight explode total we

Re: [PHP] Why doesn't working with array's ever stick in my thick head?

2008-05-09 Thread Dan Joseph
On Fri, May 9, 2008 at 12:56 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: > Hi Everyone, > > SO it's friday, I'm tired, and I can't seem to think straight... I am > attempting to do some very basic math with some arrays... Here's the pseudo > code that I'm working with: > > NumberOfPieces * PieceWei

Re: [PHP] Why my mails are not received by Hotmail users?

2008-04-04 Thread Wolf
thomas Armstrong <[EMAIL PROTECTED]> wrote: > Hi. > > I created this script to send emails: > --- > $mailFromEmail = "[EMAIL PROTECTED]"; > $mailFromName = "MYDOMAIN"; > $mailTo = "[EMAIL PROTECTED]"; > > $mailHeaders = > "From: $mailFromName <$mailFromEmail>\n" > . "Content

Re: [PHP] Why my mails are not received by Hotmail users?

2008-04-04 Thread Ryan Yagatich
thomas Armstrong wrote: > Hi. > > I created this script to send emails: > --- > $mailFromEmail = "[EMAIL PROTECTED]"; > $mailFromName = "MYDOMAIN"; > $mailTo = "[EMAIL PROTECTED]"; > > $mailHeaders = > "From: $mailFromName <$mailFromEmail>\n" > . "Content-Type: text/plain; " > . "ch

Re: [PHP] why won't my array work?

2008-03-29 Thread Zoltán Németh
2008. 03. 28, péntek keltezéssel 12.28-kor Jason Pruim ezt írta: > Hi everyone :) Happy friday to all of you! > > Here's my issues, I am attempting to echo the results of mysqli query > out to my script just so I can make sure it's working right, what I'm > hoping to do in the long run is comp

Re: [PHP] why won't my array work?

2008-03-28 Thread Daniel Brown
On Fri, Mar 28, 2008 at 12:28 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: [snip!] > > $oldpasswordquery = "SELECT loginPassword, Record FROM current WHERE > loginPassword='{$oldPassHash}' AND Record='{$Record}'"; > $chpwold[] = mysqli_query($chpwpostlink, $oldpasswordquery) or > die("Sorry read

Re: [PHP] why won't my array work?

2008-03-28 Thread Eric Butera
On Fri, Mar 28, 2008 at 12:58 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: > > > On Mar 28, 2008, at 12:40 PM, Eric Butera wrote: > > On Fri, Mar 28, 2008 at 12:28 PM, Jason Pruim <[EMAIL PROTECTED]> > > wrote: > >> $chpwold[] = mysqli_query($chpwpostlink, $oldpasswordquery) or > >> die("Sorry r

Re: [PHP] why won't my array work?

2008-03-28 Thread Jason Pruim
On Mar 28, 2008, at 12:40 PM, Eric Butera wrote: On Fri, Mar 28, 2008 at 12:28 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: $chpwold[] = mysqli_query($chpwpostlink, $oldpasswordquery) or die("Sorry read failed: ". mysqli_error($chpwpostlink)); $chpwresult = $chpwold[0]; Why would you pump that

Re: [PHP] why won't my array work?

2008-03-28 Thread Eric Butera
On Fri, Mar 28, 2008 at 12:28 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: > $chpwold[] = mysqli_query($chpwpostlink, $oldpasswordquery) or > die("Sorry read failed: ". mysqli_error($chpwpostlink)); > $chpwresult = $chpwold[0]; Why would you pump that into an array instead of just calling it resu

Re: [PHP] Why won't this query work?

2008-03-25 Thread Zoltán Németh
2008. 03. 24, hétfő keltezéssel 14.40-kor Daniel Brown ezt írta: > On Mon, Mar 24, 2008 at 2:29 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: > > > > It's already been escaped, $business is pulled out of the database > > after they log in. :) > > I don't care, Prune. > > (I still get a kic

Re: [PHP] Why won't this query work?

2008-03-24 Thread Eric Butera
On Mon, Mar 24, 2008 at 2:40 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Mon, Mar 24, 2008 at 2:29 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: > > > > It's already been escaped, $business is pulled out of the database > > after they log in. :) > > I don't care, Prune. > > (I still

Re: [PHP] Why won't this query work?

2008-03-24 Thread Daniel Brown
On Mon, Mar 24, 2008 at 2:29 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: > > It's already been escaped, $business is pulled out of the database > after they log in. :) I don't care, Prune. (I still get a kick out of knowing that. Who was it, Jochem or Zoltan who said that? ;-P) NE

Re: [PHP] Why won't this query work?

2008-03-24 Thread Jason Pruim
On Mar 24, 2008, at 2:23 PM, Daniel Brown wrote: On Mon, Mar 24, 2008 at 1:47 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: Hi Everyone, Attempting to get this query: "SELECT customerName, loginName, email, adminLevel FROM current WHERE customerBusiness=$business ORDER BY adminLevel" to work. S

Re: [PHP] Why won't this query work?

2008-03-24 Thread Daniel Brown
On Mon, Mar 24, 2008 at 1:47 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: > Hi Everyone, > > Attempting to get this query: > "SELECT customerName, loginName, email, adminLevel FROM current WHERE > customerBusiness=$business ORDER BY adminLevel" > > to work. > So far it doesn't like me... It pops

Re: [PHP] Why won't this query work?

2008-03-24 Thread Jason Pruim
Okay... so as happens to me more times then I care to admit... as soon as I sent it I simply added: .WHERE customerBusiness='$business'. and it works just fine... Sorry for the noise! On Mar 24, 2008, at 1:47 PM, Jason Pruim wrote: Hi Everyone, Attempting to get this query: "SELE

Re: [PHP] why use {} around vraiable?

2008-03-20 Thread Lamp Lists
- Original Message From: Nathan Nobbe <[EMAIL PROTECTED]> To: Lamp Lists <[EMAIL PROTECTED]> Cc: php-general@lists.php.net Sent: Thursday, March 20, 2008 11:35:42 AM Subject: Re: [PHP] why use {} around vraiable? On Thu, Mar 20, 2008 at 12:22 PM, Lamp Lists <[EMAIL PR

Re: [PHP] why use {} around vraiable?

2008-03-20 Thread Brady Mitchell
On Mar 20, 2008, at 922AM, Lamp Lists wrote: $query = mysql_query("SELECT * FROM table1 WHERE id='{$session_id}'"); For a non-array value, the curly braces are unnecessary: $query = mysql_query("SELECT * FROM table1 WHERE id='$session_id'") WIth an array element, you have to either us

Re: [PHP] why use {} around vraiable?

2008-03-20 Thread Robin Vickery
On 20/03/2008, Lamp Lists <[EMAIL PROTECTED]> wrote: > hi, > I saw several times that some people use this > > $parameters = array( > 'param1' => "{$_POST["param1"]}", > 'param2' => "{$_POST["param2"]}" > ); > > or > > $query = mysql_query("SELECT * FROM table1 WHERE id='{$session_id}'")

Re: [PHP] why use {} around vraiable?

2008-03-20 Thread Ray Hauge
Lamp Lists wrote: hi, I saw several times that some people use this $parameters = array( 'param1' => "{$_POST["param1"]}", 'param2' => "{$_POST["param2"]}" ); or $query = mysql_query("SELECT * FROM table1 WHERE id='{$session_id}'"); I would use: $parameters = array( 'param1' => $_P

Re: [PHP] why use {} around vraiable?

2008-03-20 Thread Nathan Nobbe
On Thu, Mar 20, 2008 at 12:22 PM, Lamp Lists <[EMAIL PROTECTED]> wrote: > hi, > I saw several times that some people use this > > $parameters = array( > 'param1' => "{$_POST["param1"]}", > 'param2' => "{$_POST["param2"]}" > ); > > or > > $query = mysql_query("SELECT * FROM table1 WHERE id='{$s

Re: [PHP] why use {} around vraiable?

2008-03-20 Thread Jason Pruim
On Mar 20, 2008, at 12:22 PM, Lamp Lists wrote: hi, I saw several times that some people use this $parameters = array( 'param1' => "{$_POST["param1"]}", 'param2' => "{$_POST["param2"]}" ); or $query = mysql_query("SELECT * FROM table1 WHERE id='{$session_id}'"); I would use: $parameters =

Re: [PHP] why use {} around vraiable?

2008-03-20 Thread Robert Cummings
On Thu, 2008-03-20 at 09:22 -0700, Lamp Lists wrote: > hi, > I saw several times that some people use this > > $parameters = array( > 'param1' => "{$_POST["param1"]}", > 'param2' => "{$_POST["param2"]}" > ); Ignorance. > or > > $query = mysql_query("SELECT * FROM table1 WHERE id='{$sess

Re: [PHP] Why does the host make a difference?

2008-03-12 Thread Chris
Rick Pasotto wrote: I have a routine that uses the PEAR module CRYPT_BLOWFISH to encrypt a value and then base64_encode() to create a printable string. If I reverse the process on the same host I get the orginal value however if I do the reverse processing on a different host the result is garbag

Re: [PHP] Why use session_register()?

2008-03-10 Thread Lamonte H
So you wouldn't need to use session_start() when dealing with session_register()? On 3/10/08, Daniel Brown <[EMAIL PROTECTED]> wrote: > > On Mon, Mar 10, 2008 at 12:15 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > > On Mon, Mar 10, 2008 at 12:08 PM, Lamonte H <[EMAIL PROTECTED]> wrote: > > > Is i

Re: [PHP] Why use session_register()?

2008-03-10 Thread Daniel Brown
On Mon, Mar 10, 2008 at 12:15 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Mon, Mar 10, 2008 at 12:08 PM, Lamonte H <[EMAIL PROTECTED]> wrote: > > Is it necessary to use session_register()? What exactly was the point of > > this function if you can set sessions using $_SESSION it self? > >

Re: [PHP] Why use session_register()?

2008-03-10 Thread Daniel Brown
On Mon, Mar 10, 2008 at 12:08 PM, Lamonte H <[EMAIL PROTECTED]> wrote: > Is it necessary to use session_register()? What exactly was the point of > this function if you can set sessions using $_SESSION it self? > RTFM: http://php.net/session-register.php It's the old way of doing it, an

Re: [PHP] Why use session_register()?

2008-03-10 Thread Greg Donald
On 3/10/08, Lamonte H <[EMAIL PROTECTED]> wrote: > Is it necessary to use session_register()? What exactly was the point of > this function if you can set sessions using $_SESSION it self? session_register() accepts a variable parameter list and does not require a call to session_start() prior t

Re: [PHP] Why is some_function()[some_index] invalid syntax?

2008-01-14 Thread Richard Lynch
On Thu, January 10, 2008 10:00 pm, Arlen Christian Mart Cuss wrote: > Why is it that if I try to evaluate an index of an array returned by a > function immediately, a syntax error is produced? (unexpected '[', > expecting ',' or ';') Because PHP is not C. It's language-design was chosen to not le

Re: [PHP] Why is some_function()[some_index] invalid syntax?

2008-01-11 Thread Larry Garfield
On Friday 11 January 2008, Zoltán Németh wrote: > > So, make all your functions return objects, and have the object have a > > method called get or index or something like that that returns the index > > requested. :) > > > > Better yet, make everything an object: String, Numeric, Array, etc > >

Re: [PHP] Why is some_function()[some_index] invalid syntax?

2008-01-11 Thread Jim Lucas
Nathan Nobbe wrote: On Jan 11, 2008 3:45 AM, Zoltán Németh <[EMAIL PROTECTED]> wrote: and call it Java ;) or perhaps javascript :) function cool() { return [1, 2, 3]; } alert(cool()[0]); -nathan or Ruby -- Jim Lucas "Some men are born to greatness, some achieve greatness,

Re: [PHP] Why is some_function()[some_index] invalid syntax?

2008-01-11 Thread Jochem Maas
Arlen Christian Mart Cuss schreef: Hi there, Why is it that if I try to evaluate an index of an array returned by a function immediately, a syntax error is produced? (unexpected '[', expecting ',' or ';') because it's not valid syntax. strangely enough php is neither , nor is it capable of det

Re: [PHP] Why is some_function()[some_index] invalid syntax?

2008-01-11 Thread Nathan Nobbe
On Jan 11, 2008 3:45 AM, Zoltán Németh <[EMAIL PROTECTED]> wrote: > and call it Java ;) > or perhaps javascript :) function cool() { return [1, 2, 3]; } alert(cool()[0]); -nathan

Re: [PHP] Why is some_function()[some_index] invalid syntax?

2008-01-11 Thread Zoltán Németh
2008. 01. 10, csütörtök keltezéssel 21.25-kor Jim Lucas ezt írta: > Nathan Nobbe wrote: > > On Jan 10, 2008 11:00 PM, Arlen Christian Mart Cuss <[EMAIL PROTECTED]> > > wrote: > > > >> Hi there, > >> > >> Why is it that if I try to evaluate an index of an array returned by a > >> function immediate

<    1   2   3   4   5   6   7   8   9   >