[PHP] Browsers...

2001-12-27 Thread Jesus Maria Bianco T.

Hello, World :-)

I've been using the PHP_AUTH_USER and PHP_AUTH_PW, in some scripts, I've had some 
problems with it in somes Browsers. I tested with a phpinfo() function and the 
browsers with the problems doesn't appear PHP_AUTH_USER and PHP_AUTH_PW with the 
respective values. It's like PHP_AUTH_USER and PHP_AUTH_PW doesn't exist.

The Script is in a Server (RedHat Box 6.2) with PHP 4.0.4.

The script work fine on Macintosh (IE 5.0) and in a NT 4 (IE 5.5) and in Macintosh 
(Netscape Communicator 4).

The script doesn't WORK fine on Win Me (IE 5.5), Mac (Netscape Navigator 4.76).

It's very rare because sometimes in the Windows ME (IE 5.5) works fine, and sometimes 
is not. I've checked the script and play around with it, I think that there's an 
important problem with the PHP_AUTH_USER is somes browsers that can't see the 
PHP_AUTH_USER and his value.

I've tested the REMOTE_USER and it have the value of PHP_AUTH_USER, but I don't know 
for how many time will be support the REMOTE_USER, it doesn't appear in the  
phpinfo() display.

Thanks a lot for your time.

-- 

__
Jesus Maria Bianco Troconis (yisu)

E-MAIL mailto:[EMAIL PROTECTED]
ICQ4792036 / nickname yisu
WEBhttp://yisu.net

 Telefono/Phone  +58 (414) 3042346
 (Ciudad/City) Caracas, Venezuela

  Mac, PHP  MySQL Rulez.
They Kick some ass!
__


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
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] Sending out mass mail without having timeout problems ..

2001-12-27 Thread Jesus Maria Bianco T.

Hi,

If you will send a lot of e-mails, I recomend you, that use under the Console:

$rush  nohup php -q file_send_email.php 

The nohup, tell to maquine that don't hang up until finished.

php -q (quiet mode) and the last character () for let the process in background.

It's only works on *nix Boxes, I don't think that will work under M$ windows.

Bye,


At 12:02 PM -0600 27/12/01, Peter wrote:
   Subject:  [PHP] Sending out mass mail without having timeout problems
..

Hi,

Too much trouble to write who wrote what when. Someone suggested using an
alias but that's not always doable.

I had an app that read from a live rdbms and sent out emails. I sent each
email to sendmail and waited fo it to send the email before going on to the
next one. My cohort determined that this was way, way too slow. He did some
research and added some new parameters to sendmail so that the email was put
in a queue and so the script ran MUCH faster.  I believe these were the
parameters. You should look them up on the sendmail site:

sendmail -oi -t -odq

Hope this helps.

Peter



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

-- 

__
Jesus Maria Bianco Troconis (yisu)

E-MAIL mailto:[EMAIL PROTECTED]
ICQ4792036 / nickname yisu
WEBhttp://yisu.net

 Telefono/Phone  +58 (414) 3042346
 (Ciudad/City) Caracas, Venezuela

  Mac, PHP  MySQL Rulez.
They Kick some ass!
__


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
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] Re: File Upload Question...

2001-12-27 Thread Jesus Maria Bianco T.

Hi,

Remember 2nd Q: The file is Upload to a temporaly direcory, later you copy from 
temporaly (temporaly name) to a final (rename the file) destination.


Under *NIX, I don't if Windows's PHP when upload tthe file, the file is copied to a 
temporaly directory.


Bye,

I've still My Question about PHP_AUTH_USER and Browsers :-)

Marry Chistmas...



At 12:33 PM -0500 27/12/01, Jeremy Reed wrote:
Your first question.  To see that the file uploaded successfully using the
web browser, one would have to have access to your computer's file system.
In her book, she used this merely as an example to show that the file had,
indeed, been uploaded.  This should not be used as something that you allow
your web users to do to confirm the receipt of the file.  Instead, send them
an email, show them a directory listing, etc.

Your second question, the name given to the image should be whatever the
*value* of the variable used to copy() it.  You should, however, come up
with a naming scheme that allows you to ensure that you do not overwrite any
uploaded files--especially if you expect a lot of traffic and/or users using
this feature.

Your third question, the mime-type pjpg is functionally the same as the
mime-type jpeg.  There's nothing you need to worry about there.


Anthony Ritter [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Merry Christmas everybody.

 I am using MS Windows 98 with Apache and following an example in Julie
 Meloni's PHP - Fast and Easy (Chapter 10) in which she describes file
 uploading using PHP on page 168-174.

 She has two files:
 1) an html form to receive the input from the user for the file to be
 uploaded
 2) a .php script to accept the variable and use the copy() function.
 .

 The scripts are as follows:
 (html form)

 HTML
 HEAD
 TITLEUpload a File/TITLE
 /HEAD
 BODY

 H1Upload a File/H1

 FORM METHOD=post ACTION=do_upload.php ENCTYPE=multipart/form-data

 pstrongFile to Upload:/strongbr
 INPUT TYPE=file NAME=img1 SIZE=30/p

 PINPUT TYPE=submit NAME=submit VALUE=Upload File/p

 /FORM

 /BODY
 /HTML
 
 (.php script)

 ?
 if ($img1_name != ) {

 @copy($img1, c:/Program Files/Apache Group/Apache/htdocs/$img1_name)
 or die(Couldn't copy the file.);

 } else {

 die(No input file specified);

  }

 ?

 HTML
 HEAD
 TITLESuccessful File Upload/TITLE
 /HEAD
 BODY

 H1Success!/H1

 PYou sent: ? echo $img1_name; ?, a ? echo $img1_size; ?
 byte file with a mime type of ? echo $img1_type; ?./P

 /BODY
 /HTML
 ..

 My questions:
 I am able to upload a file from My Documents  to the Apache server however
 in her book, she describes that the user can verify that the file was
 uploaded to the server by going to:

 File/ Open Page / in ones web browser to navigate through their filesystem
 to
 find the file that was uploaded.  There is a screenshot in the book that
 shows the .jpeg file on the screen with the browser at:
 file:///C/Apache/htdocs/blahblah.jpg

 I can't seem to verify that the file exists using this method.

 The only way I can verify that the file was indeed uploaded is to go into
 the folder within Apache that was specified in the path and check there.

 *How can I check by going through the browser window?*

 Next question:

 When I check that the file was uploaded, the file is saved in:
 C:/Program Files/Apache Group/Apache/htdocs/$img1_name

 as the *regular *.jpeg name I originally gave it - not the variable -
$img1.

 Is this correct? Or, should the file be saved as:
 img1?

 And the last question:
 This is the line I received upon sending the file:
 
 You sent: KewpieSmall.jpeg, a 3127 byte file with a mime type of
 image/pjpeg.

 In her book, it says:
 image/jpeg.

 What is:
 image/pjpeg.?

 Many thanks and best wishes to all for a happy and healthy new year.
 Tony Ritter








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

-- 

__
Jesus Maria Bianco Troconis (yisu)

E-MAIL mailto:[EMAIL PROTECTED]
ICQ4792036 / nickname yisu
WEBhttp://yisu.net

 Telefono/Phone  +58 (414) 3042346
 (Ciudad/City) Caracas, Venezuela

  Mac, PHP  MySQL Rulez.
They Kick some ass!
__


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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