Re: [PHP] Anyway to open a PHP file and view its code in the browser?

2002-02-14 Thread Andreas Gietl

then do a symbolic link

On Thursday 14 February 2002 22:34, Kevin Stone wrote:
 I'm glad you posted this.  It's great to know.  Unfortunately it's not
 what I need to do.  I'm uploading and updating my scripts all the time.
 So I need to offer code views of *active* scripts.  Changing the file
 name to phps makes the scripts inactive.

 Any other ideas?

 -Kevin

  -Original Message-
  From: SHEETS,JASON (Non-HP-Boise,ex1) [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, February 14, 2002 1:38 PM
  To: 'Kevin Stone'
  Subject: RE: [PHP] Anyway to open a PHP file and view its code in the
  browser?
 
  Rename the file you want to display as PHP code to .phps (php source)
  instead of .php.
  This will also activate PHP's built in source code highlighting.
 
  Jason
 
  -Original Message-
  From: Kevin Stone [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, February 14, 2002 1:26 PM
  To: [EMAIL PROTECTED]
  Subject: [PHP] Anyway to open a PHP file and view its code in the
  browser?
 
 
  How can I open a local PHP script and view its code to the browser?

 The

  Readfile() method appears to parse and execute the code.  The Fopen()
  method appears to parse and then not execute the code, leaving a blank
  screen, or at the very least displaying any non-PHP text existing in

 the

  script.  This is obviously rare question because I can't find any
  references on this list or on Usenet.  Is there a trick to this?  Or

 is

  it simply not possible.
 
  Much Thanks,
  Kevin Stone [EMAIL PROTECTED]

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




[PHP] compiling modues

2002-02-13 Thread Andreas Gietl

hi,

i am looking for a good documentation how i can build the standard 
php-modules like mysql or like postgres as loadable extensions on 
linux-systems. Just doing make in the appropriate directories just gives .la 
files which are not loadable like the normal .so files.

Can you point me at a documenation? I was not able to find a good one that 
worked for me.

thanx

andreas

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




Re: [PHP] WEB LOG

2001-09-24 Thread Andreas Gietl

On Monday 24 September 2001 16:04, Jeffrey Paul wrote:

Well. If you check the HTTP_REFERER on the target-site it would work and give 
you at least some security. However it is still not really secure.



 At 07:08 AM 9/24/2001, Chris Herring wrote:
 OOPS, again, elseif isn't what needs to be done.
 
 Ok, here we go.
 
 if $pwd == $real_pwd {
 header (Location: http://therealsite;);
 } else {
 header (Location: http://badsite;);
 }

 For the record, that won't stop someone from going to the destination page
 if the password doesn't match, which is what the person asked about.  All
 this will do is send them a redirect to an error page if the password
 doesn't match, it doesn't prevent anyone at all from hitting, in your
 example, http://therealsite.

 -j


 
 Jeffrey Paul  [EMAIL PROTECTED]  (877) 748 3467
 ICQ: 14295546 AIM: kw34hd1 NXTL/DC: 130*21*16749
 PGP: 0xF50BB9D7 A21AFD828C30EC77545DA0B3F501F50BB9D7

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

2001-09-24 Thread Andreas Gietl

This is the reason why i wrote it is just some security.

On Monday 24 September 2001 16:15, Jeffrey Paul wrote:
 At 10:09 AM 9/24/2001, Andreas Gietl wrote:
 Well. If you check the HTTP_REFERER on the target-site it would work and
  give you at least some security. However it is still not really secure.

 Wrong.  Many browsers don't send the Referer: header, not to mention it's
 downright trivial to spoof it.  This doesn't afford any more security at
 all.

 -j


 
 Jeffrey Paul  [EMAIL PROTECTED]  (877) 748 3467
 ICQ: 14295546 AIM: kw34hd1 NXTL/DC: 130*21*16749
 PGP: 0xF50BB9D7 A21AFD828C30EC77545DA0B3F501F50BB9D7

-- 
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] Getting IP address

2001-09-19 Thread Andreas Gietl

On Wednesday 19 September 2001 11:37, Andrew Semark wrote:

$addr = getenv('REMOTE_ADDR');

 Can anybody tell me how to get the IP address of the remote machine looking
 at the web page.  I have two versions of PHP 4 On the box with version
 4.0.1 I can use $HTTP_SERVER_VARS[REMOTE_ADDR], but on the other server
 running 4.0.0 this don't work. Is there another way of doing this as it's
 not possible to upgrade this server.

 Thank

 Andy

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

2001-09-14 Thread Andreas Gietl

On Friday 14 September 2001 17:01, you wrote:

if you want to work with the passwords that originally are in the shadow-file 
your webserver needs to have read-permissions for the shadow-file, which is 
no good idea.

you could parse out the passwords from the shadow-file and write them into an 
extra password-file only readable for the webserver, which is no good idea 
neither.

Or you could use a patched pam-modul which checks the passwords for you, 
which is the best solution i can think of.

But if you want to do a webmail, you actually don't need to check the 
password. Your imap/pop-server will do that for you.

BTW: There already are lots of webmails in php, just check 
nocc.sourceforge.net for example and there are many others.

 Hello all! I a relatively newbie in PHP, so my question may appear silly:

 Please tell me if anyone has knowledge of
 authenticating a user based on his username and password
 from Linux system (shadow or anything).
 I want to make a php WebMail. Also, i want to make
 a ssh virtual web client for the registered user.

 Any help would be appreciated.
 Thanks,

-- 
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] Unable to find stream pointer

2001-09-13 Thread Andreas Gietl

On Tuesday 11 September 2001 19:00, Andreas Gietl wrote:

why is it that nobody answers my question? Does nobody know an answer?

 Hi PHP-Users,

 I am having problems with php and imap now for several days on several
 servers. I just get the following Error:

 Warning: Unable to find stream pointer in file on line line

 This error does not occur in every execution, but only sometimes.

 I read a lot about this error on the internet, but i still don't know what
 is the reason for this error and how to work around it.

 Does anybody of you know where this error originates?

 thanx

 andreas

-- 
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] Unable to find stream pointer

2001-09-11 Thread Andreas Gietl

Hi PHP-Users,

I am having problems with php and imap now for several days on several 
servers. I just get the following Error:

Warning: Unable to find stream pointer in file on line line

This error does not occur in every execution, but only sometimes.

I read a lot about this error on the internet, but i still don't know what is 
the reason for this error and how to work around it.

Does anybody of you know where this error originates?

thanx

andreas

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