sandis_m Posted August 24, 2010 Report Share Posted August 24, 2010 (edited) bāc... pārceļot visu mapīti ar savu php lapu uz 000webhost bija jāmaina visi include('site_pages/page.php'); uz include('./site_pages/page.php'); emm.. un arī faila augšupielādē vairs neko nesaprotu move_uploaded_file($temp,"data/profilepics/$unique_id$filename"); vai arī vajag likt priekšā /home/username/public_hmtl/ Edited August 24, 2010 by who_i_am Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted August 24, 2010 Report Share Posted August 24, 2010 (edited) define('ABSPATH', dirname(__FILE__)); to liec root failaa (ceru, ka tev taads ir) un vienmeer lieto ABSPATH konstanti priekshaa visam, piemeeram include ABSPATH . '/random/dir/file.php'; move_uploaded_file($temp, ABSPATH . '/uploads/' . $filename); Protams ieviest vairaakas konstantes buutu veel labaak. Edited August 24, 2010 by rATRIJS Quote Link to comment Share on other sites More sharing options...
Леший Posted August 24, 2010 Report Share Posted August 24, 2010 visi include('site_pages/page.php'); uz include('./site_pages/page.php'); set_include_path(get_include_path() . PATH_SEPARATOR . getcwd()); Quote Link to comment Share on other sites More sharing options...
sandis_m Posted August 24, 2010 Author Report Share Posted August 24, 2010 define('ABSPATH', dirname(__FILE__)); to liec root failaa (ceru, ka tev taads ir) un vienmeer lieto ABSPATH konstanti priekshaa visam, piemeeram include ABSPATH . '/random/dir/file.php'; move_uploaded_file($temp, ABSPATH . '/uploads/' . $filename); Protams ieviest vairaakas konstantes buutu veel labaak. paldies Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.