Surely you can't include files that way, that php file will be process and you will end up include its result. Try include using file system path instead, it will work...

About your question about source code protecting, try Turck MMCache, it's a optimizer (the best I known) plus it have encode ability... finally, it's free :P~

Edward Peloke wrote:
Thanks James,

I have played with the Zend IDE a little...but will take a look.  On a
simpler scale, I usually have one main directory which then holds the
subdirectories for classes, header, etc. then use includes to pull in
header, classes, etc.  I tried to call my classes from an external folder
but can instantiate them..why?  I seem to be able to pull them in...example

include_once("http://www.peloke.com/myfolder/src/classes/classname.class.php
");

but when I try to instantiate it, get an error that I can't

$classname=new Classname();

Why?

Thanks,
Eddie



-----Original Message-----
From: James Harrell [mailto:[EMAIL PROTECTED]
Sent: Monday, June 14, 2004 3:55 PM
To: Edward Peloke; Php-General
Subject: RE: [PHP] protecting your source code?


Hi Edward,

Check out the Zend Encoder: www.zend.com
To run encoded/compiled programs, the server will need the (free)
Zend Optimizer, available for download at the same location.

Zend has a small-business program that if your yearly revenues are
less than some magic number, you get a major discount on the Zend
Suite which includes the encoder and the development environment.

The Zend Development Environment is fantastic- includes a debugger
and profiler, code completion, etc. After 10+ years as a vi-guy, I
actually made the switch recently. :)

James


-----Original Message-----
From: Edward Peloke [mailto:[EMAIL PROTECTED]
Sent: Monday, June 14, 2004 3:50 PM
To: Php-General
Subject: [PHP] protecting your source code?


I wrote a bunch of code that will be used for a local site. I usually do all my hosting with a friend who I trust...the new site will be hosted by another company in town (not my choosing) who I don't necessarily trust to not copy the code and reuse it for other sites. How can I protect the

code?

I know there are some encoders but I have never used them.

Thanks,
Eddie

WARNING:  The information contained in this message and any attachments is
intended only for the use of the individual or entity to which it is
addressed.  This message may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  It may also
contain trade secrets and other proprietary information for which you and
your employer may be held liable for disclosing.  You are hereby notified
that any unauthorized dissemination, distribution or copying of this
communication is strictly prohibited.  If you have received this
communication in error,  please notify [EMAIL PROTECTED] by E-Mail and then
destroy this communication in a manner appropriate for privileged
information.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to