Forums / General Questions / How can I put an image in PHP?

How can I put an image in PHP?

Locked

Views: 7,029

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
21 Aug 2008, 01:29
#1
milobloom avatar

milobloom

Totally Zenned

Join Date:
Feb 2004
Posts:
1,267
Plugin Contributions:
1

How can I put an image in PHP?

I wanted to add some text and images to my footer. I was editing english.php

now of course someone will probably tell me a better way to do this. But I just took some text, images and links that I made in MS Frontpage and tried pasting it into that area.

It gave me a t-string error when It got to loading a image.

How can I accomplish this?

21 Aug 2008, 01:49
#2
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,564
Plugin Contributions:
0

Re: How can I put an image in PHP?

Exactly what did you try to add to your footer?

21 Aug 2008, 02:01
#3
milobloom avatar

milobloom

Totally Zenned

Join Date:
Feb 2004
Posts:
1,267
Plugin Contributions:
1

Re: How can I put an image in PHP?

define('FOOTER_TEXT_BODY', 'Copyright © ' . date('Y') . ' <a href="http://www.zen-cart.com" target="_blank">Zen Cart</a>. Powered by <a href="http://www.zen-cart.com" target="_blank">Zen Cart</a><p> </p>

<p align="left" style="margin-top: 0; margin-bottom: 0"><font face="Verdana" size="2" color="#0b333c">N<wbr />othingButCostume<wbr />s.<wbr />com is your one stop costume shop for special events,<wbr /> parties,<wbr /> holidays,<wbr /> and more.<wbr /> </font> </p> <p align="left" style="margin-top: 0; margin-bottom: 0"><font face="Verdana" size="2" color="#0b333c">O<wbr />ur huge inventory of kids costumes and adult costumes provide a great selection for all your needs.<wbr /> </font> </p> <p align="left" style="margin-top: 0; margin-bottom: 0"><font face="Verdana" size="2" color="#0b333c">Y<wbr />ou will find the latest and most popular costumes at N<wbr />othingButCostume<wbr />s.<wbr />com.<wbr /> A<wbr />ll your favorites including pirate costumes,<wbr /> </font> </p> <p align="left" style="margin-top: 0; margin-bottom: 0"><font face="Verdana" size="2" color="#0b333c">D<wbr />isney costumes,<wbr /> and V<wbr />ampire costumes are here.<wbr /> </font> <wbr /> <wbr /><font face="Verdana" size="2" color="#0b333c">While Halloween Costumes are one of our biggest offerings, we do not stop there.<wbr /> </font></p> <p align="left" style="margin-top: 0; margin-bottom: 0"><font face="Verdana" size="2" color="#0b333c">From Valentines Day to St. Patricks Day to Mardi Gras to Purim<wbr /> <wbr />you will find costumes for all different seasons and events to suit your </font></p> <p align="left" style="margin-top: 0; margin-bottom: 0"><font face="Verdana" size="2" color="#0b333c">needs for anytime of the year.<wbr /> We are also your costume source for Corporate Events, Theatre, Amusement Parks, and more.<wbr /></font><font size="2" face="Verdana"> <wbr /> <wbr /></font></p> <p align="left" style="margin-top: 0; margin-bottom: 0"><font face="Verdana" size="2" color="#0b333c">W<wbr />hile browsing our thousands of products on N<wbr />othingButCostume<wbr />s.<wbr />com,<wbr /> you can feel secure in knowing that N<wbr />othingButCostume<wbr />s </font> </p> <p align="left" style="margin-top: 0; margin-bottom: 0"><font face="Verdana" size="2" color="#0b333c">provides you with the utmost security and reliability to ensure you can surf and buy with the utmost confidence.<wbr /> W<wbr />ith our </font> </p> <p align="left" style="margin-top: 0; margin-bottom: 0"><font face="Verdana" size="2" color="#0b333c">L<wbr />ive H<wbr />elp online and premiere customer support,<wbr /> we are here to help you with any questions you may have.<wbr /> </font> <wbr /> <wbr /></p> <span id="siteseal"><script type="text/javascript" src="https://seal.godaddy.com/getSeal?sealID=20051895650e1efb05127114f66ffbef17f6e035469135484457441"></script>  <a href="http://verify.authorize.net/anetseal/?pid=3275dd5d-0cf3-49dc-b0b6-8b840fd7da71&rurl=http%3A//www.nothingbutcostumes.com/authmerchseal.php" onmouseover="window.status='http://www.authorize.net/'; return true;" onmouseout="window.status=''; return true;" onclick="window.open('//verify.authorize.net/anetseal/?pid=3275dd5d-0cf3-49dc-b0b6-8b840fd7da71&rurl=http%3A//www.nothingbutcostumes.com/authmerchseal.php','AuthorizeNetVerification','width=600,height=430,dependent=yes,resizable=yes,scrollbars=yes,menubar=no,toolbar=no,status=no,directories=no,location=yes'); return false;" target="_blank"> <img src="http://verify.authorize.net/anetseal/images/secure90x72.gif" alt="Authorize.Net Merchant - Click to Verify" border="0" width="90" height="72"></a>  <img border="0" src="http://www.nothingbutcostumes.com/images/addbottom.JPG" width="726" height="95">

// look in your $PATH_LOCALE/locale directory for available locales..

The problem rises at <img src

23 Aug 2008, 01:19
#4
milobloom avatar

milobloom

Totally Zenned

Join Date:
Feb 2004
Posts:
1,267
Plugin Contributions:
1

Re: How can I put an image in PHP?

Actually now I almost have what I want. I modified the tpl_footer.php

But I need some help cleaning it up a little. The Go daddy Code and the Authorize seals want to make their own breaks. Can someone help me make everything go on 1 line?

https://www.nothingbutcostumes.com

<!--bof- site copyright display --> <div id="siteinfoLegal" class="legalCopyright"><?php echo FOOTER_TEXT_BODY; ?></div> <!--eof- site copyright display --> <img border="0" src="http://www.nothingbutcostumes.com/images/addbottom.JPG"><!-- (c) 2005, 2008. Authorize.Net is a registered trademark of CyberSource Corporation --><div class="AuthorizeNetSeal"><script type="text/javascript" language="javascript">var ANS_customer_id="XXXXXXXXXXX";</script><script type="text/javascript" language="javascript" src="//verify.authorize.net/anetseal/seal.js" ></script> <a href="http://www.authorize.net/" id="AuthorizeNetText" <span id="siteseal"><script type="text/javascript" src="https://seal.godaddy.com/getSeal?sealID=XXXXXXXXX"></script></span><?php } // flag_disable_footer ?>