dr5779 2017-05-05 22:38
浏览 60

使用excel阅读器时,基本URL无法在服务器中运行

i doing excell file reader in my local is working fine, i giving the base url like this

"C:/xampp/htdocs/school/uploads/staff_importFiles/".$sFileName

So my local is working fine,but when ever i uopload the code in my server it is not working , in my server base url i am ging like this

"http://domain.in/school/uploads/staff_importFiles/".$sFileName

If i am giving means i am getting error like this

The file http://domain.in/school/uploads/staff_importFiles/30e97727b3dc9f2ebe493fa3165b51c7.xls was not found

inside this staff_importFiles folder my files is there , but don't know it throwing the error, i am using codeigniter,any one help me please

  • 写回答

2条回答 默认 最新

  • douxian6086 2017-05-05 22:55
    关注

    I think you have subdirectory named school in your local. While it does not exist on your server. So you should change your server url to.

    "http://domain.in/uploads/staff_importFiles/".$sFileName

    While this is not recommended way of doing this. You should use base_url()

    评论

报告相同问题?

悬赏问题

  • ¥50 切换TabTip键盘的输入法
  • ¥15 可否在不同线程中调用封装数据库操作的类
  • ¥15 微带串馈天线阵列每个阵元宽度计算
  • ¥15 keil的map文件中Image component sizes各项意思
  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM
  • ¥15 划分vlan后不通了