RE: [PHP] Genus who came up with "Self Destruct Code" & "Copy Pro tection"

From: Date: Tue, 14 May 2002 15:05:53 +0000
Subject: RE: [PHP] Genus who came up with "Self Destruct Code" & "Copy Pro tection"
Groups: php.general 
Request: Send a blank email to php-general+get-97547@lists.php.net to get a copy of this message
Good point I hadn't thought about that, maybe its time for that second pot of coffee ;) Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Email : rcollins@norta.com -----Original Message----- From: 1LT John W. Holmes [mailto:holmes072000@charter.net] Sent: Tuesday, May 14, 2002 10:00 AM To: Stuart Dallas; Collins, Robert; php-general@lists.php.net Subject: Re: [PHP] Genus who came up with "Self Destruct Code" & "Copy Pro tection" From: "Stuart Dallas" <stuart@sharedserver.net> > Collins, Robert <RCollins@NORTA.COM> wrote: > > Put something like this in the top of each of the pages that have > > common functions > > <PSUDO CODE> > > if(file_exists("/path/to/file/core_functions.php")){ > > $core_functions = "/path/to/file/core_functions.php"; > > }else{ > > $core_functions = > > > > "http://www.domain.com/path/to/file/core_functions.php"; > > } > > require_once($core_functions); > > <PSUDO CODE> > > If the code can get core_functions.php from your server, so can they!! A > legal agreement is the only way to go. Not to mention that if you pull a .php page through HTTP, like you're doing, you're going to get the parsed result, not the PHP code. ---John Holmes...

« previous php.general (#97547) next »