Re: [PHP] New to list and to PHP
On Sun, Feb 20, 2011 at 18:51, tolga kacmazto...@gmail.com wrote: i'm interested in php about 3 maybe 4 years but i still couldnt get the logic of classes. it makes no sense to me. Nor do mailing list rules or Internet etiquette guidelines, apparently. You know, the ones that say, don't hijack someone else's thread, start your own, yada yada -- /Daniel P. Brown Network Infrastructure Manager Documentation, Webmaster Teams http://www.php.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] New to list and to PHP
On 2/20/2011 3:47 PM, tedd wrote: At 2:03 PM -0500 2/18/11, Pete Woodhead wrote: Hi I'm Pete Woodhead. I'm new to the list and to PHP. To be honest I very new to code writing. Thought this would be a good way to learn good habits as well as good code writing. Looking forward to learning and participating. Pete: Welcome to the gang. Minor points: 1. It's not code writing, it's coding. 2. You are not a code writer, but rather a coder. You can also be called a computer programmer or a programer for short -- not to mention some of the other names we are often called. :-) Cheers, tedd Hi Tod, Thanks for the welcome and the jargon corrections. So far the other help I've received is to show me, the new guy where the clean up broom and shovel are! We'll if you'll excuse me I've got some sweeping to do. :) Regards, Pete -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] New to list and to PHP
On 2/20/2011 6:41 PM, Richard Quadling wrote: On 20 February 2011 23:34, Richard Quadlingrquadl...@gmail.com wrote: On 18 February 2011 19:03, Pete Woodheadpete.woodhea...@gmail.com wrote: Hi I'm Pete Woodhead. Â I'm new to the list and to PHP. Â To be honest I very new to code writing. Thought this would be a good way to learn good habits as well as good code writing. Looking forward to learning and participating. Assume that all the data you get from the user is out to get you. It probably isn't. Most of the time. But when it does, it'll be your fault. Unless you've left the company by then. Also, poka-yoke is a great concept to learn about (thanks to a great article in php|Architect all the way back when). Richard. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY http://www.phparch.com/magazine/2006-2/february/ in case anyone was wondering. Hi Richard, Thanks for the welcome, the advice and the link. I was not aware of PHP | Architect. Truth be told I'm still at the PHP for Dummies level. Regards, Pete -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] New to list and to PHP
On Mon, Feb 21, 2011 at 9:37 AM, Pete Woodhead pete.woodhea...@gmail.com wrote: On 2/20/2011 6:41 PM, Richard Quadling wrote: On 20 February 2011 23:34, Richard Quadlingrquadl...@gmail.com wrote: On 18 February 2011 19:03, Pete Woodheadpete.woodhea...@gmail.com wrote: Hi I'm Pete Woodhead. Â I'm new to the list and to PHP. Â To be honest I very new to code writing. Thought this would be a good way to learn good habits as well as good code writing. Looking forward to learning and participating. Assume that all the data you get from the user is out to get you. It probably isn't. Most of the time. But when it does, it'll be your fault. Unless you've left the company by then. Also, poka-yoke is a great concept to learn about (thanks to a great article in php|Architect all the way back when). Richard. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY http://www.phparch.com/magazine/2006-2/february/ in case anyone was wondering. Hi Richard, Thanks for the welcome, the advice and the link. I was not aware of PHP | Architect. Truth be told I'm still at the PHP for Dummies level. Regards, Pete -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Consider Head First Object Oriented Analysis and Design http://www.amazon.com/Head-First-Object-Oriented-Analysis-Design/dp/0596008678 -- Bastien Cat, the other other white meat -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] New to list and to PHP
At 2:03 PM -0500 2/18/11, Pete Woodhead wrote: Hi I'm Pete Woodhead. I'm new to the list and to PHP. To be honest I very new to code writing. Thought this would be a good way to learn good habits as well as good code writing. Looking forward to learning and participating. Pete: Welcome to the gang. Minor points: 1. It's not code writing, it's coding. 2. You are not a code writer, but rather a coder. You can also be called a computer programmer or a programer for short -- not to mention some of the other names we are often called. :-) Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] New to list and to PHP
On 20 February 2011 23:34, Richard Quadling rquadl...@gmail.com wrote: On 18 February 2011 19:03, Pete Woodhead pete.woodhea...@gmail.com wrote: Hi I'm Pete Woodhead. I'm new to the list and to PHP. To be honest I very new to code writing. Thought this would be a good way to learn good habits as well as good code writing. Looking forward to learning and participating. Assume that all the data you get from the user is out to get you. It probably isn't. Most of the time. But when it does, it'll be your fault. Unless you've left the company by then. Also, poka-yoke is a great concept to learn about (thanks to a great article in php|Architect all the way back when). Richard. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY http://www.phparch.com/magazine/2006-2/february/ in case anyone was wondering. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] New to list and to PHP
21.02.2011 01:41, Richard Quadling yazmış: On 20 February 2011 23:34, Richard Quadlingrquadl...@gmail.com wrote: On 18 February 2011 19:03, Pete Woodheadpete.woodhea...@gmail.com wrote: Hi I'm Pete Woodhead. I'm new to the list and to PHP. To be honest I very new to code writing. Thought this would be a good way to learn good habits as well as good code writing. Looking forward to learning and participating. Assume that all the data you get from the user is out to get you. It probably isn't. Most of the time. But when it does, it'll be your fault. Unless you've left the company by then. Also, poka-yoke is a great concept to learn about (thanks to a great article in php|Architect all the way back when). Richard. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY http://www.phparch.com/magazine/2006-2/february/ in case anyone was wondering. i'm interested in php about 3 maybe 4 years but i still couldnt get the logic of classes. it makes no sense to me. i couldnt understand whats about classes good at or how to use or write it. and i can say that is 'class' really necessery? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] New to list and to PHP
On 18 February 2011 19:03, Pete Woodhead pete.woodhea...@gmail.com wrote: Hi I'm Pete Woodhead. I'm new to the list and to PHP. To be honest I very new to code writing. Thought this would be a good way to learn good habits as well as good code writing. Looking forward to learning and participating. Assume that all the data you get from the user is out to get you. It probably isn't. Most of the time. But when it does, it'll be your fault. Unless you've left the company by then. Also, poka-yoke is a great concept to learn about (thanks to a great article in php|Architect all the way back when). Richard. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] New to list and to PHP
On Feb 20, 2011, at 5:51 PM, tolga wrote: 21.02.2011 01:41, Richard Quadling yazmış: On 20 February 2011 23:34, Richard Quadlingrquadl...@gmail.com wrote: On 18 February 2011 19:03, Pete Woodheadpete.woodhea...@gmail.com wrote: Hi I'm Pete Woodhead. I'm new to the list and to PHP. To be honest I very new to code writing. Thought this would be a good way to learn good habits as well as good code writing. Looking forward to learning and participating. Assume that all the data you get from the user is out to get you. It probably isn't. Most of the time. But when it does, it'll be your fault. Unless you've left the company by then. Also, poka-yoke is a great concept to learn about (thanks to a great article in php|Architect all the way back when). Richard. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY http://www.phparch.com/magazine/2006-2/february/ in case anyone was wondering. i'm interested in php about 3 maybe 4 years but i still couldnt get the logic of classes. it makes no sense to me. i couldnt understand whats about classes good at or how to use or write it. and i can say that is 'class' really necessery? a class is construct of Object Oriented PHP. If you don't understand object oriented programming, you'll likely not understand the use of object and classes in PHP, either. There are good reasons to use object oriented principles in PHP and other langages, and good reasons to use procedural principles in PHP as well. Learning when to use either is important. Learning how to use classes someone else implements is also important to keep from re-re-re-re-re-reinventing the wheel. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] New to list and to PHP
21.02.2011 03:21, Tamara Temple yazmış: On Feb 20, 2011, at 5:51 PM, tolga wrote: 21.02.2011 01:41, Richard Quadling yazmış: On 20 February 2011 23:34, Richard Quadlingrquadl...@gmail.com wrote: On 18 February 2011 19:03, Pete Woodheadpete.woodhea...@gmail.com wrote: Hi I'm Pete Woodhead. I'm new to the list and to PHP. To be honest I very new to code writing. Thought this would be a good way to learn good habits as well as good code writing. Looking forward to learning and participating. Assume that all the data you get from the user is out to get you. It probably isn't. Most of the time. But when it does, it'll be your fault. Unless you've left the company by then. Also, poka-yoke is a great concept to learn about (thanks to a great article in php|Architect all the way back when). Richard. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY http://www.phparch.com/magazine/2006-2/february/ in case anyone was wondering. i'm interested in php about 3 maybe 4 years but i still couldnt get the logic of classes. it makes no sense to me. i couldnt understand whats about classes good at or how to use or write it. and i can say that is 'class' really necessery? a class is construct of Object Oriented PHP. If you don't understand object oriented programming, you'll likely not understand the use of object and classes in PHP, either. There are good reasons to use object oriented principles in PHP and other langages, and good reasons to use procedural principles in PHP as well. Learning when to use either is important. Learning how to use classes someone else implements is also important to keep from re-re-re-re-re-reinventing the wheel. thanks. are there any high detailed explanation of classes in php? except for php.net, cuz i didnt understand anything from there about classes. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] New to list and to PHP
On Feb 20, 2011, at 7:38 PM, tolga wrote: 21.02.2011 03:21, Tamara Temple yazmış: On Feb 20, 2011, at 5:51 PM, tolga wrote: i'm interested in php about 3 maybe 4 years but i still couldnt get the logic of classes. it makes no sense to me. i couldnt understand whats about classes good at or how to use or write it. and i can say that is 'class' really necessery? a class is construct of Object Oriented PHP. If you don't understand object oriented programming, you'll likely not understand the use of object and classes in PHP, either. There are good reasons to use object oriented principles in PHP and other langages, and good reasons to use procedural principles in PHP as well. Learning when to use either is important. Learning how to use classes someone else implements is also important to keep from re- re-re-re-re-reinventing the wheel. thanks. are there any high detailed explanation of classes in php? except for php.net, cuz i didnt understand anything from there about classes. seriously: http://lmgtfy.com/?q=php+object+oriented+programming+tutorial -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] New to list and to PHP
better yet: http://lmgtfy.com/?q=explanation+of+classes+in+php On Sun, Feb 20, 2011 at 9:39 PM, Tamara Temple tamouse.li...@gmail.comwrote: On Feb 20, 2011, at 7:38 PM, tolga wrote: 21.02.2011 03:21, Tamara Temple yazmış: On Feb 20, 2011, at 5:51 PM, tolga wrote: i'm interested in php about 3 maybe 4 years but i still couldnt get the logic of classes. it makes no sense to me. i couldnt understand whats about classes good at or how to use or write it. and i can say that is 'class' really necessery? a class is construct of Object Oriented PHP. If you don't understand object oriented programming, you'll likely not understand the use of object and classes in PHP, either. There are good reasons to use object oriented principles in PHP and other langages, and good reasons to use procedural principles in PHP as well. Learning when to use either is important. Learning how to use classes someone else implements is also important to keep from re-re-re-re-re-reinventing the wheel. thanks. are there any high detailed explanation of classes in php? except for php.net, cuz i didnt understand anything from there about classes. seriously: http://lmgtfy.com/?q=php+object+oriented+programming+tutorial -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Mujtaba
Re: [PHP] New to list and to PHP
ahaha lol. the point of my ask here is that i want to find a trusted source, not seo based web sites with no info inside. but thats cool. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] New to list and to PHP
On Sun, Feb 20, 2011 at 8:38 PM, tolga kacmazto...@gmail.com wrote: 21.02.2011 03:21, Tamara Temple yazmış: On Feb 20, 2011, at 5:51 PM, tolga wrote: 21.02.2011 01:41, Richard Quadling yazmış: On 20 February 2011 23:34, Richard Quadlingrquadl...@gmail.com wrote: On 18 February 2011 19:03, Pete Woodheadpete.woodhea...@gmail.com wrote: Hi I'm Pete Woodhead. I'm new to the list and to PHP. To be honest I very new to code writing. Thought this would be a good way to learn good habits as well as good code writing. Looking forward to learning and participating. Assume that all the data you get from the user is out to get you. It probably isn't. Most of the time. But when it does, it'll be your fault. Unless you've left the company by then. Also, poka-yoke is a great concept to learn about (thanks to a great article in php|Architect all the way back when). Richard. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY http://www.phparch.com/magazine/2006-2/february/ in case anyone was wondering. i'm interested in php about 3 maybe 4 years but i still couldnt get the logic of classes. it makes no sense to me. i couldnt understand whats about classes good at or how to use or write it. and i can say that is 'class' really necessery? a class is construct of Object Oriented PHP. If you don't understand object oriented programming, you'll likely not understand the use of object and classes in PHP, either. There are good reasons to use object oriented principles in PHP and other langages, and good reasons to use procedural principles in PHP as well. Learning when to use either is important. Learning how to use classes someone else implements is also important to keep from re-re-re-re-re-reinventing the wheel. thanks. are there any high detailed explanation of classes in php? except for php.net, cuz i didnt understand anything from there about classes. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Pretty say to see a lmgtfy response, so I'll try and provide something slightly more worthwhile. First off, what is so bad about the php.net documentation? If it is over your head, then I'd say get yourself some books and study fundamentals. Granted, you don't need to buy anything as searches will yield the proper results--of course this is much more difficult if you don't know the terms. I was confused at first too, but I persisted and learned a few tricks. I started off by studying open source projects reading the code/searching for the method names it used. Look around on Github, it is all there for your consumption! Just FYI, my favorite book was Head First Deign Patterns. I think the best part about coding is that there is no right way. There are millions of solutions to these problems whether they be classical, prototypal, functional, or whatever. :) Either way, good luck! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] New to list and to PHP
On Fri, Feb 18, 2011 at 14:03, Pete Woodhead pete.woodhea...@gmail.com wrote: Hi I'm Pete Woodhead. I'm new to the list and to PHP. To be honest I very new to code writing. Thought this would be a good way to learn good habits as well as good code writing. Looking forward to learning and participating. Fantastic. As the new guy, you're expected to sweep the floors here each Tuesday and Saturday evening. Lesson one: buy a broom. -- /Daniel P. Brown Network Infrastructure Manager Documentation, Webmaster Teams http://www.php.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] New to list and to PHP
Daniel Brown wrote: On Fri, Feb 18, 2011 at 14:03, Pete Woodhead pete.woodhea...@gmail.com wrote: Hi I'm Pete Woodhead. I'm new to the list and to PHP. To be honest I very new to code writing. Thought this would be a good way to learn good habits as well as good code writing. Looking forward to learning and participating. Fantastic. As the new guy, you're expected to sweep the floors here each Tuesday and Saturday evening. Lesson one: buy a broom. A shovel might also be useful - Dan forgot to mention the stables... Cheers -- David Robley On a radiator repair shop: Best place to take a leak. Today is Sweetmorn, the 51st day of Chaos in the YOLD 3177. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] New to list and to PHP
On Sat, Feb 19, 2011 at 11:14 PM, David Robley robl...@aapt.net.au wrote: Daniel Brown wrote: On Fri, Feb 18, 2011 at 14:03, Pete Woodhead pete.woodhea...@gmail.com wrote: Hi I'm Pete Woodhead. I'm new to the list and to PHP. To be honest I very new to code writing. Thought this would be a good way to learn good habits as well as good code writing. Looking forward to learning and participating. Fantastic. As the new guy, you're expected to sweep the floors here each Tuesday and Saturday evening. Lesson one: buy a broom. A shovel might also be useful - Dan forgot to mention the stables... Cheers -- David Robley On a radiator repair shop: Best place to take a leak. Right next to the soldering station and the freon vat? Today is Sweetmorn, the 51st day of Chaos in the YOLD 3177. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- According to theoretical physics, the division of spatial intervals as the universe evolves gives rise to the fact that in another timeline, your interdimensional counterpart received helpful advice from me...so be eternally pleased for them. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] New to list and to PHP
On Fri, Feb 18, 2011 at 2:03 PM, Pete Woodhead pete.woodhea...@gmail.comwrote: Hi I'm Pete Woodhead. I'm new to the list and to PHP. To be honest I very new to code writing. Thought this would be a good way to learn good habits as well as good code writing. Looking forward to learning and participating. Welcome, Pete. I'm confident you'll gain valuable insight through participating in the list. Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com
RE: [PHP] New to list
Check out : http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=279 Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. -Original Message- From: Andrew [mailto:[EMAIL PROTECTED]] Sent: Friday, January 11, 2002 2:05 AM To: [EMAIL PROTECTED] Subject: [PHP] New to list Hello to you all! I am new to this list and I have a question that maybe someone can help with In a script I am working on I have a math's equation : ((0.416 / $time) * 60) * 60) this out but a figure at goes to a about 10 decimal places I only want 2 decimal places and just can not figure out how to do this Any ideas would be great Thanks Andrew Web Harper Graphics www.webharpergraphics.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] New to list
try $total=((0.416 / $time) * 60) * 60); $output=number_format($total,2,'.',','); / / uses comma separators between thousands and a decimal point between the units and tenths. or $output=number_format(((0.416 / $time) * 60) * 60),2,'.',','); / / php is usually forgiving on combined operations. number_format() truncates the number so if you have 1.209 it will lop of the last number resulting in 1.20. if you want a rounded number use round(). both commands are in the online manual. hope this helps. Hugh - Original Message - From: Andrew [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 10, 2002 4:05 PM Subject: [PHP] New to list Hello to you all! I am new to this list and I have a question that maybe someone can help with In a script I am working on I have a math's equation : ((0.416 / $time) * 60) * 60) this out but a figure at goes to a about 10 decimal places I only want 2 decimal places and just can not figure out how to do this Any ideas would be great Thanks Andrew Web Harper Graphics www.webharpergraphics.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] New to list
have a look at: http://www.php.net/manual/en/function.number-format.php -Original Message- From: Andrew [mailto:[EMAIL PROTECTED]] Sent: Friday, January 11, 2002 11:05 AM To: [EMAIL PROTECTED] Subject: [PHP] New to list Hello to you all! I am new to this list and I have a question that maybe someone can help with In a script I am working on I have a math's equation : ((0.416 / $time) * 60) * 60) this out but a figure at goes to a about 10 decimal places I only want 2 decimal places and just can not figure out how to do this Any ideas would be great Thanks Andrew Web Harper Graphics www.webharpergraphics.com