PROGRAMMING COURSES ADMIN VIDEO TUTORIALS COMMUNITY RESOURCES |
Using the include or require
statements we can also perform cross domain scripting from one server,
to a completely different server. This comes in handy when you are
looking to create PHP processing scripts and engines that nobody can
view the source to but you. It remains on your server but you can allow
other sites to connect to it. Maybe even for a fee if the application
performs some cool task that helps people's business.
Here is an example of placing a full URL to perform PHP scripting between two servers. ![]() <?php
And here is an example of sending variables through the URL string to the script waiting to be included. That script can then process and return values and information according to those variables. ![]() <?php
Since the include, require, require_once, and include_once statements all work in a similar way, all four could be used to script from one server to another using PHP. Here are alternate ways of writing the inclusion. ![]() <?php
|
|||||||||||
|
|
DevelopPHP Requires Flash Player
___________________________________________
|
||||||||