kznamst Posted March 19, 2013 Report 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
eusimplu Posted March 19, 2013 Report 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
boco_bc Posted March 19, 2013 Report 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
kznamst Posted March 19, 2013 Author Report 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
kznamst Posted March 19, 2013 Author Report 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
kznamst Posted March 19, 2013 Author Report Posted March 19, 2013 Am mai citit undeva, pe un forum si zicea de permisiuni ... Poate va ajuta si asta Quote
kznamst Posted March 19, 2013 Author Report Posted March 19, 2013 Multumesc mult shaggi , Gata merge acum >< Quote