|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#76
|
||||
|
||||
|
#53 - How do I get more debug output?
If you have access to php.ini, set the following: Code:
error_reporting = E_ALL | E_STRICT display_errors = On display_startup_errors = On ignore_repeated_errors = Off ignore_repeated_source = Off Failing that, you can use ini_set() to set some of the above (mostly error_reporting and display_errors are useful). And no, that '|' should NOT be '&' on error_reporting. Otherwise you will only get strict errors. Bitwise operators do not work the same way as logical operators!
__________________
~James [Not currently seeking freelance work] Like philosophy or interested in spirituality? Philosophorum. Game Dev Experts Forums Foresight Linux - Because your desktop should be cool! Linux FAQ FedoraFAQ UbuntuGuide |
|
#77
|
|||
|
|||
|
thank you very much
|
|
#78
|
||||
|
||||
|
#54 - How do I tell if a form checkbox was NOT checked?
Pretend your checkbox is named "box". Creative, I know. You may already know that if "box" is checked then $_POST["box"] has some value. However if "box" is not checked, $_POST["box"] does not have a value. In fact, $_POST["box"] doesn't exist: you'll get an "Undefined index 'box'" warning. The easiest thing to do with checkboxes is to use isset(): PHP Code:
Note: of course, if your form uses method=get then you should be using $_GET instead of $_POST. But the same rules apply to both of those (and $_REQUEST too).
__________________
FUMOFFURU! -- PHP Manual (cURL - PCRE regex - references) error_reporting() SQL injection: and mysql_real_escape_string() PHP and cron Negative0 Have spare time? Interested in a large-scale freelance PHP project? Chance for a part-time gig? PM me for details. Last edited by requinix : April 28th, 2008 at 02:47 PM. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > PHP Development > [NEW USERS] - Answers to Frequently Asked Questions |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|