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 <[EM
this system. I would much rather see something
like a `pear_sequences` table then an extra 4 dozen tables. Thanks.
~Drew
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
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
paper, but I can't find an option for it.
Drew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
aders
retrieved from the POST operation are displayed on the page.
Is this because of how I have my server configured? Or is there some
run-tim way to tell the server to *not* generate headers, but simply
send the specified text (including the headers) to the browser?
Drew Kime
--
PHP G
it seems there are some
server-config-specific issues. In your example, the server sets a "base
href" tag before the doctype tag. In my case, there is a special
character before the doctype tag, and another after the end of the page
data.
Thanks for the tip.
Drew
--
PHP G
os the
contents of '$buf' which includes another set of headers, which get
displayed to the page.
Is this a configuration issue, or am I missing a step?
Thanks for any help
Drew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
When I run the following script it returns String Okay! when it should say
Invalid Characters Found. I've tried the script substituting $ for other
characters, such as j, and it works just fine. What do I need to do?
Thanks,
Drew
--
PHP General Mailing List (http://www.php.net
I got it working..
Thanks to everyone that helped
"Drew Boillot" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello, Anyone in the mood to help someone who doesn't really know what
they
> are doing when it comes to PHP?
der.php on line 3
I am useing PHP 4.2.1 If you need any more infomation, let me know.. As I
said i'm new at this..
Drew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ption.) OpenSSL, on the other hand, is available on
virtuall all systems since it is required for https servers.
-Original Message-
From: Alexander Skwar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 2:52 PM
To: Drew Lopucki
Cc: Leif K-Brooks; [EMAIL PROTECTED]
Subject: Re:
essary (wants to
put something in it) the https starts. (?)
Drew Lopucki
[EMAIL PROTECTED]
-Original Message-
From: Steve Clay [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 7:13 AM
To: PHP-GENERAL
Subject: [PHP] sessions not so secure..solution?
Hello,
I'm building an e
and decryption of
an arbitrary string.
Hope I've been helpful,
Drew Lopucki
Mrdrew.com
[EMAIL PROTECTED]
-Original Message-
From: Leif K-Brooks [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 2:19 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Anybody have a function to encode a strin
use . you'll see all the variable in the http request
header.
-Original Message-
From: Ulrik Witschass [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 18, 2002 11:57 AM
To: [EMAIL PROTECTED]
Subject: [PHP] How to get the IP of a visitor
Hi, I am new to this list and to PHP, so please ex
Ok. That is it. Sorry for the confusion and thank you for the help.
--Drew Vogel
On Wed, 8 Aug 2001, Mark Roedel wrote:
>> -Original Message-
>> From: Drew P. Vogel [mailto:[EMAIL PROTECTED]]
>> Sent: Wednesday, August 08, 2001 3:14 PM
>> To: Mark Roedel
If a file is included from within a function, this would limit the
variable cope of this file, correct?
--Drew Vogel
On Wed, 8 Aug 2001, Mark Roedel wrote:
>> -Original Message-
>> From: Drew P. Vogel [mailto:[EMAIL PROTECTED]]
>> Sent: Wednesday, August 08, 2001 2
print nothing.
Am I mis understanding something?
--Drew Vogel
On Wed, 8 Aug 2001, Mark Roedel wrote:
>I don't see anything in the annotations for include() about losing
>variable definitions...the notes that I see that look remotely relevant
>are those regarding what PHP considers to
I searched the database and did not find anything. I was not sure if the
bug could possibly be entered under a different title, though. It is
discussed in the manual errata for the include() function, so I would
assume the developers at least know of it.
--Drew Vogel
On Wed, 8 Aug 2001, Mark
Has the "3rd include" bug (where variable definitions ar "lost" at the 3rd
include), been fixed yet?
--Drew Vogel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the
t is not working for
me.
ssl > $link = imap_open ("{mail.whatever.com:993}", "username",
"password");
Drew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
21 matches
Mail list logo