include external php file from other website

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
saber_ali
Forum Newbie
Posts: 2
Joined: Mon Aug 27, 2012 5:55 am

include external php file from other website

Post 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:
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: include external php file from other website

Post 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.
saber_ali
Forum Newbie
Posts: 2
Joined: Mon Aug 27, 2012 5:55 am

Re: include external php file from other website

Post by saber_ali »

thaaaaaaaaaaaaaanks alot , sorry about the 'e'
Post Reply