Link to home
Start Free TrialLog in
Avatar of fparvini
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.com/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.com/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.com/httpdocs/test/dis.php on line 1
</p></div>



please help.
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.
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.