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! Link to comment https://forums.phpfreaks.com/topic/74755-solved-chat-script-error/ 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/' Link to comment https://forums.phpfreaks.com/topic/74755-solved-chat-script-error/#findComment-377881 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 Link to comment https://forums.phpfreaks.com/topic/74755-solved-chat-script-error/#findComment-377883 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 Link to comment https://forums.phpfreaks.com/topic/74755-solved-chat-script-error/#findComment-377884 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.. Link to comment https://forums.phpfreaks.com/topic/74755-solved-chat-script-error/#findComment-377891 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. Link to comment https://forums.phpfreaks.com/topic/74755-solved-chat-script-error/#findComment-377894 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? Link to comment https://forums.phpfreaks.com/topic/74755-solved-chat-script-error/#findComment-377908 Share on other sites More sharing options...
MadTechie Posted October 25, 2007 Share Posted October 25, 2007 change from "../init.php" to "init.php" Link to comment https://forums.phpfreaks.com/topic/74755-solved-chat-script-error/#findComment-377913 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 Link to comment https://forums.phpfreaks.com/topic/74755-solved-chat-script-error/#findComment-377965 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 Link to comment https://forums.phpfreaks.com/topic/74755-solved-chat-script-error/#findComment-377980 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 Link to comment https://forums.phpfreaks.com/topic/74755-solved-chat-script-error/#findComment-378003 Share on other sites More sharing options...
svoltmer Posted October 25, 2007 Author Share Posted October 25, 2007 Tks Link to comment https://forums.phpfreaks.com/topic/74755-solved-chat-script-error/#findComment-378032 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.