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 December 27th, 2002, 05: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, 12:08 PM
Matt Matt is offline
Moderator
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 10 m 23 sec
Reputation Power: 6
RE: Tutorial Mistake

Fixed now...thanks!

Reply With Quote
  #3  
Old March 18th, 2003, 01: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, 01:00 AM
Matt Matt is offline
Moderator
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 10 m 23 sec
Reputation Power: 6
RE: Tutorial Mistake

Added that. Thanks!

Reply With Quote
  #5  
Old August 18th, 2003, 09: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, 10: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: 4
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, 10: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: 4
RE: Tutorial Mistake

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

Reply With Quote
  #8  
Old August 18th, 2003, 10: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 18th, 2003, 11:34 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: 4
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 18th, 2003, 11:57 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

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, 05: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: 2
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, 06: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: 2
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, 06:34 PM
Matt Matt is offline
Moderator
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 10 m 23 sec
Reputation Power: 6
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!
 
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 |