PHP style help

Ask questions, request features, or just complement us about our software and services.
Post Reply
User avatar
spin
Posts: 6
Joined: Wed May 28, 2003 12:07 am
Contact:

PHP style help

Post by spin »

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
Image
User avatar
Jay
Will work for food (Administrator)
Posts: 3020
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Post by Jay »

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

Code: Select all

<?php include("/path/to/includes.php"); ?>

<HTML>
<HEAD....
<BODY>
I am currently playing <?php echo $current_song; ?>.
</BODY>
</HTML>
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.
- Jay
User avatar
Jay
Will work for food (Administrator)
Posts: 3020
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Post by Jay »

problem with Directory was fixed, try resubmitting.
- Jay
Post Reply