[PHP] Very strange problem with session files
I have WindowsNT4 Serv PHP 4.0.6/CGI My php.ini includes: (...) session.save_handler = files session.save_path = /tmp session.use_cookies = 1 (...) Problem: When I run PHP script which uses sessions (commands like session_start() etc.) the session file IS created in /tmp BUT cannot be received and added to my URL. My browser (IE5.5PL SP1) receives message: Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in I:\(...)\test.php on line 0 I checked. The session data was created! I CAN read them directly by another script also in PHP: (...) ? $fd = fopen($path/$filename, r) or die(h3Cannot read $path/$filename/h3); print fread($fd, filesize($path/$filename)); fclose($fd); ? It seams very strange. PHP do create session data but display error Failed to write. What can be incorrect with session.save_path? I checked, the session data is created correctly. I can read that file. What is goin' on? Anybody can help? -- Jarek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Sessions - new window
Hi, Is it posibble to have more than one session for one user? I have a page with forms(report_select.php) and result page(show_report.php), when someone has two windowa opened with differents data postet from (report_select.php), old data are replaced by new and the effect is that there is one report in both windows. Is there any solutions to have multiple windows opened with differents data posted from one page. JArek PS. Sorry for my english. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] how to have a print button on a PHP generated page
maybe this helps : html HTML HEAD script language=JavaScript !-- function custom_print() { if (document.all) { if (navigator.appVersion.indexOf(5.0) == -1) { var OLECMDID_PRINT = 6; var OLECMDEXECOPT_DONTPROMPTUSER = 2; var OLECMDEXECOPT_PROMPTUSER = 1; var WebBrowser = OBJECT ID=\WebBrowser1\ WIDTH=0 HEIGHT=0 CLASSID=\CLSID:8856F961-340A-11D0-A96B-00C04FD705A2\/OBJECT; document.body.insertAdjacentHTML(beforeEnd, WebBrowser); WebBrowser1.ExecWB(6, 2); WebBrowser1.outerHTML = ; } else { self.print(); } } else { self.print(); } } //-- /script /HEAD BODY div align=center input type=submit name=Submit value=Print onClick=custom_print() /div /html Carlos Fernando Scheidecker Antunes wrote: Hello All! I have a page that was generated by PHP4 and is the result of a query. I would like to enable a button to have the page printed. Does anyone knows how to do it with either PHP or javascript? Thanks, C.F. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]