Jump to content
kznamst

PHP-include error(help)

Recommended Posts

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 :D Multumesc mult:*>:D<:X

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
Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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'?>

Link to comment
Share on other sites

:D 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 by kznamst
Link to comment
Share on other sites

Acum imi da asta :D(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 by kznamst
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.



×
×
  • Create New...