Pedro Posada | php scripts
  • Posted on October 26, 2008 - 5:05pm

    These are some of the directive you can use to have your website work a bit better in terms of uploading files and showing really long pages like modules page and blocks page in the admin section of drupal.

    Create a php.ini file in your site's root folder and copy and paste this code into it.

    register_globals = Off
    memory_limit = 96M
    post_max_size = 100M
    upload_max_filesize = 100M
    max_execution_time = 1000
    max_input_time = 1000 

    You can also check this link for more good info on how to fix server memory problems. http://drupal.org/node/76156

  • Posted on May 26, 2008 - 10:19am
    Display a block on certain pages by url and by node type.
  • Posted on April 17, 2008 - 12:14am
    Snippet to generate a CSV (comma separated values) file from any table or combination of tables from the data base.
  • Posted on March 6, 2008 - 10:07pm

    This is a quick and dirty php script that generates a web picture gallery.

    There is no need for a database because it recursively scans the directory tree and outputs all the images inside a n html table. It generates a navigation menu to switch between galleries as well.

    It's a good solution if you deal with big amounts of pictures because you can just use FTP to upload the pictures and the script generates the thumbnails and galleries automatically.