Fork me on GitHub

Location of file  Bottom

  • I'm creating an image with a PHP file. I'm going to drag in an image and put a border around it, or not, or maybe put another file over it, depending on various factors. In order to dragin in this image, I need to reference it. Is there a way to get the Postnuke directory structure, and then code in the rest of the directions from "modules" or the module file? I looked through the Example file and didn't see anything, though I'm fairly certain I've seen this before.
  • getcwd() will give you what you need...something like:

    /home/whatever/AllTheWayUpToThe/RootPNdir/
  • 0 users

This list is based on users active over the last 60 minutes.