Not quite sure what you mean if you are trying to download a .PPT file with PHP there's many different ways but you probably want cURL for which there's many examples. I won't contribute to that you can see one such example here Download a file with cURL s If you believe .PPT to be a PHP-related file extension I do not believe there to be any such extension for PHP. However it does look like the extension for Microsoft PowerPoint