本地路径?怎么找到

时间:2011-02-22 20:35:40

标签: php

我下载的脚本出现问题。

代码表示要进入本地路径..

我不确定如何找出本地路径。我没有在我的计算机上使用服务器,所以如果本地路径看起来像代码中的示例,我就不会这样做。

<?
$localpath = "/home/xxxxxx/public_html/ddps"; //Local Path Where You Installed The Script

$sitepath = "http://www.halogamertags.com/ddps"; //WWW Path To Script

我将此视为浏览器中的错误。

Warning: move_uploaded_file(/home/xxxxxx/public_html/ddps/downloads/Andrew Ferrara.docx) [function.move-uploaded-file]: failed to open stream: No such file or directory in /home/halogam1/public_html/ddps/doupload.php on line 7

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpExSwrS' to '/home/xxxxxx/public_html/ddps/downloads/Andrew Ferrara.docx' in /home/halogam1/public_html/ddps/doupload.php on line 7

2 个答案:

答案 0 :(得分:1)

$localpath = "/home/halogam1/public_html/ddps/";

答案 1 :(得分:0)

本地路径是脚本所在的位置。通常可以看作:

 ddps (relative call to folder)

同样:

 /home/domain/public_html/ddps

在本地和Web服务器上。另外,它看起来像是:

 c:\users\me\ddps (On Windows)
      OR
 MAC_OS:Desktop:ddps (On Mac)