I am creating a php page and using a localhost server(wamp server). When i try to navigate throw a link out of my project it give me 403 error
I need to know how to get red of the localhost direction from the link
http://localhost/my%20project/%EF%BB%BFhttp://www.damascusuniversity.edu.sy/
my code is
<?php
$link="http://www.damascusuniversity.edu.sy/";
echo( "<a href='");echo $link; echo("'>");
echo $link;
echo( "</a>");
?>
If you want to navigate an external url, you must provide full url including http or https if destination host supports ssl. for example:
<a href="http://www.example.com">click here</a>
by default the path will be assumed relative and will be appended to your application's base url.
问题出在我所认为的wamp安装中,因为当我卸载wamp 2.2并安装了wamp 3,然后又将其卸载并返回wamp2.2时,它按预期运行正常,并且链接正常运行。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.