Try something like
realpath( dirname(__FILE__)."../" );
__FILE__ should give you the full path of the file being run,
dirname() will break the directory path from it and ../ will drop it
down one dir ... real path will give you a solid final path.
~Drew
On 7/31/06, Ross <[EMAIL PROTECTED]> wro
Hey guys,
Just had a quick question for anyone out there. I've been using PEAR's DB
object for quite a while, as I have to simultaneously work with both MySQL
and PostgreSQL. Currently I use the nextID() method to find new IDs for the
rows that I insert, but am running into an issue with its sequ
You're right when you say this has nothing to do with PHP. Well, mostly
right. I don't believe he is looking for a select box solution. I believe
what is being looked for is a Google Suggest style input box auto-complete
solution. Now you were right to say this is heavily dependant on JavaScript
or
A simplified version of this would be:
$glb_http_ref = isset( $_SERVER['HTTP_REFERER'] ) ? $_SERVER['HTTP_REFERER']
: "";
or just:
$glb_http_ref = @$_SERVER['HTTP_REFERER'];
The latter will suppress the error message and return a null (or a blank as
far as PHP is concerned. Not the cleanest route
4 matches
Mail list logo