p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

beginning_php thread: Trying to get the Webeditor file to work


Message #1 by warriorsworld@h... on Mon, 21 Jan 2002 07:42:37
I'm trying to make the necessary adjustments on the programs in 

the "Beginning PHP4" book, pages 350-377.  In particular 

the "webeditor.php" file.  That file includes the "common.inc" and 

the "navigator.inc" and "editor.inc" file.  I've tried making adjustments 

on these files to get them to work, but I'm sure I'm missing something 

very simple.  These files references files and directories that are not 

on my server.  Below are the errors I got:



The error messages directly below were, I believe, generated by 

the "nav_dir.php" 



Warning: OpenDir: No such file or directory (errno 2) 

in /home/warriorsplace.com/vhosts/www/htdocs/php/wrox/ch10/navigator.inc 

on line 58

 Warning: Supplied argument is not a valid Directory resource 

in /home/warriorsplace.com/vhosts/www/htdocs/php/wrox/ch10/navigator.inc 

on line 63  Warning: Wrong datatype in sort() call 

in /home/warriorsplace.com/vhosts/www/htdocs/php/wrox/ch10/navigator.inc 

on line 65 	

Top of Form 1

&

  ./docs 

 

Bottom of Form 1





The error messages below were generated, I believe, by the "editor.php" 

file.





Top of Form 1

Local Filename  Uploaded Filename   

Bottom of Form 1

Editing a new file



Warning: stat failed for ./docs/new.txt (errno=2 - No such file or 

directory) 

in /home/warriorsplace.com/vhosts/www/htdocs/php/wrox/ch10/common.inc on 

line 47



Warning: stat failed for ./docs/new.txt (errno=2 - No such file or 

directory) 

in /home/warriorsplace.com/vhosts/www/htdocs/php/wrox/ch10/common.inc on 

line 49



Warning: stat failed for ./docs/new.txt (errno=2 - No such file or 

directory) 

in /home/warriorsplace.com/vhosts/www/htdocs/php/wrox/ch10/common.inc on 

line 50



Warning: stat failed for ./docs/new.txt (errno=2 - No such file or 

directory) 

in /home/warriorsplace.com/vhosts/www/htdocs/php/wrox/ch10/common.inc on 

line 52



Warning: stat failed for ./docs/new.txt (errno=2 - No such file or 

directory) 

in /home/warriorsplace.com/vhosts/www/htdocs/php/wrox/ch10/common.inc on 

line 53



Warning: stat failed for ./docs/new.txt (errno=2 - No such file or 

directory) 

in /home/warriorsplace.com/vhosts/www/htdocs/php/wrox/ch10/common.inc on 

line 54

Top of Form 2

   

Filename: ./docs/   

Bottom of Form 2





I received these error messages when I pulled the files all together in 

the "webeditor.php" file.  Can anyone help me?

  Return to Index