GetSimple Support Forum
php require_once - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: php require_once (/showthread.php?tid=1054)



php require_once - staseo - 2010-10-14

Trying to include file on customers websites footers: Dinamic credit link E.t.c
by this:

Code:
<? php require_once("file.html") ?>

not working...somebody?


php require_once - JWH_Matthew - 2010-10-15

Not 100% positive but you may try removing the space between "<?" and "php" and add a ";" after the last ")" should look like:
Code:
<?php require_once("file.html"); ?>



php require_once - staseo - 2010-10-15

I have a try...not working
i even did it via "include_once" or just "include" .... the same thing


php require_once - Zegnåt - 2010-10-15

staseo Wrote:I have a try...not working

OWS_Matthew Wrote:Not 100% positive but you may try removing the space between “<?” and “php” and add a “;” after the last “)” should look like:
Code:
<?php require_once("file.html"); ?>

Matt has the right code there, and it should work. If it doesn’t work PHP should show you an error explaining why not. If you’re not seeing an error and you’re doing this in GetSimple be sure to enable debug mode.


php require_once - staseo - 2010-10-15

@Zegnåt - Thank You, works Smile