|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-06-10 19:28 UTC] stas at cvs dot php dot net
[2000-07-30 08:45 UTC] zak@php.net
[2000-07-31 15:51 UTC] waldschrott@php.net
[2000-07-31 15:59 UTC] waldschrott@php.net
[2001-04-27 12:52 UTC] dbeu@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 10:00:01 2025 UTC |
<script language="php"> # for linux # $imageRoot = "/home/httpd/html/mrsid/mrsid_images/sample"; # $binRoot = "/home/httpd/html/mrsid/bin"; # exec("$binRoot/mrsid_retrieve -quiet -i $file -o d:/temp/out.jpg -icon"); # for windows $imageRoot = "d:/inetpub/wwwroot/sid/sample"; $binRoot = "d:/inetpub/wwwroot/sid/bin"; $file = "$imageRoot/aerial.sid"; # exec-ing any command fails with 'could not fork' backticks, and system do the same exec("$binRoot/mrsid_extract -i $file -o d:/temp/out.jpg -icon"); $fp = fopen("d:/temp/out.jpg", "rb"); Header ("Content-Type: image/jpeg"); fpassthru($fp); </script>