Jump to content

get a .htaccess


praethorian

Recommended Posts

Hi all,

 

this will sound a bit funny, but I am stuck at the mmnt. My ISP changed my .htaccess file and set php_value memory_limit 16M in my .htaccess file, but it is not still enough and I want to set it to 32M. I thought that the file is located in my root folder, but there is just my www folder (tried to use find function, but still no luck). I am a bit confused. Am I looking in the right place? Any help would be most welcome.

 

Pete

Link to comment
Share on other sites

Files starting with a period are hidden files in Linux, how are you accessing your directory? If your using an ftp client you may need to set 'show hidden files' or something simular. If your accessing the directory via a shell then...

 

ls -a

 

will show all files including those hidden by a period.

Link to comment
Share on other sites

Hi all,

 

I am using ftp client Total commander ( and the property show hidden files is set ). I've tried to copy the .htaccess file even on the other server and there is all fine (can see it, copy it, ....). The funny thing about the first server is, that if I copy the .htaccess file over and over again to the same folder, I dont have to overwrite the old .htaccess file. It looks like it is not even there. :(

 

Pete

Link to comment
Share on other sites

just put the .htaccess file in the same dir as the scripts you want it to affect(deleting the old on first of course) if you feel there is a problem you can write a php script to do the job for you then visit the script, forcing the server to delete the file for example

 

<?php
unlink('.htaccess');
$flha = fileopen('.htaccess', 'w+');
filewrite($flha, "php_value memory_limit=32MB");
fileclose($flha);
echo 'SUCESS';
?>

 

then when you visit the page in your web browser the server will be forced to delete and recreate the file (if you have given the .php file access to read, execute, and write)

 

or you could set it using php as stated in a post above me

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.