Quick Tip: A 4 Minute Crash-Course in WordPress Custom Fields | Nettuts+
Posted May 6th, 2010 by brad_strickland(Via Nettuts+.)
I'm a web designer/developer, writer and animator living in Birmingham Ala. I have been working in the web design/development field for 15 years. I am a founding member of the writing and animation team 5 Guys in a Garage who started JabTV.com. I have worked for various internet and media companies over the years including the now defunct Hecklers.com and al.com.
(Via Nettuts+.)
Starting programming or simply refining your work flow can be a daunting task. Everyone has their set way of working and it’s the way that works best for them. This is a list of suggestions that can help coders of all levels and languages.
If you ever need to find a files path when programming in PHP. All you need to do is drop the below code in a text file called path.php.
< ?php $p = getcwd(); echo $p; ?>
Put it in the same directory as the file whose path you need and go to it in your web browser.
http://www._yourwebname_.com/_thedirectorythefileisin_/path.php
You will get back something like this.
C:\Websites\_yourwebname_\_thedirectorythefileisin_
So now you know the server path to the file