svoltmer Posted October 25, 2007 Share Posted October 25, 2007 I have installed an additional script to my chat script that is supposed to create a log of all chat messages and display them in a admin interface, but when I click my link for the chat log I get this error: Warning: main(../init.php) [function.main]: failed to open stream: No such file or directory in /home/crosst0/public_html/FlashChat/admin/msgloglist.php on line 3 Fatal error: main() [function.require]: Failed opening required '../init.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/crosst0/public_html/FlashChat/admin/msgloglist.php on line 3 What should I look for to fix this? Thanks! Quote Link to comment Share on other sites More sharing options...
MadTechie Posted October 25, 2007 Share Posted October 25, 2007 check the file "msgloglist.php" exists in 'FlashChat/admin/' Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted October 25, 2007 Share Posted October 25, 2007 First make sure the file init.php is uploaded onto the server, and if it is try and change this: ../init.php to this: ../../init.php Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted October 25, 2007 Share Posted October 25, 2007 check the file "msgloglist.php" exists in 'FlashChat/admin/' that file does exits, becuse that file cannot file init.php so... it has to exist Quote Link to comment Share on other sites More sharing options...
MadTechie Posted October 25, 2007 Share Posted October 25, 2007 LMAO, I read it correctly but copied the wrong thing.. Quote Link to comment Share on other sites More sharing options...
svoltmer Posted October 25, 2007 Author Share Posted October 25, 2007 I tried changing the dir to ../../init.php with no luck. Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted October 25, 2007 Share Posted October 25, 2007 what your script is saying is that init.php, is in the admin directory. Is that were it is located? Quote Link to comment Share on other sites More sharing options...
MadTechie Posted October 25, 2007 Share Posted October 25, 2007 change from "../init.php" to "init.php" Quote Link to comment Share on other sites More sharing options...
svoltmer Posted October 25, 2007 Author Share Posted October 25, 2007 Thanks! I can't believe I missed that. I am new to PHP and would like to learn. Can you recommend a good way to get started. Thanks Quote Link to comment Share on other sites More sharing options...
MadTechie Posted October 25, 2007 Share Posted October 25, 2007 The way i get started, is by building a small system, then expanding it.. also buy a book, and try the examples.. it has to be something your enjoy to keep you intrested but not to hard to put you off Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted October 25, 2007 Share Posted October 25, 2007 they have this ordered weird (first tut is last and last tut is first???) but here is where I started: http://devzone.zend.com/public/view/controller/public/action/view/tag/PHP101/module/default/page/2 Quote Link to comment Share on other sites More sharing options...
svoltmer Posted October 25, 2007 Author Share Posted October 25, 2007 Tks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.