I have the following PHP code that lets me back up files to Dropbox:

```
// Dropbox username/password
$dropbox_email = 'xxxxxxxxxx';
$dropbox_pass = 'xxxxxxxxxxx';

include('DropboxUploader.php');
$uploader = new DropboxUploader($dropbox_email, $dropbox_pass);
$uploader->upload('backup-images.php','Backup/');
$uploader->upload($zipArchiveName,'Backup/');

```

File backup-images.php is around 1kb while $zipArchiveName is around 400Mb. I seem to mange to upload backup-images.php but not $zipArchiveName.

I tried using 

```
ini_set('max_execution_time', 0);
ini_set('memory_limit', '-1');

```

I also tried modifying php.ini i.e. max\_execution\_time and the memory\_limit but I can't seem to upload the huge file to dropbox. I have ample of space on my dropbox account.

In my case I donot wish to use the Dropbox SDK but DropboxUploader.php found [here](https://github.com/jakajancar).

I'd like suggestions or reasons why this isn't working or ideas how to get around it.