Http://Www.Promoozz.Org wrote:
> i'm sweating on this one :
>
> function sql_fetch_row($res, $nr)
> {
> global $dbtype;
> switch ($dbtype) {
>
> case "MySQL":
> $row
Found a MUCH MUCH simpler solution that works across the board.. change
$HTTP_HOST to $DOCUMENT_ROOT and it works!
Phil
"Analysis & Solutions" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Phil:
>
> On Fri, May 10, 2002 at 08:01:46PM -0400, Phil Powell wrote
On Sat, 2002-05-11 at 14:53, Phil Powell wrote:
> TCL 1, PHP 0
>
> Ok, I am frustrated.. here is my code and this portion has to be done in
> PHP. I have a frame that can only be accessed if 1 of 2 things occur:
>
> 1) if $HTTP_REFERER has a specific value
> 2) if your nickname passed in the qu
TCL 1, PHP 0
Ok, I am frustrated.. here is my code and this portion has to be done in
PHP. I have a frame that can only be accessed if 1 of 2 things occur:
1) if $HTTP_REFERER has a specific value
2) if your nickname passed in the query string is found in the existing
nicknames.txt file found i
Swell, I found the error, and it was a STUPID one.. I misconfigured fread()!
Thanx though
Phil
TCL 1, PHP 2
- Original Message -
From: "Lars Torben Wilson" <[EMAIL PROTECTED]>
To: "Phil Powell" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, May 11, 2002 6:13 PM
Subject: Re:
Hi!
How can I read all files in a directory, when I don't know which files are
there?
Sincerely
Andreas Indahl
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
See http://php.net/readdir for a full example.
On Sun, 12 May 2002, Andreas Indahl wrote:
> Hi!
>
> How can I read all files in a directory, when I don't know which files are
> there?
>
> Sincerely
> Andreas Indahl
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, vis
On Sun, 12 May 2002 00:39:21 +0200, you wrote:
>How can I read all files in a directory, when I don't know which files are
>there?
http://www.php.net/manual/en/class.dir.php
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Have a look at
ADDDATE() and SUBDATE()
mysql> SELECT DATE_ADD("1997-12-31 23:59:59",
-> INTERVAL 1 DAY);
-> 1998-01-01 23:59:59
DATE_FORMAT(date,format) will also be very helpful to
use in your queries, allowing you to return your mysql
date in a human friendly forma
On Sat, 2002-05-11 at 15:39, Andreas Indahl wrote:
> Hi!
>
> How can I read all files in a directory, when I don't know which files are
> there?
>
> Sincerely
> Andreas Indahl
Try some of the examples from the manual:
http://www.php.net/manual/en/function.opendir.php
http://www.php.net/manua
$dirPath = "C:\somepath";
$dhandle = opendir($dirPath);
while ($filename = readdir($dhandle)) {
echo $filename . "";
}// end read filenames
--- Andreas Indahl <[EMAIL PROTECTED]> wrote:
> Hi!
>
> How can I read all files in a directory, when I
> don't know which files are
> there?
>
> Sin
> I tried "locate" and "find" and both come up empty for mysqladmin.
> Am I missing something stupid here?
How did you install it? Did you build from source or use rpm's? If you
installed from rpm's which ones did you install? From memory there's
about four rpm's that you'll need to have ev
On Sat, 2002-05-11 at 15:52, olinux wrote:
> $dirPath = "C:\somepath";
> $dhandle = opendir($dirPath);
>
> while ($filename = readdir($dhandle)) {
This will bail on the first directory entry which has a name which
evaluates to false. Try it after 'touch 0' in the directory you're
scanningth
Hi!
How can I send a html email with just the build-in function mail()?
Is this required to put some infomation in "header" field? Thanks
in advance!
Alex
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sunday 12 May 2002 02:00, Alex Shi wrote:
> Hi!
>
> How can I send a html email with just the build-in function mail()?
> Is this required to put some infomation in "header" field? Thanks
> in advance!
>
> Alex
mail("[EMAIL PROTECTED]",$subject,$content,"Content-type: text/html");
Greeitngs,
RTFM
http://www.php.net/manual/en/function.mail.php
- Original Message -
From: "Alex Shi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, May 12, 2002 10:00 AM
Subject: [PHP] Send html email
Hi!
How can I send a html email with just the build-in function mail()?
Is this r
While I understand the necessity in not answering every question that a newbie
may post, a more pleasant approach would have been:
"the following is documented at http://www.php.net/manual/en/function.mail.php";
or
"see the Content-Type: header for instructions on how to do this".
Do you th
Hello all,
I have a file that has ip address in it.. I need to pull those ip addresses
out.
Currently I am trying:
$ips=preg_grep("/^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/",$file);
print_r(array_values ($ips));
And well i am getting nothing!
Anyone?
--
PHP General Mailing List (http://ww
Thanks for all of you who answered my question. But another of
my stupid question is: what is RTFM?
Alex
"Michael Geier" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> While I understand the necessity in not answering every question that a
newbie
> may post,
OK, this is an "authentication with PHP newbie" question...
Env:
WinNT 4.0, SP6a
PHP 4.2.0
Apache 2.0.36
MySQL 4.0.1
Development/sandbox
Trying to get accustomed to PHP 4.2.0 and PHP's preference for
register_globals off, I have register_globals off.
However, when I try to use $PHP_AUTH_USER an
I have a script where I need to get the text from line number "$line" in
file "$filename" then save it to a var ($text) and then print it. For
example, in the file lamb.txt (just an example file):
"Mary was
a little lamb, whose
fleece
was as
white as snow."
I need to get line number 3 ("fleece") a
On Sat, 11 May 2002 21:21:27 -0400, you wrote:
>Trying to get accustomed to PHP 4.2.0 and PHP's preference for
>register_globals off, I have register_globals off.
>
>However, when I try to use $PHP_AUTH_USER and $PHP_AUTH_PW, my script fails
>(attempting to validate username and password credectia
Thanks, Stuart.
I'll admit I don't "fully" I understand register_globals. Beyond that, I am
sure I am not clear on the value of NOT using register_globals. I am wading
through the docs constantly. Haven't quite finished.
Regardless, thanks for the assist.
Mike
- Original Message -
I'd like to pass a bunch of variables to another PHP page for processing
there... I think serialize() and urlencode() will do what I'm looking for..
can I pass multiple strings through this? I'm also not clear on how I can
decode the separate strings out...
Can someone point me in the right di
One of my clients signed up for service at Yahoo for space on a Cobalt server.
The specs say that it has Php and Interbase. I go to the server and do a
phpinfo() and find out that Interbase is not compiled into PHP but MySQL is.
Then I find out that MySQL is *not* installed on the server.
Am I m
You should use sessions. All you have to do is call session_start() at
the beginning of your code. Then, any variable you want to save to the
session, you simply use:
$_SESSION["name"] = $name;
Then, on the next page, call session_start() again, and you'll have the
value of $name from the previo
> Am I missing something here? If one wants to have dynamic pages and
uses
> PHP,
> then *some* DB has to be available, correct?
Ideally, yes, you'd want a database. But you could do it with text
files...
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, vis
Todd Cary wrote:
> One of my clients signed up for service at Yahoo for space on a Cobalt server.
> The specs say that it has Php and Interbase. I go to the server and do a
> phpinfo() and find out that Interbase is not compiled into PHP but MySQL is.
> Then I find out that MySQL is *not* install
At 12:11 AM 5/12/2002 -0700, John Holmes posted the following...
>You should use sessions. All you have to do is call session_start() at
>the beginning of your code. Then, any variable you want to save to the
>session, you simply use:
That did the trick! Thanks for the explanation, John! Now I ha
On Sat, 11 May 2002, jtjohnston wrote:
> This is a bug "Feature/Change Request" I made to:
> http://bugs.php.net/bug.php?id=17158
>
> setcookie() states "cookies must be sent before any other headers
> are sent (this is a restriction of cookies, not PHP).
>
> I argue this is a restriction of PHP
On Sat, 11 May 2002, Alex Shi wrote:
> Thanks for all of you who answered my question. But another of
> my stupid question is: what is RTFM?
RTFM == Read The Flurking Manual
miguel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sat, 11 May 2002, Andrew Conner wrote:
> I have a script where I need to get the text from line number "$line" in
> file "$filename" then save it to a var ($text) and then print it. For
> example, in the file lamb.txt (just an example file):
> "Mary was
> a little lamb, whose
> fleece
> was as
Hello,
I wrote a DNS resolver library in pure PHP script.
The library can be run both on windows and on *nix variants.
(I have not tested on BeOS)
The package contains a wrapper library that provides
almost the same functionality of getmxrr() and checkdnsrr(),
so if you would like to run PHP scr
On Sun, 2002-05-12 at 00:10, Miguel Cruz wrote:
> On Sat, 11 May 2002, Andrew Conner wrote:
> > I have a script where I need to get the text from line number
> "$line" in
> > file "$filename" then save it to a var ($text) and then print it.
> For
> > example, in the file lamb.txt (just an example
I want to create an e-mail form that writes a (person's name).vcf(vCard)
file and attaches it to the message. This would allow me to eaisly add
people to my address book.
The source of a sample .vcf(vCard) file is shown below:
BEGIN:VCARD
VERSION:2.1
N:Harrison;JJ
FN:Harrison, JJ
ORG:TecEco Pty.
Use any of about 10 billion available MIME mail classes/functions (or
write your own; there's really nothing to it) and attach the vcard as
content-type: text/x-vcard.
miguel
On Sun, 12 May 2002 [EMAIL PROTECTED] wrote:
> I want to create an e-mail form that writes a (person's name).vcf(vCard)
Argh!
I hate it when one little annoying thing starts up right when I think I have
the coding finished! I have the following code:
if($last_name) {
printf("%s
%s's%s%s\n",$first_name,$last_name,$year,$color);
} else {
printf("%s's%s%s\n",$first_name,$year,$color);
It would seem the only way this could happen is if $last_name evaluates to
true. Two suggestions:
1) Make some extra change in one of the printf statements so you can see
which one is really being called.
2) If that doesn't illuminate anything, show a little more code.
miguel
On Sat, 11 May
Thanks for the debugging tip... Seems that the 'else' statement wasn't being
called at all, so for some reason $last_name was evaluating to true even
though there's a NULL entry for that record/field. I used a different query,
where a person with a NULL last_name showed up first, and the 'else'
st
I don't have much experiance with MIME. where could I find a tutorial or
ready made class?
- Original Message -
From: "Miguel Cruz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, May 12, 2002 4:41 PM
Subject: Re: [PHP] .vcf files and PHP Email Form(Newbi
101 - 140 of 140 matches
Mail list logo