- Problem: I assumed that any webpage names ending in extensions other than php would result in a 404 error. Wrong!
- Assume that pagename.php exists. pagename..php will generate a 404 error, but pagnam.php will cause a 500 error.
Objective 2: Place ErrorDocument at website root directory rather than in htdocs directory.
- Even if I force the .htaccess to access the ErrorDocuments from the website root directory, the actual ErrorDocument page loaded and lost all of the php info required to rebuild a corrected redirect (i.e. lasso pages to their php replacements). Therefore, the ErrorDocuments must go into htdoc to work.
Objective 3: Testing ErrorDocument 500 which occurs if a php page does not exist.
- Observation 1: Even though the ErrorDocument worked for 404 (see above) a misspelled pagename with a php extension results in an error 500 and the .htaccess seems to be ignored.
- Observation 2: A misspelled subdirectory even with a php extension in the (misspelled) pagename accessed the customized 404 ErrorDocument.
- Observation 3: Removing the ErrorDocument directive from the .htaccess file and enabling the directive in httpd.conf around line 887 by removing the '#' and insuring the correct file name ... accessed the customized file. There doesn't seem to be anything to do with altering the AllowOverride directive.
- Conclusion Given the inconsistencies as detailed above, using the .htaccess file for just ErrorDocuments doesn't seem worth the trouble.
- Session variables were being saved, but not restored. Username Session variable KT_Username(MM_Username) - Dreamweaver MX and UltraDev Zone - DMXzone.COM provided me the solution. Php.ini defaulted set session.use_trans_sid to '0'. I could changing it to '1' with ini_set('session.use_trans_sid', 1); which seemed to resolve the problem, however, this method automatically adds the SID to all of the website's links. In order to overcome that, if found this seems to works
- To alter php.ini setting where you don't have access to the file, hard code the following values:
ini_set('session.use_trans_sid', 1); in case your server's php.ini is set differently
ini_set('session.use_cookies', 0); in case your server's php.ini is set differently
ini_set("register_globals", 0);
ini_set('session.auto_start', 0);
ini_set("url_rewriter.tags", "a=href,area=href,frame=src,input=src,fieldset=");
ini_set("arg_separator.output", "&"); then; - session_start();
- For some reason or other, placing <input type="hidden" name="PHPSESSID" value="<?php echo session_id(); ?>" /> within <fieldset></fieldset> tags solved my problems. - See [And Breathe Out]
- Critical Note!!!!name="Phpsessid" would not work where name="PHPSESSID" did. It should also be noted that using session_name('Somesuch') may screw things up, so it should be avoided unless you're really good at coding.
- To alter php.ini setting where you don't have access to the file, hard code the following values:
ini_set('session.use_trans_sid', 1); in case your server's php.ini is set differently






