Page 1 of 1

include external php file from other website

Posted: Mon Aug 27, 2012 6:08 am
by saber_ali
hello all
*********
in order to secure my php code from steal, i want to upload my own php code files in my server then when i sell any web site using this files i just include it from my domain as this,
i work on a website named "http://www.kimoland.com " and i want to use the files i uploaded on my server

Code: Select all

 include("www.saberali.com/phplib/coverorders.php");
but it didnt work even when i change the [text]allow_url_include = on[/text] in php.ini file
can any one help me securing my code pleeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeez :banghead: :banghead: :banghead:

Re: include external php file from other website

Posted: Mon Aug 27, 2012 12:45 pm
by requinix
I'd tell to to do the Internet a favor and pry the 'e' off your keyboard if it wasn't that doing so would backfire on us.

Do not try to include files over the web. It is a very bad idea.
If your sites are located on the same server then you can probably include them as the files they are. Otherwise get yourself a Github account or something similar and use that to distribute files and changes.

Re: include external php file from other website

Posted: Tue Aug 28, 2012 4:07 am
by saber_ali
thaaaaaaaaaaaaaanks alot , sorry about the 'e'