[HELP] Is there something wrong with this PHP code?
#1

Right. So I'm pretty much a noob when it comes to PHP. I've only just decided to be assed to learn it, and so I started with the basic "copying and typing it out and trial and error". Obviously, I had errors, I looked back at the TKAdmin PHP code to see how the creator defined 'FORUMURL' and though "Well. PHP isn't as hard as I thought" and decided to copy it.

Now, it's a little... Noobish, and some of you would probably laugh at the way I did it.. But, heres the code.

Код:
<?php
if(!defined ('FORUMURL'))
{
  define('FORUMURL', 'http://www.siliconrp.net63.net');
}

echo "<h1>Hello World!</h1>";
if(defined("FORUMURL")) echo "<li><a href='FORUMURL'>Forums</a></li>"; else echo "<p>&nbsp;</p>";


?>
Now, (I'm using WeBuilder), and in 'preview' mode it outputs "Not Found".

Any help appreciated, and +rep given.
Reply


Messages In This Thread
[HELP] Is there something wrong with this PHP code? - by Tarantula - 13.12.2011, 09:11
Re: [HELP] Is there something wrong with this PHP code? - by JiHost - 13.12.2011, 10:38
Re: [HELP] Is there something wrong with this PHP code? - by Tarantula - 13.12.2011, 12:08
Re: [HELP] Is there something wrong with this PHP code? - by Pinguinn - 13.12.2011, 16:36
Re: [HELP] Is there something wrong with this PHP code? - by Tarantula - 13.12.2011, 16:52

Forum Jump:


Users browsing this thread: 1 Guest(s)