is it possible to attach a custom icon [like an ICO file on the server] to a file thru php ?

I want to automatically generate a generic text file [ which is XML that launches a Quicktime Movie] that has a custom icon attached to it...
then, I want to automatically send that newly created file in an email...with a user id code for verification


the php used to generate the text file [minus the icon] would be something like:

<?php
$buffer = '<?xml version="1.0"?>' . "\n" .
'<?quicktime type="application/x-quicktime-media-link"?>' . "\n" .
'<embed src="newly_generated_quicktime_movie" autoplay="true"
moviename="<id>'.$_GET['user_id_generated_from_mysql_db'].'</id>" />';

Header('Content-Type: application/x-quicktimeplayer');
Header('Content-Length: '.strlen($buffer));
Header('Content-disposition: inline; filename=theMovie.qtl');

print $buffer;
?>



is this possible?

g

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to