附录1:
[root@node1 php_client]# php fastdfs_test.php
PHP Notice: Use of undefined constant FDFS_FILE_ID_SEPERATOR - assumed 'FDFS_FILE_ID_SEPERATOR' in /fastdfs/FastDFS/php_client/fastdfs_test.php on line 4
PHP Fatal error: Call to undefined function fastdfs_tracker_make_all_connections() in /fastdfs/FastDFS/php_client/fastdfs_test.php on line 6
附录2:
[root@node1 php_client]# more fastdfs_client.ini
extension = fastdfs_client.so
附录3:
[root@node1 php_client]# more /fastdfs/FastDFS/conf/client.conf
network_timeout=60
base_path=/fastdfs
tracker_server=172.18.27.133:22122
#standard log level as syslog, case insensitive, value list:
### emerg for emergency
### alert
### crit for critical
### error
### warn for warning
### notice
### info
### debug
log_level=info
#HTTP settings
http.tracker_server_port=8080
#use "#include" directive to include HTTP other settiongs
#include http.conf
附录4:
[root@gfs-node1 php_client]# more /fastdfs/FastDFS/conf/http.conf
# HTTP default content type
http.default_content_type = application/octet-stream
# MIME types mapping filename
# MIME types file format: MIME_type extensions
# such as: image/jpeg jpeg jpg jpe
# you can use apache's MIME file: mime.types
http.mime_types_filename=mime.types
# if use token to anti-steal
# default value is false (0)
http.anti_steal.check_token=false
# token TTL (time to live), seconds
# default value is 600
http.anti_steal.token_ttl=900
# secret key to generate anti-steal token
# this parameter must be set when http.anti_steal.check_token set to true
# the length of the secret key should not exceed 128 bytes
http.anti_steal.secret_key=FastDFS1234567890
# return the content of the file when check token fail
# default value is empty (no file sepecified)
http.anti_steal.token_check_fail=/fastdfs/FastDFS/conf/anti-steal.jpg