kraistaps Posted March 17, 2010 Report Share Posted March 17, 2010 Esmu izmēģinājies dažādi, protams, ilgi mokot googli, bet vienmēr apmēram šis pats. Warning: include(home/vards/public_html/includes/head.php) [function.include]: failed to open stream: No such file or directory in /home/vards/public_html/index.php on line 5 index.php : include("includes/functions.php"); -nesanāk include("home/vards/public_html/includes/functions.php"); -nesanāk include($_SERVER['DOCUMENT_ROOT'] . "/includes/functions.php"); -nesanāk Protams izmēģināti vēl daudzi savādāki varianti, bet nekā, tāpēc lūdzu jūsu palīdzību. Paldies. Quote Link to comment Share on other sites More sharing options...
mounkuls Posted March 17, 2010 Report Share Posted March 17, 2010 Pēc warning spriežot tādu failu head.php iekš includes direktorija php nevarēja atrast lai include. Tas fails tur ir vispār? Quote Link to comment Share on other sites More sharing options...
kraistaps Posted March 17, 2010 Author Report Share Posted March 17, 2010 Pēc warning spriežot tādu failu head.php iekš includes direktorija php nevarēja atrast lai include. Tas fails tur ir vispār? Nē, faili eksistē. Ja index.php un function.php tur sākuma mapē, tad strādā, bet tiklīdz starpā ieliek mapi, tad negrib strādāt. Quote Link to comment Share on other sites More sharing options...
anonīms Posted March 17, 2010 Report Share Posted March 17, 2010 ienīstu tādus hostingus. Vislabāk man patīk, ka var norādīt sākuma slašu un tad tik laist /includes/functions.php (starp citu, tu neesi pamēģinājis šādi), bet ir hostingi, kam tas nepatīk un esot vairākās mapēs iekšā, man vajag burties ārā ../../, etc. Quote Link to comment Share on other sites More sharing options...
kraistaps Posted March 17, 2010 Author Report Share Posted March 17, 2010 Esmu izmēģinājis arī liekot sākumā slašu, nekā. Murgs kautkāds, cik ilgi var burties itkā tik viegli saprotamā lietā. Saprastu, ja būtu runa par kādu interesantu funkciju un tai veltīts tik ilgs laiks, bet nejau šādai .... Quote Link to comment Share on other sites More sharing options...
anonīms Posted March 17, 2010 Report Share Posted March 17, 2010 emm, tev vajag inklūdot head.php, ja? Tad kapēc tu mums parādiji funcitons .php? kā piemēru? Ja jā, tad nu nez. Varbūt viņu supportam jāuzraksta, lai izskaidro, kas un kā. Quote Link to comment Share on other sites More sharing options...
kraistaps Posted March 17, 2010 Author Report Share Posted March 17, 2010 Kopā vaig inklūdot 7 failus. Ņemu vienu no tiem kā piemēru. Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted March 17, 2010 Report Share Posted March 17, 2010 un šitā? include("/home/vards/public_html/includes/functions.php"); Quote Link to comment Share on other sites More sharing options...
kraistaps Posted March 17, 2010 Author Report Share Posted March 17, 2010 (edited) Tas pats errors vien ir, tik priekšā slaš zīmīte rādas. Izdzēšot to starpmapi, un pieliekot function.php failu blakus index.php failam, darbojas ar dažādiem include veidiem, bet ar mapi starpā negrib. Edited March 17, 2010 by kraistaps Quote Link to comment Share on other sites More sharing options...
waplet Posted March 17, 2010 Report Share Posted March 17, 2010 include("../fails,kas ir vienu mapi 'parentaak'.php"); Quote Link to comment Share on other sites More sharing options...
kraistaps Posted March 17, 2010 Author Report Share Posted March 17, 2010 include("../fails,kas ir vienu mapi 'parentaak'.php"); Drīzāk jau 'childrenaak'. Koks šāds: /home/vards/public_html/index.php /home/vards/public_html/includes/functions.php u.c include("/home/vards/public_html/includes/functions.php"); NEIET Ja function.php iekopē pie index.php un izmanto include("/home/vards/public_html/functions.php"); Tad iet. Quote Link to comment Share on other sites More sharing options...
kraistaps Posted March 17, 2010 Author Report Share Posted March 17, 2010 (edited) NU JĀ. Tomēr bija tāds ko nepamanīju. Includes mape ir ar lielo sākumburtu. Taisot visu darbu uz localhost, tam nebija jāpievērš uzmanība. Tagad kā paēdu vakariņas prāts veiksmīgāks un uzskatīju. :) Paldies, tiem, kas centās palīdzēt! Edited March 17, 2010 by kraistaps Quote Link to comment Share on other sites More sharing options...
waplet Posted March 17, 2010 Report Share Posted March 17, 2010 children nebūtu, ja seko tālāk? tajā kurā tu esi iekša ir parents. Quote Link to comment Share on other sites More sharing options...
kraistaps Posted March 17, 2010 Author Report Share Posted March 17, 2010 Nu jā esmu iekšā index.php un caur to izsaucu failu, kurš atrodas bērna mapē includes. Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted March 17, 2010 Report Share Posted March 17, 2010 Unix ir case-sensitive, savukaart Windows nav. Tur arii probleemas rodas :) 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.