help with small script, preg_replace

Hi, Im new here hope I got the right forum.

I have just found a small free script that parses the gig’s from a myspace account so you can display them on an external website. Resulting in only having to update one source. The link to the script is here.

The problem is the design of it. It looks exactly the same as the original myspace would. I would like to customise it as much as I can with your help.

The only thing I could find was this, quoted from the website above:

You can change the colours of how it will look on your actual website by doing a preg_replace on the $pieces2[0]; variable.

This is the whole code:

[code]<?php
$handle = fopen(“http://www.myspace.com/fastpoint”, “rb”);
$contents = ‘’;
while (!feof($handle)) {
$contents .= fread($handle, 8192);
}
fclose($handle);
$pieces = explode(“Upcoming Shows”, $contents);

$pieces2 = explode("

", $pieces[1]);

echo “

”;
echo $pieces2[0];
?> [/code]

I’m thinking you need a more solid base of HTML understanding. Take a look at the outputted code, if you ask me, it’s horrible (from what the script shows). Do you even have tags in there?

Sponsor our Newsletter | Privacy Policy | Terms of Service