Jump to content
php.lv forumi

Bilžu augšuplāde


kalabox

Recommended Posts

Sveiki, tātad saskāros ar kļūdu

 

Kamēr bija uz mana pC lapa, tikmēr viss gaaja, tikliidz uzliku uz maksas servera

 

taa pie bilžu agušuplādes man met ārā tādu erroru

 

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/local/apache/htdocs/upload/small/Jelgava-X-Lander__X-3_25.jpeg) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in /home/u549873687/public_html/inc/user_edit.inc.php on line 143

if(file_exists($_SERVER['DOCUMENT_ROOT'].$GLOBALS['p']."/upload/small/".$filename))unlink($_SERVER['DOCUMENT_ROOT'].$GLOBALS['p']."/upload/small/".$filename);

Link to comment
Share on other sites

Ievietojot šādu te

 

include $_SERVER["DOCUMENT_ROOT"]="/home/mysite.com/public_html/";

 

viss straada, bile augšupielādējas, bet tagat paraadaas cita kļūda

 

Warning: include() [function.include]: Failed opening '/home/u549873687/public_html/' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/u549873687/public_html/inc/user_edit.inc.php on line 2

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...