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:
  #1  
Old December 27th, 2002, 06:08 AM
SpaceMonkey SpaceMonkey is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 6 SpaceMonkey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Tutorial Mistake

There is a mistake in the tutorial located at: http://codewalkers.com/tutorials.php?show=9&page=7

It's missing a bracket here
"firstname varchar25),"

I noticed it and fixed it so I continue with the tut but if it's fixed it should help fellow newbies.

Reply With Quote
  #2  
Old December 27th, 2002, 01:08 PM
Matt Matt is offline
Contributing User
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 12 m 16 sec
Reputation Power: 7
RE: Tutorial Mistake

Fixed now...thanks!

Reply With Quote
  #3  
Old March 18th, 2003, 02:03 AM
epniv epniv is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 1 epniv User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Tutorial Mistake

In tutotial: "Using Sessions in PHP", the code for login.php (on the 3rd page of the tutorial) needs session_start() added.

I hope I'm not missing something...I spent a few hours figuring this one out hehe

Reply With Quote
  #4  
Old March 21st, 2003, 02:00 AM
Matt Matt is offline
Contributing User
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 12 m 16 sec
Reputation Power: 7
RE: Tutorial Mistake

Added that. Thanks!

Reply With Quote
  #5  
Old August 18th, 2003, 10:40 PM
evild evild is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Minneapolis
Posts: 6 evild User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 9 sec
Reputation Power: 0
RE: Tutorial Mistake/help

I'm having a problem getting this tutorial to work correctly.

First, there needs to be a semi-colon after line 9; Header ("Location: ./index.php") of login.php

The other error i get is:
Warning: Cannot add header information - headers already sent by (output started at /Library/WebServer/Documents/functions.php:47 //which is the end of the file, btw) in /Library/WebServer/Documents/entry.php on line 9

If I do an include(); or meta-refresh to different file, it works no problem. It only errors when using the original Header() code. I can get around it, but being a new user to php sessions and the Header function, I'd like to know why it doesn't work. Or if this is a mistake on the author's part. The code does everything else it's supposed to do except this.

Thanks for any help. If you'd like me to post this somewhere else, let me know.

D

Reply With Quote
  #6  
Old August 18th, 2003, 11:06 PM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
RE: Tutorial Mistake

make sure that there are no extra carriage returns or spaces at the end of the include file. The error you are getting indicates that output has already been sent to the browser prior to the header call. Probably just an extra carriage return at the end of the file.

Reply With Quote
  #7  
Old August 18th, 2003, 11:06 PM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
RE: Tutorial Mistake

also, you never mention which tutorial it is!!!

Reply With Quote
  #8  
Old August 18th, 2003, 11:27 PM
evild evild is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Minneapolis
Posts: 6 evild User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 9 sec
Reputation Power: 0
RE: RE: Tutorial Mistake


Quote:
also, you never mention which tutorial it is!!!


Blindeddie--Thanks, man! That seemed to work. I went through all the files and made sure there weren't any extra carriage returns, lines, spaces or gremlins after ' ?>'

That's the first time I've run into that problem. I'll have to add that to my check list when solving php problems.

Also, the tutorial I'm referring to is "Using Sessions in PHP" which is linked in the first post, mentioned in the third post and above all, what this thread is all about.

Thanks again.

D

Reply With Quote
  #9  
Old August 19th, 2003, 12:34 AM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
RE: Tutorial Mistake

when I click on that link I go to the tutorial entitled

Create dynamic sites with PHP & MySQL

not the tutorial entitled

Using Sessions in PHP

The thread is entitled 'Tutorial Mistake' not 'Problem with Using Sessions in PHP Tutorial mistake', so I hope you understand my confusion...

Reply With Quote
  #10  
Old August 19th, 2003, 12:57 AM
evild evild is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Minneapolis
Posts: 6 evild User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 9 sec
Reputation Power: 0
RE: Tutorial Mistake

Yes, that would be confusing. I thought all posts in this thread were for the "Using Sessions" tutorial.

I did a search for that tutorial and this is what it returned.

Oh well. Have a good evening!

Reply With Quote
  #11  
Old September 1st, 2003, 06:40 AM
brewthatistrue brewthatistrue is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: CA, USA
Posts: 277 brewthatistrue User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 38 sec
Reputation Power: 3
RE: Tutorial Mistake

the first
Code:
<?PHP

at the top of the code snippet on
http://codewalkers.com/tutorials/46/19.html
should not be there.
same with the last
Code:
?>
.

thanks for the great tutorial.

Reply With Quote
  #12  
Old January 2nd, 2004, 07:14 PM
brewthatistrue brewthatistrue is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: CA, USA
Posts: 277 brewthatistrue User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 38 sec
Reputation Power: 3
RE: RE: Tutorial Mistake


Quote:
the first
Code:
<?PHP

at the top of the code snippet on
http://codewalkers.com/tutorials/46/19.html
should not be there.
same with the last
Code:
?>
.

thanks for the great tutorial.

still a problem

Reply With Quote
  #13  
Old January 2nd, 2004, 07:34 PM
Matt Matt is offline
Contributing User
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 12 m 16 sec
Reputation Power: 7
RE: Tutorial Mistake

Fixed...thanks!

Reply With Quote
Reply

Viewing: Codewalkers ForumsOtherTutorials > Tutorial Mistake


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!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

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




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek