| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #2 (permalink) |
| NamePros Regular | DUnno why they use the @ but it means PHP Code: |
| |
| | #4 (permalink) |
| Stud Sausage | To add to what has been said, the line is what is called a ternary operator. I wrote a tutorial about them here: http://www.zoomcities.com/forum/showthread.php?tid=2362 I do not know why they have used the @ sign to suppress a potential warning either as there will not be one. That line i actually better written as: PHP Code: |
| |
| | #5 (permalink) | ||
| Senior Member | Quote:
Quote:
| ||
| |
| | #7 (permalink) | |
| Senior Member | Quote:
| |
| |
| | #8 (permalink) | ||
| NamePros Regular | Quote:
A suggestion would be to use php.ini or htaccess to change display_errors to off. Errors may reveal information to aid a hacking attempt. | ||
| |
| | #9 (permalink) |
| NamePros Regular | Showing all notices can be very annoying, for example if i did: PHP Code:
__________________ -Beaver6813.com V5 Soon! |
| |
| | #10 (permalink) | |
| Stud Sausage | Quote:
| |
| |
| | #11 (permalink) | |
| Senior Member | Quote:
all it would take to fix that notice is using the isset function on $_GET['code'] so the code would end up:- PHP Code: | |
| |
| | #12 (permalink) | |
| NamePros Regular | Quote:
__________________ -Beaver6813.com V5 Soon! | |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |