PDA

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.

Blob
01-05-2007, 06:05 PM
Not possible, need a license system

Tomm
01-05-2007, 06:06 PM
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?

Blob
01-05-2007, 06:08 PM
<?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...

Blob
01-05-2007, 06:12 PM
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!