Skip to content
PHP Logo

Where can you enable the FTP extension in PHP?

To enable the FTP extension in PHP, you need to ensure that the FTP extension is installed and enabled in your PHP configuration file (php.ini). You can do this by uncommenting or adding the line `extension=ftp` in your php.ini file. After making this change, you will need to restart your web server for the changes to take effect.

php
// Enable FTP extension in PHP
// Locate your php.ini file and uncomment or add the line below
// extension=ftp
// Save the file and restart your web server