The sample demonstrates how to make a Web Barcode Reader app with PHP, Nginx and Dynamsoft Barcode Reader SDK on Windows.
Please read Making PHP Barcode Extension with Dynamsoft Barcode SDK to learn how to build php_dbr.dll.
-
Copy php_dbr.dll to %php%\ext.
-
Copy DynamsoftBarcodeReaderx86.dll to PHP root directory **%php%**.
-
Open %php%\php.ini and add following line:
extension=php_dbr.dll
Change max file size if you want to upload big image files:
upload_max_filesize=20M
-
Open %nginx%\conf\nginx.conf and add PHP configuration:
location ~ \.php$ { root html; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME <Your Web App Folder>/$fastcgi_script_name; include fastcgi_params; }
When uploading big files, you may see the error nginx 413 Request Entity Too Large. To fix it, change file size in configuration file:
client_max_body_size 50M;