bubblybabs Posted March 14, 2007 Share Posted March 14, 2007 I am playing around with the gCards eCard program and I am in need of assistance with a problem that has cropped up... Have embedded an SWF file... When I go to send an eCard I get this error: Fatal error: Call to undefined function: close() in /home/ecards/public_html/processComposeFlash.php on line 239 I can preview just fine... The eCard is sent despite the above error, the email goes out and the eCard is viewable when the link is clicked upon... But this error pops up only for the swf file and NOT for a jpg or gif image... Line 239 of processCompose. php is: sqlstmt.close(); The coding I'm using for the swf file is: <OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="600" HEIGHT="500" CODEBASE="http://active.macromedia.com/flash5/cabs/swflash.cab#version=5,0,0,0"> <PARAM NAME="MOVIE" VALUE="images/<? echo rawurlencode($imagepath);?>"> <PARAM NAME="PLAY" VALUE="true"> <PARAM NAME="QUALITY" VALUE="best"> <PARAM NAME="LOOP" VALUE="true"> <EMBED SRC="images/<? echo rawurlencode($imagepath);?>" WIDTH="600" HEIGHT="500" PLAY="true" LOOP="true" QUALITY="best" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> </EMBED> </OBJECT> Also needed to mention that when the eCard is viewed this error appears at the bottom of the page: Fatal error: Call to undefined function: close() in /home/ecards/public_html/getcardFlash.php on line 131 and the close statement at line 131 is: sql.close(); Could someone tell me what I'm doing wrong? Don't I need those closing statements? Or does the addition of the flash file negate that need? Thanks, Babs Link to comment https://forums.phpfreaks.com/topic/42612-solved-swf-file-fatal-error-call-to-undefined-function-close/ Share on other sites More sharing options...
per1os Posted March 14, 2007 Share Posted March 14, 2007 If you are using mysql view this. http://us3.php.net/manual/en/function.mysql-close.php --FrosT Link to comment https://forums.phpfreaks.com/topic/42612-solved-swf-file-fatal-error-call-to-undefined-function-close/#findComment-207135 Share on other sites More sharing options...
bubblybabs Posted March 14, 2007 Author Share Posted March 14, 2007 Many thanks FrosT, I am using MySQL and I'll check on that link.... OK, link has been looked at... Now I'm confused... Why would this error only show for the flash files? And before I was getting these errors: Warning: mysql_connect() [function.mysql-connect]: and googling that error indicated I had too many connections open and needed to close them... UGH... Well, I've removed the closing tags for the flash file cards only and left them in for the other cards (gif and jpg), for now anyway... I'm figuring that's a workable compromise for now... Again, I appreciate your input... Babs PS. my ecard site is http://ecards.fractalfairy.com if anyone wants to have a gander... Link to comment https://forums.phpfreaks.com/topic/42612-solved-swf-file-fatal-error-call-to-undefined-function-close/#findComment-207393 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.