Jump to content

SUBIECTE NOI
« 1 / 5 »
RSS
Ce tip de monitor am nevoie pt of...

Resoftare camera supraveghere

Cu ce va aparati de cainii agresi...

Nu imi platiti coletul cu cardul ...
 Mi-au disparut amigdalitele ?

Exista vreun plan de terorizare p...

Schimbare adresa DNS IPv4 pe rout...

Recomandare Barebone
 Monede JO 2024

Suprasolicitare sistem electric

CIV auto import

Mutare in MOZAMBIC - pareri, expe...
 Scoatere antifurt airtag de pe ha...

Magnet in loc de clește pent...

Cumparat/Locuit in apartament si ...

Pot folosi sistemul PC pe post de...
 

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

Neurochirurgie minim invazivă Neurochirurgie minim invazivă

"Primum non nocere" este ideea ce a deschis drumul medicinei spre minim invaziv.

Avansul tehnologic extraordinar din ultimele decenii a permis dezvoltarea tuturor domeniilor medicinei. Microscopul operator, neuronavigația, tehnicile anestezice avansate permit intervenții chirurgicale tot mai precise, tot mai sigure. Neurochirurgia minim invazivă, sau prin "gaura cheii", oferă pacienților posibilitatea de a se opera cu riscuri minime, fie ele neurologice, infecțioase, medicale sau estetice.

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