[PHP] PUT Method using PHP4/Apache ...

2001-04-18 Thread The Hermit Hacker


I've read through:

http://php.net/manual/pt_BR/features.file-upload.put-method.php

I added:

Script PUT /put.php

to my apache config file ... everything as far as Netscape Composer is
concerned looks right, but it isn't working.

I changed my put.php script so that it output all ENV variables to a log
file:

===
?
 $fp = fopen("/tmp/log.txt","w+");
 $temp="PHP_PUT_FILENAME: $PHP_UPLOADED_FILE_NAME\n";
 $vars = get_defined_vars();
 foreach ($vars as $test = $value) {
  if (is_array($value)) {
   foreach ($value as $subtest = $subvalue) {
$temp .= "$subtest: $subvalue\n";
   }
  } else {
   $temp .= "$test: $value\n";
  }
 }
 fwrite($fp, $temp);
 $temp="DOCUMENT_ROOT: $DOCUMENT_ROOT\n";
 fwrite($fp, $temp);
 $temp="REQUEST_URI: $REQUEST_URI\n";
 fwrite($fp, $temp);
 fclose($fp);
?


But PHP_PUT_FILENAME isn't being set:

===
hub# grep PUT update/log.txt
PHP_PUT_FILENAME:
REQUEST_METHOD: PUT
REQUEST_METHOD: PUT
temp: PHP_PUT_FILENAME:
hub# grep FILE update/log.txt
PHP_PUT_FILENAME:
SCRIPT_FILENAME: /home/vhosts/farelist.com/www/put.php
SCRIPT_FILENAME: /home/vhosts/farelist.com/www/put.php
temp: PHP_PUT_FILENAME:
hub# grep ^PHP update/log.txt
PHP_PUT_FILENAME:
PHP_SELF: /put.php/test/Untitled.htm2
PHP_SELF: /put.php/test/Untitled.htm2
==

Am I missing something obvious here?

Thanks ...

Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org


-- 
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] PUT Method using PHP4/Apache ...

2001-04-18 Thread The Hermit Hacker


Is there maybe somethign in php.ini or in the php compile that has to be
enabled, that I'm not find/cluing into?

On Wed, 18 Apr 2001, The Hermit Hacker wrote:


 I've read through:

 http://php.net/manual/pt_BR/features.file-upload.put-method.php

 I added:

 Script PUT /put.php

 to my apache config file ... everything as far as Netscape Composer is
 concerned looks right, but it isn't working.

 I changed my put.php script so that it output all ENV variables to a log
 file:

 ===
 ?
  $fp = fopen("/tmp/log.txt","w+");
  $temp="PHP_PUT_FILENAME: $PHP_UPLOADED_FILE_NAME\n";
  $vars = get_defined_vars();
  foreach ($vars as $test = $value) {
   if (is_array($value)) {
foreach ($value as $subtest = $subvalue) {
 $temp .= "$subtest: $subvalue\n";
}
   } else {
$temp .= "$test: $value\n";
   }
  }
  fwrite($fp, $temp);
  $temp="DOCUMENT_ROOT: $DOCUMENT_ROOT\n";
  fwrite($fp, $temp);
  $temp="REQUEST_URI: $REQUEST_URI\n";
  fwrite($fp, $temp);
  fclose($fp);
 ?
 

 But PHP_PUT_FILENAME isn't being set:

 ===
 hub# grep PUT update/log.txt
 PHP_PUT_FILENAME:
 REQUEST_METHOD: PUT
 REQUEST_METHOD: PUT
 temp: PHP_PUT_FILENAME:
 hub# grep FILE update/log.txt
 PHP_PUT_FILENAME:
 SCRIPT_FILENAME: /home/vhosts/farelist.com/www/put.php
 SCRIPT_FILENAME: /home/vhosts/farelist.com/www/put.php
 temp: PHP_PUT_FILENAME:
 hub# grep ^PHP update/log.txt
 PHP_PUT_FILENAME:
 PHP_SELF: /put.php/test/Untitled.htm2
 PHP_SELF: /put.php/test/Untitled.htm2
 ==

 Am I missing something obvious here?

 Thanks ...

 Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
 Systems Administrator @ hub.org
 primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org


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



Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org


-- 
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] Editors ... calling them, or PHP-based one?

2001-04-12 Thread The Hermit Hacker


Sorry for vague subject, only so many things you can put in there ...

I'm looking for someone way, in PHP4, to take a "form/template" for a
letter on the server side, pass it to the client, let them edit it
(including markup tags like bold and underline) and then pass it back to
the server ...

It has to be relatively transparent to the end user ... I don't want to
have to teach them to put B/B tags around where they want bold ...

I'm not particular on editor ... right now, if I have to force the client
to install StarOffice for commonality across platforms, I'll do that and
expand from that ... but some way of 'click here, download doc to
computer, open up file with insert editor of choice, save back to server
(if possible)' ...

Ideas?

thanks ...

Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org


-- 
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] __ $8/mo php hosting on 24/7, OC3+ web server ___

2001-04-10 Thread The Hermit Hacker

On Tue, 10 Apr 2001, Kurth Bemis wrote:

 no pron?  damn!  that puts me out!

isn't a pron a fish?



-- 
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] __ $8/mo php hosting on 24/7, OC3+ web server ___

2001-04-10 Thread The Hermit Hacker

On Tue, 10 Apr 2001, Jeffrey Greer wrote:

 what about security?  are they on top of the latest versions and
 patches.i mean after all...it is REDHACK..
 

 I'm no security expert, but I can apply the most important patches.
 Yesterday I added mod_ssl to apache.

Okay, can you explain how this improve the security of your RedHat server?

 spammers are funny people :-)
 
 ~kurth
 

 I'm not your average spammer.  I am a computer scientist dedicated to
 the struggle against the fascist MS hegemony and all other fascist
 corporations who try to control computer technology.  Support my
 business and you'll be doing the world a favor. ;^)

... and help advocate mail list spam while you are at it ... Woo Hoo ...


-- 
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] Problem getting PostgreSQL to compile

2001-03-05 Thread The Hermit Hacker

On Mon, 5 Mar 2001, K Old wrote:

 Yes, I've checked phpinfo() and not it is not compiled in.  That is the
 problem.  I have recompiled PHP with pgsql support and there is some
 problem.  I'm not sure why it isn't compiling it in.  I've tried everything
 I knowthe installation goes fine...no error messages, everything seems
 ok.

 Any ideas?

when you run configure, the status messages that are output, do they list
pgsql as being found?  even with --with-pgsql enabled, if it can't find
the libraries or header files, it will re-disable it again ...

 

 From: The Hermit Hacker [EMAIL PROTECTED]
 To: K Old [EMAIL PROTECTED]
 CC: [EMAIL PROTECTED], [EMAIL PROTECTED]
 Subject: Re: [PHP] Problem getting PostgreSQL to compile
 Date: Fri, 2 Mar 2001 22:30:11 -0400 (AST)
 
 
 have you checked phpinfo() to make sure that pgsql support is actually
 compiled in?  if so, any errors on connection, or just silently fails?
 
 On Fri, 2 Mar 2001, K Old wrote:
 
   Hello,
  
   I'm running RH 7 and Apache.  I have the latest version of PostgreSQL
 and it
   is installed and running correctly.  I have installed PHP with the
   --with-pgsql and it seems to install everything needed, but when I try
 to
   use pg_connect() it fails to connect.  Any ideas what I can do?
  
   Thanks,
   Kevin
   [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]
  
  
 
 Marc G. Fournier   ICQ#7615664   IRC Nick:
 Scrappy
 Systems Administrator @ hub.org
 primary: [EMAIL PROTECTED]   secondary:
 scrappy@{freebsd|postgresql}.org
 
 
 --
 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



Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org


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

2001-03-04 Thread The Hermit Hacker

On Sun, 4 Mar 2001, Marcelo Pereira wrote:

 Hi, All.

 I have to build a web site and I was
 studying postgreSQL, but, whether I am
 quite wrong or this database does not
 support Foreign Key.

 Does anyone use postgreSQL and know
 how handle Foreign Keys ???

Yes, it supports Foreign Keys ... how to use them is another story, as its
something I keep meaning to dive into and just never seem to find the time
for :(

Check out:

http://postgresql.readysetnet.com/users-lounge/docs/7.0/user/sql-createtable.htm

which talks about using CONSTAINTS on tables, where 'REFERENCES' is
discussed ...


-- 
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] Problem getting PostgreSQL to compile

2001-03-02 Thread The Hermit Hacker


have you checked phpinfo() to make sure that pgsql support is actually
compiled in?  if so, any errors on connection, or just silently fails?

On Fri, 2 Mar 2001, K Old wrote:

 Hello,

 I'm running RH 7 and Apache.  I have the latest version of PostgreSQL and it
 is installed and running correctly.  I have installed PHP with the
 --with-pgsql and it seems to install everything needed, but when I try to
 use pg_connect() it fails to connect.  Any ideas what I can do?

 Thanks,
 Kevin
 [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]



Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org


-- 
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] PHP4.0.4pl1 with Apache 1.3.17/SSL and Frontpage ...

2001-02-08 Thread The Hermit Hacker

On Thu, 8 Feb 2001, Larry Rosenman wrote:

 * The Hermit Hacker [EMAIL PROTECTED] [010208 21:12]:
 
  Simple ... everything compiles cleanly, but as soon as I try and run it, I
  get:
 
  pegasus# /usr/local/apache/bin/httpsd
  httpsd: module "mod_php4.c" is not compatible with this version of Apache.
  Please contact the vendor for the correct version.
 
  The only thing I can find on the list archives deals with a -DEPI switch,
 -DEAPI

 Are you using Ports?

Nope, compiling straight from source ...

my configure is:

#!/bin/tcsh
setenv CFLAGS "-I/usr/local/include/gd"
./configure \
--enable-force-cgi-redirect \
--disable-debug \
--with-jpeg-dir=/usr/local \
--with-tiff-dir=/usr/local \
--enable-ftp \
--without-mysql \
--with-gd \
--with-pgsql \
--with-gdbm \
--enable-track-vars \
--enable-sysvsem \
--with-apxs=/usr/local/apache/bin/apxs \
--enable-sysvshm

Does anything look wrong with that?

I build apache 1.3.17 as follows, just in case I screwed something up
there ...

#!/bin/sh
./configure \
--prefix=/usr/local/apache \
--with-layout=Apache \
--enable-module=auth_dbm \
--enable-module=log_agent \
--enable-module=log_referer \
--enable-module=expires \
--enable-module=headers \
--enable-module=rewrite \
--enable-suexec \
--suexec-caller=nobody  \
--add-module=mod_frontpage.c \
--enable-rule=SHARED_CORE --enable-module=so



-- 
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] version'ng problem with php4 and apache 1.3.17 ...

2001-02-08 Thread The Hermit Hacker


I feel so dense :(  I've gotten into a habit of upgrading my apache
with a simple 'make install-program', but, of course, php needs 'make
install-include' to happen as well ...

so, my include files for apache was out of sync with the server, causing
the problem ...

all appears well now ...

Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org


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