我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

创建配置以更改项目文件夹的路径

I made a project using php but i have worked inside the root folder without any directory, now i add a new folder because i need to give it to a person but the old paths on the class's are defined to the new ones.

"..oot\pfc\index.php" -> New path

"..oot\index.php" -> Old path, all the classes path are referenced to here

I think i need a config.php but i don't know which variable i need to use.

I have tried to use realpath( dirname(__FILE__).'/..');

近期文章

  • 调用实体的setter以从另一个实体的控制器更新其列
  • PHP意外结束输入错误
  • 传递mysql查询的变量在回显查询时显示奇数方括号
  • 孩子不存在
  • 将mysql_query转换为mysqli
  • 如何更改sql查询或json数据?
  • 在会话之间保存动态输入的表数据,并在新会话中使用已保存的数据填充表
  • Laravel 5.1下载带有事件的PDF
  • symfony swiftmaile奇怪的行为
  • PHP API Soap标头身份验证
  • 发送输入文本框电子邮件php
  • 动态地向Yii 1.1表单添加元素
  • 使用ajax在同一页面上传递的数据
  • 读取和写入适合Excel样式列/行操作的数据结构的CSV文件
  • 博客列表页面中的Wordpress 2列
  • Php卷曲异常行为
  • 如何从后端编辑wordpress页面
  • 跟随者限制使用PHP到达Instagram API
  • cron job:cpanel备份mysql每天不能正常工作
  • PHP代码5.4需要更改为适用于5.3.10

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华