Jump to content

Use an image to execute a PHP script


oraribyrag1

Recommended Posts

<?php
readfile('path/to/file.png');
header('Content-type: image/png');

 

That PHP script outputs an image, you can add whatever you want to it. If you need an image extension you can change the file to *.png (or any other image extension) and use .htaccess to have PHP interpret that file.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.