![]() |
Second Opinion
Folosind serviciul second opinion ne puteți trimite RMN-uri, CT -uri, angiografii, fișiere .pdf, documente medicale. Astfel vă vom putea da o opinie neurochirurgicală, fără ca aceasta să poată înlocui un consult de specialitate. Răspunsurile vor fi date prin e-mail în cel mai scurt timp posibil (de obicei în mai putin de 24 de ore, dar nu mai mult de 48 de ore). Second opinion – Neurohope este un serviciu gratuit. www.neurohope.ro |
Erori la instalarea unui script php
Last Updated: May 11 2006 10:44, Started by
FloRin86
, May 07 2006 07:14
·
0

#1
Posted 07 May 2006 - 07:14

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
Posted 07 May 2006 - 10:51

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
Posted 07 May 2006 - 11:55

Problema se rezolva doar daca pun scriptu pe un host care nu e shared ?
|
#4
Posted 07 May 2006 - 19:21

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
Posted 08 May 2006 - 10:02

$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
Posted 10 May 2006 - 22:30

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"); ?> |
#7
Posted 10 May 2006 - 22:47

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
Posted 11 May 2006 - 09:31

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
Posted 11 May 2006 - 10:44

cosminnuss, am facut cum ai zis, dar apar aceleasi warning-uri ..
|
Anunturi
▶ 0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users