Jump to content

Add elements to base 64 encoding


adman4054

Recommended Posts

I'm trying to figure out how to add "\fs13" to the base64 encoding. For example, the "ad->text" field would look like this

 

<ad-content type="rtf">ZGZnIGRmZyBkZmcgZGZnIGRmZyBkZmcgZGZnIGRmZyBkZmcgZGZnIGRmZyBkZmcgZGZnIGQ=</ad-content>

 

The code to generate the above is -- <ad-content type=\"rtf\">".htmlentities(base64_encode($ad->text))."</ad-content>";

 

I need the encoding to include the "\fs13" in front of the encoded ad-content. The "\fs13" is simply a font size that will tell the system what font size to use.

 

<ad-content type="rtf">ZGZnIGRmZyBkZmcgZGZnIGRmZyBkZmcgZGZnIGRmZyBkZmcgZGZnIGRmZyBkZmcgZGZnIGQ=</ad-content>

 

I'm also trying to encode an additional field within the "ad-content type". The present code looks like this:

 

<ad-content type=\"rtf\">".htmlentities(base64_encode($ad->text))."</ad-content>";

 

I need to add "($ad->photo_file_name)" to the above, so that the "ad->text" and the "ad->photo_file_name" are within the ad-content type that is being decoded.

Hope that makes sense, appreciate ant help, Thanks!
 

Link to comment
https://forums.phpfreaks.com/topic/289194-add-elements-to-base-64-encoding/
Share on other sites

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.