login  Naam:   Wachtwoord: 
Registreer je!
 Forum

Include fout? If/else fout?

Offline TotempaaltJ - 18/10/2007 08:13 (laatste wijziging 18/10/2007 08:22)
Avatar van TotempaaltJPHP interesse Ik kan niet zien wattie fout doet:
  1. <?php
  2. include "files/header.php";
  3.  
  4. if($_GET['p'] == 'admin')
  5. { include "ProPoll/admin.php"; }
  6. else
  7. { include "ProPoll/index.php"; }
  8.  
  9. include "files/footer.php";
  10. ?>

De pagina die ik krijg is deze... Wat niet klopt, want hij zou deze moeten includen! 

Alle bestanden bestaan! Error (Bash func PHP):
Citaat:
Warning: SAFE MODE Restriction in effect. The script whose uid is -1 is not allowed to access ./files/header.php owned by uid 762 in /home/pumpkinj/www/Midly/poll.php on line 2

Warning: Failed opening 'files/header.php' for inclusion (include_path='.:/usr/share/php4') in /home/pumpkinj/www/Midly/poll.php on line 2

Warning: SAFE MODE Restriction in effect. The script whose uid is -1 is not allowed to access ./ProPoll/index.php owned by uid 762 in /home/pumpkinj/www/Midly/poll.php on line 7

Warning: Failed opening 'ProPoll/index.php' for inclusion (include_path='.:/usr/share/php4') in /home/pumpkinj/www/Midly/poll.php on line 7

Warning: SAFE MODE Restriction in effect. The script whose uid is -1 is not allowed to access ./files/footer.php owned by uid 762 in /home/pumpkinj/www/Midly/poll.php on line 9

Warning: Failed opening 'files/footer.php' for inclusion (include_path='.:/usr/share/php4') in /home/pumpkinj/www/Midly/poll.php on line 9

5 antwoorden

Gesponsorde links
Offline marten - 18/10/2007 08:58
Avatar van marten Beheerder Probeer eens zo te includen

  1. define('DOC_ROOT', $_SERVER['DOCUMENT_ROOT']);
  2.  
  3. include(DOC_ROOT . 'ProPoll/index.php');
Offline TotempaaltJ - 18/10/2007 09:20
Avatar van TotempaaltJ PHP interesse Zie hier, het werkt nog steeds niet! (Wel al beter )
Offline marten - 18/10/2007 10:37
Avatar van marten Beheerder Nu Safe Mode nog uitzetten (uit laten zetten) bij je host 
Offline Rens - 18/10/2007 11:32
Avatar van Rens Gouden medaille

Crew algemeen
PHP.net: ini_set
  1. ini_set("safe_mode", 0);
Offline TotempaaltJ - 18/10/2007 13:35
Avatar van TotempaaltJ PHP interesse Hmm... @hierboven, gebruikt, nog steeds een lege pagina! 
Gesponsorde links
Dit onderwerp is gesloten.
Actieve forumberichten
© 2002-2024 Sitemasters.be - Regels - Laadtijd: 0.204s