Saving as a .cur or .ani file.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

Saving as a .cur or .ani file.

Post by JellyFish »

Can php save an image file as a cursor file or an ANI file type?
User avatar
dibyendrah
Forum Contributor
Posts: 491
Joined: Wed Oct 19, 2005 5:14 am
Location: Nepal
Contact:

Post by dibyendrah »

Refer to Content-Disposition under header

Refer this URL :
http://www.php.net/header

But I think, only other valid image are supported by header function.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

They are technically supported by the header() function, however PHP has zero native facilities that can write those types of files.
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

Post by JellyFish »

I see. Would this open up to the possibility of taking a gif image and changing it's header into a cursor file, thus a online converter program?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

They aren't simple translations of the headers of an image type, they have extra information incorporated into them that it critical to how they function.
Post Reply