• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Download Section on Website

Fakaa

New Member
Joined
Oct 31, 2008
Messages
102
Reaction score
0
Hello Tibians

I would like to fix a script for downloading a custom client at website

this is mine script
Code:
<?PHP
$content = file_get_contents("downloads.htm");
if($content != FALSE)
	$main_content .= <html>
Download tibiaGrim Custom Client href="link" http://google.nl
</html> 
else
	$main_content .= 'Can not load file <b>downloads.htm</b> or file is empty.';
?>

I changed my real download link for a google link(easier)

Now my question is how to fix this script
this is my error
Code:
Parse error: syntax error, unexpected '<' in C:\xampp\htdocs\downloads.php on line 3

I know it's the '<' but I just cant find it on line 3

Please help me out guys i will give rep++ to the helper of my problem

Cheers and have a nice day !
 
Try this:
PHP:
<?PHP
$content = file_get_contents("downloads.htm");
if($content != FALSE)
	$main_content .= '<html>
Download tibiaGrim Custom Client href="link" http://google.nl
</html>';
else
	$main_content .= 'Can not load file <b>downloads.htm</b> or file is empty.';
?>
 
Try this:
PHP:
<?PHP
$content = file_get_contents("downloads.htm");
if($content != FALSE)
	$main_content .= '<html>
Download tibiaGrim Custom Client href="link" http://google.nl
</html>';
else
	$main_content .= 'Can not load file <b>downloads.htm</b> or file is empty.';
?>

/\ Failz @ html=D

PHP:
<?PHP
$content = file_get_contents("downloads.htm");
if($content != FALSE)
	$main_content .= '<html>
<a href="http://www.google.nl">Download tibiaGrim Custom Client</a> 
</html>';
else
	$main_content .= 'Can not load file <b>downloads.htm</b> or file is empty.';
?>

I don't understand why you do it this way but here is the html part fixed I gues..

Creating a (download)link in html works like this:
Code:
<a href="Link here">Text to show comes here</a>
 
Last edited:
Back
Top