View Full Version : [PHP] Small Script Request
JamesRouale
01-05-2007, 06:04 PM
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.
Not possible, need a license system
Sure, drop me a PM and I can tell you about it ^^
Drompo
01-05-2007, 06:07 PM
<?php
$text = ("Text goes here");
echo "$text";
if($text = "") {
die ("No Text");
}
?>
Like that?
<?php
$text = ("Text goes here");
echo "$text";
if($text = "") {
die ("No Text");
}
?>
Like that?
Anyone can just delete that
JamesRouale
01-05-2007, 06:11 PM
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...
You could, but zend is annoying
JamesRouale
01-05-2007, 06:13 PM
Edited post.
Drompo
03-05-2007, 08:15 PM
<?
include ("externalfile.php");
if($whatever == "Something") {
//Put something here
} else {
die ("Error");
}
?>
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.