CouleurMariage - main site moved to new domain
In September I split out the most successful part of BAOssimo! into its own site : CouleurMariage. New branding and all. The other BAOssimo! parts will be taken down soon.
of interest
<script type="text/javascript" src="URL_of_remote_file_outputting_javascript"></script><?php
ob_start();
include("php_script_producing_the_actual_html.php");
$string = ob_get_contents();
ob_end_clean();
$string = str_replace(chr(10), "", $string); //NL
$string = str_replace(chr(11), "", $string); //vertical tab
$string = str_replace(chr(12), "", $string); //NP
$string = str_replace(chr(13), "", $string); //CR
$string = addslashes($string);
print "document.writeln ('$string')";
?>I found this essential hint somewhere googling around - can't find it anymore now. I'd like to put a link to the original here (especially since it may additionally explain the str_replace commands) - so please let me know if you come across it.<?php
ob_start();
here some code to check the validity of the $_GET variables
I also save the $_GET variable 'page' into $page
include($page."_blogger.php");
$string = ob_get_contents();
ob_end_clean();
$string = str_replace(chr(10), "", $string); //NL
$string = str_replace(chr(11), "", $string); //vertical tab
$string = str_replace(chr(12), "", $string); //NP
$string = str_replace(chr(13), "", $string); //CR
$string = addslashes($string);
print "document.writeln ('$string')";
?><script type="text/javascript" src="http://mysite.bla/blogger_js.php?page=resto"></script><script type="text/javascript" src="http://mysite.bla/blogger_js.php?page=resto" CHARSET="ISO-8859-1"></script>
header("Content-type: text/html; charset=iso-8859-1");before
echo $response;similarly if you need to convert postings back to iso-8859-1 on the server side (they arrive there as utf-8) as follows before plugging them into your mysql database:
$posted_text = mb_convert_encoding(urldecode($this->queryVars['posting_textfield']), "ISO-8859-1", "UTF-8");