|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
ERROR in PHP/MySQL News
FYI, in Matt's PHP/MySQL News script an Error shows up:
Notice: Undefined index: action in c:wwwtestnewsnews.php on line 156 LINE 156 is: switch($_GET['action']) { What now? |
|
#2
|
|||
|
|||
|
RE: ERROR in PHP/MySQL News
error reporting is set to high.
|
|
#3
|
|||
|
|||
|
RE: ERROR in PHP/MySQL News
Hmmm...it is the "Default". Scripts which do NOT work with the established defaults are, umh, not too useful. And, my ISP ain't gonna change things which I can't blame them.
At first, I thought it had something to do with the $submit variable not being declared. Tnx anyway. Can't use it unless there's another fix. |
|
#4
|
|||
|
|||
|
RE: ERROR in PHP/MySQL News
just use error_reporting(0) u stupid, ignorent, ungretfull *#*#
|
|
#5
|
|||
|
|||
|
RE: ERROR in PHP/MySQL News
Well Zombie... Are we having a bad day
|
|
#6
|
|||
|
|||
|
RE: ERROR in PHP/MySQL News
well, maybe a little, but look at this guy.
first, he says FYI, but he clearly didn't want just to inform us about something, but instead he *asked* for it to be fixed. second, obviusly, he is not trying to learn smth new, but only wants a free script tu use on his site. tutorials are NOT for that. tutorials teach you smth, they don't do stuff instead of you. (and you can see that he just wanted to use it, not learn anything from his second answer where he didn't even bother to look up what error reporting is. if he did, he would learn a way to turn it off). and to top it all off, he says, "Scripts which do NOT work with the established defaults are, umh, not too useful.".. that's ungreatfull.. |
|
#7
|
|||
|
|||
|
RE: ERROR in PHP/MySQL News
RE:
Scripts which do NOT work with the established defaults are, umh, not too useful.".. No, I am not ungrateful. I, like so many others, try to use the various Tutorial scripts to t-e-s-t with in the learning processes. There are far superior "free" scripts available which will work if that's all I wanted. I even bought several PHP books, only to find the also essentially worthless due to the new default security changes. Many of us out here can not control what our ISP's do, and most are now running 'register_globals off' for security reasons, no thanks to the proliferation of net criminal hackers on the planet. Yes, I claim 'stupidity' at the moment, because I, along with many others I've read posts from on other forms, are e-x-t-r-e-m-e-l-y frustrated in trying to learn when there has been (IMHO) a major failure of the various 'Tutorial' sites to C-L-E-A-R-L-Y indicate whether scripts will, or will not work, with the new Universal default of 'register_globals off' that many of us are faced with having to deal with. Thank you for your suggestion: just use error_reporting(0) u stupid, ignorent, ungretfull *#*# ... this is something new I need to learn (whether I want to or not). I already dropped Matt a note, suggesting each script provider be requested to update their scripts to work with 'register_globals off' because this would be the HELPFUL thing to do for ALL of us Newbies. Or, at worst case, LABEL THE *#*# THINGS that they will NOT work with 'register_globals off' so that we don't waste time downloading them only to find more confusion. |
|
#8
|
|||
|
|||
|
RE: ERROR in PHP/MySQL News
Umh, BTW (right from the "Horses Mouth" - php.net):
----- As shown, before PHP 4.2.0 the default value for register_globals was on. And, in PHP 3 it was always on. The PHP community is encouraging all to not rely on this directive as it's preferred to assume it's off and code accordingly. ----- ALL code which does not work with 'register_globals off' *should* be labeled accordingly, and preferably in BOLD RED LETTERS: NEWBIES: THIS AIN'T GONNA WORK FOR YOU. |
|
#9
|
|||
|
|||
|
RE: ERROR in PHP/MySQL News
Hmmm...the problem doesn't appear to have been corrected yet.
Tsk, Tsk. |
|
#10
|
|||
|
|||
|
RE: ERROR in PHP/MySQL News
to prevent the notice change the switch to the following:
by the way: default setting for PHP is to NOT show notices; it's common practice to test your scripts using error_reporting set to E_ALL, but production machines should be left at the default settings as to not show security-comprimising information when a script isn't programmed that neat. |
![]() |
| Viewing: Codewalkers Forums > Other > Tutorials > ERROR in PHP/MySQL News |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|
|