Question about $boardurl

Started by Masterd, December 28, 2010, 06:00:02 AM

Previous topic - Next topic

Masterd

I want to specify forum's URL with $boardurl. Is this code okay?

<?php

global $boardurl;

echo
$boardurl . '/something.html/';

?>

Matthew K.

No need for the slash after .html. But that'll work.

Masterd

Thank you. I'm marking this as solved.

DoctorMalboro

Depends if it's added to SMF or work as a standalone page.

If so, you forgot the require('Settings.php');

Baby Daisy

Quote from: DoctorMalboro on December 28, 2010, 04:37:50 PM
Depends if it's added to SMF or work as a standalone page.

If so, you forgot the require('Settings.php');

Better to require SSI.php than the Settings.php file, in my honest opinion, if you are going to make a standalone page.
あなたは私のお尻にキスするとき、私はそれを愛する

Masterd

Quote from: Baby Moonview Daisy link=topic=415002.msg2894540#msg2894540
Better to require SSI.php than the Settings.php file, in my honest opinion, if you are going to make a standalone page.
/quote]

Yes, it is, for security reasons. But, I'm not making a standalone page.

Advertisement: