Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
imagecreatefrompng for png images......is there anything for flash/vedio files..???
Old 04-28-2010, 03:16 AM imagecreatefrompng for png images......is there anything for flash/vedio files..???
Isabella_Smith's Avatar
Ultra Talker

Posts: 285
Trades: 0
Hi Forum,

As we have imagecreatefrompng, imagecreatefromgif, imagecreatefromjpeg....for images....Is there anything premade function for swf.....or flv.....or vedio files.....

your help would be appreciated.

Thanks
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE
buy all indian salwar Kameez, Sarees and clothes
Isabella_Smith is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-28-2010, 03:42 AM Re: imagecreatefrompng for png images......is there anything for flash/vedio files..?
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
http://php.net/manual/en/book.swf.php
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 04-28-2010, 03:55 AM Re: imagecreatefrompng for png images......is there anything for flash/vedio files..?
Isabella_Smith's Avatar
Ultra Talker

Posts: 285
Trades: 0
Thanks NULL,

Actually I am trying to add flash files with my image function.....

I hope this is correct.....please have a look.

PHP Code:
if (preg_match("/jpg|jpeg|JPG|JPEG/",$system[1])){$src_img=imagecreatefromjpeg($name);}
        if (
preg_match("/gif|GIF/",$system[1])){$src_img=imagecreatefromgif($name);}
        if (
preg_match("/png|PNG/",$system[1])){$src_img=imagecreatefrompng($name);}
        if (
preg_match("/swf|SWF/",$system[1])){$src_img=imagecreatefrompng($name);}
        if (
preg_match("/flv|FLV/",$system[1])){$src_img=imagecreatefrompng($name);} 
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE
buy all indian salwar Kameez, Sarees and clothes
Isabella_Smith is offline
Reply With Quote
View Public Profile
 
Old 04-28-2010, 04:23 AM Re: imagecreatefrompng for png images......is there anything for flash/vedio files..?
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
I'm out of my element here, but I really doubt that using imagecreatefrompng on anything other than a png will work as intended. What exactly are you trying to do? Even if imagecreatefrompng returned a valid resource I don't see how any of the GD functions would apply to a video rather than an image.


Also, you can use the i flag in your regular expression to ignore case:
PHP Code:
preg_match('/png/i',$system[1]) 
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Reply     « Reply to imagecreatefrompng for png images......is there anything for flash/vedio files..???
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13356 seconds with 12 queries