Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
php require_once
#1
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?
Reply
#2
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"); ?>
JWH Technologies
Have any marketing ideas for Get-Simple? Let me hear them!
Reply
#3
I have a try...not working
i even did it via "include_once" or just "include" .... the same thing
Reply
#4
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.
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply
#5
@Zegnåt - Thank You, works Smile
Reply




Users browsing this thread: 1 Guest(s)