Jump to content

[SOLVED] swf file Fatal error: Call to undefined function: close()


bubblybabs

Recommended Posts

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

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...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.