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 9 of 9
  1. #1
    Join Date
    Oct 2006
    Location
    Northampton
    Posts
    694
    Tokens
    142

    Default [PHP] Small Script Request

    Is there any possible way that I could insert into a configuration file that if a certain piece of PHP echo is removed that the script will not be displayed (and die) and an error message will be echoed?

    I'm not the PHP wizz' but I need it for a small script I am designing.

    Many many thanks!

    Regards, James.
    Good-bye signature, I love <NOT ALLOWED NAME AT ALL> despite the infraction his last name got me.

    Free speech? Not anymore, you gotta' love this forum.

  2. #2
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    Not possible, need a license system

  3. #3
    Join Date
    Jun 2005
    Posts
    4,795
    Tokens
    0

    Latest Awards:

    Default

    Sure, drop me a PM and I can tell you about it ^^

  4. #4
    Join Date
    Jul 2006
    Location
    Athens
    Posts
    842
    Tokens
    0

    Default

    PHP Code:
    <?php
    $text 
    = ("Text goes here");
    echo 
    "$text";
    if(
    $text "") {
    die (
    "No Text");
    }
    ?>
    Like that?


  5. #5
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    Quote Originally Posted by Drompo View Post
    PHP Code:
    <?php
    $text 
    = ("Text goes here");
    echo 
    "$text";
    if(
    $text "") {
    die (
    "No Text");
    }
    ?>
    Like that?
    Anyone can just delete that

  6. #6
    Join Date
    Oct 2006
    Location
    Northampton
    Posts
    694
    Tokens
    142

    Default

    Well the file that the die will be included in would be secured in Zend...

    By the way how would I go about using an external file? So that where it says if "" it will check in a different document...
    Last edited by JamesRouale; 01-05-2007 at 06:13 PM.
    Good-bye signature, I love <NOT ALLOWED NAME AT ALL> despite the infraction his last name got me.

    Free speech? Not anymore, you gotta' love this forum.

  7. #7
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    You could, but zend is annoying

  8. #8
    Join Date
    Oct 2006
    Location
    Northampton
    Posts
    694
    Tokens
    142

    Default

    Edited post.
    Good-bye signature, I love <NOT ALLOWED NAME AT ALL> despite the infraction his last name got me.

    Free speech? Not anymore, you gotta' love this forum.

  9. #9
    Join Date
    Jul 2006
    Location
    Athens
    Posts
    842
    Tokens
    0

    Default

    PHP Code:
    <?
    include ("externalfile.php");
    if(
    $whatever == "Something") {
    //Put something here
    } else {
    die (
    "Error");
    }
    ?>


Posting Permissions

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