Well, then you simply can't use HTTP Authentication from PHP. The web
server doesn't expose the required information to the CGI environment. It
isn't PHP's fault.
-Rasmus
On Thu, 21 Feb 2002, Christoph Grottolo wrote:
>
> "Rasmus Lerdorf" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
> [EMAIL PR
I am running php/CGI with IIS on Win2k with Authentification - it is
working.
Uwe
-Ursprüngliche Nachricht-
Von: Christoph Grottolo [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 21. Februar 2002 20:30
An: [EMAIL PROTECTED]
Betreff: Re: [PHP-WIN] PHP Authentication
"Rasmus Lerdorf"
php-windows Digest 22 Feb 2002 02:27:21 - Issue 1012
Topics (messages 12182 through 12214):
javascript protected page?
12182 by: Spychala, Wojciech
opener header
12183 by: Spychala, Wojciech
fopen()
12184 by: Olga Tonkonog
12185 by: Svensson, B.A.T. (HKG)
I need to make this script send a file with it, can anyone help? thanks.
dont worry about the bottom part, i havent finished it
Submit
Script";
echo "";
echo "";
echo "Name: ";
echo "Email: ";
echo "Language: ";
echo "Subject: ";
echo "Comments: ";
echo "IP: $REMOTE_ADDR";
echo "";
}else{
file:/
Try tu use
$joinedstring = join(separator, $yourarray) to "pack" array into string and
then
$yourarray = split(separator, $joinedstring) to "unpack" array from string.
HTH
Piotr
quincy wrote:
> I want to find out if it is possible to pass an entire array via a query
> string using php?
>
> --
If you want to use XML try WDDX.
There are allready parsers available for ColdFusion, ASP, JavaScript and
php.
Very useful if you want to preserve data structures.
"Alek Andreev" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
000401c1ba2f$6c8e9f40$f568fea9@juno">news:000401c1ba2f$6c8e9f40$f568fea9@ju
"Rasmus Lerdorf" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
| HTTP Auth does not work with the CGI version of PHP which is what I
| presume you are using on Windows. Switch back to UNIX.
oh, please, dear sysadmin, set up a real good unix server for m
So maybe you try to modify php.ini
- to display php error messages set display_errors = on;
- to register globals by default (if you use 4.10 or 4.11) set
register_globals=on;
register_globals has been turned off by default since 4.10 for important
security reasons but however many existing apps
As I said check out www.w3.org, and the HTTP documentation for this. I think
you can send content-type unknown, or binary or something. But I wont look
it up for you. ;) There should though be a generic format so send binary
data with.
And of course if you uses a script, nothing prevent you from
hi..
thnx a bunch... yet to try it out ..but hv 1 more question... the content
type is gonna vary...PDF/image/excel file etc..
I can send the the content type dyanmically right?? as i hv a field in my db
with content types..
thnx...
sands
-Original Message-
From: Olivier Hubert [m
Ok,
I'll assume the file that you want to send is an image and that
the image is in a variable named $Image. As Svensson mentionned, you need
to send out the headers first:
header ("Content-Disposition: attachment; filename=Fubar.txt");
header ("Content-Type: image/jpeg");
if you hav
please, wud be grateful..:)
sands
-Original Message-
From: Olivier Hubert [mailto:[EMAIL PROTECTED]]
Sent: quinta-feira, 21 de Fevereiro de 2002 17:39
To: Sandeep Murphy; [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] local drive
Hi,
Do you know the mime type of the document? If so
More information:
Both installations work. The php test file, , works on
both the workstation running IIS and Win2K Pro and the server running WinNT.
To get up and running quickly, I used the Windows installer version on the
server (which I understand runs under CGI). However, I also understand
HTTP Auth does not work with the CGI version of PHP which is what I
presume you are using on Windows. Switch back to UNIX.
On 21 Feb 2002 [EMAIL PROTECTED] wrote:
> We just switched servers from Unix to Windows NT and all our authentication stopped
>working. It brings up an internal server err
Hi,
Do you know the mime type of the document? If so, you could simply
send the file through HTTP e.g. when the user presses the button, instead
of accessing a web he/she accesses a script that will send the information
contained in the database field. If you like I could send you sam
hrm,
let the user click a "save" button and then:
if ( $save ) {
## generate a file from the blob contents and save with a temp name
## then, go to the location of the file so it will start the download:
http://yourdomain.com/thefilename.doc
## the user can then name the file as they want or
Before sending the file, send the typical HTTP header information:
Content-Disposition: attachment; filename=Fubar.txt. And the content type
info: text/plain or whatever format that is suitable.
You can check www.w3.org for more details on exactly what you need in the
header.
Doing that shou
hi,
I have a document (BLOB type) in a database which I hv retrieved thru an sql
query...
I need to allow the user to save this document to his local hard drive upon
clicking a button...
any ideas as to how I can achieve this???
TIA,
sands
--
PHP Windows Mailing List (http://www.php.net/)
INSERT into table (datecol) VALUES (TO_DATE('2002-02-30','-MM-DD'))
or
INSERT into table (datecol) VALUES (SYSDATE)
Bye, John
Nicole Amashta <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> OK, it has been a long while since I've used Oracle, but from wha
I copy the php.ini file from cgi package original php.ini-dist
"Ray Hunter" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Did you copy over the php.ini file from the chi package. The php.ini file
from the installer has nothing really in it...
Ray Hunter
Firmw
Did you copy over the php.ini file from the chi package. The php.ini file
from the installer has nothing really in it...
Ray Hunter
Firmware Engineer
ENTERASYS NETWORKS
-Original Message-
From: Mike Schmid [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 21, 2002 9:40 AM
To: [EMAI
Roy sorry but it dosetn work i try it the same error output...
"Ray Hunter" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
What I do is add all the dlls to the same directory as your php.exe file. I
then edit the php.ini file to load the extension_dir from that
Hi Scott,
yes your are right, after i istall the php 4.1.1 whit the installer , i
download the cgi package , and configure itlike you
can read in my first post...
"Scott" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have to check, but I thought the on
I have to check, but I thought the only real support you got with the
installer was MySQL and you had to download the CGI version to get all the
addtional DLL's, like MS-Sql, etc.
On Thu, 21 Feb 2002, Mike Schmid wrote:
> Hi NG
>
> Help needed, i have make a new istallation of php 4.1.1 (w
Hi NG
Help needed, i have make a new istallation of php 4.1.1 (with the
installer). I configured everyhing like iis php.ini. registry and permission
on th ntfs partition. I coppy all the dll`s from php (not the extensions
dll´s) to system32. I downloded to the win32 package with the extensions
pa
It took some digging on the PHP-Win Archive but I found the answer a long
time ago... First you have to be running PHP as an Apache module (not a
CGI), and there was an extra .dll to load. Sorry I'm not more specific, but
I just can't seem to remember the details. Hope this points you in the right
We just switched servers from Unix to Windows NT and all our authentication stopped
working. It brings up an internal server error. We installed the newest PHP and the
newest Apache software. Pretty much everything else works, except the authentication
won't work. I've tried many different vers
> > I've installed the windows installer version of php on a NT server. I've
> > also installed the windows binary on my Windows 2000 pro workstation.
> > Everything works fine on the CGI-Windows installer version on the server,
> > but I can't get the same applications to run from my Win2KPro wo
OK, it has been a long while since I've used Oracle, but from what I
remember, the format of the date is *not* the one you are using. I believe
it should look like this: -mm-dd or mm-dd-
I may be wrong about the format, but I remember originally having trouble
with the dates when I used o
I'm developing php from a win2k box and recently added vhosts to the
httpd.conf file, as shown below
#+
NameVirtualHost *
ServerAdmin webmaster@localhost
DocumentRoot "D:/Internet/crestar/web/"
ServerName localhost
Err
Also make sure you web server is running.
"Tom Belich" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I've installed the windows installer version of php on a NT server. I've
> also installed the windows binary on my Windows 2000 pro workstation.
> Everythin
>I have problem with function fopen() - if file not exists, fopen() don't
>return false, it returnnothing.
It is impossible for a function in a typed language to return different data
types dependent on the evaluation of the function. According to the manual
pages of php's fiopen() it should retu
Hello,
I have problem with function fopen() - if file not exists, fopen() don't
return false, it return
nothing.
Is it only Windows problem or help is false?
Who can help?
Olga
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi
Some scripts recognize what was previos page on your browser befor u get to
this script (opener)
and if address isn't correct script may not allow to do anything
is it possible send by php header in information that we for example running
script from different location than this is realy??
I know this not right discussion group but if u use PHP I'm sure U use
Javascript
i want to fulfill form on internet page by javascript automaticaly i a get
the error "Access denied"
is it possible to protect html page so no one can fulfil form by
javascript??? if yes is it some way to jump over
php-windows Digest 21 Feb 2002 12:25:04 - Issue 1011
Topics (messages 12167 through 12181):
Running Windows full binary distribution
12167 by: Tom Belich
12176 by: Christoph Grottolo
FindWindow() in C# called by PHP
12168 by: Devon Knowles
Re: Writing text to files
After installing the current version of the win32 binary,
I am getting the following error:
UNABLE TO FIND ftpbuf 0 in C:\path
ftp_login() seems to be prodcing the error.
I do have a connection id (stream).
FTP functions worked perfectly before upgrading!
Any help is appreciated!
Thanks,
Hello,
I learn PHP now and use Windows. But almost all guidance are for Linux.
Do you know how to produce own extensions in PHP?
Thank you
Olga
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
THANKS!!!
made my day!!!
:)
-Original Message-
From: Jan Matejka [mailto:[EMAIL PROTECTED]]
Sent: quinta-feira, 21 de Fevereiro de 2002 11:56
To: 'Sandeep Murphy'
Subject: RE: [PHP-WIN] inserting date into oracle!!!
sql +="VALUES("+temp+","+code+","+COLAB_COD+","+RESERVED+
",(
| It's as easy as... :-)
| $day = getdate(time());
| $f_name = create table name on time basis;
| $fd = fopen($f_name, "a"); // open file
| fwrite($fd, "string you want tu put (add) into
| file"); // write to file all your data
| fclose($fd); // close the file
| That's all
What error message does you recive from the database?
>-Original Message-
>From: Sandeep Murphy [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, February 21, 2002 10:57 AM
>To: [EMAIL PROTECTED]
>Subject: [PHP-WIN] inserting date into oracle!!!
>
>
>Hi,
>
>I have been trying to insert the cur
| I've installed the windows installer version of php on a NT server. I've
| also installed the windows binary on my Windows 2000 pro workstation.
| Everything works fine on the CGI-Windows installer version on the server,
| but I can't get the same applications to run from my Win2KPro workstatio
Hi,
I have been trying to insert the current date into ORACLE in vain...
my query reads like this..
java.text.SimpleDateFormat formatter = new
java.text.SimpleDateFormat("dd/MM/");
java.util.Date currentTime_1 = new java.util.Date();
String dateString = formatter.format(currentTime_1);
44 matches
Mail list logo