It's simple, it's just the regex pattern thats tricky.
irc.freenode.net #regex
They'll help you out though

It's simple, it's just the regex pattern thats tricky.
irc.freenode.net #regex
They'll help you out though
visit my internet web site on the internet
http://dong.engineer/
it is just videos by bill wurtz videos you have been warned
Something like this Jack?
http://79.64.224.188:1337/jack.php
Damn! You beat me! My script was nearly ready it was just displaying them all wrong. Damn lol
Exactly like that![]()
That should workPHP Code:<?php
$url = file_get_contents("http://www.habbo.co.uk/myhabbo/styles/assets.css");
$look4 = "/background-image: url\((.*?)\);/";
preg_match_all($look4, $url, $images);
$echo = implode('<br> ', $images[1]);
echo "$echo";
?>
EDIT: and if you want to display the number of images.
EDIT AGAIN: if you want to view the images on the page:PHP Code:<?php
$url = file_get_contents("http://www.habbo.co.uk/myhabbo/styles/assets.css");
$look4 = "/background-image: url\((.*?)\);/";
preg_match_all($look4, $url, $images);
$echo = implode('<br> ', $images[1]);
echo "$echo";
echo "<hr>There are currently ";
$number = preg_match_all($look4, $url, $images);
echo "$number";
echo "images/backgrounds";
?>
PHP Code:<?php
$url = file_get_contents("http://www.habbo.co.uk/myhabbo/styles/assets.css");
$look4 = "/background-image: url\((.*?)\);/";
preg_match_all($look4, $url, $images);
$echo = implode('<br> ', $images[1]);
echo "$echo";
echo "<hr>There are currently ";
$number = preg_match_all($look4, $url, $images);
echo "$number";
echo " images/backgrounds";
echo "<hr>";
$tochange = "$echo";
$start = array("http", "gif", "png", "jpg");
$replace = array("<img src=http", "gif>", "png>", "jpg>");
$htmlimages = str_replace($start, $replace, $tochange);
echo "$htmlimages";
?>
Last edited by Decode; 05-04-2008 at 04:22 PM.
Lets set the stage on fire, and hollywood will be jealous.
Thank you.That should workPHP Code:<?php
$url = file_get_contents("http://www.habbo.co.uk/myhabbo/styles/assets.css");
$look4 = "/background-image: url\((.*?)\);/";
preg_match_all($look4, $url, $images);
$echo = implode('<br> ', $images[1]);
echo "$echo";
?>
EDIT: and if you want to display the number of images.
EDIT AGAIN: if you want to view the images on the page:PHP Code:<?php
$url = file_get_contents("http://www.habbo.co.uk/myhabbo/styles/assets.css");
$look4 = "/background-image: url\((.*?)\);/";
preg_match_all($look4, $url, $images);
$echo = implode('<br> ', $images[1]);
echo "$echo";
echo "<hr>There are currently ";
$number = preg_match_all($look4, $url, $images);
echo "$number";
echo "images/backgrounds";
?>
PHP Code:<?php
$url = file_get_contents("http://www.habbo.co.uk/myhabbo/styles/assets.css");
$look4 = "/background-image: url\((.*?)\);/";
preg_match_all($look4, $url, $images);
$echo = implode('<br> ', $images[1]);
echo "$echo";
echo "<hr>There are currently ";
$number = preg_match_all($look4, $url, $images);
echo "$number";
echo " images/backgrounds";
echo "<hr>";
$tochange = "$echo";
$start = array("http", "gif", "png", "jpg");
$replace = array("<img src=http", "gif>", "png>", "jpg>");
$htmlimages = str_replace($start, $replace, $tochange);
echo "$htmlimages";
?>
Do you know how to:
1) Make it so that the image is saved into a local direcotry
2) Save the IMG name, it it gets rid of " http://img2.cdn1.habbo.com/c_images/stickers/" and just inserts filename.gif into a database?
Want to hide these adverts? Register an account for free!