开发者

PHP $_SERVER[] change url

I have used the a jquery script that is used to upload files: http://aquantum-demo.appspot.com/file-upload

I have download the source code and upload it to my server.

The script has one point that indicates the directory or the path for the files that are to be uploaded

'script_url' => $_SERVER['PHP_SELF'],
            'upload_dir' => dirname(__FILE__).'/files/',
            'upload_url' =>开发者_运维百科; dirname($_SERVER['PHP_SELF']).'/files/',

The full path to this script is /home/youthcen/public_html/uploader/example/upload.php from my web server root.

I want to change the upload destination to /home/youthcen/public_html/media/ instead of /home/youthcen/public_html/uploader/files/ that is set by the sript to upload files there


Is media on the same level as files?

If yes, replace "/files/" with "/media/", if it is below as you say, try replacing with "/../media/" instead.

Just a guess.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜