Jump to content

rukamir

New Members
  • Posts

    4
  • Joined

  • Last visited

rukamir's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. You were right about it not liking the '/'. I removed them from the beginning of all and it started working. Thanks for letting me know about DOCUMENT_ROOT and pointing me in the right direction! // Set page vars $pagetitle = "Front Page!!"; $navbar = "resources/navbar.php"; $page = "main.php"; $footer = "resources/footer.php"; // Load complete layout include "resources/layout.php";
  2. I am still getting the same error. At least now I know PHP is running in that folder that is a plus. Are there any other possible problems you can think of? I am still new to PHP so it is very possible it is something fundamental.
  3. The error is Warning: include(/resources/layout.php): failed to open stream: No such file or directory in /var/lib/openshift/534f43c45973ca6597000154/app-root/runtime/repo/racedata/index.php on line 13 Warning: include(): Failed opening '/resources/layout.php' for inclusion (include_path='.:/var/lib/openshift/534f43c45973ca6597000154/app-root/runtime/repo/lib:/var/lib/openshift/534f43c45973ca6597000154/app-root/runtime/repo/libs:/var/lib/openshift/534f43c45973ca6597000154/app-root/runtime/repo/libraries:/var/lib/openshift/534f43c45973ca6597000154/app-root/runtime/repo/src:/var/lib/openshift/534f43c45973ca6597000154/app-root/runtime/repo/vendor:/var/lib/openshift/534f43c45973ca6597000154/app-root/runtime/repo/vendors:/var/lib/openshift/534f43c45973ca6597000154/php/phplib/pear/pear/php:/usr/share/pear') in /var/lib/openshift/534f43c45973ca6597000154/app-root/runtime/repo/racedata/index.php on line 13 Its sayins /racedata/resources/layour.php isnt valid... The code is: <?php ini_set('display_errors', 1); error_reporting(E_ALL); // connect to data base //include '/resources/connectdb.php'; // Set page vars $pagetitle = "Front Page!!"; $navbar = "/resources/navbar.php"; $page = "main.php"; $footer = "/resources/footer.php"; // Load complete layout include "/resources/layout.php"; ?>
  4. I am working on OpenShift and my PHP files in my sub directories are not working when pushed to the server. They work through localhost when using XAMPP so I dont know what is going wrong. Any help would be great. I have a link from my main index.php that links to the one in the subdir but when hosted it just pulls up a blank page. I am not sure if this as something to do with PHP permissions or what. /index.php /racedata/index.php
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.