PDA

View Full Version : using set_value in .htaccess


losthope
06-17-2005, 12:48 AM
hey guys,
ok, so i'm a rather new to the unix/linux world, and i'm having a bit of trouble with my .htaccess file. basically i just want to be able to override a few default php settings. to accomplish this, i went to the public_html directory and created a file called .htacces (using touch). then i fired up pico and entered the following line:

psp_value upload_max_filesize 12M

saved the file. reloaded the website. an internal 500 server error. when i comment the line out (#), everything works again. i've tried several different "psp_value" commands, and all of them cause the same server error. does anybody have any idea what i'm doing wrong? does the .htaccess file need more than just that single line? any help would be appreciated. thanks!
-lost hope

bithead
06-18-2005, 03:01 PM
php_flag register_globals off

I have the command above in my .htaccess file and it works. fwiw it is the first line in the file and there is a hard return after this line.

Was "psp_value" a typo? It should probably be "php_value" ... and 'h' not 's'.

-bithead

losthope
06-18-2005, 11:12 PM
that's embarrassing -- i totally had "psp" instead of "php" =) i guess work's getting to me (i'm currently working on a game for the psp). bah, i need to pay more attention ;) thanks for the help, man!!
-lost hope

bithead
06-20-2005, 10:10 AM
No problem, lost hope. I do most of my coding between 11pm-3am and it's always a damn typo that gets ya. What game are you working on for the psp? Can you give us a sneak peek?