PHP style help
PHP style help
I just started fooling around with the PHP aspect of rtb. My question is concerning the example2.php file that comes bundled with rtb. I see how you've embedded a table within the php markup to show tracks played. Is there a way to embed css within the markup? I've been trying to do it but i keep ending up with a php error.
One more question: i changed my webhost and i want to change my directory listing to reflect that, but when i go to relist myself i get the following error:
Warning: REG_EMPTY in /www/htdocs/dir/signup.php on line 72
thanks
One more question: i changed my webhost and i want to change my directory listing to reflect that, but when i go to relist myself i get the following error:
Warning: REG_EMPTY in /www/htdocs/dir/signup.php on line 72
thanks
- Jay
- Will work for food (Administrator)
- Posts: 3022
- Joined: Mon Jan 14, 2002 12:48 am
- Location: Next Door
- Contact:
you need to make sure that you don't mess up the php code around HTML
what I would do is if you are new to php in general check out www.php.net
it will help you greatly in customizing your pages and understanding what example2.php does and how it works.
The basic template is
look at example.php for a better understanding.
you can use basic HTML design around that file, however if you want to move up to the example2 you will need to know a little more about PHP.
As for the listing PM me the URL you are giving it and I will give it a look when I get back from vacation.
what I would do is if you are new to php in general check out www.php.net
it will help you greatly in customizing your pages and understanding what example2.php does and how it works.
The basic template is
Code: Select all
<?php include("/path/to/includes.php"); ?>
<HTML>
<HEAD....
<BODY>
I am currently playing <?php echo $current_song; ?>.
</BODY>
</HTML>
you can use basic HTML design around that file, however if you want to move up to the example2 you will need to know a little more about PHP.
As for the listing PM me the URL you are giving it and I will give it a look when I get back from vacation.
- Jay