Re: [PHP] SSPI php extension
Curtis Maurand schrieb: Hendrik Schmieder wrote: Hello, Is there a SSPI php extension ? I only found a perl extension sofar. (http://search.cpan.org/~tomk/Win32-IntAuth-0.20/lib/Win32/IntAuth.pm) I want to make what is written on the above side for the server in php. with best regards Hendrik Apache has one (mod_auth_sspi) This doesn't help me since the php script isn't executed in the context of apache nor IIS. The function in the php script has two arguments, both string. The first argument ($username) has the form n...@domain.tld, the second is some sort of token . Now the php function should check if the token is valid and if it is also possible to check if the token is for the user given by the first argument. keyword : Windows athentification. with best regards Hendrik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] SSPI php extension
Hello, Is there a SSPI php extension ? I only found a perl extension sofar. (http://search.cpan.org/~tomk/Win32-IntAuth-0.20/lib/Win32/IntAuth.pm) I want to make what is written on the above side for the server in php. with best regards Hendrik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] pdf_open_pdi_page
Matt M. schrieb: I was on that page. There's nothing which comes close to your assumption. sorry, wrong link you dont need PDFlib+PDI. Is that the license that you have? here is an assumption. I assumed you would read the pdflib manual, did you see? Note All functions described in this section require PDFlib+PDI. The PDF import library (PDI) is not contained in PDFlib or PDFlib Lite. Although PDI is integrated in all precompiled editions of PDFlib, a license key for PDI (or PPS, which includes PDI) is required. I only have read the php manual at http://www.php.net/manual/en/ref.pdf.php.. This states that you only need a licence for commercial use. I thought, that this only a legal point. At the moment, I try to investigate wheter I can do with pdflib what I wanted to do with pdfs. At least any documented function in the php manaul should work witout any licence, otherwise they shouldn't be described. with best regards Hendrik Schmieder -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Sessions not destroyed
Hello, we have a severe problem with seesions. We use Apache 1.3.31 with PHP 4.3.9 as Apache module in Windows 2000 In our php.ini we have session.gc_probability = 100 session.gc_dividend= 100 session.gc_maxlifetime = 120 But even after 20 minutes the session file is still there. And the session file ist also not deleted if we then stop the apache service. Has anybody an idea ? TIA Hendrik Schmieder -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Sessions not destroyed
M. Sokolewicz schrieb: are you using the default PHP sessions? or are you using a custom session handler? Hendrik Schmieder wrote: Hello, we have a severe problem with seesions. We use Apache 1.3.31 with PHP 4.3.9 as Apache module in Windows 2000 In our php.ini we have session.gc_probability = 100 session.gc_dividend= 100 session.gc_maxlifetime = 120 But even after 20 minutes the session file is still there. And the session file ist also not deleted if we then stop the apache service. Has anybody an idea ? TIA Hendrik Schmieder We are using the default php sessions , This are all of our session settings; [Session] session.save_handler = files session.save_path = D:\Worksheet-Server\apache\sessiondata session.use_cookies = 1 session.name = PHPSESSID session.auto_start = 0 session.cookie_lifetime = 0 session.cookie_path = / session.cookie_domain = session.serialize_handler = php session.gc_probability = 100 session.gc_dividend= 100 session.gc_maxlifetime = 120 session.bug_compat_42 = 1 session.bug_compat_warn = 1 session.referer_check = session.entropy_length = 0 session.entropy_file = session.cache_limiter = nocache session.cache_expire = 180 session.use_trans_sid = 1 url_rewriter.tags = a=href,area=href,frame=src,input=src,form=,fieldset= with best regards Hendrik Schmieder -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Sessions not destroyed
Marek Kilimajer schrieb: Hendrik Schmieder wrote: Hello, we have a severe problem with seesions. We use Apache 1.3.31 with PHP 4.3.9 as Apache module in Windows 2000 In our php.ini we have session.gc_probability = 100 session.gc_dividend= 100 Should be session.gc_divisor OK , changed in php.ini, but no change in behaviour. And you need to start at least one other session so that the first one gets cleared. If you are right, then this is a severe design bug. with best regards Hendrik Schmieder -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] fopen and http://
Adam Williams schrieb: Hi, I'm having a problem with fopen and http files. I keep getting the error: Warning: fopen(http://zed/htdocs/rgfindingaids/series594.html ) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/awilliam/public_html/rgfaidstest.php on line 15 http://zed/htdocs/rgfindingaids/series594.html does not exist But I don't understand why I am getting that error about failed to open strem: HTTP request failed, when I can bring up the links fine in a browser on the server running the php script. So can anyone help me out? Thanks What say phpinfo about Registered PHP Streams ? Hendrik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Sessions not destroyed
Marek Kilimajer schrieb: Hendrik Schmieder wrote: Marek Kilimajer schrieb: Hendrik Schmieder wrote: Hello, we have a severe problem with seesions. We use Apache 1.3.31 with PHP 4.3.9 as Apache module in Windows 2000 In our php.ini we have session.gc_probability = 100 session.gc_dividend= 100 Should be session.gc_divisor OK , changed in php.ini, but no change in behaviour. And you need to start at least one other session so that the first one gets cleared. If you are right, then this is a severe design bug. Depends on your point of view. It is a sideeffect of loading current session (and thus accessing it) before the session gc is called. So the question is, should the session module give up on current session just because it should have been garbaged, even if the session file still exists? That's the point. If the current sesions timed out, since there was no action in the session lifetime, then the session file must be deleted. On the other side, if there's an action in the session lifetime, the timer for this session should be reset to zero. Anyway , if the apache service is stopped (I am not speaking about a crash) all session files must be deleted. Hendrik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Sessions not destroyed
Graham Cossey schrieb: [snip] If you are right, then this is a severe design bug. Depends on your point of view. It is a sideeffect of loading current session (and thus accessing it) before the session gc is called. So the question is, should the session module give up on current session just because it should have been garbaged, even if the session file still exists? Apologies if I'm way off here, but I'm relatively new to PHP. Surely it should be down to settings in php.ini, not a point of view or the probability of the garbage collection possibly having run when a new session is started. Why can there not be a session_timeout value that is adhered to? Would it not also save everyone from writing their own code to determine whether or not they should be using the session that PHP is making available? If my site is accessed by few users and I have a session 'timeout' of 30minutes specified, if Bob leaves his PC at 10:00 I would expect that if he returned at 10:40, and no-one else had accessed the system, his session would have expired and he would need to re-authenticate to create a new session. Short of writing custom session handlers, the current arrangement seems somewhat haphazard to me. Those are my current thoughts anyway. Graham Graham, that's also my point. Unfortunately this isn't happening. Bob can work on as he never left his PC. Hendrik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PHP-INSTALL] install errors with oci8
Bob Redding schrieb: Running on Mandrake 10.0, Apache 2 and Oracle Client Bob Redding Look where you have libclntsh.a or libclntsh.so. Hendrik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Sessions not destroyed
Marek Kilimajer schrieb: Hendrik Schmieder wrote: Anyway , if the apache service is stopped (I am not speaking about a crash) all session files must be deleted. Why? Why should users loose their sessions just because I need to restart web server? OK, good point. So I redrew the request for deleting, when Apache is stopping , but not the other point. Your php code is a workaround, but no real solution . Hendrik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Sessions not destroyed
Patrick Blousson schrieb: Hi, What about your hard disk partitions? Sessions only works on NTFS partitions. FAT don 't have a last accessed flag on file. Patrick. - Original Message - From: Hendrik Schmieder [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Friday, October 08, 2004 7:23 AM Subject: Sessions not destroyed Hello, we have a severe problem with seesions. We use Apache 1.3.31 with PHP 4.3.9 as Apache module in Windows 2000 In our php.ini we have session.gc_probability = 100 session.gc_dividend= 100 session.gc_maxlifetime = 120 But even after 20 minutes the session file is still there. And the session file ist also not deleted if we then stop the apache service. Has anybody an idea ? TIA Hendrik Schmieder NTFS but you claim about FAT is wrong for PHP = 4.2.3 : Since PHP 4.2.3 it has used mtime (modified date) instead of atime. So, you won't have problems with filesystems where atime tracking is not available. http://www.php.net/manual/en/ref.session.php Hendrik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] pdf_open_pdi_page
Matt M. schrieb: *Fatal error*: PDFlib error: [2016] PDF_open_pdi: PDF import (PDI) not supported in this configuration in *d:\worksheet-server\wss\html\pdf\test2.php* on line *7* I could be wrong but I think you need a special license for this functionality. Do you have a source for your assumption ? Hendrik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] pdf_open_pdi_page
Matt M. schrieb: Do you have a source for your assumption ? to use pdi you need PDFlib Personalization Server (PPS) http://www.pdflib.com/products/pdflib/pps.html I was on that page. There's nothing which comes close to your assumption. with best regards Hendrik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] pdf_open_pdi_page
Hello, when I try to execute the php script below I get the following error message *Fatal error*: PDFlib error: [2016] PDF_open_pdi: PDF import (PDI) not supported in this configuration in *d:\worksheet-server\wss\html\pdf\test2.php* on line *7* I'm using Apache 1.3.31 with php 4.3.8 on Windows 2000 . The line extension=php_pdf.dll is uncommented in php.ini phpinfo shows PDF Supportenabled PDFlib GmbH Version 5.0.3 Revision$Revision: 1.112.2.9 $ What am I missing ? Here is the script : ?php $pdf = pdf_new(); if (pdf_open_file($pdf)) { $pdi = pdf_open_pdi($pdf, 'pdf/pdftest.pdf', , 0); $page = pdf_open_pdi_page($pdf, $pdi, 1, ); $page = pdf_open_pdi_page($pdf, $pdi, 1, ); $width = pdf_get_pdi_value($pdf, width, $pdi, $page, 0); $height = pdf_get_pdi_value($pdf, height, $pdi, $page, 0); pdf_begin_page($pdf, $width, $height); pdf_place_pdi_page($pdf, $page, 0.0, 0.0, 1.0, 1.0); $font = pdf_findfont($pdf, Courier, host, 0); pdf_setfont($pdf, $font, 20); pdf_show_xy($pdf, Second page, 200, 350); pdf_close_pdi_page($pdf, $page); pdf_end_page($pdf); pdf_close($pdf); $data = pdf_get_buffer($pdf); $fp = fopen ('pdftest.pdf', 'wb'); fwrite ($fp, $data); fclose ($fp); } else echo pdf_open_file failed br\n; ? with best regards Hendrik Schmieder -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php