snoodle
06-07-2007, 07:00 AM
I downloaded this "complete" login system (evolt.org). The description on the site looked great and it looked perfect for integrating ino my system. The code is excellently documented, object oriented, and pretty.
After following the instructions, which involves copying some code from the site and downloading the rest, I proceeded to test it out. Not totally surprised, I ran the home page and got garbage all over the screen. After a while of trying to make it work, I gave up and figured I'd just use the code as a documentation resource and guide for writing my own.
Suddenly it dawned on me that their php tags were "<?" instead of the
"<?php" I learned (only a month or 2 ago when I started learning php). After further inspection into the php.ini file I found the section that turns "short tags" on/off (<? is one, <script> is another). They recommend writing your code with long tags to be on the safe side.
Now the login code is working great.
So, is it true? Should I go in and change all my <script> tags to <SCRIPT language="JavaScript"> and should I change all those <?'s to <?php's in this login code?
Simple questions from simple minds.
After following the instructions, which involves copying some code from the site and downloading the rest, I proceeded to test it out. Not totally surprised, I ran the home page and got garbage all over the screen. After a while of trying to make it work, I gave up and figured I'd just use the code as a documentation resource and guide for writing my own.
Suddenly it dawned on me that their php tags were "<?" instead of the
"<?php" I learned (only a month or 2 ago when I started learning php). After further inspection into the php.ini file I found the section that turns "short tags" on/off (<? is one, <script> is another). They recommend writing your code with long tags to be on the safe side.
Now the login code is working great.
So, is it true? Should I go in and change all my <script> tags to <SCRIPT language="JavaScript"> and should I change all those <?'s to <?php's in this login code?
Simple questions from simple minds.