13.12.2011, 09:11
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.
Now, (I'm using WeBuilder), and in 'preview' mode it outputs "Not Found".
Any help appreciated, and +rep given.
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> </p>"; ?>
Any help appreciated, and +rep given.