Jump to content

Php Across Domains?


astralaaron
 Share

Recommended Posts

is there anyway to include php code from 1 website to another?like include a function or block of code?
There is, but it's not really safe because people will be able to see the code and spot vulnerabilities in it.Put the PHP code in a plain text file and then include that:
<?php include("http://othersite.com/script.txt"); ?>

Link to comment
Share on other sites

There is, but it's not really safe because people will be able to see the code and spot vulnerabilities in it.Put the PHP code in a plain text file and then include that:
<?php include("http://othersite.com/script.txt"); ?>

oh nice, thank you i realize the security issue it's for a personal program !
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...