require a file

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
michelefaccini
Posts: 3
Joined: Wed Nov 22, 2017 7:47 am

require a file

Post by michelefaccini »

Hi all, I need to require a php file from the index.php.
I tried require("../my file.php"); but the relative path doesn't work
I tried require($_SERVER['DOCUMENT_ROOT']."/my site/my file.php"); but it doesn't run too :? :? :?
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: require a file

Post by Thorsten »

Hi,

what should be included file do?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply