kznamst Posted March 19, 2013 Report Share Posted March 19, 2013 Salut.Am si eu o problema cu functia include din php, am incercat toate modalitatile, am schimbat numele, am reverificat, am folosit "", ''. Am folosit tot ce am stiut, si tot nu-mi merge.Am mai folosit functia cu cateva zile in urma, si mi-a mers, si dupa am facut folderul .htaccess si am pus pagina 404 acolo, si cred ca de atunci nu mai merge. Am cautat peste tot si am incercat tot ce ziceau, dar tot nu mi-a mers.Rog pe cineva, daca stie sa ma ajute Multumesc mult><Warning: include(php/header.php ): failed to open stream: No such file or directory in /home/usr/public_html/post/cplus/cplus.html on line 1 Warning: include(php/header.php ): failed to open stream: No such file or directory in /home/usr/public_html/post/cplus/cplus.html on line 1 Warning: include(): Failed opening 'php/header.php ' for inclusion (include_path='.:/usr/lib/php') in /home/usr/public_html/post/cplus/cplus.html on line 1 Quote Link to comment Share on other sites More sharing options...
eusimplu Posted March 19, 2013 Report Share Posted March 19, 2013 Cu toate ca o sa ma injuri ca o sa-ti spun lucruri banale dar:creeaza fisierul header.php in dosarul php . Apropo, ca sa incluzi un fisier din public_html/ cand tu nu esti in directorul respectiv se include sub forma:include('../php/header.php');Mai multe detalii, da si linii de cod ca sa-ti putem da raspunsuri pe masura! Quote Link to comment Share on other sites More sharing options...
boco_bc Posted March 19, 2013 Report Share Posted March 19, 2013 Tie iti zice ""Warning: include(php/header.php ): failed to open stream: No such file or directory in "", scrie clar ca nu nu gaseste fisierul pe care vrei sa-l incluzi , ai grija la locatia fisierului si trebuie sa-ti mearga<?php require_once("FISIER.php");?>sau<?php include 'FISIER.php'?> Quote Link to comment Share on other sites More sharing options...
kznamst Posted March 19, 2013 Author Report Share Posted March 19, 2013 (edited) header.php in dosarul este in php,Asta e in cplus.html (care e in public_html/post/cplus/cplus.html; iar header.php e in public_html/php/header.php )<?php include('../php/header.php'); ?><?php include('../php/submenucplus.php'); ?><div id="content">fvdf ffdfdggyhyhyhyy6yt tgrtggf</div><?php include('../php/header.php'); ?> '; Edited March 19, 2013 by kznamst Quote Link to comment Share on other sites More sharing options...
kznamst Posted March 19, 2013 Author Report Share Posted March 19, 2013 (edited) Acum imi da asta (dupa ce am pus paranteze. am incercat si cu require si tot asa)Warning: include(../php/header.php): failed to open stream: No such file or directory in /home/usr/public_html/post/cplus/cplus.html on line 1 Edited March 19, 2013 by kznamst Quote Link to comment Share on other sites More sharing options...
kznamst Posted March 19, 2013 Author Report Share Posted March 19, 2013 Am mai citit undeva, pe un forum si zicea de permisiuni ... Poate va ajuta si asta Quote Link to comment Share on other sites More sharing options...
shaggi Posted March 19, 2013 Report Share Posted March 19, 2013 ../../php/header.php Quote Link to comment Share on other sites More sharing options...
kznamst Posted March 19, 2013 Author Report Share Posted March 19, 2013 Multumesc mult shaggi , Gata merge acum >< Quote Link to comment Share on other sites More sharing options...