fparvini
asked on
Insert TEXT in HTML
Hi,
I need to insert a file (disclaimer) in many website , used to use a java, but want to change it to PHP /Javacript ,
Have this :
# cat dis.php
<div><p><?php include('http://www.parvini.com/test/disclaimer.htm'); ?></p></div>
but doesn't work, I get this error :
# php dis.php
<div><p>PHP Warning: include(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in /var/www/vhosts/parvini.co m/httpdocs /test/dis. php on line 1
PHP Warning: include(http://www.parvini.com/test/disclaimer.htm): failed to open stream: no suitable wrapper could be found in /var/www/vhosts/parvini.co m/httpdocs /test/dis. php on line 1
PHP Warning: include(): Failed opening 'http://www.parvini.com/test/disclaimer.htm' for inclusion (include_path='.:') in /var/www/vhosts/parvini.co m/httpdocs /test/dis. php on line 1
</p></div>
please help.
I need to insert a file (disclaimer) in many website , used to use a java, but want to change it to PHP /Javacript ,
Have this :
# cat dis.php
<div><p><?php include('http://www.parvini.com/test/disclaimer.htm'); ?></p></div>
but doesn't work, I get this error :
# php dis.php
<div><p>PHP Warning: include(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in /var/www/vhosts/parvini.co
PHP Warning: include(http://www.parvini.com/test/disclaimer.htm): failed to open stream: no suitable wrapper could be found in /var/www/vhosts/parvini.co
PHP Warning: include(): Failed opening 'http://www.parvini.com/test/disclaimer.htm' for inclusion (include_path='.:') in /var/www/vhosts/parvini.co
</p></div>
please help.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Both answers here are correct.
3) Accept both Expert posts as the answer. And deindex the question because it adds nothing of value to the PAQ.
Not enough information to confirm an answer.