Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 6 of 6
  1. #1
    Join Date
    May 2006
    Location
    Hull
    Posts
    7,701
    Tokens
    2,430
    Habbo
    Moh

    Latest Awards:

    Default preg_match help :/

    Well, $output simply gets some contents from a Habbo Ajax page and it contains:
    HTML Code:
    <input id="avatar-habblet-list-container-totalPages" value="26" type="hidden">
    I know this, I have echoed $output and it definaly contains it.

    I want to get the value of that page "26" and for some reason, the below code isn't working =S
    PHP Code:
    preg_match("@<input id=\"avatar-habblet-list-container-totalPages\" value=\"(.*?)\" type=\"hidden\">@"$output$matches);

    print_r($matches); 
    Any ideas?

  2. #2
    Join Date
    Jul 2004
    Location
    California
    Posts
    8,725
    Tokens
    3,789
    Habbo
    HotelUser

    Latest Awards:

    Default

    I ran this, and it worked fine

    PHP Code:
    <?php

    $output 
    'content
    <input id="avatar-habblet-list-container-totalPages" value="26" type="hidden">
    content'
    ;

    preg_match("/<input id=\"avatar-habblet-list-container-totalPages\" value=\"(.*?)\" type=\"hidden\">/"$output$matches);

    print_r($matches);  

    ?>

  3. #3
    Join Date
    May 2006
    Location
    Hull
    Posts
    7,701
    Tokens
    2,430
    Habbo
    Moh

    Latest Awards:

    Default

    hum strange.

    In this case, $output is equal to:

    HTML Code:
    HTTP/1.0 200 OK
    Date: Sat, 27 Mar 2010 01:38:14 GMT
    X-Origin-Id: resin-fe-5
    Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-check=0
    Expires: Thu, 05 Oct 2006 12:00:00 GMT
    Pragma: no-cache
    Content-Type: text/html;charset=utf-8
    P3P: CP="NON DSP COR CURa ADMa OUR STP STA"
    X-Cache: MISS from www.habbo.co.uk
    Connection: close
    
    
    
    
        <meta http-equiv="content-type" content="text/html; charset=utf-8">
    
        <title>Habbo:  </title>
    
    
        <link rel="shortcut icon" href="http://images.habbo.com/habboweb/48_fa4a5c01c7d5b42a784f4f6531bb1c63/9/web-gallery/v2/favicon.ico" type="image/vnd.microsoft.icon">
        <link rel="alternate" type="application/rss+xml" title="Habbo: RSS" href="http://www.habbo.co.uk/articles/rss.xml">
    
    
    
    
    
    <link rel="stylesheet" href="http://images.habbo.com/habboweb/48_fa4a5c01c7d5b42a784f4f6531bb1c63/9/web-gallery/v2/styles/style.css" type="text/css">
    <link rel="stylesheet" href="http://images.habbo.com/habboweb/48_fa4a5c01c7d5b42a784f4f6531bb1c63/9/web-gallery/v2/styles/buttons.css" type="text/css">
    <link rel="stylesheet" href="http://images.habbo.com/habboweb/48_fa4a5c01c7d5b42a784f4f6531bb1c63/9/web-gallery/v2/styles/boxes.css" type="text/css">
    
    <link rel="stylesheet" href="http://images.habbo.com/habboweb/48_fa4a5c01c7d5b42a784f4f6531bb1c63/9/web-gallery/v2/styles/tooltips.css" type="text/css">
    <link rel="stylesheet" href="/styles/local/uk.css" type="text/css">
    
    
    
    
    
    
    
    <meta name="description" content="Habbo Hotel: Make friends, join the fun, get noticed!">
    <meta name="keywords" content="habbo hotel , virtual, world, social network, free, community, avatar, chat, online, teen, roleplaying, join, social, groups, forums, safe, play, games, online, friends, teens, rares, rare furni, collecting, create, collect, connect, furni, furniture, pets , room design, sharing, expression, badges, hangout, music, celebrity, celebrity visits, celebrities, mmo, mmorpg, massively multiplayer">
    
    
    
    <!--[if IE 8]>
    <link rel="stylesheet" href="http://images.habbo.com/habboweb/48_fa4a5c01c7d5b42a784f4f6531bb1c63/9/web-gallery/v2/styles/ie8.css" type="text/css" />
    <![endif]-->
    <!--[if lt IE 8]>
    <link rel="stylesheet" href="http://images.habbo.com/habboweb/48_fa4a5c01c7d5b42a784f4f6531bb1c63/9/web-gallery/v2/styles/ie.css" type="text/css" />
    <![endif]-->
    <!--[if lt IE 7]>
    <link rel="stylesheet" href="http://images.habbo.com/habboweb/48_fa4a5c01c7d5b42a784f4f6531bb1c63/9/web-gallery/v2/styles/ie6.css" type="text/css" />
    
    
    <style type="text/css">
    body { behavior: url(/js/csshover.htc); }
    </style>
    <![endif]-->
    
    <meta name="build" content="48-BUILD66 - 25.03.2010 12:28 - uk">
    
    <div id="overlay"></div>
    <div id="header-container">
        <div id="header" class="clearfix">
            <h1><a href="http://www.habbo.co.uk/"></a></h1>
            <div id="subnavi">
                <div id="subnavi-user">
                    <div class="clearfix">&nbsp;</div>
                    <p>
                            <a href="http://www.habbo.co.uk/client" id="enter-hotel-open-medium-link" target="client" onclick="HabboClient.openOrFocus(this); return false;">Enter Habbo Hotel</a>
    
                    </p>
                </div>
                
                <div id="subnavi-login">
                    <form action="https://www.habbo.co.uk/account/submit" method="post" id="login-form">
                        <input name="page" value="/habblet/habbosearchcontent" type="hidden">
                        <ul>
                            <li>
                                <label for="login-username" class="login-text"><b>Username</b></label>
    
                                <input tabindex="1" class="login-field" name="credentials.username" id="login-username" type="text">
                                <a href="#" id="login-submit-new-button" class="new-button" style="float: left; display: none;"><b>Sign in</b><i></i></a>
                                <input id="login-submit-button" value="Sign in" class="submit" type="submit">
                            </li>
                            <li>
                                <label for="login-password" class="login-text"><b>Password</b></label>
                                <input tabindex="2" class="login-field" name="credentials.password" id="login-password" type="password">
                                <input tabindex="3" name="_login_remember_me" value="true" id="login-remember-me" type="checkbox">
    
                                <label for="login-remember-me" class="left">Remember me</label>
                            </li>
                        </ul>
                    </form>
                    <div id="subnavi-login-help" class="clearfix">
                        <ul>
                            <li class="register"><a href="https://www.habbo.co.uk/account/password/forgot" id="forgot-password"><span>I forgot my password/username</span></a></li>
                            <li><a href="https://www.habbo.co.uk/register"><span>Register for free</span></a></li>
    
                        </ul>
                    </div>
    <div id="remember-me-notification" class="bottom-bubble" style="display: none;">
        <div class="bottom-bubble-t"><div></div></div>
        <div class="bottom-bubble-c">
                        By selecting 'remember me' you will stay signed in on this computer until you click 'Sign Out'. If this is a public computer please do not use this feature.
        </div>
        <div class="bottom-bubble-b"><div></div></div>
    </div>
                </div>
    
            </div>
            
    <ul id="navi">
            <li id="tab-register-now"><a href="https://www.habbo.co.uk/register">Register now!</a><span></span></li>    
            <li>
                <a href="/community">Community</a>
                <span></span>
            </li>
            <li>
    
                <a href="/safety">Safety</a>
                <span></span>
            </li>
            <li>
                <a href="/credits">Credits</a>
                <span></span>
            </li>
    </ul>
    
            <div id="habbos-online"><div class="rounded"><span>1,090 Habbos online now</span></div></div>
        </div>
    </div>
    
    <div id="content-container">
    
    
    <div id="container">
        <div id="content" style="position: relative;" class="clearfix">
        <div id="avatar-habblet-list-container" class="habblet-list-container">
            <ul class="habblet-list">
    
                        <li class="even offline" homeurl="/home/ludus" style="background-image: url(&quot;http://www.habbo.co.uk/habbo-imaging/avatar/sh-290-92.lg-275-110.ch-215-82.hd-180-1.hr-802-61,s-3.g-0.d-3.h-3.a-0,1bfcea36aab2035f732e9cc6bf20d52b.gif&quot;);">
                            <div class="item">
                                <b>ludus</b><br>
                                i look up to the sky
                            </div>
                            <div class="lastlogin">
                                <b>Last login</b><br>
                                    <span title="24/03/10 20:45">2 days ago</span>
    
                            </div>
                            <div class="tools">
                            </div>
                            <div class="clear"></div>
                        </li>
                        <li class="odd offline" homeurl="/home/Ludus+%3A" style="background-image: url(&quot;http://www.habbo.co.uk/habbo-imaging/avatar/hd-600-1.he-1608-62.ch-685-64.lg-715-64.hr-545-35.sh-907-64.wa-2011-,s-3.g-0.d-3.h-3.a-0,a58b03f2e9f9600f28946633dc1bf8b0.gif&quot;);">
                            <div class="item">
                                <b>Ludus :</b><br>
    
                                
                            </div>
                            <div class="lastlogin">
                                <b>Last login</b><br>
                                    <span title="15/11/09 21:49">4 months ago</span>
                            </div>
                            <div class="tools">
                            </div>
                            <div class="clear"></div>
    
                        </li>
                        <li class="even offline" homeurl="/home/Ludus+Nan" style="background-image: url(&quot;http://www.habbo.co.uk/habbo-imaging/avatar/hd-627-3.ch-630-64.lg-716-62.sh-730-62.ca-1818-.hr-596-.ea-1403-62.fa-1205-62.he-1602-73,s-3.g-0.d-3.h-3.a-0,c3beb38eaab3583bcd8155bc6e9383b1.gif&quot;);">
                            <div class="item">
                                <b>Ludus Nan</b><br>
                                
                            </div>
                            <div class="lastlogin">
                                <b>Last login</b><br>
                                    <span title="15/11/09 21:59">4 months ago</span>
    
                            </div>
                            <div class="tools">
                            </div>
                            <div class="clear"></div>
                        </li>
                        <li class="odd offline" homeurl="/home/Ludus+needs+a+Blowie" style="background-image: url(&quot;http://www.habbo.co.uk/habbo-imaging/avatar/hd-205-22.lg-285-78.sh-290-62.ch-267-73.hr-115-42.ha-1006-,s-3.g-0.d-3.h-3.a-0,d9518b314c9a53b31a15d209bd08116a.gif&quot;);">
                            <div class="item">
                                <b>Ludus needs a Blowie</b><br>
    
                                
                            </div>
                            <div class="lastlogin">
                                <b>Last login</b><br>
                                    <span title="16/11/09 17:44">4 months ago</span>
                            </div>
                            <div class="tools">
                            </div>
                            <div class="clear"></div>
    
                        </li>
                        <li class="even offline" homeurl="/home/ludus%21" style="background-image: url(&quot;http://www.habbo.co.uk/habbo-imaging/avatar/hr-145-38.hd-205-2.ch-262-71.lg-281-83.sh-305-70.ha-1008-.fa-1202-81.ca-1813-.wa-2006-,s-3.g-0.d-3.h-3.a-0,b3b8ba2ca7b30b5405cf9d5e92920518.gif&quot;);">
                            <div class="item">
                                <b>ludus!</b><br>
                                
                            </div>
                            <div class="lastlogin">
                                <b>Last login</b><br>
                                    <span title="18/12/08 14:51">15 months ago</span>
    
                            </div>
                            <div class="tools">
                            </div>
                            <div class="clear"></div>
                        </li>
                        <li class="odd offline" homeurl="/home/Ludus%21%21" style="background-image: url(&quot;http://www.habbo.co.uk/habbo-imaging/avatar/ca-1804-64.hr-115-45.sh-290-62.ea-1403-62.lg-270-64.ch-210-62.hd-195-2,s-3.g-0.d-3.h-3.a-0,6ac81b7c4f6b7841439588afb22744fb.gif&quot;);">
                            <div class="item">
                                <b>Ludus!!</b><br>
    
                                Well done on your rooms!
                            </div>
                            <div class="lastlogin">
                                <b>Last login</b><br>
                                    <span title="08/11/09 19:28">4 months ago</span>
                            </div>
                            <div class="tools">
                            </div>
    
                            <div class="clear"></div>
                        </li>
                        <li class="even offline" homeurl="/home/Ludus%21." style="background-image: url(&quot;http://www.habbo.co.uk/habbo-imaging/avatar/lg-275-81.sh-290-82.he-1610-.ca-1801-82.hr-170-1316.ch-267-82.hd-180-29.ea-1401-75.fa-1212-,s-3.g-0.d-3.h-3.a-0,5e69b5bbb5c7ca685ee1f64d081dfdb0.gif&quot;);">
                            <div class="item">
                                <b>Ludus!.</b><br>
                                Bobba Bobba.
                            </div>
                            <div class="lastlogin">
                                <b>Last login</b><br>
    
                                    <span title="02/11/09 17:16">4 months ago</span>
                            </div>
                            <div class="tools">
                            </div>
                            <div class="clear"></div>
                        </li>
                        <li class="odd offline" homeurl="/home/Ludus%27s+Son" style="background-image: url(&quot;http://www.habbo.co.uk/habbo-imaging/avatar/hd-180-1.ch-255-64.lg-285-64.sh-290-63.hr-893-45,s-3.g-0.d-3.h-3.a-0,7be9885f4fb8400aa3864fe0da4b635f.gif&quot;);">
                            <div class="item">
    
                                <b>Ludus's Son</b><br>
                                
                            </div>
                            <div class="lastlogin">
                                <b>Last login</b><br>
                                    <span title="15/11/09 21:29">4 months ago</span>
                            </div>
                            <div class="tools">
    
                            </div>
                            <div class="clear"></div>
                        </li>
                        <li class="even offline" homeurl="/home/ludus%2C" style="background-image: url(&quot;http://www.habbo.co.uk/habbo-imaging/avatar/hr-145-45.hd-180-2.ch-255-62.lg-285-82.sh-290-62.ea-1401-62.fa-1205-91,s-3.g-0.d-3.h-3.a-0,b1f0cebd83d418ebb7b606a2a430adf5.gif&quot;);">
                            <div class="item">
                                <b>ludus,</b><br>
                                I'm not the real Bobba.
                            </div>
                            <div class="lastlogin">
    
                                <b>Last login</b><br>
                                    <span title="10/10/09 08:39">5 months ago</span>
                            </div>
                            <div class="tools">
                            </div>
                            <div class="clear"></div>
                        </li>
                        <li class="odd offline" homeurl="/home/ludus%2C%2C" style="background-image: url(&quot;http://www.habbo.co.uk/habbo-imaging/avatar/hr-125-42.he-1609-73.sh-300-62.hd-190-10.ch-215-62.lg-280-64,s-3.g-0.d-3.h-3.a-0,7e93f5ba913e00b33bdb6186447dfbf0.gif&quot;);">
    
                            <div class="item">
                                <b>ludus,,</b><br>
                                BOO!!!
                            </div>
                            <div class="lastlogin">
                                <b>Last login</b><br>
                                    <span title="22/10/09 20:24">5 months ago</span>
                            </div>
    
                            <div class="tools">
                            </div>
                            <div class="clear"></div>
                        </li>
            </ul>
        <div id="habblet-paging-avatar-habblet-list-container">
            <p id="avatar-habblet-list-container-list-paging" class="paging-navigation">
                     <span class="disabled">«</span>
    
                        <span class="current">1</span>
                        <a href="#" class="avatar-habblet-list-container-list-paging-link" id="avatar-habblet-list-container-list-page-2">2</a>
                        <a href="#" class="avatar-habblet-list-container-list-paging-link" id="avatar-habblet-list-container-list-page-3">3</a>
                        <a href="#" class="avatar-habblet-list-container-list-paging-link" id="avatar-habblet-list-container-list-page-4">4</a>
                        <a href="#" class="avatar-habblet-list-container-list-paging-link" id="avatar-habblet-list-container-list-page-5">5</a>
                        <a href="#" class="avatar-habblet-list-container-list-paging-link" id="avatar-habblet-list-container-list-page-6">6</a>
    
                        <a href="#" class="avatar-habblet-list-container-list-paging-link" id="avatar-habblet-list-container-list-page-7">7</a>
                        <a href="#" class="avatar-habblet-list-container-list-paging-link" id="avatar-habblet-list-container-list-page-8">8</a>
                    <a href="#" class="avatar-habblet-list-container-list-paging-link" id="avatar-habblet-list-container-list-next">»</a>
            </p>
            <input id="avatar-habblet-list-container-pageNumber" value="1" type="hidden">
            <input id="avatar-habblet-list-container-totalPages" value="26" type="hidden">
        </div>                
    
    
    </div>
    
        </div>
    <div id="footer">
        <p class="footer-links"><a href="http://www.habbohotel.co.uk/iot/go?lang=en&amp;country=uk" target="_new">Contact Us</a> | <a href="/help" target="_new">FAQs</a>  | <a href="http://www.sulake.com" target="_new">Sulake</a> | <a href="/papers/termsAndConditions" target="_new">Terms of Service</a> | <a href="/papers/privacy" target="_new">Privacy Policy</a> | <a href="mailto:[email protected]">Advertise</a> | <a href="http://www.habbo.co.uk/groups/SafetyTips">Safety</a></p>
    
        <p class="copyright">© 2001 - 2010 Sulake Corporation Oy. HABBO is a registered trademark of Sulake Corporation Oy in the European Union, the USA, Japan, the People's Republic of China and various other jurisdictions. All rights reserved.</p>
    </div></div>
    
    </div>
    
    
    
    
    
    
        
        
    
    <!-- Start Quantcast tag -->
    
    
    <noscript>
    <a href="http://www.quantcast.com/p-b5UDx6EsiRfMI" target="_blank"><img src="http://pixel.quantserve.com/pixel/p-b5UDx6EsiRfMI.gif" style="display: none" border="0" height="1" width="1" alt="Quantcast"/></a>
    
    </noscript>
    <!-- End Quantcast tag -->

  4. #4
    Join Date
    Jul 2004
    Location
    California
    Posts
    8,725
    Tokens
    3,789
    Habbo
    HotelUser

    Latest Awards:

    Default

    PHP Code:
    <?php

    $output 
    'HTTP/1.0 200 OK
    Date: Sat, 27 Mar 2010 01:38:14 GMT
    X-Origin-Id: resin-fe-5
    Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-check=0
    Expires: Thu, 05 Oct 2006 12:00:00 GMT
    Pragma: no-cache
    Content-Type: text/html;charset=utf-8
    P3P: CP="NON DSP COR CURa ADMa OUR STP STA"
    X-Cache: MISS from www.habbo.co.uk
    Connection: close




        <meta http-equiv="content-type" content="text/html; charset=utf-8">

        <title>Habbo:  </title>


        <link rel="shortcut icon" href="http://images.habbo.com/habboweb/48_fa4a5c01c7d5b42a784f4f6531bb1c63/9/web-gallery/v2/favicon.ico" type="image/vnd.microsoft.icon">
        <link rel="alternate" type="application/rss+xml" title="Habbo: RSS" href="http://www.habbo.co.uk/articles/rss.xml">





    <link rel="stylesheet" href="http://images.habbo.com/habboweb/48_fa4a5c01c7d5b42a784f4f6531bb1c63/9/web-gallery/v2/styles/style.css" type="text/css">
    <link rel="stylesheet" href="http://images.habbo.com/habboweb/48_fa4a5c01c7d5b42a784f4f6531bb1c63/9/web-gallery/v2/styles/buttons.css" type="text/css">
    <link rel="stylesheet" href="http://images.habbo.com/habboweb/48_fa4a5c01c7d5b42a784f4f6531bb1c63/9/web-gallery/v2/styles/boxes.css" type="text/css">

    <link rel="stylesheet" href="http://images.habbo.com/habboweb/48_fa4a5c01c7d5b42a784f4f6531bb1c63/9/web-gallery/v2/styles/tooltips.css" type="text/css">
    <link rel="stylesheet" href="/styles/local/uk.css" type="text/css">







    <meta name="description" content="Habbo Hotel: Make friends, join the fun, get noticed!">
    <meta name="keywords" content="habbo hotel , virtual, world, social network, free, community, avatar, chat, online, teen, roleplaying, join, social, groups, forums, safe, play, games, online, friends, teens, rares, rare furni, collecting, create, collect, connect, furni, furniture, pets , room design, sharing, expression, badges, hangout, music, celebrity, celebrity visits, celebrities, mmo, mmorpg, massively multiplayer">



    <!--[if IE 8]>
    <link rel="stylesheet" href="http://images.habbo.com/habboweb/48_fa4a5c01c7d5b42a784f4f6531bb1c63/9/web-gallery/v2/styles/ie8.css" type="text/css" />
    <![endif]-->
    <!--[if lt IE 8]>
    <link rel="stylesheet" href="http://images.habbo.com/habboweb/48_fa4a5c01c7d5b42a784f4f6531bb1c63/9/web-gallery/v2/styles/ie.css" type="text/css" />
    <![endif]-->
    <!--[if lt IE 7]>
    <link rel="stylesheet" href="http://images.habbo.com/habboweb/48_fa4a5c01c7d5b42a784f4f6531bb1c63/9/web-gallery/v2/styles/ie6.css" type="text/css" />


    <style type="text/css">
    body { behavior: url(/js/csshover.htc); }
    </style>
    <![endif]-->

    <meta name="build" content="48-BUILD66 - 25.03.2010 12:28 - uk">

    <div id="overlay"></div>
    <div id="header-container">
        <div id="header" class="clearfix">
            <h1><a href="http://www.habbo.co.uk/"></a></h1>
            <div id="subnavi">
                <div id="subnavi-user">
                    <div class="clearfix">&nbsp;</div>
                    <p>
                            <a href="http://www.habbo.co.uk/client" id="enter-hotel-open-medium-link" target="client" onclick="HabboClient.openOrFocus(this); return false;">Enter Habbo Hotel</a>

                    </p>
                </div>
                
                <div id="subnavi-login">
                    <form action="https://www.habbo.co.uk/account/submit" method="post" id="login-form">
                        <input name="page" value="/habblet/habbosearchcontent" type="hidden">
                        <ul>
                            <li>
                                <label for="login-username" class="login-text"><b>Username</b></label>

                                <input tabindex="1" class="login-field" name="credentials.username" id="login-username" type="text">
                                <a href="#" id="login-submit-new-button" class="new-button" style="float: left; display: none;"><b>Sign in</b><i></i></a>
                                <input id="login-submit-button" value="Sign in" class="submit" type="submit">
                            </li>
                            <li>
                                <label for="login-password" class="login-text"><b>Password</b></label>
                                <input tabindex="2" class="login-field" name="credentials.password" id="login-password" type="password">
                                <input tabindex="3" name="_login_remember_me" value="true" id="login-remember-me" type="checkbox">

                                <label for="login-remember-me" class="left">Remember me</label>
                            </li>
                        </ul>
                    </form>
                    <div id="subnavi-login-help" class="clearfix">
                        <ul>
                            <li class="register"><a href="https://www.habbo.co.uk/account/password/forgot" id="forgot-password"><span>I forgot my password/username</span></a></li>
                            <li><a href="https://www.habbo.co.uk/register"><span>Register for free</span></a></li>

                        </ul>
                    </div>
    <div id="remember-me-notification" class="bottom-bubble" style="display: none;">
        <div class="bottom-bubble-t"><div></div></div>
        <div class="bottom-bubble-c">
                        By selecting \'remember me\' you will stay signed in on this computer until you click \'Sign Out\'. If this is a public computer please do not use this feature.
        </div>
        <div class="bottom-bubble-b"><div></div></div>
    </div>
                </div>

            </div>
            
    <ul id="navi">
            <li id="tab-register-now"><a href="https://www.habbo.co.uk/register">Register now!</a><span></span></li>    
            <li>
                <a href="/community">Community</a>
                <span></span>
            </li>
            <li>

                <a href="/safety">Safety</a>
                <span></span>
            </li>
            <li>
                <a href="/credits">Credits</a>
                <span></span>
            </li>
    </ul>

            <div id="habbos-online"><div class="rounded"><span>1,090 Habbos online now</span></div></div>
        </div>
    </div>

    <div id="content-container">


    <div id="container">
        <div id="content" style="position: relative;" class="clearfix">
        <div id="avatar-habblet-list-container" class="habblet-list-container">
            <ul class="habblet-list">

                        <li class="even offline" homeurl="/home/ludus" style="background-image: url(&quot;http://www.habbo.co.uk/habbo-imaging/avatar/sh-290-92.lg-275-110.ch-215-82.hd-180-1.hr-802-61,s-3.g-0.d-3.h-3.a-0,1bfcea36aab2035f732e9cc6bf20d52b.gif&quot;);">
                            <div class="item">
                                <b>ludus</b><br>
                                i look up to the sky
                            </div>
                            <div class="lastlogin">
                                <b>Last login</b><br>
                                    <span title="24/03/10 20:45">2 days ago</span>

                            </div>
                            <div class="tools">
                            </div>
                            <div class="clear"></div>
                        </li>
                        <li class="odd offline" homeurl="/home/Ludus+%3A" style="background-image: url(&quot;http://www.habbo.co.uk/habbo-imaging/avatar/hd-600-1.he-1608-62.ch-685-64.lg-715-64.hr-545-35.sh-907-64.wa-2011-,s-3.g-0.d-3.h-3.a-0,a58b03f2e9f9600f28946633dc1bf8b0.gif&quot;);">
                            <div class="item">
                                <b>Ludus :</b><br>

                                
                            </div>
                            <div class="lastlogin">
                                <b>Last login</b><br>
                                    <span title="15/11/09 21:49">4 months ago</span>
                            </div>
                            <div class="tools">
                            </div>
                            <div class="clear"></div>

                        </li>
                        <li class="even offline" homeurl="/home/Ludus+Nan" style="background-image: url(&quot;http://www.habbo.co.uk/habbo-imaging/avatar/hd-627-3.ch-630-64.lg-716-62.sh-730-62.ca-1818-.hr-596-.ea-1403-62.fa-1205-62.he-1602-73,s-3.g-0.d-3.h-3.a-0,c3beb38eaab3583bcd8155bc6e9383b1.gif&quot;);">
                            <div class="item">
                                <b>Ludus Nan</b><br>
                                
                            </div>
                            <div class="lastlogin">
                                <b>Last login</b><br>
                                    <span title="15/11/09 21:59">4 months ago</span>

                            </div>
                            <div class="tools">
                            </div>
                            <div class="clear"></div>
                        </li>
                        <li class="odd offline" homeurl="/home/Ludus+needs+a+Blowie" style="background-image: url(&quot;http://www.habbo.co.uk/habbo-imaging/avatar/hd-205-22.lg-285-78.sh-290-62.ch-267-73.hr-115-42.ha-1006-,s-3.g-0.d-3.h-3.a-0,d9518b314c9a53b31a15d209bd08116a.gif&quot;);">
                            <div class="item">
                                <b>Ludus needs a Blowie</b><br>

                                
                            </div>
                            <div class="lastlogin">
                                <b>Last login</b><br>
                                    <span title="16/11/09 17:44">4 months ago</span>
                            </div>
                            <div class="tools">
                            </div>
                            <div class="clear"></div>

                        </li>
                        <li class="even offline" homeurl="/home/ludus%21" style="background-image: url(&quot;http://www.habbo.co.uk/habbo-imaging/avatar/hr-145-38.hd-205-2.ch-262-71.lg-281-83.sh-305-70.ha-1008-.fa-1202-81.ca-1813-.wa-2006-,s-3.g-0.d-3.h-3.a-0,b3b8ba2ca7b30b5405cf9d5e92920518.gif&quot;);">
                            <div class="item">
                                <b>ludus!</b><br>
                                
                            </div>
                            <div class="lastlogin">
                                <b>Last login</b><br>
                                    <span title="18/12/08 14:51">15 months ago</span>

                            </div>
                            <div class="tools">
                            </div>
                            <div class="clear"></div>
                        </li>
                        <li class="odd offline" homeurl="/home/Ludus%21%21" style="background-image: url(&quot;http://www.habbo.co.uk/habbo-imaging/avatar/ca-1804-64.hr-115-45.sh-290-62.ea-1403-62.lg-270-64.ch-210-62.hd-195-2,s-3.g-0.d-3.h-3.a-0,6ac81b7c4f6b7841439588afb22744fb.gif&quot;);">
                            <div class="item">
                                <b>Ludus!!</b><br>

                                Well done on your rooms!
                            </div>
                            <div class="lastlogin">
                                <b>Last login</b><br>
                                    <span title="08/11/09 19:28">4 months ago</span>
                            </div>
                            <div class="tools">
                            </div>

                            <div class="clear"></div>
                        </li>
                        <li class="even offline" homeurl="/home/Ludus%21." style="background-image: url(&quot;http://www.habbo.co.uk/habbo-imaging/avatar/lg-275-81.sh-290-82.he-1610-.ca-1801-82.hr-170-1316.ch-267-82.hd-180-29.ea-1401-75.fa-1212-,s-3.g-0.d-3.h-3.a-0,5e69b5bbb5c7ca685ee1f64d081dfdb0.gif&quot;);">
                            <div class="item">
                                <b>Ludus!.</b><br>
                                Bobba Bobba.
                            </div>
                            <div class="lastlogin">
                                <b>Last login</b><br>

                                    <span title="02/11/09 17:16">4 months ago</span>
                            </div>
                            <div class="tools">
                            </div>
                            <div class="clear"></div>
                        </li>
                        <li class="odd offline" homeurl="/home/Ludus%27s+Son" style="background-image: url(&quot;http://www.habbo.co.uk/habbo-imaging/avatar/hd-180-1.ch-255-64.lg-285-64.sh-290-63.hr-893-45,s-3.g-0.d-3.h-3.a-0,7be9885f4fb8400aa3864fe0da4b635f.gif&quot;);">
                            <div class="item">

                                <b>Ludus\'s Son</b><br>
                                
                            </div>
                            <div class="lastlogin">
                                <b>Last login</b><br>
                                    <span title="15/11/09 21:29">4 months ago</span>
                            </div>
                            <div class="tools">

                            </div>
                            <div class="clear"></div>
                        </li>
                        <li class="even offline" homeurl="/home/ludus%2C" style="background-image: url(&quot;http://www.habbo.co.uk/habbo-imaging/avatar/hr-145-45.hd-180-2.ch-255-62.lg-285-82.sh-290-62.ea-1401-62.fa-1205-91,s-3.g-0.d-3.h-3.a-0,b1f0cebd83d418ebb7b606a2a430adf5.gif&quot;);">
                            <div class="item">
                                <b>ludus,</b><br>
                                I\'m not the real Bobba.
                            </div>
                            <div class="lastlogin">

                                <b>Last login</b><br>
                                    <span title="10/10/09 08:39">5 months ago</span>
                            </div>
                            <div class="tools">
                            </div>
                            <div class="clear"></div>
                        </li>
                        <li class="odd offline" homeurl="/home/ludus%2C%2C" style="background-image: url(&quot;http://www.habbo.co.uk/habbo-imaging/avatar/hr-125-42.he-1609-73.sh-300-62.hd-190-10.ch-215-62.lg-280-64,s-3.g-0.d-3.h-3.a-0,7e93f5ba913e00b33bdb6186447dfbf0.gif&quot;);">

                            <div class="item">
                                <b>ludus,,</b><br>
                                BOO!!!
                            </div>
                            <div class="lastlogin">
                                <b>Last login</b><br>
                                    <span title="22/10/09 20:24">5 months ago</span>
                            </div>

                            <div class="tools">
                            </div>
                            <div class="clear"></div>
                        </li>
            </ul>
        <div id="habblet-paging-avatar-habblet-list-container">
            <p id="avatar-habblet-list-container-list-paging" class="paging-navigation">
                     <span class="disabled">«</span>

                        <span class="current">1</span>
                        <a href="#" class="avatar-habblet-list-container-list-paging-link" id="avatar-habblet-list-container-list-page-2">2</a>
                        <a href="#" class="avatar-habblet-list-container-list-paging-link" id="avatar-habblet-list-container-list-page-3">3</a>
                        <a href="#" class="avatar-habblet-list-container-list-paging-link" id="avatar-habblet-list-container-list-page-4">4</a>
                        <a href="#" class="avatar-habblet-list-container-list-paging-link" id="avatar-habblet-list-container-list-page-5">5</a>
                        <a href="#" class="avatar-habblet-list-container-list-paging-link" id="avatar-habblet-list-container-list-page-6">6</a>

                        <a href="#" class="avatar-habblet-list-container-list-paging-link" id="avatar-habblet-list-container-list-page-7">7</a>
                        <a href="#" class="avatar-habblet-list-container-list-paging-link" id="avatar-habblet-list-container-list-page-8">8</a>
                    <a href="#" class="avatar-habblet-list-container-list-paging-link" id="avatar-habblet-list-container-list-next">»</a>
            </p>
            <input id="avatar-habblet-list-container-pageNumber" value="1" type="hidden">
            <input id="avatar-habblet-list-container-totalPages" value="26" type="hidden">
        </div>                


    </div>

        </div>
    <div id="footer">
        <p class="footer-links"><a href="http://www.habbohotel.co.uk/iot/go?lang=en&amp;country=uk" target="_new">Contact Us</a> | <a href="/help" target="_new">FAQs</a>  | <a href="http://www.sulake.com" target="_new">Sulake</a> | <a href="/papers/termsAndConditions" target="_new">Terms of Service</a> | <a href="/papers/privacy" target="_new">Privacy Policy</a> | <a href="mailto:[email protected]">Advertise</a> | <a href="http://www.habbo.co.uk/groups/SafetyTips">Safety</a></p>

        <p class="copyright">© 2001 - 2010 Sulake Corporation Oy. HABBO is a registered trademark of Sulake Corporation Oy in the European Union, the USA, Japan, the People\'s Republic of China and various other jurisdictions. All rights reserved.</p>
    </div></div>

    </div>






        
        

    <!-- Start Quantcast tag -->


    <noscript>
    <a href="http://www.quantcast.com/p-b5UDx6EsiRfMI" target="_blank"><img src="http://pixel.quantserve.com/pixel/p-b5UDx6EsiRfMI.gif" style="display: none" border="0" height="1" width="1" alt="Quantcast"/></a>

    </noscript>
    <!-- End Quantcast tag -->
    '
    ;

    preg_match("/<input id=\"avatar-habblet-list-container-totalPages\" value=\"(.*?)\" type=\"hidden\">/"$output$matches);

    print_r($matches);  

    ?>
    prints '26', is this not what you want?

  5. #5
    Join Date
    May 2006
    Location
    Hull
    Posts
    7,701
    Tokens
    2,430
    Habbo
    Moh

    Latest Awards:

    Default

    Yeah, when you set it as a variable it works. But $output is coming from fgets (Because it has to post to get the data) it doesn't work :S

  6. #6
    Join Date
    Jul 2004
    Location
    California
    Posts
    8,725
    Tokens
    3,789
    Habbo
    HotelUser

    Latest Awards:

    Default

    Quote Originally Posted by Jack120 View Post
    Yeah, when you set it as a variable it works. But $output is coming from fgets (Because it has to post to get the data) it doesn't work :S
    Can you reveal the rest of your source code, please? If you don't feel comfortable you can PM me.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •