Jump to content

[SOLVED] php includes


ohdang888

Recommended Posts

As stated before, you don't need a ending ; if its the last line of code before the ?>

 

i use...

<?php include("/include/file.php")?>

but it won't work.... (the folder "include "is located in the same folder as this page.)

Try:

 

<?php include("include/file.php");?>

 

So without the leading /, and don't forget the ; in the end either.  ;)

Link to comment
https://forums.phpfreaks.com/topic/83167-solved-php-includes/#findComment-423428
Share on other sites

Archived

This topic is now archived and is closed to further replies.

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