I like this idea...
Collins, Robert wrote:
>IMHO The best way as a contractor to protect yourself against dishonest
>companies or people is a contract. However, there maybe a simple method to
>programmatically help.
>
>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>
>
>put the common functions in this file and store it on your server.
>core_functions.php
> <PSUDO CODE>
> function does_somthing
> {
> //code here
> }
>
> function does_somthing_else
> {
> //code here
> }
>
> function another_function
> {
> //code here
> }
> <PSUDO CODE>
>
>When you get the final payment you turn over the last file, and they put it
>in the correct directory. If they don't pay you change the filename and the
>site stops working. It would be difficult to rebuild the file (although not
>impossible) because they wouldn't know exactly how the functions worked or
>interacted with one another.
>
>Robert W. Collins II
>Webmaster
>New Orleans Regional Transit Authority
>Phone : (504) 248-3826
>Email : [EMAIL PROTECTED]
>
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php