Host a PHP file and share it as a link
Put a .php file at a public address — displayed as source code, not executed, which is exactly what you want here.
Drop your PHP file here
Any other file works too — up to 25.0 MB, or 100.0 MB for a whole site
Free to use. Your PHP file is live at your-name.99helpers.site in about ten seconds.
What is a .php file?
PHP is a server-side scripting language that powers a large share of the web, WordPress included. A .php file normally runs on a server and outputs HTML — but on static hosting there's no PHP interpreter, so the file is served as source.
What people use PHP files for
- Code snippets shared for review
- Examples in documentation and tutorials
- Configuration templates others adapt
- Legacy code archived for reference
What opens a PHP file
- Any browser, which shows it as text here
- VS Code, PhpStorm and every editor
- PHP itself, on a server with an interpreter
How to host a PHP file
- 1
Drop your PHP file in
Drag it onto the box at the top of this page, or click to choose it. Files up to 25 MB are supported, and nothing is uploaded until you publish.
- 2
Pick an address
Type a name and we'll tell you straight away whether it's free. That becomes the link: snippet.99helpers.site
- 3
Publish and share
Create a free account — that step exists so the file is yours to update, replace or delete — and the link is live within seconds.
The same three steps work for any file — see how file hosting works on 99helpers.com.
What happens when someone opens the link
The source displays as plain text. Nothing executes — this is static file hosting, so a .php file is just a text file with a particular extension.
Why host a PHP file instead of emailing it?
For sharing code to read, that's ideal: the recipient sees exactly what you wrote. If you need PHP to actually run, you need a server with an interpreter, which is a different kind of hosting entirely.
Worth knowing before you publish
- PHP is not executed here, so never host a file containing database credentials — they'd be readable by anyone.
- If you need running PHP, use a host with an interpreter; this is static hosting only.
- For sharing WordPress snippets, this beats pasting into a forum where the formatting gets destroyed.
PHP hosting questions
- Will my PHP code run?
- No. This is static hosting — files are served as they are, with no interpreter. A .php file is displayed as source code. If you need it to execute, you need a PHP host.
- Is it safe to host PHP source publicly?
- Only if there are no secrets in it. Because nothing executes, everything in the file — including any database password — is readable by anyone with the link.
- Can I host a WordPress site here?
- No. WordPress needs PHP and a database. A static export of a WordPress site works, but the CMS itself doesn't.
Put your PHP file online now
It takes about ten seconds, and you only make an account once the file is ready to go live.
Hosting guides for related formats
PHP is one of over 211 formats you can host — see free file hosting for any file type for the full list, or read the hosting guides for other file types.