• Skip to main content
  • Skip to primary sidebar
  • Skip to footer
  • Home
  • About

tech.MichaelErb.net

You are here: Home / Archives for Moderator

Moderator

How to determine absolute path with a tiny php script

November 7, 2009 By Moderator

I was recently installing the fantastic forms plugin for WordPress, cForms on a new website I was building and ran in to an issue trying to determine what the absolute path was to a specific directory.

Let me digress for a moment… cForms is an immensely powerful forms tool that you can use on your blog to create stunning forms. Multi-page forms, forms that use ajax, forms that enable users to upload files and the features really go on and on. It may be overkill for you if you just need simple contact form type functionality, but if you’re looking for the atom bomb of form generation, cForms is your ticket to paradise. Now back to the story…

cForms was asking me for the absolute path to where I wanted files to be uploaded. So using Fetch (my ftp client of choice) I simply copied the address and pasted it into the cForms field. Well, cForms complained that it was not correct and that it couldn’t find that directory I specified.

After digging a bit I discovered a simple php script that you can insert into an otherwise blank text document. Name it basically anything you want. I named my file, “absolute-path-script.php” and uploaded that file into the directory that I wanted to be the upload directory for cForms. Once you’ve uploaded the file, you simply need to access that php file from your browser. For instance if you put the php file in your wp-content/uploads directory, then you’d point your browser to
“http:// www.YourWonderfulWebsite .com/wp-content/uploads/absolute-path-script.php” and in your browser window will appear the absolute path to that directory.

It’s so simple it hurts.

Here is the code that makes the magic happen. And don’t laugh when you see how short and sweet it is. You’ll thank me later when you realize it saved you many frustrating minutes trying to figure out what your absolute path was because you’re on Blue Host or somewhere like that. By the way this is nothing more than a Unix command that translates to “Get current working directory”.

<?php
echo getcwd();
?>

Hope that helps you out.

Was I hacked? “kosa-target-image” issue

November 7, 2009 By Moderator

One of my client websites was built using CMSmadesimple. It’s a robust content management system that I enjoy using for the most part. While editing a page on my client site, I discovered some odd code that I did not knowingly insert. The code was as follows… [Read more…] about Was I hacked? “kosa-target-image” issue

TinyGrab review, bare bones screen grabs

November 6, 2009 By Moderator

tinygrab-screen-captureTinyGrab is a new screen grab app that harnesses the power of the MacOS’s native screen capture utility and adds the ability to instantly have that screen grab uploaded to a server, either the tinygrab server or ftp’d to your own server. If you choose to use tinygrab’s server, you also have access to shortened URL’s to that image and the ability to store or delete the images from their server.

I first learned about TinyGrab from MacHeist. MacHeist is best know for offering amazing bundles of Macintosh shareware at ridiculously low prices. Over the last couple  years, I have obtained some great deals beacuse of their bundles. Well,  MacHeist currently has what they call a  “nanoBundle” available that includes 6 apps and they are offering this software bundle for free, but only for a few more days. Check out their website to learn more.

So back to TinyGrab… it’s cool because it only requires that you use the standard MacOS keyboard shortcut for screen capture namely “command-shift-4” which gives you a crosshair cursor with image dimensions to enable you to click and drag the precise size of screen area you want to capture. Once captured, TinyGrab saves the image to your desktop and instantly uploads (or ftp’s) the image to the server. Once the upload is complete, the menubar icon for TinyGrab flashes and a notification sound chimes (this notification sound can be changed or disabled in the TinyGrab preferences).

TinyGrab is a young  product and has some issues. Currently there is no way to batch delete screen captures that have been uploaded to their servers. You have to go through a 5-click process to delete a single image. This is clearly not efficient and they have already indicated that a new improved method will be in place soon. Another issue, at least right now, is that as a result of the deluge of people obtaining  and using the app because of the MacHeist promotion, the tinygrab.com server has been overwhelmed and I’ve been experiencing frequent page errors when accessing the control panel of their website.

In spite of these early issues, TinyGrab might be worth a look if  what you need is a really quick way to do a screen grab and then be able to provide a URL to someone else to view or obtain that image.

It’s one of many screen grab choices. What do you think of TinyGrab?

[donation-can show_description=true show_progress=false]

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 12
  • Page 13
  • Page 14
  • Page 15
  • Go to Next Page »

Primary Sidebar

  • Facebook
  • Twitter
  • YouTube

More to See

monkey mirror

More improvements to the already great Monkey Mirror for 2014

July 9, 2014 By Moderator

Monkey Mirror

UPDATE: Yet another Monkey Mirror upgrade. Better than ever.

March 29, 2013 By Moderator

Tags

absolute path ampersand ampersand entity BigCommerce big commerce cms CMS Made Simple CMS Made Simple 1.6 CMSMS content management system emergency lighting footer Headphones kallout kosa-target-image led lights LED task light Magento php screen capture screen grab sylvania Sylvania Light Flute tutorial WordPress Bible

Footer

Text Widget

This is an example of a text widget which can be used to describe a particular service. You can also use other widgets in this location.

Examples of widgets that can be placed here in the footer are a calendar, latest tweets, recent comments, recent posts, search form, tag cloud or more.

Sample Link.

Recent

  • AfterShokz Air Trekz AS650SG
  • More improvements to the already great Monkey Mirror for 2014
  • UPDATE: Yet another Monkey Mirror upgrade. Better than ever.
  • Microsoft Office 2011 Outlook won’t launch
  • How to fix a sticky home button on the iPhone or iPod Touch

Search

Tags

absolute path ampersand ampersand entity BigCommerce big commerce cms CMS Made Simple CMS Made Simple 1.6 CMSMS content management system emergency lighting footer Headphones kallout kosa-target-image led lights LED task light Magento php screen capture screen grab sylvania Sylvania Light Flute tutorial WordPress Bible

Copyright © 2025 · Website built by CNY Web Works