mr_badger Posted May 28, 2007 Share Posted May 28, 2007 I have just uploaded my website to my ftp server but I'am getting this error when I try to view a php page, i get that it's to do with my directory but I'am confused to how to set it up because all the files are uploaded. Link to comment https://forums.phpfreaks.com/topic/53286-functionmain-failed-to-open-stream-no-such-file-or-directory-in/ Share on other sites More sharing options...
MadTechie Posted May 28, 2007 Share Posted May 28, 2007 file is not uploaded or in a different place.. you post some code where the error is generating from the problem is probably in a include. Link to comment https://forums.phpfreaks.com/topic/53286-functionmain-failed-to-open-stream-no-such-file-or-directory-in/#findComment-263326 Share on other sites More sharing options...
mr_badger Posted May 28, 2007 Author Share Posted May 28, 2007 the code is from line 1 of my php code. <?php require_once('../Connections/conn.php'); ?> I have uploaded the connections folder but your right, it could be in a different place. it worked fine on localhost. Link to comment https://forums.phpfreaks.com/topic/53286-functionmain-failed-to-open-stream-no-such-file-or-directory-in/#findComment-263362 Share on other sites More sharing options...
MadTechie Posted May 28, 2007 Share Posted May 28, 2007 something else to think about.. i am guessing your windows.. and assuming the host is linux.. so be warned.. "../Connections/conn.php" isn the same as "../connections/conn.php" other than that your need to check your folder structor is the same. connect to the site via FTP and compare the folders.. Link to comment https://forums.phpfreaks.com/topic/53286-functionmain-failed-to-open-stream-no-such-file-or-directory-in/#findComment-263369 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.