Jump to content

Recommended Posts

Hello,

 

In my web page when I put all the files in the root I use this script:

<?PHP include "menu.php"; ?>

And everythink is OK.

 

What can I do please if my files are inside folders??

This is an example:

I dont think it is correct because nothing is appearing :(

What is wrong with this script?

<?PHP include "english/SubPage/menu/menu.php"; ?>

Link to comment
https://forums.phpfreaks.com/topic/100849-php-include-script/
Share on other sites

oupss!!! I am sorry,

I tried: http://www.yoursite.com/english/SubPage/menu/menu.php

and it works!

 

but now: I tried to put this link inside the index.php file

 

<?PHP include "http://www.yoursite.com/english/SubPage/menu/menu.php"; ?>

 

and nothing is happening 

Link to comment
https://forums.phpfreaks.com/topic/100849-php-include-script/#findComment-515719
Share on other sites

index.php

<?PHP include "http://www.yoursite.com/english/SubPage/menu/menu.php"; ?>

 

 

menu.php

MENU IN HERE

 

 

I think he has already got that far, i think what he is saying, is that even with that code, the file is still not being included,  im out of ideas sorry.

Link to comment
https://forums.phpfreaks.com/topic/100849-php-include-script/#findComment-515723
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.