General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old December 9th, 2002, 08:49 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Problems with my article.

Ok ok ok, so im only human!

For all those who have experienced problems heres your chance. On my "building a members area with PHP" article there are a few mistakes, but i honestly do not have the time too look for them. If you have a problem with my article, if you were mislead, or i forgot something/made a typo, please tell me.

Im prepaired to fix my mistakes, but i need peoples help.

ALSO please remember that the article is at least an INTERMEADIATE LEVEL, which means, if i have made a mistake, you should at least have the skills to debug it!

BTW: dont tell me its wrong, and then dont tell me what i need to change. I need to know what to change so i can fix it.

Everyone who helps will get credit for it.

Reply With Quote
  #2  
Old December 9th, 2002, 10:19 PM
James Yang James Yang is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Atlanta, Georgia
Posts: 284 James Yang User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 45 sec
Reputation Power: 17
Send a message via ICQ to James Yang
ben is human??
__________________
Regards,

James Yang
.NET Developer / Network Engineer
MCSE, MCDBA, MCSA, CCNA

http://www.yellowpin.com/
http://www.opentechsupport.com/

Reply With Quote
  #3  
Old December 9th, 2002, 10:52 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
no, actually im not human, i just suffer human like qualities

Reply With Quote
  #4  
Old December 10th, 2002, 04:50 AM
csxpcm csxpcm is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: London, UK
Posts: 13 csxpcm User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hello Ben
Despite highlighting a couple of problems with the code, thanks very much for the article. It's one of the best i've found on the Internet. Your work is much appreciated :-)

Kind regards,

Reply With Quote
  #5  
Old December 10th, 2002, 10:48 AM
wareseeker wareseeker is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Posts: 71 wareseeker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 7 sec
Reputation Power: 16
Smile Appreciated note

You are greatly, Ben. You have taught us lots of things it could have been days to learn it. Your articles are so excellent. Greatly appreciative for your times.

Reply With Quote
  #6  
Old December 10th, 2002, 12:32 PM
JXL JXL is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: Netherlands
Posts: 13 JXL User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
maybe u can add to your article that when people use extra field names when adding sessions they have to create the fields first heh

thats the only problem i found...

keep up the good work

Reply With Quote
  #7  
Old December 10th, 2002, 04:25 PM
phantom phantom is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 7 phantom User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
i didn't see any problems - this is the best authntication tutorial on the web. The only problem i have is waiting for the next article in the series

phantom

Reply With Quote
  #8  
Old December 10th, 2002, 07:20 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
The next article is already done, i just have to get the time to edit it, as ive got a million things to do today.

Thanks for letting me know of these problems, once i put up the next article I will fix up the others.

Reply With Quote
  #9  
Old December 31st, 2002, 04:24 PM
finster0 finster0 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Location: Florida
Posts: 1 finster0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to finster0
Just a suggestion...

Just a suggestion for you.

Maybe you could write some sort of a admin script so that you could see the registered users and the information they entered when they signed up. I know I would use it and other people would probably also.

By the way. Love your articles. The very BEST I can find on the internet.

Kudos


Reply With Quote
  #10  
Old April 4th, 2003, 01:53 AM
h00kup h00kup is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: Arizona, USA
Posts: 8 h00kup User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to h00kup Send a message via AIM to h00kup
I don't know if this is a problem since im not a hacker like you guys...

In class.security.php

function AddLog($strLogData = '')
{
/*
Function Name: AddLog()
Desc: Adds a new record to the log table. This allows tracking of
who is logging in, and who is trying to 'hack' into certain areas
*/
$dbVars = new dbVars;


PHP Code:
 $dbVars = new dbVars
//dont you need a $ before dbVars?

PHP Code:
 $dbVars = new $dbVars
//like this

*shrug*

Reply With Quote
  #11  
Old April 4th, 2003, 09:09 AM
nicat23's Avatar
nicat23 nicat23 is offline
Addicted to Chaos..
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: Ft. Worth, TX
Posts: 650 nicat23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 48 m 34 sec
Reputation Power: 0
Send a message via AIM to nicat23 Send a message via Yahoo to nicat23
Quote:
Originally posted by h00kup
I don't know if this is a problem since im not a hacker like you guys...
....
$dbVars = new dbVars;[/PHP] //dont you need a $ before dbVars?

PHP Code:
 $dbVars = new $dbVars
//like this

*shrug*

nope.. because dbVars is a class name

Ben: I've only had a little bit of a problem with any of your code, and it was easily fixable.. and to be honest with you I can't even recall where the problems were. I think if anything there may have been a mispelling in one place, and an extra space which may have caused errors, but those are mistakes that anyone could make.. I think that you did a good job writing the articles. Keep em coming strong, no one is perfect.. that's why we have the discussion for the articles, right?

Code is a living creature that isn't usually perfect the first time it is born, sometimes a little "surgery" is needed..

Reply With Quote
  #12  
Old April 4th, 2003, 12:34 PM
kimy_cool kimy_cool is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 6 kimy_cool User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs up Great Tut Ben!! Cheers Man!

Ben, This the best Authentication tutorial on the net so far. Keep it up.

Though the errors, the tutorial stands out from the crowd.

When is part 6 going to be out?


Reply With Quote
  #13  
Old April 5th, 2003, 07:40 AM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
ive just finished the updates for MailWorks Professional (out soon), so ive been quite busy developing and testing the new version. Im hoping to finish up the members area articles, (as well as fix up the code (sorry to all those who had problems))

im also going to be starting a article series on php classes.

Reply With Quote
  #14  
Old April 6th, 2003, 05:24 AM
h00kup h00kup is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: Arizona, USA
Posts: 8 h00kup User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to h00kup Send a message via AIM to h00kup
a lot of your code is not xhtml 1.0 transitional so in that sense your code is "bad code." I suggest making your code xhtml transitionable. That is all.

Reply With Quote
  #15  
Old April 6th, 2003, 12:21 PM
slayer slayer is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 1 slayer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
i get an error

Parse error: parse error, expecting `']'' in /home/virtual/site88/fst/var/www/html/login.php on line 121


if($dtlsSecurity->StoreSession($result[‘userId‘], $result[‘username’], $result[‘level’], "{$result['firstname']},{$result['lastname']}" ));


line 121 --^

any help?

Reply With Quote
  #16  
Old April 6th, 2003, 08:47 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Quote:
Originally posted by h00kup
a lot of your code is not xhtml 1.0 transitional so in that sense your code is "bad code." I suggest making your code xhtml transitionable. That is all.


Firstly because my code isnt xhtml 1.0 transitional, doesnt mean that I have "bad code". The article wasn't on xhtml compliency, it was to illistrate how to create a security class, which allows access to files. Also I only code in HTML 4 not XHTML. The end result is still the same, infact using XHTML makes your html files bigger.

Reply With Quote
  #17  
Old April 6th, 2003, 11:47 PM
nicat23's Avatar
nicat23 nicat23 is offline
Addicted to Chaos..
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: Ft. Worth, TX
Posts: 650 nicat23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 48 m 34 sec
Reputation Power: 0
Send a message via AIM to nicat23 Send a message via Yahoo to nicat23
Quote:
Originally posted by slayer
i get an error

Parse error: parse error, expecting `']'' in /home/virtual/site88/fst/var/www/html/login.php on line 121


if($dtlsSecurity->StoreSession($result[‘userId‘], $result[‘username’], $result[‘level’], "{$result['firstname']},{$result['lastname']}" ));


line 121 --^

any help?


if($dtlsSecurity->StoreSession($result[‘userId‘], $result[‘username’], $result[‘level’], "{$result['firstname']},{$result['lastname']}" ));


it's an if statement.. try taking out the semicolon at the end

Reply With Quote
  #18  
Old April 6th, 2003, 11:48 PM
nicat23's Avatar
nicat23 nicat23 is offline
Addicted to Chaos..
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: Ft. Worth, TX
Posts: 650 nicat23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 48 m 34 sec
Reputation Power: 0
Send a message via AIM to nicat23 Send a message via Yahoo to nicat23
Quote:
Originally posted by h00kup
a lot of your code is not xhtml 1.0 transitional so in that sense your code is "bad code." I suggest making your code xhtml transitionable. That is all.


To be honest with you, h00kup, I don't know many people who write in xhtml... If it were me, and I were talking to my IT director, they would tell me to convert/port the code myself...

Reply With Quote
  #19  
Old April 7th, 2003, 05:20 AM
h00kup h00kup is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: Arizona, USA
Posts: 8 h00kup User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to h00kup Send a message via AIM to h00kup
Quote:
Originally posted by nicat23


To be honest with you, h00kup, I don't know many people who write in xhtml... If it were me, and I were talking to my IT director, they would tell me to convert/port the code myself...


Omfg are you serious, not many people write in xhtml??? It is a more serious problem than I thought. Everyone hurry learn xhtml!!
http://www.w3.org/ <-- go there and learn!! xhtml is the only code that makes sense, IMO.

Well xhtml in my opinion is easier than regular html once you get used to it. It helps make more sense of code and it does not leave open tags and helps it to run on more browsers.

Hurray for xhtml!

Last edited by h00kup : April 7th, 2003 at 05:24 AM.

Reply With Quote
  #20  
Old April 7th, 2003, 08:14 AM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Quote:
helps it to run on more browsers.


Hmm, you might want to get your facts write. Not all browsers (esp older browsers) are not xhtml complient, and running xhtml code in them will cause errors. I know this as I have to test the xhtml generated by our product EditWorks Professional.

To be honest why would you want to?

why use <br />when you can use <br> when it does the same thing?

Reply With Quote
  #21  
Old April 7th, 2003, 08:32 AM
nicat23's Avatar
nicat23 nicat23 is offline
Addicted to Chaos..
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: Ft. Worth, TX
Posts: 650 nicat23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 48 m 34 sec
Reputation Power: 0
Send a message via AIM to nicat23 Send a message via Yahoo to nicat23
That's what I'm wondering! I mean come on.. that's two extra keystrokes.. and I'm lazy.

Reply With Quote
  #22  
Old April 7th, 2003, 01:38 PM
h00kup h00kup is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: Arizona, USA
Posts: 8 h00kup User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to h00kup Send a message via AIM to h00kup
Quote:
Originally posted by Ben Rowe


Hmm, you might want to get your facts write. Not all browsers (esp older browsers) are not xhtml complient, and running xhtml code in them will cause errors. I know this as I have to test the xhtml generated by our product EditWorks Professional.

To be honest why would you want to?

why use <br />when you can use <br> when it does the same thing?


Sorry, if I may clarify what I have written. I mean that running xhtml will (in the future) be complient to more browsers ie. cell phones, palm pilots, etc...

Also I would like to add that if you use a mix of xhtml and html like closing everything you can It leaves old browsers more compatible than any other. Like closing all the tags you possibly can besides <br />. Like you can close <td> </td> You did not close all of your td tags (re-occuring) and etc.., thats why I call it "bad code."

Last edited by h00kup : April 7th, 2003 at 01:44 PM.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Problems with my article.


Developer Shed Advertisers and Affiliates


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

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


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap