[PHP] Using mod_rewrite with PHP
I've been wrestling with mod_rewrite and trying to understand how to use it for my particular purpose. I've got two php URLs I'd like to rewrite to make them search-engine friendly. Currently they look like: Example 1: http://mysite.com/foobar.html?c=23 Example 2: http://mysite.com/foobar.html?c=23&p=45 What I'd like to end up with is something like: Example 1: http://mysite.com/foobar/23 Example 2: http://mysite.com/foobar/23/45 I'm kind of new to mod_rewrite and regexp's, so can anybody give me a clue? Thanks! Gawain -- 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] File upload fails over 500k
Hi all, A script of mine is having problems file uploads over 500k. I've read the documentation and have written scripts previously that uploaded large files without problems. I'm sure there's something pesky that I've missed, but I can't figure out what it is. The script behaves the same way on a couple of servers with different versions of PHP 4 and Apache 1.3 under Linux and Mac OS X. Here's what happens... I have a script that allows uploading of PDF files. Below a certain size (504k) Everything works as expected. Above that size, (508k) The script returns a blank value for 'tmp_name' and 'type', and returns 0 for the 'size' parameter. The 'name' parameter is passed successfully with the file's name. There are no errors generated, it just fails to work. I've used php_value to set values in httpd.conf for the directory where the script lives. Here they are: LimitRequestBody 0 php_value memory_limit 20M php_value post_max_size 20M php_value upload_max_file_size 20M php_value max_execution_time 900 php_value max_input_time 60 (File upload is on as well, obviously) I had the values set somewhat lower at first (8M for the first three values) with the same results. I have no idea where the apparent 500k choke point is coming from... Any ideas? Thanks in advance, Gawain -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] File upload fails over 500k (solved)
Hi all, As usual, it's something simple. A long time ago when I had originally coded the form, I left a MAX_FILE_SIZE directive in the HTML form. I'm using templates so my code is separate from the HTML... I was so totally focused on finding a code-based solution, I forgot to look right under my nose. Thanks for listening. Maybe this'll help somebody else in the future. :-) Gawain -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Newbie frustration!
At 11:58 AM -0700 on 1/23/01, Gerry wrote: >I have read most of the class.Fast.Template, fast.Template stuff, but >if there is an example on how to do this I'm missing it. As far as I can >tell I can only create one document and I can't find how to manage URLS >to other documents with the same template > >I wish I could get help on this! If you want to see something in print, there's a good example of FastTemplate's usage found in the "Professional PHP Programming" book by Wrox. Between that and the online tutorials, (see below) I was able to get up to speed. <http://www.phpbuilder.com/columns/sascha19990316.php3> <http://phpbuilder.net/columns/kendall20001122.php3> Gawain -- 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]