Tutorials
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOtherTutorials

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
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  
Old March 30th, 2003, 01:16 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
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?

Reply With Quote
  #2  
Old March 30th, 2003, 05:23 AM
DocSeuss DocSeuss is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 4 DocSeuss User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: ERROR in PHP/MySQL News

error reporting is set to high.

Reply With Quote
  #3  
Old March 30th, 2003, 06:32 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
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.

Reply With Quote
  #4  
Old March 30th, 2003, 03:59 PM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: ERROR in PHP/MySQL News

just use error_reporting(0) u stupid, ignorent, ungretfull *#*#

Reply With Quote
  #5  
Old March 30th, 2003, 07:59 PM
postalcow postalcow is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Ford CIty, PA USA
Posts: 1,267 postalcow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via Yahoo to postalcow
RE: ERROR in PHP/MySQL News

Well Zombie... Are we having a bad day

Reply With Quote
  #6  
Old March 31st, 2003, 01:42 AM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
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..

Reply With Quote
  #7  
Old March 31st, 2003, 07:34 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
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.


Reply With Quote
  #8  
Old March 31st, 2003, 08:25 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
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.

Reply With Quote
  #9  
Old April 13th, 2003, 01:15 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: ERROR in PHP/MySQL News

Hmmm...the problem doesn't appear to have been corrected yet.

Tsk, Tsk.

Reply With Quote
  #10  
Old April 13th, 2003, 09:35 AM
crisp crisp is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Holland
Posts: 336 crisp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: ERROR in PHP/MySQL News

to prevent the notice change the switch to the following:

php Code:
Original - php Code
  1.  
  2. <?php
  3.  
  4. $action = '';
  5. if (isset($_GET['action'])) $action = $_GET['action'];
  6. switch($action) {
  7.  
  8. ?>


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.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOtherTutorials > ERROR in PHP/MySQL News


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five &quot;checkpoints&quot; for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway