[PHP] textarea problem

2002-05-13 Thread Enrique Vadillo

Hi,

I'm not sure if this is purely a PHP problem but here it goes:

i have a form that sends text data to a PHP script, i have some
textarea field which goes like this:

TEXTAREA wrap=soft NAME=mynote ROWS=15 COLS=70/TEXTAREA

everytime i POST this, $mynote is truncated to 1867 bytes, i have
repeatedly tried to submit text 2500 bytes long but it's always
truncated to that size -btw there is no javascript or anything in the
middle that might modify the size- my questions is: do i have to
setup anything special in my php.ini? i have this in my php.ini:

post_max_size = 30M

I have also noticed that Hotmail has no problem sending textarea
input 2500 bytes long or more using exactly the same tags.. what's
wrong then? I use Apache 1.3.23 and PHP 4.1.1 (on RedHat 7.1)

if anyone has encountered this problem b4, i'd appreciate some help.

Enrique-



_
Únase con MSN Hotmail al servicio de correo electrónico más grande del 
mundo. http://www.hotmail.com


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




[PHP] IE and '404 not found' custom script

2001-09-10 Thread Enrique Vadillo

Hi,

I'd like to execute a php script which does *not always* display HTML
everytime a file is not found.

IE requires that a custom errmsg be over 512 bytes in order to
display it instead of the internal one, my ErrorDocument script will
look for any 'not found' file somewhere else (in blob records in
some database in this case), do other stuff and eventually display
the file requested, never modifying the URL typed by the user.

GIF Woes: The problem i have encountered is that sometimes the
requested file is just a very small GIF  512 bytes and my script
is anyhow discarded by IE while with Netscape it ALL works fine.

I tried adding more than 512 bytes sending many long headers thru
the PHP Header() function but it does not seem to work, i can't add
different headers since my script displays sometimes GIFs and other
binary data, not text.

Question: how can i force IE display my ErrorDocument 404 php script
in this case? has anyone encountered this problem before?

thanks.

Enrique-



_
Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp


-- 
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] execute a script on access to a directory

2001-09-07 Thread Enrique Vadillo

Hi,

I would like to know how i can force a PHP script to be
executed everytime a certain directory is accessed, for
example in http://domain.com/go/getit the presence of the
/go/ directory would force a PHP script to be executed
prior to any operation.

Do i need to play with rewriting urls in Apache or is
there any other cleaner method (that would not require
rewriting URLs) to achieve this? i'd hate to have to
rewrite URLs...

thanks.

Enrique-


_
Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp


-- 
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] execute a script on access to a directory

2001-09-07 Thread Enrique Vadillo

Nope, i'm not talking about a directory containing exclusively
PHP scripts, in that case i would've prepended a php script
to the directory and we're done, but no, i am talking about
access to a directory containing files of any kind. see?

Thanks for the help anyway, any better suggestions?

Enrique-

From: Jason Bell [EMAIL PROTECTED]
To: Enrique Vadillo [EMAIL PROTECTED], PHP Users 
[EMAIL PROTECTED]
Subject: Re: [PHP] execute a script on access to a directory
Date: Fri, 7 Sep 2001 12:12:58 -0700

You could always add an include() for every page under the /go directory.

Simplest way that I can think of.


- Original Message -
From: Enrique Vadillo [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, September 07, 2001 12:09 PM
Subject: [PHP] execute a script on access to a directory


  Hi,
 
  I would like to know how i can force a PHP script to be
  executed everytime a certain directory is accessed, for
  example in http://domain.com/go/getit the presence of the
  /go/ directory would force a PHP script to be executed
  prior to any operation.
 
  Do i need to play with rewriting urls in Apache or is
  there any other cleaner method (that would not require
  rewriting URLs) to achieve this? i'd hate to have to
  rewrite URLs...
 
  thanks.
 
  Enrique-


_
Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp


-- 
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] run a script for any HTTP request (was: run a script on access to a directory)

2001-09-07 Thread Enrique Vadillo

That was a fine idea Doug, but what if we push the subject and
go a little further?

I am thinking now that i'd like to make it possible that for
ANY http request received by my Apache i'd like to have a php
script executed first, i.e.:

http://domain.com/
http://domain.com/anydir/anyfile

for any of those locations typed, i'd like to be able to
execute the php script. i know it's kinda weird but this is
what i'm really looking for. any ideas anyone?

Enrique-

From: Doug Granzow [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [PHP] Re: execute a script on access to a directory
Date: Fri, 7 Sep 2001 15:38:45 -0400

You can make go the name of your PHP script, then put this in your Apache
config:

Location /go
 ForceType application/x-httpd-php
/Location

Now in your go script, you have it do whatever you wanted it to do, then
use an include to load the getit script.

Doug Granzow
[EMAIL PROTECTED]

[EMAIL PROTECTED] wrote:
  Hi,
 
  I would like to know how i can force a PHP script to be
  executed everytime a certain directory is accessed, for
  example in http://domain.com/go/getit the presence of the
  /go/ directory would force a PHP script to be executed
  prior to any operation.
 
  Do i need to play with rewriting urls in Apache or is
  there any other cleaner method (that would not require
  rewriting URLs) to achieve this? i'd hate to have to
  rewrite URLs...
 
  thanks.


_
Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp


-- 
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] Re: run a script for any HTTP request (was: run a script on access toa directory)

2001-09-07 Thread Enrique Vadillo

MSIE does not support 404 ErrorDocument, that only works fine
with Netscape. Rewriting URLs is nasty when you have to mix
it with php script writing, this could be so much simpler with
a php script.

I know it's a tough question, anyone dares to beat the problem?

Enrique-

From: Philip Hallstrom [EMAIL PROTECTED]
To: Enrique Vadillo [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: [PHP] Re: run a script for any HTTP request (was: run a script on 
access to a directory)
Date: Fri, 7 Sep 2001 14:15:52 -0700 (PDT)

What's wrong with rewriting urls?  The other alternative is to make sure
that none of the urls you are accessing actually exist and then setup an
ErrorDocument handler which calls the php script of your choice... which
can then do whatever you want...

-philip

On Fri, 7 Sep 2001, Enrique Vadillo wrote:

  That was a fine idea Doug, but what if we push the subject and
  go a little further?
 
  I am thinking now that i'd like to make it possible that for
  ANY http request received by my Apache i'd like to have a php
  script executed first, i.e.:
 
  http://domain.com/
  http://domain.com/anydir/anyfile
 
  for any of those locations typed, i'd like to be able to
  execute the php script. i know it's kinda weird but this is
  what i'm really looking for. any ideas anyone?
 
  Enrique-


_
Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp


-- 
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] Re: run a script for any HTTP request (was: run a script on access toa directory)

2001-09-07 Thread Enrique Vadillo

Jason thanks! your information about those 512 bytes is VERY useful
but just a lil' too late, i already came up with a solution using a
conditional URL rewrite rule in my apache, along with a Location
ForceType .. which helps me invoke my php script, if anyone is
interested i can send out the details, it actually executes the
php script for every http request received by the apache server.

Rasmus, thanks for your efforts on PHP development, we ALL owe you
big time. I hope you succeed with that request_rec stuff soon,
i spent some 4 hours making possible that a script be invoked
for every http request... duh this has to be easier for next
PHP version!

Thanks to everyone who *at least* tried to help.

Enrique-

From: Rasmus Lerdorf [EMAIL PROTECTED]
To: Jason Bell [EMAIL PROTECTED]
CC: Enrique Vadillo [EMAIL PROTECTED], 
[EMAIL PROTECTED],   [EMAIL PROTECTED]
Subject: Re: [PHP] Re: run a script for any HTTP request (was: run a script 
on access to a directory)
Date: Fri, 7 Sep 2001 15:13:10 -0700 (PDT)

Sure, I know that very well, but that has nothing to do with what we are
discussing here.

-Rasmus

On Fri, 7 Sep 2001, Jason Bell wrote:

  IE has Friendly Error Messages so on a normal 404 response, IE would 
show
  it's own error message, and not the one from the server. The Documented 
way
  around this is to ensure that your 404 document is larger than 512 
bytes.
 
  http://www.zdnet.com/products/stories/reviews/0,4161,2779295-3,00.html
 
 
  - Original Message -
  From: Rasmus Lerdorf [EMAIL PROTECTED]
  To: Enrique Vadillo [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
  Sent: Friday, September 07, 2001 2:45 PM
  Subject: Re: [PHP] Re: run a script for any HTTP request (was: run a 
script
  on access to a directory)
 
 
   What do you mean MSIE does not support 404 ErrorDocument?  That is a
   server-side function.  It has absolutely nothing to do with the 
browser.
   Try going to: http://php.net/strlen
  
   That is an ErrorDocument 404 thing that kicks in and takes you to the
   right place in the PHP documentation.  And believe me, it works just 
fine
   for people using MSIE.
  
   Right now an ErrorDocument 404 is the only way to do this.  I am 
currently
   working on the framework to allow PHP scripts to be inserted at any 
stage
   in the Apache request_rec handler mechanism.  This would allow you to 
run
   a PHP script to translate uri's to on-disk pathnames for example, 
write
   Apache authentication modules in PHP and many many other efficient 
ways to
   shoot yourself in the foot.  Needs another week or two of development
   before it will be ready for serious testing though.
  
   -Rasmus
  
MSIE does not support 404 ErrorDocument, that only works fine
with Netscape. Rewriting URLs is nasty when you have to mix
it with php script writing, this could be so much simpler with
a php script.
   
I know it's a tough question, anyone dares to beat the problem?
   
Enrique-
   
From: Philip Hallstrom [EMAIL PROTECTED]
To: Enrique Vadillo [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: [PHP] Re: run a script for any HTTP request (was: run a 
script
  on
access to a directory)
Date: Fri, 7 Sep 2001 14:15:52 -0700 (PDT)

What's wrong with rewriting urls?  The other alternative is to make
  sure
that none of the urls you are accessing actually exist and then 
setup
  an
ErrorDocument handler which calls the php script of your choice...
  which
can then do whatever you want...

-philip

On Fri, 7 Sep 2001, Enrique Vadillo wrote:

  That was a fine idea Doug, but what if we push the subject and
  go a little further?
 
  I am thinking now that i'd like to make it possible that for
  ANY http request received by my Apache i'd like to have a php
  script executed first, i.e.:
 
  http://domain.com/
  http://domain.com/anydir/anyfile
 
  for any of those locations typed, i'd like to be able to
  execute the php script. i know it's kinda weird but this is
  what i'm really looking for. any ideas anyone?
 
  Enrique-
   
   
_
Descargue GRATUITAMENTE MSN Explorer en 
http://explorer.msn.es/intl.asp
   
   
   
  
  
   --
   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]



_
Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp


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