Re: [PHP] reporting errors when $ sign is missing in front of a variable

2012-01-12 Thread Mihai Anghel
Also, you get the output "my_var" because if you say echo my_var PHP looks for a constant my_var and if it doesn't find one it just assumes you want the name of the constant.Look in the manual page for constants for more details about how they work http://php.net/manual/en/language.constants.php O

Re: [PHP] reporting errors when $ sign is missing in front of a variable

2012-01-11 Thread ma...@behnke.biz
  Haluk Karamete hat am 12. Januar 2012 um 06:17 geschrieben: > Thanks... > Well I just changed the >  to   and that does it for me. > > Notice: Use of undefined constant my_age - assumed 'my_age' in > D:\Hosting\5291100\html\blueprint\bp_library.php on line 40 > my_age > > Now back in business

Re: [PHP] reporting errors when $ sign is missing in front of a variable

2012-01-11 Thread Haluk Karamete
Thanks... Well I just changed the to and that does it for me. Notice: Use of undefined constant my_age - assumed 'my_age' in D:\Hosting\5291100\html\blueprint\bp_library.php on line 40 my_age Now back in business :) Notice: Use of undefined constant my_age - assumed 'my_age' in D:\Hosting\5

Re: [PHP] reporting errors when $ sign is missing in front of a variable

2012-01-11 Thread Tommy Pham
On Wed, Jan 11, 2012 at 8:43 PM, Haluk Karamete wrote: > > Hi, I'm coming from ASP background. > There, there is a life saver option called "option explicit". It > forces you to declare your variables using the "dim" statement. The > good thing about that is that if you were to mis-spell one of yo