[thelist] tips

Duncan O'Neill dbaxo at ihug.co.nz
Wed Feb 19 16:32:01 CST 2003


<tip type="PHP">
Unwanted and unneeded session variables messing up your
validation?

Two solutions:
1) disable session variables in your .htaccess file by
    doing:
    php_flag session.auto_start 0

2) Tell the server to add the entity coding for ampersands
    by doing this in your .php file:
    ini_set("arg_separator.output","&amp;");
</tip>

<tip type=authoring software">
Don't want to start any religious wars, but for me,
EditPlus is the business. Its killer feature is its
projects widget. This lets you store all the
necessary files within a project, so that once you've
chosen that project, all files are at yer fingertips.
http://www.editplus.com/
(not affiliated)
</tip>

<tip type="CSS / Javascript">
Netscape 4 will lose positioning and other styles when
the window is resized. This piece of code will reload
the page for that browser when the window is resized,
fixing the CSS mess:


function reloadPage(init) {
   if(init == true) with (navigator) {
     if((appName=="Netscape") && (parseInt(appVersion) == 4)) {
       document.pgW = innerWidth;
       document.pgH = innerHeight;
       onresize = reloadPage;
       }
   } else if(innerWidth != document.pgW || innerHeight != document.pgH) {
     location.reload();
   }
}
reloadPage(true);
</tip>




--
Duncan O'Neill
http://homepages.ihug.co.nz/~dbaxo/




More information about the thelist mailing list