happyfish100 / fastdfs

FastDFS is an open source high performance distributed file system (DFS). It's major functions include: file storing, file syncing and file accessing, and design for high capacity and load balance. Wechat/Weixin public account (Chinese Language): fastdfs
GNU General Public License v3.0
9.05k stars 1.99k forks source link

Use of undefined constant FDFS_FILE_ID_SEPERATOR #684

Open reincarnation opened 11 months ago

reincarnation commented 11 months ago

请问下,我下载程序后访问http://localhost/fastdfs-master/php_client/fastdfs_test.php,就出现下面的问题,是我访问的程序没加载到什么程序吗

Warning: Use of undefined constant FDFS_FILE_ID_SEPERATOR - assumed 'FDFS_FILE_ID_SEPERATOR' (this will throw an Error in a future version of PHP) in D:\wamp\www\fastdfs-master\php_client\fastdfs_test.php on line 4

Fatal error: Uncaught Error: Call to undefined function fastdfs_client_version() in D:\wamp\www\fastdfs-master\php_client\fastdfs_test.php:6 Stack trace: #0 {main} thrown in D:\wamp\www\fastdfs-master\php_client\fastdfs_test.php on line 6

happyfish100 commented 11 months ago

需要先编译和安装fastdfs 的 php扩展。

reincarnation commented 11 months ago

谢谢,请问fastdfs的php扩展具体需要怎么编译和安装,目前我们还没找到相应的说明文档,我们是windows服务器下面的apache+php+mysql

happyfish100 commented 11 months ago

php扩展依赖FastDFS的C library,而后者只支持Unix系统,不支持 windows

reincarnation commented 11 months ago

明白了,感谢