[PHP] Problem with session_start after upgrading from 4.0.6 to 4.3.1

2003-08-26 Thread Richard NAGY
Hello,

I'm using an apache server 1.3.28 on RedHat GNU/Linux 6.2 with php
4.3.1. Before, I was using apache 1.3.14 with php 4.0.6. Since I have
upgraded, I have problems with session_start. I have tried to set
register_globals either to on or to off but it has no effect on this
problem.

Example :

Warning: session_start() [function.session-start]: read failed: Value
too large for defined data type (75) in
/var/www/htdocs/site/ssl/accueil/connexion.php on line 28

How can I solve this problem?
Thanks in advance.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] problem with session_start

2001-12-05 Thread Roy Kaldung

Hello,

after execution of session_start, the browser (IE) tries to save the
document
instead of viewing the pdf-file. After removing the line with
session_start()
all works fine.


configuration: Linux(2.4.2), Apache 1.3.22, PHP 4.0.6, PDFlib 4.0.1.

Any thoughts?

Bye
Roy


?php
//get session_id from the URL, it's coded into the path
ereg(/([0-9a-z]{32}), $REQUEST_URI, $regs);
$session_id = $regs[1];
session_id($session_id);
session_start();

// create pdf-document
$p = PDF_new();
PDF_open_file($p, );
PDF_set_info($p, Creator, test.php);
PDF_begin_page($p, 100,100);
PDF_end_page($p);
PDF_close($p);

// start output
$buf = PDF_get_buffer($p);
$len = strlen($buf);
header(Content-type: application/pdf);
header(Content-length: $len);
print $buf;
PDF_delete($p);
?







-- 
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]