Re: [PHP] link problem

2006-07-31 Thread Drew Butler
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] wrote:

[PHP] PEAR DB nextId() sequences

2006-05-04 Thread Drew Butler
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

Re: [PHP] PHP4 vs PHP5

2006-01-07 Thread Drew Butler
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

Re: [PHP] php / mysql / js search result question

2005-12-31 Thread Drew Butler
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