Jump to content
Larry Ullman's Book Forums

slimpundit

Members
  • Content Count

    10
  • Joined

  • Last visited

Community Reputation

1 Neutral

About slimpundit

  • Rank
    Newbie
  1. I made a template and used the include function for the header and footer of all my pages. But what should I do if I want to put some javascript or metatags on a specific page?
  2. Thanks for the quick reply. I got it up and running again. I guess I needed to omit both the htdocs and the xampp from the url. Thanks!
  3. Hi Larry, I keep trying it different ways but it keeps displaying the same error message. For example, I put this into the browser: localhost/xampp/webPHP/chapter11/login.php the file is there but same error message. I never had this problem the first time I did the book.
  4. i've loaded xampp onto a pc running windows 7. I completed the book Visual quick start and have taken a couple months off. I just bought the visual quick pro guide book. I wanted to review the first book and was trying to look over my previous work and I am unable to load it into the browser. All the work is in the c drive/xampp/htdocs/webPHP... so, i popped this into the browser: localhost/htdocs/webPHP/13/myQuotes/login.php and I get: Object not found! The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again. I
  5. 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
  6. 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
  7. 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.
  8. Jonathon, I appreciate your reply. I just stuck both files into the htdocs folder and changed the location to: $file = 'quotes.txt'... I had typed text rather than txt. Sorry about wasting your time but thanks for the reply. I had tried a number of things but just overlooked the spelling error.
  9. <body> <p> <?php // Script 11.1 - add_quote.php $file = '../quotes.text'; if ($_SERVER['REQUEST_METHOD'] == 'POST'){ if ( !empty($_POST['quote']) && ($_POST['quote'] != 'Enter your quotation here!.') ){ if (is_writable($file)){ // script 11.2 modified with LOCK_EX added: file_put_contents($file, $_POST['quote'] . PHP_EOL, FILE_APEND | LOCK_EX); print '<p>Your quotation has been stored.</p>'; }else { // Could not open the file. print '<p style="color: red;">Your q
  10. i'm working on Ch.11 on a windows 7 with php 5.3...after downloading xampp. i put the text file: quotes.txt in the web root directory. (Is this the same area where htdocs is located?) after finishing add_quote.php and uploading it to my browser, i'm getting an error that reads: "Your quotation could not be stored due to a system error." So, i guess i'm not able to send my quote to the quote.txt file. Is it my file permissions or is it my file location that is the problem? I didn't do anything to the file permissions because the book is a bit hazy as to how windows users should deal w
×
×
  • Create New...