Jump to content

SUBIECTE NOI
« 1 / 5 »
RSS
Suprataxa card energie?!

Cum era nivelul de trai cam din a...

probleme cu ochelarii

Impozite pe proprietati de anul v...
 teava rezistenta panou apa calda

Acces in Curte din Drum National

Sub mobila de bucatarie si sub fr...

Rezultat RMN
 Numar circuite IPAT si prindere t...

Pareri brgimportchina.ro - teapa ...

Lucruri inaintea vremurilor lor

Discuții despre TVR Sport HD.
 Cost abonament clinica privata

Tremura toata, dar nu de la ro...

Renault Android

Recomandare bicicleta e-bike 20&#...
 

Erori la instalarea unui script php

- - - - -
  • Please log in to reply
8 replies to this topic

#1
FloRin86

FloRin86

    Junior Member

  • Grup: Members
  • Posts: 53
  • Înscris: 24.07.2005
Am luat un script php de pe net (Rating Photo...) si primesc urm. erori la instalare:
  (daca se poate sa-mi explicati ce se intampla, sunt si incepator)


Quote

Warning: require() [function.require]: open_basedir restriction in effect. File(/home/www/home/www/free/xhost.ro/top100.xhost.ro/rate//eng.php) is not within the allowed path(s): (.:/allowrun:/etc/xml:/home/www/free:/usr/lib/php:/usr/local/lib/php:/tmp:/usr/local/xpanel/templates:/home/www/lib:/home/www/toplabs) in /home/www/free/xhost.ro/top100.xhost.ro/rate/config.php on line 39

Warning: require(/home/www/home/www/free/xhost.ro/top100.xhost.ro/rate//eng.php) [function.require]: failed to open stream: Operation not permitted in /home/www/free/xhost.ro/top100.xhost.ro/rate/config.php on line 39

Fatal error: require() [function.require]: Failed opening required '/home/www/home/www/free/xhost.ro/top100.xhost.ro/rate//eng.php' (include_path='.:./inc:/home/www/lib:/home/www/lib/pear:/home/www/lib/pear/DB:/home/www/lib/nusoap:/home/www/lib/phrame:/home/www/lib/toplabs:/allowrun:') in /home/www/free/xhost.ro/top100.xhost.ro/rate/config.php on line 39

Multumesc !

#2
aolex

aolex

    Senior Member

  • Grup: Banned
  • Posts: 3,829
  • Înscris: 06.12.2004
incerci sa incluzi un fisier care nu este in calea admisa. php are de-obicei niste restrictii: te tine in directoriul tau ca sa nu ai acces la restul userilor. asta se intampla de-obicei pe hosturile shared.

#3
FloRin86

FloRin86

    Junior Member

  • Grup: Members
  • Posts: 53
  • Înscris: 24.07.2005
Problema se rezolva doar daca pun scriptu pe un host care nu e shared ?

#4
FloRin86

FloRin86

    Junior Member

  • Grup: Members
  • Posts: 53
  • Înscris: 24.07.2005
Am pus aici config.php, linia 39 la care da eroare, e cea cu rosu ...


Quote

<?php
     $language = "eng";
     $version = "1.35";
     $SetPending = '2';
     $AdminAllowComments = '1';
     $AdminAllowMsg = '1';
     $siteurl = "http://top100.xhost.ro/rate"; // no ending slash
     $full_path_to_public_program = $_SERVER['DOCUMENT_ROOT']."/home/www/free/xhost.ro/top100.xhost.ro/rate/"; // no ending slash
     $upload_dir = "$full_path_to_public_program/pictures"; // no ending slash
     $from_address = "[email protected]";
     define('FLOOD_TIMEOUT',"1800");  // defines max time they have to wait before sending messages. used for slowing down spam
     define(MAXFILE_SIZE,"500000");  // defines max file size for images
     define(MAXIMAGE_W_SIZE,"500");  // defines max image width size for uploaded images
     define(MAXIMAGE_H_SIZE,"500");  // defines max image height size for uploaded images
    
     $admin_member_per_page = 25;
     $number_of_ads_per_page = 16;

/* Table names must be set here */

     $admintbl = "admin";
     $usr_tbl = "users";
     $cat_tbl = "categories";
     $comment_tbl = "comments";
     $msg_tbl = "emailmesg";
     $pic_tbl = "picture";
     $secure_image = "security_images";
     $rating_tbl = "rating";
     $sess_tbl = "session";
  
$logintype["http"] = '';   //specifies the login type    
       $GLOBALS['noshutdownfunc'] = 1;

$full_path_to_db = "$full_path_to_public_program/adminpanel/db.php";
if (file_exists($full_path_to_db))
{
require($full_path_to_db);
}
require("$full_path_to_public_program/$language.php");


include_once("$full_path_to_public_program/adminpanel/func.php");
?>


#5
cosminnuss

cosminnuss

    Active Member

  • Grup: Members
  • Posts: 1,352
  • Înscris: 21.10.2005

View PostFloRin86, on May 7 2006, 20:21, said:

$full_path_to_public_program = $_SERVER['DOCUMENT_ROOT']."/home/www/free/xhost.ro/top100.xhost.ro/rate/"; // no ending slash

Acolo zice sa nu pui slash la sfarsit
Pe langa asta: Mi se pare mie sau e cam ciudata calea?! Elimina "$_SERVER..." sau "/home/www..." (mai bine a doua varianta)

Edited by cosminnuss, 08 May 2006 - 10:04.


#6
FloRin86

FloRin86

    Junior Member

  • Grup: Members
  • Posts: 53
  • Înscris: 24.07.2005
am modificat config.php :

Quote

<?php
     $language = "eng";
     $version = "1.35";
     $SetPending = '2';
     $AdminAllowComments = '1';
     $AdminAllowMsg = '1';
     $siteurl = "http://top100.xhost.ro/rate"; // no ending slash
     $full_path_to_public_program = $_SERVER['DOCUMENT_ROOT']."/top100.xhost.ro/rate"; // no ending slash
     $upload_dir = "$full_path_to_public_program/pictures"; // no ending slash
     $from_address = "[email protected]";
     define('FLOOD_TIMEOUT',"1800");  // defines max time they have to wait before sending messages. used for slowing down spam
     define(MAXFILE_SIZE,"500000");  // defines max file size for images
     define(MAXIMAGE_W_SIZE,"500");  // defines max image width size for uploaded images
     define(MAXIMAGE_H_SIZE,"500");  // defines max image height size for uploaded images
    
     $admin_member_per_page = 25;
     $number_of_ads_per_page = 16;

/* Table names must be set here */

     $admintbl = "admin";
     $usr_tbl = "users";
     $cat_tbl = "categories";
     $comment_tbl = "comments";
     $msg_tbl = "emailmesg";
     $pic_tbl = "picture";
     $secure_image = "security_images";
     $rating_tbl = "rating";
     $sess_tbl = "session";
  
$logintype["http"] = '';   //specifies the login type    
       $GLOBALS['noshutdownfunc'] = 1;

$full_path_to_db = "$full_path_to_public_program/adminpanel/db.php";
if (file_exists($full_path_to_db))
{
require($full_path_to_db);
}
require("$full_path_to_public_program/$language.php");


include_once("$full_path_to_public_program/adminpanel/func.php");
?>
dupa cum vedeti http://top100.xhost.ro/rate ...tot warnings

#7
miromulus

miromulus

    c'mon inner peace...!

  • Grup: Senior Members
  • Posts: 9,613
  • Înscris: 25.01.2006
nu cred ca userul tau pe acel server este top100.xhost.ro dupa cum vad aici: File(/home/www/top100.xhost.ro/rate/eng.php) is not within the allowed path(s):

Calea corecta este in general de forma /home/username/public_html...

Edited by miromulus, 10 May 2006 - 22:49.


#8
cosminnuss

cosminnuss

    Active Member

  • Grup: Members
  • Posts: 1,352
  • Înscris: 21.10.2005

Quote

$full_path_to_public_program = $_SERVER['DOCUMENT_ROOT']."/top100.xhost.ro/rate"; // no ending slash

Nu cred ca are ce cauta "/top100.xhost.ro" acolo. Scoate-l si vezi ce se intampla.

#9
FloRin86

FloRin86

    Junior Member

  • Grup: Members
  • Posts: 53
  • Înscris: 24.07.2005
cosminnuss, am facut cum ai zis, dar apar aceleasi warning-uri ..

Anunturi

Chirurgia spinală minim invazivă Chirurgia spinală minim invazivă

Chirurgia spinală minim invazivă oferă pacienților oportunitatea unui tratament eficient, permițându-le o recuperare ultra rapidă și nu în ultimul rând minimizând leziunile induse chirurgical.

Echipa noastră utilizează un spectru larg de tehnici minim invazive, din care enumerăm câteva: endoscopia cu variantele ei (transnazală, transtoracică, transmusculară, etc), microscopul operator, abordurile trans tubulare și nu în ultimul rând infiltrațiile la toate nivelurile coloanei vertebrale.

www.neurohope.ro

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Forumul Softpedia foloseste "cookies" pentru a imbunatati experienta utilizatorilor Accept
Pentru detalii si optiuni legate de cookies si datele personale, consultati Politica de utilizare cookies si Politica de confidentialitate