[PHP] Is there a way to call php functions in perl? and vice versa

2001-02-06 Thread david klein

Is there a way to call php functions in perl? or call perl functions from 
PHP codes?

Thanks,
David
_
Get your FREE download of MSN Explorer at http://explorer.msn.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] how to specify the sender email address in the mail() function?

2001-02-02 Thread david klein

It seems that mail($recipient, $subject, $content) has no place to specify 
the sender's email address. Does anyone know how to specify the sender's 
email address?

Thanks,
David
_
Get your FREE download of MSN Explorer at http://explorer.msn.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] Symbolic link fails when User Authentication comes in

2001-01-31 Thread david klein

Johnny,

It works, but how could this create a security hole? Could you please 
expalin a little bit more?

Thanks,
David


From: "johnny p." [EMAIL PROTECTED]
To: "david klein" [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: RE: [PHP] Symbolic link fails when User Authentication comes in
Date: Wed, 31 Jan 2001 13:54:22 -0600

Add the FollowSymLinks to your httpd.conf file for that directory.  I
don't recommend doing this, tho, since it *is* a security hole.

Directory /apps/apache/docs/test1
Options Indexes FollowSymLinks
/Directory

johnny p.

  -Original Message-
  From: david klein [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, January 31, 2001 1:43 PM
  To: [EMAIL PROTECTED]
  Subject: [PHP] Symbolic link fails when User Authentication comes in
 
 
  I am using Apache user authentication, and it works fine.
  However, if there
  is a symbolic link inside a securied directory, the symbolic
  linked file
  will deny any access.
 
  For example, directory "/apps/apache/docs/test1" is a
  securied directory,
  and there is a symbolic linked file "file1.txt", after you
  logged into
  directory "/apps/apache/docs/test1" and try to access
  "file1.txt", you will
  be denied for the access?
 
  Does anyone have any idea?
 
  Thanks,
  David
  _
  Get your FREE download of MSN Explorer at http://explorer.msn.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 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]


_
Get your FREE download of MSN Explorer at http://explorer.msn.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] .htpasswd?

2001-01-31 Thread david klein


Yes, you can, just write a script to call "htpasswd -b yourUserFile userID 
passwd".

:)
David

From: James Smith [EMAIL PROTECTED]
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: [PHP] .htpasswd?
Date: Wed, 31 Jan 2001 13:21:35 -0800 (PST)

Is there a way that when a user signs up for a
user/pass on a site, to automatically update the
.htpasswd on the site?  Right now I'm running a Win2k
Pro, with Apache installed and MySQL/PHP.

Thanks,

James

__
Get personalized email addresses from Yahoo! Mail - only $35
a year!  http://personal.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]


_
Get your FREE download of MSN Explorer at http://explorer.msn.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] Resize the pop-up window

2001-01-29 Thread david klein

Hello, I know this question is out of PHP, but I'll very appreciate if some 
guru here could help me out.

I have a link, which will pop up a new window, but the problem is: I don't 
know how to resize the new popped-up window.

My code is like this:

A HREF="www.intc.com" target="_blank" intel connection /A


Thank you very much in advance.

David
_
Get your FREE download of MSN Explorer at http://explorer.msn.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] Resize the pop-up window

2001-01-29 Thread david klein

Joe,

Got it! Thank you very much. Now the codes are like this:

script language=javascript
function openWindow (url)
{
   window.open( url, 
"target_win",config='directories=yes,location=yes,menubar=yes,toolbar=yes,status=yes,scrollbars=yes,resizable=yes,toolbar=yes,width=600,height=500');
}


A HREF="http://www.intc.com" target="target_win", 
onclick="openWindow('http://www.intc.com')" Intel /A


Thanks again,
David


From: Joseph Koenig [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: david klein [EMAIL PROTECTED]
Subject: Re: [PHP] Resize the pop-up window
Date: Mon, 29 Jan 2001 16:40:53 -0600

You'll have to do that with Javascript. Check this page:

http://htmlgoodies.earthweb.com/beyond/openwin.html

Good Luck,

Joe

_
Get your FREE download of MSN Explorer at http://explorer.msn.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] AUTH_PW External Authentication

2001-01-29 Thread david klein

I don't think it is easy to steal the password by using PHP_AUTH_PW.  
PHP_AUTH_PW is cached in the browser, if you exit the browser, nobody can 
steal it. If the other people is using a different browser, there is no way 
for him to steal it even if he is accessing the same URL.

Just my understanding.

David


From: Chen Shiyuan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [PHP] AUTH_PW  External Authentication
Date: Fri, 26 Jan 2001 23:50:17 +0800 (SGT)

Hello everyone!

I am currently using Apache-1.3.14 with php-4.0.4pl1 compiled statically
into it and running on RedHat Linux 6.2 . Apache is configured to do
authentication for certain URLs via a auth_ldap module which is
dynamically loaded when Apache starts.

I noticed that when I access the protected URL, PHP_AUTH_PW will give me
the password for the user who is currently logged to the protected site.
If I recall correctly, earlier versions of PHP4 and PHP3 didn't have
this "feature" .

This "feature" creates a problem when the protected URL is shared by
many parties with each party providing it's own services under the
protected URL as any party would be able to "steal" the
username/password without the end user knowing. The username/password is
used to control who has access to the protected URL and the parties are
not required to make use of the password.

Is there anyway to disable this "feature" or is the disclosure of the
password a bug?

Many thanks for any advice!

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


_
Get your FREE download of MSN Explorer at http://explorer.msn.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] Automate the apache authentication process

2001-01-29 Thread david klein

I am using apache authentication. The problem is: I want the user to be able 
to get registered throught the web GUI, and all the users' password and 
userID will be kept in the database. In my mind, I can use php later to get 
all these userID/password, and run the apache htpasswd to register these 
users.

However, Apache htpasswd is an interactive program and we need manually 
input the password, is there a way to automate and batch process this using 
php scripts?

Thanks,
David


_
Get your FREE download of MSN Explorer at http://explorer.msn.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] can't upload files with more than one dot in the file name.

2001-01-26 Thread david klein

Hello!

I am trying to upload the files to the sever. For files that has only one
dot such as abc.txt and 123.doc, it works fine. But when uploading files
that have more than one dot such as 123.txt.pdf, there's problem, and I
tried to echo the $userfile[i], and it is "none". Codes are attached as
following:

FORM  name="test" method="post" action="meeting_addDocs.php"
enctype="multipart/form-data"
tr align="center"
  td valign="top" colspan="2"
  input type="file" name="userfile[]" size="18"
  /td
  td valign="top" colspan="2"
  input type="file" name="userfile[]" size="18"
  /td
   /tr
/FORM


Thank you very much in advance.

_
Get your FREE download of MSN Explorer at http://explorer.msn.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] can't upload files if extension has more than one dot.

2001-01-25 Thread david klein

Hello!

I am trying to upload the files to the sever. For files that has only one 
dot such as abc.txt and 123.doc, it works fine. But when uploading files 
that have more than one dot such as 123.txt.pdf, there's problem, and I 
tried to echo the $userfile[i], and it is "none". Codes are attached as 
following:

FORM  name="test" method="post" action="meeting_addDocs.php" 
enctype="multipart/form-data"
 tr align="center"
   td valign="top" colspan="2"
   input type="file" name="userfile[]" size="18"
   /td
   td valign="top" colspan="2"
   input type="file" name="userfile[]" size="18"
   /td
/tr
/FORM


Thank you very much in advance.
_
Get your FREE download of MSN Explorer at http://explorer.msn.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] upload files from the local PC/UNIX to the web sever

2001-01-22 Thread david klein

Hello, Is there a way to upload files from the local PC/UNIX to the web 
sever? Especially multiple files at the same time?  What we need to do at 
the server and client side?

Thank you very much in advance.

Best Regards,

David


_
Get your FREE download of MSN Explorer at http://explorer.msn.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] How to get userID/password from the browser session

2001-01-18 Thread david klein

In Apache authentication, userID/password are stored in browser session, and 
every time, these information will be sent back to the Apache server and do 
the authentication.

My question is: can we get the userID/password from the browser session, 
especially in PHP?

Thank you very much in advance.

David
_
Get your FREE download of MSN Explorer at http://explorer.msn.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]