tmh766 Posted February 13, 2007 Share Posted February 13, 2007 Why do my scripts only work in the servers root directory? Is this fixable? Quote Link to comment 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) Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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"); ?> Quote Link to comment 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"; ?> Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
redarrow Posted February 13, 2007 Share Posted February 13, 2007 have you got php correctly installed Quote Link to comment 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? Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 13, 2007 Share Posted February 13, 2007 So ask them.... Quote Link to comment 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. 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.