doter1995 2015-12-08 06:12
浏览 82

使用PHP从列出的URL中获取文本

I have a list of some URL in my Excel sheet like this

http://www.example.com/excel-add-in-google-analytics/?utm_source=ABC&utm_medium=XYZ&utm_content=PQR&utm_campaign=JKL

Now i want to load all this URL one bye in to track and fetch the content and text of it which is place after "?" in new column like this

utm_source ABC utm_medium XYZ utm_content PQR utm_campaign JKL

using PHP parsing and i don't want to use CURL for this because i already have URL's in my Excelsheet so just want to load it in to PHP script and fetch the text from it..

I doesn't know anything about it so if someone can help me for this and if possible then send me code for it..

  • 写回答

4条回答 默认 最新

  • dongxieting9623 2015-12-08 06:19
    关注
    file_get_contents('http://www.example.com/');
    

    explode your url to ? and & to get detail of parameter which pass in url

    评论

报告相同问题?

悬赏问题

  • ¥15 使用ue5插件narrative时如何切换关卡也保存叙事任务记录
  • ¥20 软件测试决策法疑问求解答
  • ¥15 win11 23H2删除推荐的项目,支持注册表等
  • ¥15 matlab 用yalmip搭建模型,cplex求解,线性化处理的方法
  • ¥15 qt6.6.3 基于百度云的语音识别 不会改
  • ¥15 关于#目标检测#的问题:大概就是类似后台自动检测某下架商品的库存,在他监测到该商品上架并且可以购买的瞬间点击立即购买下单
  • ¥15 神经网络怎么把隐含层变量融合到损失函数中?
  • ¥15 lingo18勾选global solver求解使用的算法
  • ¥15 全部备份安卓app数据包括密码,可以复制到另一手机上运行
  • ¥20 测距传感器数据手册i2c