tmh766 Posted February 13, 2007 Share Posted February 13, 2007 Why do my scripts only work in the servers root directory? Is this fixable? Link to comment https://forums.phpfreaks.com/topic/38245-solved-php-scripts-only-work-in-the-root-directory/ Share on other sites More sharing options...
btherl Posted February 13, 2007 Share Posted February 13, 2007 Yes it's fixable. Which server are you using and where? (eg, home, web space provide, virtual host) Link to comment https://forums.phpfreaks.com/topic/38245-solved-php-scripts-only-work-in-the-root-directory/#findComment-183196 Share on other sites More sharing options...
tmh766 Posted February 13, 2007 Author Share Posted February 13, 2007 I only have problems doing this when using the web hosting companies server. Link to comment https://forums.phpfreaks.com/topic/38245-solved-php-scripts-only-work-in-the-root-directory/#findComment-183197 Share on other sites More sharing options...
redarrow Posted February 13, 2007 Share Posted February 13, 2007 There could be meny reasons show us some code ok. example you might not be useing the $_POST[''] statements on the current code. Link to comment https://forums.phpfreaks.com/topic/38245-solved-php-scripts-only-work-in-the-root-directory/#findComment-183199 Share on other sites More sharing options...
tmh766 Posted February 13, 2007 Author Share Posted February 13, 2007 This will not work, <?php echo("this wont show in an html document or php document if it is not in the root directory of the server"); ?> Link to comment https://forums.phpfreaks.com/topic/38245-solved-php-scripts-only-work-in-the-root-directory/#findComment-183209 Share on other sites More sharing options...
redarrow Posted February 13, 2007 Share Posted February 13, 2007 try this way please. <?php echo "this wont show in an html document or php document if it is not in the root directory of the server"; ?> Link to comment https://forums.phpfreaks.com/topic/38245-solved-php-scripts-only-work-in-the-root-directory/#findComment-183211 Share on other sites More sharing options...
tmh766 Posted February 13, 2007 Author Share Posted February 13, 2007 No, no good phpinfo() does not even work. Link to comment https://forums.phpfreaks.com/topic/38245-solved-php-scripts-only-work-in-the-root-directory/#findComment-183218 Share on other sites More sharing options...
redarrow Posted February 13, 2007 Share Posted February 13, 2007 have you got php correctly installed Link to comment https://forums.phpfreaks.com/topic/38245-solved-php-scripts-only-work-in-the-root-directory/#findComment-183220 Share on other sites More sharing options...
tmh766 Posted February 13, 2007 Author Share Posted February 13, 2007 I did not install it, the hosting company maintains it. I would think they did? Link to comment https://forums.phpfreaks.com/topic/38245-solved-php-scripts-only-work-in-the-root-directory/#findComment-183223 Share on other sites More sharing options...
Jessica Posted February 13, 2007 Share Posted February 13, 2007 So ask them.... Link to comment https://forums.phpfreaks.com/topic/38245-solved-php-scripts-only-work-in-the-root-directory/#findComment-183226 Share on other sites More sharing options...
tmh766 Posted February 15, 2007 Author Share Posted February 15, 2007 The permissions were to leanant in the directory and the host would not let the scripts run. Link to comment https://forums.phpfreaks.com/topic/38245-solved-php-scripts-only-work-in-the-root-directory/#findComment-185859 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.