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 » Sun Jan 27, 2019 10:38 am

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: 14709
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: require a file

Post by Thorsten » Wed Jan 30, 2019 5:56 pm

Hi,

what should be included file do?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Post Reply