Jump to content



Photo
- - - - -

Chapter 13 Administrator - Access Denied

access denied not admin

  • Please log in to reply
5 replies to this topic

#1 slimpundit

slimpundit

    Newbie

  • Members
  • Pip
  • 11 posts

Posted 30 December 2011 - 12:14 PM

I'm working through chapter 13 now. I just finished the listing quotes and editing quotes sections on pages 396-403. I've added the ...is_administrator function. I'm signed into my computer (windows 7) as the administrator but the error message pops up for both view quotes and edit quotes saying access is denied. If i'm the administrator, why am i not getting access to these pages? I checked the control panel settings to verify that I am signed on as administrator.

If anyone could help, I'd appreciate it.
  • 0

#2 Larry

Larry

    Administrator/Writer

  • Administrators
  • 3,542 posts
  • LocationState College, PA (USA)

Posted 30 December 2011 - 1:54 PM

The is_administrator() function has nothing whatsoever to do with your Windows 7 account. That PHP function checks for a site administrator, which is verified by logging in through the site.
  • 0

#3 slimpundit

slimpundit

    Newbie

  • Members
  • Pip
  • 11 posts

Posted 30 December 2011 - 4:05 PM

Larry,

Somehow, I knew this would be an easy fix. Logged in and it works fine. I've tried to work with some other books but didn't get much out of them. This book is great! I've recommended it to my class and will continue working through the entire series. Thanks for the book(s) and the website. They have both been really helpful.

Slim
  • 0

#4 Larry

Larry

    Administrator/Writer

  • Administrators
  • 3,542 posts
  • LocationState College, PA (USA)

Posted 30 December 2011 - 4:53 PM

Thank you very much, Slim, for the nice words. Are you an instructor or a student? And where?
  • 0

#5 slimpundit

slimpundit

    Newbie

  • Members
  • Pip
  • 11 posts

Posted 1 January 2012 - 1:53 PM

Larry,
I'm a student at the College of Southern Nevada. Just finished up my AAS in web design and will continue studying CS at UNLV in the fall of 2012. I took a class that emphasized php and javascript and had to do a project. This book is the only reason that I was able to complete my project.
Slim
  • 0

#6 Larry

Larry

    Administrator/Writer

  • Administrators
  • 3,542 posts
  • LocationState College, PA (USA)

Posted 2 January 2012 - 11:41 AM

Excellent. Thanks again for the nice words and good luck with your studies!
  • 0