It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming PHP and MySQL Forum

.htaccess problem

Moderator: Malcolm

.htaccess problem

Postby john_zakaria on Thu Apr 23, 2009 12:16 pm

i'm working in .htaccess file in the root of my site and i need to upload files..
take a look in the code below

[PHP]
RewriteEngine on
RewriteCond %{HTTP_HOST} ^queen-of-nile.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.queen-of-nile.com$
RewriteRule ^(.*)$ "http\:\/\/www\.egyptholidaytours\.com\/" [R=301,L][/PHP]

is working Well... but i need to change the max_exceution_time to upload large file size but it did not work and it shows me an Error (below code)
[PHP]

RewriteEngine on
RewriteCond %{HTTP_HOST} ^queen-of-nile.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.queen-of-nile.com$
RewriteRule ^(.*)$ "http\:\/\/www\.egyptholidaytours\.com\/" [R=301,L]

# You can set this in scripts with ini_set()
php_admin_value max_execution_time "120"



[/php]

[SIZE="5"]The Error is[/SIZE]

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@egyptholidaytours.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request
.



[COLOR="Red"]
ALL THAT I NEED IS TO UPLOAD LARGE FILE BUT I DONT KNOW HOW TO CHANGE IT
[/COLOR]
plz i need help
john_zakaria
50+ Club
 
Posts: 60
Joined: Sun Feb 08, 2009 7:29 am

Re: .htaccess problem

Postby rse on Tue Apr 28, 2009 3:17 am

Hi John,

php_admin_value can not be set in htaccess (see http://us2.php.net/configuration.changes).

Using php_value max_execution_time "120" instead should work, according to http://us2.php.net/manual/en/ini.list.php.

I hope this helps.

- Adam
Adam Williams
PHP Web Developer

Personal: http://30things.net
Blog: http://www.root-servers.co.uk
User avatar
rse
100+ Club
 
Posts: 141
Joined: Sun Oct 10, 2004 8:15 pm
Location: Leeds, UK


Who is online

Users browsing this forum: No registered users and 0 guests