Re: [PHP] HTTP_AUTHORIZATION question

2004-07-02 Thread Alan McDonald
 I have files contained in a download directory (.doc, .xls etc files)
 so I can't request authentication on each download from insie the files.
 I use authentication against a DB for the rest of the site and all pages
are
 protected this way.
 My only way to protect these download files is to place server
 authentication on the folders they are contained in.
 
 To avoid having to manage my users again as server users, does anyone
know
 how to set the HTTP_AUTHORIZATION variable at time of request?
 I don't need high security, so the page setting the HTTP_AUTHORIZATION is
 protected but does contain the username and pw couplet for the
 HTTP_AUTHORIZATION setting.
 
 
 There authorizations settings are supposed to be sent back to the server
 by the client so you cannot generate them with php. Your option include
 using .htpasswd that checks against a mysql database (please ask in the
 apache list.)  and keeping your downloads 'offline' and delivering them
 through a php script. The second suggested has been discussed to
 exaustion in this list in the past.

 -- 
 Raditha Dissanayake.

Thanks - I suppose I was thinking of building (via PHP) and client JS script
to set the property at the client. But anyway the offline way is the
answer - shold have thought of that.
Alan

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



[PHP] HTTP RAW DATA

2004-07-01 Thread Alan McDonald
Does anyone know a way of getting the raw data passed back from a server?
I want to compare the total raw data sent back from Apache with that sent
back from IIS for a particular file. I don;t want any filtering at all and I
need to catch it so I can see it all.
Thanks
Alan

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



[PHP] HTTP_AUTHORIZATION question

2004-07-01 Thread Alan McDonald
I have files contained in a download directory (.doc, .xls etc files)
so I can't request authentication on each download from insie the files.
I use authentication against a DB for the rest of the site and all pages are
protected this way.
My only way to protect these download files is to place server
authentication on the folders they are contained in.

To avoid having to manage my users again as server users, does anyone know
how to set the HTTP_AUTHORIZATION variable at time of request?
I don't need high security, so the page setting the HTTP_AUTHORIZATION is
protected but does contain the username and pw couplet for the
HTTP_AUTHORIZATION setting.
Anyone know how? I know we stamped out URL methods of passing username and
pasword couplets but maybe there's another way?

This doesn't work
$_SERVER['HTTP_AUTHORIZATION'] = Basic
.base64_encode(username:password);
because you can't appear to set this variable, only the server can set it
after it receives a
header('WWW-Authenticate: Basic realm=Test Authentication System');
header.

thanks
Alan

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



[PHP] jdmonthname Function problem

2004-06-15 Thread Alan McDonald
Fatal error: Call to undefined function: jdmonthname() in

hmmm what have I done with my build that I have left something like this
out?
Anyone have a cloe as to what option should have been set to get this
function working?
It works fine on my 4.3.4 on Windows but 4.3.7 in Linux throws this
complaint at me
Alan

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



[PHP] Re: jdmonthname Function problem

2004-06-15 Thread Alan McDonald
  hmmm what have I done with my build that I have left something like this
  out?
  Anyone have a cloe as to what option should have been set to get this
  function working?
  It works fine on my 4.3.4 on Windows but 4.3.7 in Linux throws this
  complaint at me
  Alan

 http://de.php.net/manual/en/ref.calendar.php

 ---
 Installation

 To get these functions to work, you have to compile PHP
with --enable-calendar.

 The windows version of PHP has built in support for this extension. You do
not need to load any additional extension in order to use these functions.
 ---



 thomas

thanks thomas much appreciated
Alan

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



[PHP] PHP 4.3.7 update - how to

2004-06-14 Thread Alan McDonald
I've downloaded the 4.3.7 tar ball and extractted it. I've run configure
(after deleting the cache), no errors. I've run make - no errors, I've then
run make install.. no errors, it says it's updating and installing.
Now I've restarted my httpd service - I've even rebooted but I'm left with
phpinfo telling me that version 4.2.2 is running.
I'm in RH9 and I have no idea why it doesn't install properly..
Can someone shed some light on this?
thanks
Alan

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



[PHP] Re: PHP 4.3.7 update - how to

2004-06-14 Thread Alan McDonald
  I've downloaded the 4.3.7 tar ball and extractted it. I've run configure
  (after deleting the cache), no errors. I've run make - no errors, I've
then
  run make install.. no errors, it says it's updating and installing.
  Now I've restarted my httpd service - I've even rebooted but I'm left
with
  phpinfo telling me that version 4.2.2 is running.
  I'm in RH9 and I have no idea why it doesn't install properly..
  Can someone shed some light on this?

 Not sure if it's relevant, but does httpd.conf point to the new version?
 It's all I have to tweak in Windows.

 -- 
 Lester Caine

I must be missing something critical here... I was thinking that the make
install would overwrite the PHP executables but it obviously doesn't ..
Now where in the conf file does the PHP module get mentioned? I;ve searched
it with no mention of PHP!
Alan

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