【发布时间】:2012-12-01 22:06:06
【问题描述】:
所有, 我有以下文件:
builder.php Oauth.php twitteroauth.php
在我的 builder.php 页面中,我有以下代码:
require_once('twitteroauth.php');
然后在我的 twitteroauth.php 页面中,我有以下代码:
require_once('OAuth.php');
所有这些文件都在以下路径中:wp-content/themes/alyeska/framework/frontend/functions
我正在我的本地主机上测试它,它工作正常。但是,当我将所有这些文件上传到我的网络服务器时,我收到以下错误消息:
警告:require_once(OAuth.php) [function.require-once]:无法打开流:/home/arokyne/website.com/wp-content/themes/alyeska/framework/frontend 中没有这样的文件或目录/functions/twitteroauth.php 第 10 行
致命错误:require_once() [function.require]:无法打开所需的“OAuth.php”(include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear')在 /home/arokyne/website.com/wp-content/themes/alyeska/framework/frontend/functions/twitteroauth.php 第 10 行
我不确定为什么会出现这些错误,因为它可以在我的本地主机上运行。谁能指出我如何解决这个问题的正确方向?
谢谢!
【问题讨论】:
-
Windows vs Linux 又名区分大小写?
标签: php