-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Chris Sechiatano declared
> You have to code the PHPSESSID into your URL if your browser has cookies
> disabled or else it won't work.
No. As I said, i have php compiled with --enable-trans-sid
- --
Nick Wilson // www.exploding
When you say serve the files through a script, I assume you mean
"download.php" force-feeds an MP3 (or whatever) to the browser.
Is this correct?
I read people have lots of problems with this...
Justin
on 08/06/02 4:08 PM, Jason Wong ([EMAIL PROTECTED]) wrote:
> On Saturday 08 June 2002 13
Ok, I'll have to try that on my next project. Unfortunately these forms were
written by another developer and there too many variables to rename to make an
array and not enough time on the project :-) But for next time.
I've seen many examples of assigning values to session variables w/o forms
On Saturday 08 June 2002 14:39, Greg Macek wrote:
> What is the best/recommended method of saving form data into session
> variables? Currently only have to deal with regular text input,
> checkboxes and radio buttons (no multiple selects for now). Any sample
> code someone could throw up on the l
What is the best/recommended method of saving form data into session
variables? Currently only have to deal with regular text input,
checkboxes and radio buttons (no multiple selects for now). Any sample
code someone could throw up on the list? I've only recently begun
working with sessions, b
If the file is of a reasonable size (not hundreds of kilobytes), then you
can just slurp it all into an array and foreach through it:
$matched = 0;
$myfile = file('/usr/home/crud/myfile');
foreach ($myfile as $line)
{
$split_line = explode(':', $line);
if ($split_line[1] == 'bob'
On Saturday 08 June 2002 13:46, Justin French wrote:
> MP3 and quick time -- otherwise the solution would be easy :)
>
> Thanks,
>
> Justin
>
> on 08/06/02 3:42 PM, Jason Wong ([EMAIL PROTECTED]) wrote:
> > On Saturday 08 June 2002 09:19, Justin French wrote:
> >> Hi,
> >>
> >> I wish to restrict
MP3 and quick time -- otherwise the solution would be easy :)
Thanks,
Justin
on 08/06/02 3:42 PM, Jason Wong ([EMAIL PROTECTED]) wrote:
> On Saturday 08 June 2002 09:19, Justin French wrote:
>> Hi,
>>
>> I wish to restrict access to a dir of files, depending on if the user is a
>> logged in
On Saturday 08 June 2002 09:19, Justin French wrote:
> Hi,
>
> I wish to restrict access to a dir of files, depending on if the user is a
> logged in and validated member.
What kind of files are they? html? php? or others?
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source
On Saturday 08 June 2002 10:48, Robert Packer wrote:
> Can someone tell me why this isn't working? To me it say open the file,
> read it, stick into a variable, close the file. Then search that variable
> (the file) and look for the eregi statements. Can someone tell me why this
> only gets the fi
I think you'll get MUCH better answers if you join the MySQL mailing list,
and search the MySQL website, rather than this PHP list.
Also less chance of getting flamed :)
Justin French
on 08/06/02 1:20 PM, sonjaya ([EMAIL PROTECTED]) wrote:
> i have databse paradox (extension *.db) how to read
On 6/7/02 11:43 AM, "Bogdan Stancescu" <[EMAIL PROTECTED]> wrote:
> One of the users of OPT has major problems uploading files to the system and I
> have absolutely no clue why that is. His PHP version is 4.0.6 on Linux.
> Quoting his description of the problem:
>
> "In fact, now it doesn't even
Oh, I forgot to mention that it is a different way of indicating
that a favicon to be used, which is found in the HEAD of the HTML
document.
This works in browsers other than IE, but I don't think that IE
supports this
TjL
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
i have databse paradox (extension *.db) how to read in php and save to
mysql , thanks i just new bie in php
ok I believe I follow you on that, I will give that a try. But the
question I have now is how do I loop that request?
Gaylen Fraley wrote:
>Use the explode() function based on the colon. Then parse the 2nd array
>element for the username that you want. If matched, display all elements in
>tha
Use the explode() function based on the colon. Then parse the 2nd array
element for the username that you want. If matched, display all elements in
that array row. Conversely you could use the implode() to reassemble the
array row.
(Assume $file_row is the row name that you have assigned)
/*
I want to be able to search a flat file line by line looking for data
such as a username then display all the information in that line. Is
there some way to search the following format:
record1:username:info:info:info
record2:username:info:info:info
record3:username:info:info:info
So if someo
On Saturday, June 8, 2002 at 3:04:30 AM, you wrote:
> I am using Netscape 7 preview release. When I go to www.php.net, it
> displays the php logo in the address bar. Does anyone know how this is
> done?
If I'm not mistaken, it's a favicon.ico file. See http://www.favicon.com/ for
full info.
I believe it is a favicon.ico
MSIE started this and apparently Netscape/Mozilla now have them
too.
TjL
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I am using Netscape 7 preview release. When I go to www.php.net, it
displays the php logo in the address bar. Does anyone know how this is
done?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You are correct. My web server is Running 4.2.1 and all of the sites are
still working.. That is why I assumed that it was a problem locally, but
after looking at the web server the globals is turned on. Thanks.. I can go
forward now. I appreciate your help
On 6/7/02 9:33 PM, "Philip Olson" <[EM
I'm trying to not reinvent the wheel. Can you all recommend a good script,
or class, that will read a given directory, list the folder and/or files and
create hyperlinks, allow you to then recursively, upon selection, read a
given folder? There will be no editing. It's strictly for selecting an
Actually, they are. You are assuming the PHP directive
register_globals = on when using $phrase from the form
below. register_globals = on is what creates $phrase.
As of PHP 4.2.0 the default value for register_globals
has become off. Regardless, there are other options:
Try either:
//
On Saturday, June 8, 2002 at 2:22:02 AM, you wrote:
> I just read the release notes and do not believe they are referring to my
> dilemma.
Actually, I think they point out the exact reason for your 'dilemma'.
> Here is the code I am using. Just a basic form
> <>
> if ($phrase){ echo "Phrase--
You have to code the PHPSESSID into your URL if your browser has cookies
disabled or else it won't work.
On Fri, Jun 07, 2002 at 06:57:31PM +0200, Nick Wilson <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
>
> * and then Glenn Sieb declared
> > >I have compil
I just read the release notes and do not believe they are referring to my
dilemma.
Here is the code I am using. Just a basic form
<>
Phrase:
<>
On 6/7/02 9:08 PM, "Stuart Dallas" <[EMAIL PROTECTED]> wrote:
> On Saturday, June 8, 2002 at 1:56:35 AM, you wrote:
>
>> I rece
Hi,
I wish to restrict access to a dir of files, depending on if the user is a
logged in and validated member.
My first guess was to restrict access to the files with .htaccess, only
allowing access if the referring (linking) script was something like
members.php, so they'd only get the link if
On Saturday, June 8, 2002 at 1:56:35 AM, you wrote:
> I recently installed PHP 4.2.1 on my G4 Powerbook (OS X v10.1.4) running
> Apache 1.3.2. I have verified that php is running and apache is running.
> When I access a page locally http://127.0.0.1/simple_form.php, fill in the
> only text box an
I recently installed PHP 4.2.1 on my G4 Powerbook (OS X v10.1.4) running
Apache 1.3.2. I have verified that php is running and apache is running.
When I access a page locally http://127.0.0.1/simple_form.php, fill in the
only text box and submit the form to form_act.php. The variable doesn't
exist
How about if you use htmlentities() and then preg specified tags back into
place? That way, the onus for not looking silly falls upon those who use
unapproved tags. This would seem like the more conservative approach - and
as a security-obsessed paranoid fool, I like conservative approaches.
m
I think you're looking for AI, not a bot.
http://directory.google.com/Top/Computers/Artificial_Intelligence/Natural_Language/
If you want to post a description of what you want to do, someone may be able
to help.
On Monday 03 June 2002 22:14 pm, Martin Thoma wrote:
> Hello! Perhaps you know
Hi all. I know that this isnt probably the best place to make this
question, but I uses that some of you uses MyCC to connect to a remote
MySQL DB. My connection is no problem, but when I issue a SQL command,
which tells the DB to INSERT multiple rows into one table, It gives me
an error every ti
Can someone tell me why this isn't working? To me it say open the file, read
it, stick into a variable, close the file. Then search that variable (the
file) and look for the eregi statements. Can someone tell me why this only
gets the first instance of what I'm searching for? Thanks a bunch.
#!/u
I've got a mail function script that occasionally terminates midway
while sending out about 600 emails.
The symptoms point to the "max_execution_time", which is set for 30
seconds.
The question is how to best handle it.
set_time_limit only seems to apply to the script that contains it. Yet
t
Cool. Thanks Dave. I'm exploring this stuff in another window. I'll check
out irt.org.
-Original Message-
From: David Freeman [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 07, 2002 4:45 PM
To: 'Lazor, Ed'; 'Richard Baskett'; 'PHP General'
Subject: RE: [PHP] dynamic pull-down menus?
> That sounds very close to what I'm trying to do. Is it
> necessary to reload the page every time a selection is made?
I've found examples of the javascript side of it on www.irt.org that
helped last time I did this sort of thing. The php/sql stuff is a
matter of figuring out what you nee
I realize the importance of using valid html stuff. Here, however, I'm
trying to validate *user input*, not fix up my own HTML pages. And I have
no way of teaching the users to say < and > instead of < and > when
they fill out their forms.
On Sat, 8 Jun 2002, David Freeman wrote:
>
> > The min
Actually, we allow our users to use HTML tags -- a pretty large set of
tags is allowed in the second argument to strip_tags(). We just want to
strip out and other stuff which has been known to cause problems.
This is why I was wondering if anyone has a good regexp which can allow
one to provide
> The minor problem is that it treats a "not-equals" sign,
> "<>", as an empty tag and strips it, unless it's explicitely
...etc...
Except, of course, that when writing html you are supposed to use
entities for any valid html stuff - ie. Use > and $lt; for > < and so
on. As you should also
Do you want the page to submit with each choice? i.e. in the beginning,
the first drop down is populated and the other two aren't. when a choice
is made in the first box, the form is submitted and PHP populates the
second, etc...
If you don't want it to submit, then all PHP can do is write some
j
I don't see why people use strip_tags at all. I would hate posting to a
forum that will strip tags, esp. if I want to show an example of
something.
Just use htmlentities() and the data will be shown exactly as the user
typed it, but none of the HTML or code within it will be evaluated. So
if the
Hi,
Not porn, but advertising. We only use about 20mbit/sec.
Thanks,
- Original Message -
From: "Miguel Cruz" <[EMAIL PROTECTED]>
To: "mike" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, June 07, 2002 6:00 PM
Subject: Re: [PHP] Tracking Problem -- Force full script executio
On Friday, June 7, 2002 at 11:00:24 PM, you wrote:
> I don't have an answer, but I'm impressed that you're able to get
> 144,000,000 hits a day - on par with Yahoo which was previously considered
> the runaway leader in web traffic volume. That must be some pretty amazing
> porn.
I'm more amaz
> I got a mysql database, where two of the fields of a table
> record times as
> CHAR(8) in the format hh:mm:ss
> I want to take this two times and get the difference between
> them in seconds, for example 12:01:30 - 12:00:00 = 90 I
> looked up at the doc in the php.net website and could
On Friday, June 7, 2002 at 11:00:48 PM, you wrote:
> It sure would :) But if you're going to have HTML such as:
> < valid_tag > blah blah < this isn't a tag > < /valid_tag >
> then you've got problems no matter what you do :)
My bad. I thought that would be valid HTML, but I just checked and
It sure would :) But if you're going to have HTML such as:
< valid_tag > blah blah < this isn't a tag > < /valid_tag >
then you've got problems no matter what you do :)
On Fri, 7 Jun 2002, Stuart Dallas wrote:
> On Friday, June 7, 2002 at 10:23:08 PM, you wrote:
>
> > Hmm... you could always
On Fri, 7 Jun 2002, mike wrote:
> I am trying to track every user who visits my site (over 100,000 per
> minute..)
I don't have an answer, but I'm impressed that you're able to get
144,000,000 hits a day - on par with Yahoo which was previously considered
the runaway leader in web traffic volum
That sounds very close to what I'm trying to do. Is it necessary to reload
the page every time a selection is made? Do you have examples of this that
work with multiple pull-down menus?
-Original Message-
From: Richard Baskett [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 07, 2002 2:48
> > > Anyone knows of a majordomo type mailing list made with php >
> > Why would you want to do that? If you need mailing list software
> > you'd be infinitely better off using one that already exists - if
you
> > need features that it doesn't support (eg. A web front-end for
> > ma
> I got a mysql database, where two of the fields of a table
> record times as
> CHAR(8) in the format hh:mm:ss
This is one of those situations where having your database using the
most appropriate field types would help. When you've got it as CHAR
there's little you can do in the way of co
Usually people do this with javascript, but you could use
javascript/php/mysql mysql for the data, php to create the dynamic drop down
menus and javascript to refresh the page once someone has picked an option.
Rick
"We do not have to visit a mad house to find disordered minds; our planet is
the
Does anyone know how to create a web page with more than 2 selection fields
that Interact?
In my particular case, I'm trying to create a series of pull-down menus.
The first selection is the choice of hardware class (workstation, server,
laptop, pda, etc.). The second selection is manufacturer.
On Friday, June 7, 2002 at 10:30:59 PM, I wrote:
> < /SCRIPT>
There should be another space here...
< /SCRIPT >
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Friday, June 7, 2002 at 10:23:08 PM, you wrote:
> Hmm... you could always do something like:
> $t = ereg_replace(" < ", " < ", $t);
> $t = ereg_replace(" > ", " > ", $t);
> $nt = strip_tags($t);
> $nt = ereg_replace(" < ", " < ", $nt);
> $nt = ereg_replace(" > ", " > ", $nt);
> maybe?
Tha
It's 1 based. It returns the number of rows. Not the index of the last
row. (Which would be 0 based.)
On Fri, 2002-06-07 at 19:23, William_dw -- Sqlcoders wrote:
> Hiya!,
> Does anyone know whether mysql_num_rows is zero or one based?
>
> that is, if I have 5 records will mysql_num_rows() return
It was definately included. I know this two ways.
1. Non-SSL curl sessions work.
2. I used the exact configure string I used for the module version,
minus the --with-apxs option.
On Fri, 2002-06-07 at 14:30, Mark Heintz PHP Mailing Lists wrote:
> Are you sure curl was included with the CLI insta
Hmm... you could always do something like:
$t = ereg_replace(" < ", " < ", $t);
$t = ereg_replace(" > ", " > ", $t);
$nt = strip_tags($t);
$nt = ereg_replace(" < ", " < ", $nt);
$nt = ereg_replace(" > ", " > ", $nt);
maybe?
On Fri, 7 Jun 2002, Mikhail Avrekh wrote:
> Same thing happens:
>
>
Same thing happens:
3";
$nt = strip_tags($t,'< >'); // i've also tried '<>', '<',
// and all permutations thereof
print $nt;
?>
%> Everyone knows that 2 3
On Fri, 7 Jun 2002, Philip Hallstrom wrote:
> I haven't looked at the code, but doesn't strip_tags strip ev
I haven't looked at the code, but doesn't strip_tags strip everything b/n
< and >? In which case it's doing what it should below...
The only solution I see would be to change the code to look for every
possible HTML tag that exists and only do those, but with all the
nonstandard tags I don't thi
Hello,
There seem to be a couple of bugs in the strip_tags() function, one minor
(or at least I know how to circumvent it) and one more serious.
The minor problem is that it treats a "not-equals" sign, "<>", as an empty
tag and strips it, unless it's explicitely set as an allowed tag
(as in stri
well, either make sure $search contains the entire page
or, you have an array fo lines, loop thru it line by line
foreach ($lines as $line)
eregi( ... )
AFAIK, eregi will match *everything* and dump it all into
$matches (at least that's the behaviour that pregs follow,
i dont use eregs)
How would you loop though a file ( or web page) and get all of a certain
thing. I'm trying to strip stuff out of tables, but I have only managed to
get the first of what I'm searching for. My expression is
eregi("[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}", $search, $content);
which does the job,
Hi,
I am trying to track every user who visits my site (over 100,000 per
minute..), and I have over 25 queries in my tracking script... and I have a
feeling some users are "closing" the script before it finishes executing,
even though my script loads very quickly.. and its causing some of my MySQ
Are you sure curl was included with the CLI installation? Try running
this through the CLI to check...
if(extension_loaded('curl')){
echo 'curl support present';
} else {
echo 'curl not found';
}
mh.
On 7 Jun 2002, Matthew Walker wrote:
> I have PHP installed both as a module, and as a C
you miss understood what I was saying. I said to have your hotmail account
setup as the return email address and then send mail to you ISP. if the
mail bounces it will be returned to your hotmail account instead of your
ISP. if you do receive the mail returned to your hotmail account. it should
I have PHP installed both as a module, and as a CLI. When I use CURL
from inside the module, it works fine for all connections, including
SSL. When I use the CLI, I can't make SSL connections with CURL. It just
returns 'false'. Anyone know why?
--
PHP General Mailing List (http://www.php.net
RE: [PHP] Can't get PHP running with apacheThe following was added by the compile of
PHP 4.2.1:
LoadModule php4_modulelibexec/libphp4.so
AddModule mod_php4.c
The following was added by me:
AddType application/x-httpd-php .php .html .phtml
So..., if the compile added the line for mo
Did you add the module info to your httpd.conf file?
Thank you,
RAY HUNTER
-Original Message-
From: Don [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 07, 2002 1:56 PM
To: Ray Hunter; 'php list'
Subject: Re: [PHP] Can't get PHP running with apache
Oops. Sorry. my PHP configure ac
RE: [PHP] Can't get PHP running with apacheOops. Sorry. my PHP configure actually
has the folowing:
./configure --with-mysql --with-apxs=/usr/sbin/bin/apxs --enable-dbase --with-im
ap --with-kerberos --with-imap-ssl --enable-track-vars --enable-force-cgi-redir
ect --with-gettext
which states
When you use the --with then you need to specify a directory...
Read up on the configuration of php on php.net
Thank you,
RAY HUNTER
-Original Message-
From: Don [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 07, 2002 1:47 PM
To: php list
Subject: [PHP] Can't get PHP running with apac
Hi,
Compiled and installed Apache 1.3.24 with mod_ssl and mod_perl. Compiled and
installed PHP 4.2.1 with the following:
'./configure' '--with-mysql' '--with-apxs' '--enable-dbase' '--with-imap'
'--with-kerberos' '--with-imap-ssl' '--enable-track-vars'
'--enable-force-cgi-redirect' '--with-g
Awesome :-)
Glad to have been able to help...
--
me
- Original Message -
From: "juaid" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 07, 2002 9:22 PM
Subject: [PHP] string convertion to time & substracting
> Well, I got all working now and calculating the duration wit
Yeah, if he kept CHAR, then he'd have to do all of that. We were trying
to convince him to switch to a TIME column, though, to make things
easier. Which he did...which does...
:)
---John Holmes...
> -Original Message-
> From: Erik Price [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 07
I thought that it was a CHAR column. I didn't know you could use
UNIX_TIMESTAMP() on CHAR columns, so I was showing him how to turn his
colon delimited strings into timestamps with mktime().
Erik
On Friday, June 7, 2002, at 02:27 PM, John Holmes wrote:
> Umm...How about using UNIX_TIMESTAM
www.google.com
search for PHP Chat and see what you come up with. when you have a specific
problem, come back here and we'll see what we can do for you.
This list is most definitely not to tell you how to develop applications
To give you a head start, there's something called PHPIRC or som
Well, I got all working now and calculating the duration with mysql
functions
The fields which which hold times are now TIME types, and everything works
really good!!!
Thanks again to all :)
juaid
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/un
Can I make a Chat with PHP or what must I do?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Okay, sorry. I stand corrected. :)
Either way, the query still failed for some reason. The recommendation
to use MySQL_error() is still a good one...
---John Holmes...
> -Original Message-
> From: Chris Knipe [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 07, 2002 2:44 PM
> To: [EMAIL
From: "Chris Knipe" <[EMAIL PROTECTED]>
> I also started off implementing mysql lookups
> without error checking and posted rather silly mistakes to the list which
> could have easily been avoided just debugging the code properly
%$&@#!!!
thank you very much Chris... stupid error.. I had done so
> where $month, $day and $year are got from a form in the previous page via
> POST method.
> So the LIKE condition matches against the "date" field in the table, where
> the format is like "Jun 7 2002"
>
> if I switch connTime, startTime and stopTime to TIME types, I get the
error
> I said
>
> I'l
- Original Message -
From: "John Holmes" <[EMAIL PROTECTED]>
To: "'juaid'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, June 07, 2002 8:29 PM
Subject: RE: [PHP] convertion from string to time & substracting
> That error means your query failed and the result set is not valid.
From: "John Holmes" <[EMAIL PROTECTED]>
>
> That error means your query failed and the result set is not valid. You
> can't use LIKE on a TIME column.
>
> Can you explain exactly what you want? How are you storing the times,
> what are the times, what kind of data do you want to pull out of the
>
> > Talking under correction, but you'll be better of using a TIME column in
> > MySQL. You can also do all the calculations with MySQL's build in time
> > functions already, which will save you allot of time, seeing that all
the
> > calculations can be done via a single SQL query.
>
> Yes, this
On Thu, 6 Jun 2002, webmaster mbtradingco wrote:
> Hey Scott, that at least helped me to find out what is going wrong.
>
> When I use the code as you told me...
>
>$fd=readdir("/home/casapu/paginas /image/caterleras/");
>if (!$fd) die ("Can't read dir");
>
> It gives me:
Thank you very much Erik, I'll try it :)
anyway, it would be nice to know what's wrong with the code I posted, why
does it work with CHAR and not with TIME types?
juaid
From: "Erik Price" <[EMAIL PROTECTED]>
>
> First of all, if you're storing time then you're better off using the
> DATETIME c
That error means your query failed and the result set is not valid. You
can't use LIKE on a TIME column.
Can you explain exactly what you want? How are you storing the times,
what are the times, what kind of data do you want to pull out of the
table?
I'll guarantee that there is one easy query
1) Why are you using JavaScript to open the window? HTML will do just fine
() and will work on all browsers as well as search
engines.
2) Your sample page has some password on it and I can't decipher from your
message what's actually going on, so without seeing it in action, I'm
stumped.
mig
Umm...How about using UNIX_TIMESTAMP() in your query, then you won't
need any of that PHP code you just wrote...
---John Holmes...
> -Original Message-
> From: Erik Price [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 07, 2002 2:22 PM
> To: juaid
> Cc: [EMAIL PROTECTED]
> Subject: Re: [
note that I put:
$startTime = $linea["startTime"];
I misppeled it while copying, this shuold be
$startTime = $line["startTime"];
juaid
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Friday, June 7, 2002, at 02:22 PM, Erik Price wrote:
> First of all, if you're storing time then you're better off using the
> DATETIME column type. Even though it may take a bit more space than
> CHAR(8), unless you absolutely need the ultimate in table optimization,
> use DATETIME.
I
On Friday, June 7, 2002, at 02:01 PM, juaid wrote:
> sorry if maybe this is a bit dumb question, but I'm a begginer with
> php...
>
> I got a mysql database, where two of the fields of a table record times
> as
> CHAR(8) in the format hh:mm:ss
>
> I want to take this two times and get the dif
From: "Chris Knipe" <[EMAIL PROTECTED]>
>
> Talking under correction, but you'll be better of using a TIME column in
> MySQL. You can also do all the calculations with MySQL's build in time
> functions already, which will save you allot of time, seeing that all the
> calculations can be done via
Is there a reason you insist on using a CHAR field, instead of a TIME
field, which would make this all easier and allow you to use the
multitude of MySQL Date and Time Functions in your query... ???
---John Holmes...
> -Original Message-
> From: juaid [mailto:[EMAIL PROTECTED]]
> Sent: F
Talking under correction, but you'll be better of using a TIME column in
MySQL. You can also do all the calculations with MySQL's build in time
functions already, which will save you allot of time, seeing that all the
calculations can be done via a single SQL query.
--
me
- Original Messag
On Friday, June 7, 2002, at 12:32 PM, Jeff Field wrote:
> I'm under the impression that when I create the user
> and password variables, the variables are only available in the session
> cookie on my own server, not in the cookie that is sent to the user to
> maintain sessions. The cookie sent
Absolutely right! I'm storing the password needlessly. I've got the user
name and that's all I need for anything further. Thanks!
Jeff
> -Original Message-
> From: Analysis & Solutions [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 07, 2002 12:42 PM
> To: PHP List
> Subject: Re: [PHP
Hi,
sorry if maybe this is a bit dumb question, but I'm a begginer with php...
I got a mysql database, where two of the fields of a table record times as
CHAR(8) in the format hh:mm:ss
I want to take this two times and get the difference between them in
seconds, for example 12:01:30 - 12:00:00
On Friday, June 7, 2002 at 7:08:00 PM, you wrote:
> Lines 29, 30, and 31
> //29
> $headers = $from . "\r\n" . $bcc . "\r\n"
> //30 - The Next Line is where I'm getting the parse Error at:
> mail ($to, $setting_site_name, $mailpost, $headers) or $emailsuccess
> ="Failure sending email.";
> //31
>
Lines 29, 30, and 31
//29
$headers = $from . "\r\n" . $bcc . "\r\n"
//30 - The Next Line is where I'm getting the parse Error at:
mail ($to, $setting_site_name, $mailpost, $headers) or $emailsuccess
="Failure sending email.";
//31
if ($emailsuccess == "") {$emailsuccess = "Email Sent Successfully.
> I want to find the name of the n-th value in an array. Not the value of
> the n-th, but whatever name was given to it. Array_slice seems to just
> pull part of an array and put it in another. and key() isn't exactly
> what i want either..
Maybe this will help:
> $my_array = array('bob' =>
1 - 100 of 159 matches
Mail list logo