Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5
This is the forum to discuss the Wrox book Beginning PHP4 by Wankyu Choi, Allan Kent, Chris Lea, Ganesh Prasad, Chris Ullman; ISBN: 9780764543647
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old March 12th, 2004, 10:13 PM
Authorized User
 
Join Date: Aug 2003
Location: Coeur d\'Alene, ID, USA.
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Tachyon
Default Chapter 10 editor.php

I'm having trouble with editor.php. I used the common.inc and editor.php from the site download so I think it's safe to rule out typos and buggy code. I created a /docs directory and used CHMOD in my FTP program to make sure it's ok for reading and writing permissions.

When I pull up editor.php with my Web browser I get "Editing a new file" at the top like I should but then it lists 6 lines of errors saying "no such file". These 6 error messages correspond to the file_info function. Of course, there was no new.txt since it was the first time I ran editor.php. Are these error message supposed to appear?

I made a new.txt through the editor program and it seemed to work fine. When I close the browser and open it again, then point it to editor.php it says "Editing a new file". Isn't it supposed to load new.txt?

Has anyone else run into these problems? Can anyone suggest a solution? Should I just use the error suppression operator "@" somewhere in the code? Or is there actually something wrong with the code as it stands?

__________________
An overworked Web Developer who\'s expected to know everything yet given time to study nothing.
  #2 (permalink)  
Old March 17th, 2004, 08:18 PM
Friend of Wrox
Points: 2,570, Level: 21
Points: 2,570, Level: 21 Points: 2,570, Level: 21 Points: 2,570, Level: 21
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: San Diego, CA, USA
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Don't know, I neither have the code nor the time to download and play with it.

You should be able to trace through the code to figure out the main flow of control. If there's a problem with the logic (as your post suggests) then it should stand out.

Also, I suggest checking the errata page for your book. If there is a problem with the source code, it might be mentioned there.


Take care,

Nik
http://www.bigaction.org/
  #3 (permalink)  
Old March 17th, 2004, 10:37 PM
Authorized User
 
Join Date: Aug 2003
Location: Coeur d\'Alene, ID, USA.
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Tachyon
Default

I check the errata online before starting to read each chapter. I'll have to check through the code again when I have time. If anyone else can offer suggestions it would be appreciated.



Similar Threads
Thread Thread Starter Forum Replies Last Post
chapter 10 Emailing with php - firstmail.php vijdev BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 July 19th, 2007 01:12 AM
Chapter 10 charedit.php issue luke adamis BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 January 1st, 2006 06:28 PM
Chapter 10 Editor Problems kellenjb BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 4 June 8th, 2004 08:16 PM
Beginning php 4 chapter 10 problems dakey Beginning PHP 3 February 13th, 2004 06:21 PM
Beginning php 4 chapter 10 problems ade Beginning PHP 2 June 19th, 2003 02:43 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.