News:

Version 3.5 has been released. Visit https://custom.simplemachines.org/mods/index.php?mod=255 to get the most up to date version.

Main Menu
Coinbase

php includes?

Started by fastcart, May 18, 2007, 12:14:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

fastcart

Hi Great mod here! Love it so far...

Real quick...I want to use Php includes eg

<?php include("http://www.myotherdomain.com/syndication/folder1/register.htm"); ?>

Is it possible to put this in as an ad? Must be as this is all
php. Just trying to figure out how to do it.....(im sure ill
have to modify this code a little and that's fine as long as i can
get my ads to show through)...

Thanks in advance.

Rich
:)

bigguy

There should be a drop down menu right where you insert the code for the ad to switch it to html or php, try that.

fastcart

Thanks but I did both modes....

Anyone?

chadon

I have the same error when I try to add a php include code.
Parse error: parse error, unexpected '?' in /home/account/public_html/forum/Sources/Load.php(1726) : eval()'d code(583) : eval()'d code on line 1

This is my code:
<?php include('pictures/random.php'); ?>

The ad type is set to php.
Any idea?

chadon

OK I have found the solution in the SMF supprt forum. Here is the code we have to use:
require("/home/account/public_html/pictures/random.php");
Do not include the <?php and ?> if you're including them in index.template.php or in SMF ads.