News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

php include in index.template.php ?

Started by khanahmedabbas, January 13, 2013, 10:39:42 AM

Previous topic - Next topic

Arantor

Yes because the path to the physical file is not the same as what the user sees in their browser...

On my server for example, domain.com maps to /home/domain/public_html, which is similar to what you have going on.
Holder of controversial views, all of which my own.


Kindred

what you have included is not a PATH... it is a URL.

PATHs do not start with http....
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

lomaalta

Quote from: Arantor on December 03, 2014, 10:52:16 AM
Because the path you've specified is probably wrong.

/myfile.php points to the top-most level folder on the system, and I'd be extremely surprised if that was the real path.

In all likelihood the correct path is more like /home/username/public_html/myfile.php but it's impossible to know without more information.

Yep, I am on a new server and MAN that is quite the path!  (figured out the correct path when using repair_settings.php).

Thanks!

Advertisement: