Title: Can&#039;t FTP &#8212; function dl() missing in PHP 5.3
Last modified: August 19, 2016

---

# Can't FTP — function dl() missing in PHP 5.3

 *  [Patrick Johanneson](https://wordpress.org/support/users/pjohanneson/)
 * (@pjohanneson)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/cant-ftp-function-dl-missing-in-php-53/)
 * When attempting to update a plugin, I get the following error after entering 
   my FTP username and password:
 * > Script execution halted: Call to undefined function `dl()` — 1
 * The PHP version on the server was recently updated to 5.3.2, where, apparently,`
   dl()` is not available. I tracked the error to `wp-admin/includes/class-ftp.php`.
 * Changing
 *     ```
       if (!extension_loaded('sockets')) {
           $prefix = (PHP_SHLIB_SUFFIX == 'dll') ? 'php_' : '';
           if(!@dl($prefix . 'sockets.' . PHP_SHLIB_SUFFIX)) $mod_sockets=FALSE;
       }
       ```
   
 * to
 *     ```
       if (!extension_loaded('sockets')) {
           $prefix = (PHP_SHLIB_SUFFIX == 'dll') ? 'php_' : '';
           //if(!@dl($prefix . 'sockets.' . PHP_SHLIB_SUFFIX)) $mod_sockets=FALSE;
           $mod_sockets=FALSE;
       }
       ```
   
 * cures the problem, but I’m loath to mess with core files. Is there a better way
   to fix this?

Viewing 1 replies (of 1 total)

 *  Thread Starter [Patrick Johanneson](https://wordpress.org/support/users/pjohanneson/)
 * (@pjohanneson)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/cant-ftp-function-dl-missing-in-php-53/#post-1845826)
 * I’m still having this issue — is there a solution? I’ve tried enabling `dl()`
   in the php.ini, but it looks like the `dl()` function itself doesn’t exist in
   my installation of PHP 5.3.2.
 * Any assistance would be gratefully accepted.

Viewing 1 replies (of 1 total)

The topic ‘Can't FTP — function dl() missing in PHP 5.3’ is closed to new replies.

## Tags

 * [ftp](https://wordpress.org/support/topic-tag/ftp/)
 * [php 5.3](https://wordpress.org/support/topic-tag/php-5-3/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [Patrick Johanneson](https://wordpress.org/support/users/pjohanneson/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/cant-ftp-function-dl-missing-in-php-53/#post-1845826)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
