open_basedir restriction in effect ??

open_basedir restriction in effect ?? - PHP - Programmation

Marsh Posté le 05-06-2006 à 16:20:26    

Petit souci sur un script Php depuis plusieurs jours chez Free ...
Suite apparement à un changement de version Php (5) chez eux ...
 
Ce script fonctionnait super depuis 2 ans  
 
une idée du problème ?
Infos : j'ai recopié les données erreur en changeant juste l'adresse du site par des ***....
 
Merci de votre aide. Dann
 
Warning: content() [function.content]: open_basedir restriction in effect. File(/var/www/free.fr/3/2/form***//webe***/french.inc.php) is not within the allowed path(s): (/mnt/113/sdb/3/2/form***) in /mnt/113/sdb/3/2/form***/webe***/config.inc.php on line 46
 
Warning: content(/var/www/free.fr/3/2/form***//webe***/french.inc.php) [function.content]: failed to open stream: Operation not permitted in /mnt/113/sdb/3/2/form***/webe***/config.inc.php on line 46
 
Warning: content() [function.include]: Failed opening '/var/www/free.fr/3/2/form***//webe***/french.inc.php' for inclusion (include_path='/mnt/113/sdb/3/2/form***/include:.:/usr/php4/lib/php') in /mnt/113/sdb/3/2/form***/web***/config.inc.php on line 46

Reply

Marsh Posté le 05-06-2006 à 16:20:26   

Reply

Marsh Posté le 05-06-2006 à 16:22:36    

Au fait la fonction "content" du script est là ...
 
function content($what) {
 global $webedit_url, $webedit_version, $webedit_dir, $webedit_language, $editor;
 static $i = 0;
 if ($i == 0 && check_user()) echo "
 <script language=\"JavaScript\">
 <!--
 function webed(content) {
  window.open('$webedit_url/edit.php?content=' + content,'editwin','resizable=yes,width=620,height=400');
 }

Reply

Marsh Posté le 05-06-2006 à 16:27:07    

dann a écrit :

Petit souci sur un script Php depuis plusieurs jours chez Free ...
Suite apparement à un changement de version Php (5) chez eux ...


Verif y'a 30sec : j'suis toujours sur 4
 
Il n'y a que les *.php5 qui sont sur php5
 
d'ailleurs :

Citation :


Warning: content() [function.include]: Failed opening '/var/www/free.fr/3/2/form***//webe***/french.inc.php' for inclusion (include_path='/mnt/113/sdb/3/2/form***/include:.:/usr/php4/lib/php') in /mnt/113/sdb/3/2/form***/web***/config.inc.php on line 46


Le probeme vient pas de la version de php [:petrus75]
 
Tu fais comment tes includes ?
 


---------------
my flick r - Just Tab it !
Reply

Marsh Posté le 05-06-2006 à 16:32:18    

Merci. J'avais même pas vu le "php4" ... :(
 
<?
      include "webe***/config.inc.php";
   content("date_cap1" );?>  
 

Reply

Marsh Posté le 05-06-2006 à 16:33:34    

<?
 
include "config.inc.php";
include "$web***_language.inc.php";

Reply

Marsh Posté le 05-06-2006 à 16:39:34    

Ca sent trop la mauvaise inclusion. Tu as verifie que le include essaye essaye bien d'inclure le bon fichier (bon chemin d'acces + fichier existant)


---------------
my flick r - Just Tab it !
Reply

Marsh Posté le 05-06-2006 à 17:14:14    

J'ai trouvé merci.
J'ai du refaire le setup du script : perte de l'adresse "full path" donc des includes aussi ...

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed