dongyou6847 2016-01-01 17:17
浏览 260

将html链接放到localhost

I would like to put a link in my HTML site to access my database. However, my database is localhost/abc.php (located inside xampp/htdocs).

I was wondering how to add the link because it it a localhost document. I could not do it with the <a href="localhost/abc.php"> or the c:///xampp/htdocs/abc.php.

  • 写回答

2条回答 默认 最新

  • duanjiong5023 2016-01-01 17:20
    关注

    use

    <a href="http://localhost/abc.php">to my db</a> 
    

    that will work.

    In detail:

    "localhost" is the hostname of the url your are pointing to.

    It needs to be prefixed with the protocol you are using. In this case http://

    Happy new year.

    评论

报告相同问题?

悬赏问题

  • ¥15 下图接收小电路,谁知道原理
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探