I have one file named ad.php. In this file i load some ads from external pages.
(ad.php)
:
<script type='text/javascript' src='www.example.org'></script>...
And one file named: (index.php)
.
I want to load the contents of the file ad.php finished and then spend it in the index.php file.
I don't want, that the user loads the javascript files.
i tried some ways:
- file_get_contents
- curl
But the javascript files were loaded in the index.php by the user. Is it possible to load the ad.php externally using php?