Re: [PHP] Coding Style Question...

2006-10-02 Thread Larry Garfield
On Monday 02 October 2006 19:32, Tony Di Croce wrote: > I am relatively new to PHP... I have about 1.5 years of light PHP work > under my belt... Over the past year or so my PHP coding style has evolved > significantly and I'm curious as to how experienced programmers write > PHP... > > Basically,

Re: [PHP] Coding Style Question...

2006-10-02 Thread Glenn Richmond
Hi Tony, Sounds like a good start. I have to admit that one that I prefer is that HTML code should be completely separated from PHP via the use of a templating engine of some sort (I'm a fan of XTemplate). I'll probably get strong opposition for these comments, but in my opinion, there's nothing w

RE: [PHP] Coding Style Question...

2006-10-02 Thread Jay Blanchard
[snip] What do you think? [/snip] I think I'd like an ice cold beer. I code PHP like I code C++, heavily commented with code designed to fit the needs of the application. There is a thing in PEAR concerning style (you can Google it pretty easily) and you will as many styles as you do PHP develope

[PHP] Coding Style Question...

2006-10-02 Thread Tony Di Croce
I am relatively new to PHP... I have about 1.5 years of light PHP work under my belt... Over the past year or so my PHP coding style has evolved significantly and I'm curious as to how experienced programmers write PHP... Basically, here is what I have evolved to: 1) ALL php code is at the top o

Re: [PHP] how do I get this line to work inside double quotes

2006-10-02 Thread Google Kreme
On 02 Oct 2006, at 17:13 , tedd wrote: At 4:59 PM -0600 10/2/06, Google Kreme wrote: On 02 Oct 2006, at 14:56 , Richard Lynch wrote: $mail_body .= "" . stripslashes($mail_text) . ""; Can we also comment on the horror that is the tag? I saw that as well, and had a similar response -- but I'

Re: [PHP] Client Computer Registration

2006-10-02 Thread Google Kreme
On 02 Oct 2006, at 15:11 , Richard Lynch wrote: And they'd have to be complete and total idiots to use the IP address for authentication/identification. This is Key Bank. Morons goes without saying. Though, honestly, if this is your BANK, they've really got no business allowing you to "regis

Re: [PHP] how do I get this line to work inside double quotes

2006-10-02 Thread tedd
At 4:59 PM -0600 10/2/06, Google Kreme wrote: On 02 Oct 2006, at 14:56 , Richard Lynch wrote: $mail_body .= "" . stripslashes($mail_text) . ""; Can we also comment on the horror that is the tag? I thought I was gonna puke... No? OK, moving along, nothing to see. I saw that as well, and h

Re: [PHP] array size in bytes

2006-10-02 Thread Chris Boget
How about saving the array as a file and then do a filesize()? Wouldn't this work? $arraySize = strlen( implode( '', $array )); Though, additional work would need to be done for nested arrays. thnx, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

[PHP] Re: moving file from one server to another

2006-10-02 Thread Colin Guthrie
Nick Wilson wrote: > hi, > > i have thttpd (a very light weight http server) running as an image > server on one box, and users uploading images to another php/apache > powered box. > > I need to let users upload to the regular LAMP box, but then copy the > image over to the custom image server

Re: [PHP] how do I get this line to work inside double quotes

2006-10-02 Thread Google Kreme
On 02 Oct 2006, at 14:56 , Richard Lynch wrote: $mail_body .= "" . stripslashes($mail_text) . ""; Can we also comment on the horror that is the tag? I thought I was gonna puke... No? OK, moving along, nothing to see. -- The Piper's calling you to join him -- PHP General Mailing List (http

Re: [PHP] array size in bytes

2006-10-02 Thread tedd
At 4:18 PM -0500 10/2/06, Richard Lynch wrote: On Mon, October 2, 2006 3:07 am, Roman Rumisek wrote: Exists in PHP function returning array size in bytes ? (For saving array into shared memory without serialize.) No. And you could maybe write one, if it was all strings in the array, but you

Re: [PHP] Hotmail and junk mail

2006-10-02 Thread Greg Maruszeczka
Try here: http://openrbl.org Cheers, G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_real_escape_string() question

2006-10-02 Thread Richard Lynch
On Fri, September 29, 2006 8:34 pm, Chris Shiflett wrote: >> I'm looking for a guide, a chart, a grid, an organized systemic >> documentation of what data should be escaped how as it travels >> through the "glue" that is PHP... > > That's a great idea. Want to write it? :-) I'd be happy to help. O

Re: [PHP] Re: How to effectuate translations

2006-10-02 Thread Richard Lynch
I'm no expert, but I'm making bank on the fact that you CANNOT reliably "guess" a user's language from their browser/settings/whatever, so you NEED to give the user control. Example: I was in Paris, and used computers at an Internet cafe, configured with French keyboards and identifying themselves

[PHP] set cookie with non-english

2006-10-02 Thread Ahmad Al-Twaijiry
Hi everyone in my PHP code I use the following command to set a cookie with non-english word (UTF-8) : @setcookie ("UserName",$Check[1]); and in my html page I get this cookie using javascript :