Title: blockbot's Replies | WordPress.org

---

# blockbot

  [  ](https://wordpress.org/support/users/blockbot/)

 *   [Profile](https://wordpress.org/support/users/blockbot/)
 *   [Topics Started](https://wordpress.org/support/users/blockbot/topics/)
 *   [Replies Created](https://wordpress.org/support/users/blockbot/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/blockbot/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/blockbot/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/blockbot/engagements/)
 *   [Favorites](https://wordpress.org/support/users/blockbot/favorites/)

 Search replies:

## Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)

 *   Forum: [Installing WordPress](https://wordpress.org/support/forum/installation/)
   
   In reply to: [Error establishing a database connection](https://wordpress.org/support/topic/error-establishing-a-database-connection-303/)
 *  [blockbot](https://wordpress.org/support/users/blockbot/)
 * (@blockbot)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-303/#post-2270567)
 * The config issue used to happen to me a lot until I realized I needed to set 
   the permissions on the directory that has the WP install to read/write. All XAMPP
   directories are set to read only unless you change it. If you are on a mac right
   click > get info > set privelages to read/write > click the gear icon > apply
   to enclosed items. That should prevent that problem in the future.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [holasionweb.com virus](https://wordpress.org/support/topic/holasionwebcom-virus/)
 *  [blockbot](https://wordpress.org/support/users/blockbot/)
 * (@blockbot)
 * [16 years ago](https://wordpress.org/support/topic/holasionwebcom-virus/#post-1498460)
 * Daniel Ansari posted a script that I just used on two of might sites that were
   infected and it worked beautifully:
    [http://www.danielansari.com/wordpress/2010/05/holasionwebcom/](http://www.danielansari.com/wordpress/2010/05/holasionwebcom/)
 * This fixed it for me
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [any way to use bloginfo() to link to uploads directory?](https://wordpress.org/support/topic/any-way-to-use-bloginfo-to-link-to-uploads-directory/)
 *  [blockbot](https://wordpress.org/support/users/blockbot/)
 * (@blockbot)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/any-way-to-use-bloginfo-to-link-to-uploads-directory/#post-1305609)
 * Here is an actual practical example of how to use what this vague page is talking
   about:
 * [http://codex.wordpress.org/Function_Reference/wp_upload_dir](http://codex.wordpress.org/Function_Reference/wp_upload_dir)
 * Not sure if this is best practice or whatever but it worked for me.
 * First, I had to define a variable with the wp_upload_dir function. Calling the
   wp_upload_dir function gives you the ability to call a bunch of different variations
   of paths to the uploads directory.
 *     ```
       <?php
       $image_path = wp_upload_dir();
       ?>
       ```
   
 * This is where that link didn’t help because I am really a php modifier not a 
   php programmer. I ended finding out that all this stuff:
 *     ```
       Array
       (
           [path] => /home/example.com/wordpress/wp-content/uploads/2008/11
           [url] => http://www.example.com/wordpress/wp-content/uploads/2008/11
           [subdir] => /2008/11
           [basedir] => /home/example.com/wordpress/wp-content/uploads
           [baseurl] => http://www.example.com/wordpress/wp-content/uploads
           [error] =>
       )
       ```
   
 * meant that you have to take your variable with the wp_upload_dir and add an array
   that looks something like this:
 * `$image_path['url']`
 * this will now make this dynamically pull the upload url for whatever post you
   are dealing with:
 * `<img src="<?php echo $image_path['url']; ?>/image.jpg" />`
 * Hope this helps more than a link reference.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [does anyone have the imp limiter plugin?](https://wordpress.org/support/topic/does-anyone-have-the-imp-limiter-plugin/)
 *  Thread Starter [blockbot](https://wordpress.org/support/users/blockbot/)
 * (@blockbot)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/does-anyone-have-the-imp-limiter-plugin/#post-683486)
 * Nevermind, I found it, if anyone else is looking for the imp limiter plugin, 
   feel free to email me and I will give it to whoever.
 * Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)