Foreach works in PHP just like I told.
foreach($emails as $this_is_one_address) is the correct form where
$emails is an array and $this_is_one_address gets one element from
$emails.
This is similar to this (technically):
for ($i = 0; $i count($emails); ++$i)
{
$this_is_one_address =
For those of you who use the cURL extension, the underlying library
is putting up a little questionaire, to help get a better idea of
what the cURL user community wants, feel free to go ahead and
participate, the URL (without reading the attachment :) is:
Thanks!! its working !!!
***BIG SMILE
Niklas you genious
-Original Message-
From: Niklas Lampén [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 09, 2002 10:15 AM
To: Php-General
Subject: RE: [PHP] foreach statement
Foreach works in PHP just like I told.
You're welcome. :)
Niklas
P.S. I know... ;)
-Original Message-
From: Chris Grigor [mailto:[EMAIL PROTECTED]]
Sent: 9. tammikuuta 2002 10:23
To: '[EMAIL PROTECTED]'; Php-General
Subject: RE: [PHP] foreach statement
Thanks!! its working !!!
***BIG SMILE
Niklas you genious
Hi Everyone,
I did ask this earlier, but I have made some head way since, but I'm still
not sure that I have things right.
What datatype should I use for zip files?
How do I create a link to a file to be downloaded from the database?
All the examples I have read all relate to images, which
No such table, the best you can do is look at their hostname and parse the
last part ie .co.uk or .com... And then u can try and figure where they are
from that
Err... Wrong.
You could host a .co.uk in the US or any other country for that matter! What
you need to do is find the IP do a RIPE
I 'm not sure, but i beleive you can get visitor's country from Apache 's
Varialble $HTTP_ACCEPT_LANGUAGE. For further information read Predefined
Variables in the manual.
Hope it works!!!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
First of all sorry if you have already read this on one of the other PHP
Mailing Lists, the reason I am posting it in a couple of different ones is
because I really do believe that many people can make use of this extenstion
and I know there are people out there who need this extension because I
hea
http://www.phparchiv.de/cgi-bin/links/jump.cgi?ID=182
and
http://www.phparchiv.de/cgi-bin/links/jump.cgi?ID=2015
gurix
Muhammad Asif [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
hi,
Do PHP has some built-in support for Credit Card Processing?
hea
1. take a given javascriptmenu
2. develop a database with th menu items
3. make the Javascript dynamical with the php variables.
It isn't anything to learn develop in php, just take it step for step.
gurix
Kevin P [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL
// here's a nice example for a bcc adress, just generate a header
$headers .= From: Birthday Reminder [EMAIL PROTECTED]\r\n;
$headers .= Cc: [EMAIL PROTECTED]\r\n;
$headers .= Bcc: [EMAIL PROTECTED]\r\n;
/* and now mail it */
mail($to, $subject, $message, $headers);
gurix
Tim Ward [EMAIL
On Wed, Jan 09, 2002 at 11:33:46AM +0200, Dimitris Kossikidis wrote:
:
: I 'm not sure, but i beleive you can get visitor's country from Apache 's
: Varialble $HTTP_ACCEPT_LANGUAGE. For further information read Predefined
: Variables in the manual.
This works assuming the browser itself sends
...
Hi,
I was wondering how you could unshift a key value pair onto an array.
In the manual one suggested using a function like this:
function array_unshift_assoc($arr, $key, $val)
{
$arr = array_reverse($arr, true);
$arr[$key] = $val;
$arr = array_reverse($arr, true);
return
Try array_merge()
Regards,
Andrey Hristov
- Original Message -
From: Marc Logghe [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 09, 2002 10:55 AM
Subject: [PHP] unshift a key value pair
Hi,
I was wondering how you could unshift a key value pair onto an array.
In
Hi,
I'm trying to let Webmin execute a script where I can use php as scripting
language... (It will be good to work with a language as php in a remote administration
server, as root!)
Now the STRANGE problem:
When I execute a test.cgi program from Webmin, it's executed as root, as it was
That's exactly what I did to make it work I gave up playing with
array_unshift.
Thanks anyway.
Marc
Andrey Hristov [EMAIL PROTECTED] wrote in message
087501c198ff$45961270$0b01a8c0@ANDreY">news:087501c198ff$45961270$0b01a8c0@ANDreY...
Try array_merge()
Regards,
Andrey Hristov
- Original
Hy Peter,
Peter Lavender wrote:
Hi Everyone,
I did ask this earlier, but I have made some head way since, but I'm still
not sure that I have things right.
What datatype should I use for zip files?
You should use the blob type therefore
How do I create a link to a file to be
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Marc Logghe) wrote:
So it is really easy to *remove* a key-value pair, but how do you put one in ?
$arr[$key]=$val;
--
CC
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Yes, of course, but the thing is that the order was important. I wanted to
put in a new value/pair at the *start* of my array, so I thougth using
array_unshift(), but that did not work or at leas I did not find how.
With the $arr[$key]=$val assignment you add at the *end* of your array $arr.
Hy,
universal2001 wrote:
Hi again!
Thanks for the reply!
I still have another question:
so I tired to use (echo) like this:
echo table border=0 cellpadding=0 cellspacing=0 width=639
tr
tdimg src=img_heading/spacer.gif width=25 height=1
border=0/td
/tr
tr
td
I have a website where I use sessions. After a user has logged of, the logon
screen appears again. The username field is filled with the value from a
cookie.
What happens:
For example: username = Peter
In the situation that I log of (and the logon page appears), the username
field gets the
are you shure about putting binarydata into a database?
cant you do it with links?
performance would be better this way i think.
Henning Sprang [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hy Peter,
Peter Lavender wrote:
Hi Everyone,
I did ask
Hellorghh !!!
You'd better do like this :
echo table border='0' cellpadding='0' cellspacing='0' width='639'
Le Mercredi 9 Janvier 2002 13:05, Henning Sprang a écrit :
Hy,
universal2001 wrote:
Hi again!
Thanks for the reply!
I still have another question:
so I tired to use
Nicolas Costes wrote:
Hellorghh !!!
You'd better do like this :
echo table border='0' cellpadding='0' cellspacing='0' width='639'
just another one - but i am too out of practice with html standarts to
know if this is compliant ( a browser showing a result doesn't
neccessary mean it's
Yes, you're right !!!
some browsers like IE will accept even blah blah=0, blah blah='0', blah
blah=0, and some like Opera will only understand :
IE SuxWithTooEasySyntax=1 ;-))
Le Mercredi 9 Janvier 2002 14:17, Henning Sprang a écrit :
Nicolas Costes wrote:
--
( * Nicolas Costes,
Hi,
Has anybody encountered the following error:
Fatal error: input in flex scanner failed in /***path***/info on line 1
The code that is most likely causing this is:
?php $my_cat_cust1=index.htm;
?
!-- Some HTML HERE --
?php if(file_exists(/***path***/info/$my_cat_cust1))
Hello,
In addition to Henning Sprang's fine solutions, you can also do the following (given
you use PHP 4);
? $xmp_width = 5;
$xmp_tdcolor = #FF;
$xmp_text = Some text;
echo EOF
TABLE WIDTH={$xmp_width}
TRTD COLOR={$xmp_tdcolor}$xmp_text/TD/TR
/TABLE
EOF;
?
Note that
There's no need to 'pass' any variables.
HINT: pretend the include() command is being replaced with the code in your include
file,
this means that whatever variables are set/available at that point will also be
available in the include.
On Mon, 28 Jan 2002 18:54:02 -0800, Evansville Scene
Hi all,
I've got a regex that's working fine, apart from one little problem.
$tags = array (script,
!--!\[CDATA\[,
\]\]--);
foreach ($tags as $currentTag)
if (preg_match (/^\/. $currentTag. /, $content))
// do something
(checking to see if anything in the
I have got a page that i am loading sessions on with the following code:
session_start();
$HTTP_SESSION_VARS['sess_id']=$PHPSESSID;
Except that it will not assign an actual value until i hit refresh on my
browser. Any ideas for a fix?
Thanks in advance,
Ryan Kelley
--
PHP General Mailing
Hello there, I need some help.
I have to do a technical report(about 2200 words) comparing PHP to ASP. I
have already decided to make PHP the winner becasue it is superior. But I
am kinda stumped on what areas to compare the two.
If you could help me out in suggesting some possible areas of
Database is a good point. PHP has native support for several, while I
believe ASP do not (through ODBC).
Modules, and their price. At least I heard in ASP you have to pay for some
of them (well, more than those on PHP).
Typecast? I am not sure if in ASP you have to, I remember I heard
when session_start() is called for a first time, it generates session_id and set a
cookie for the browser. The common name for the
cookie is PHPSESSID. You receive it on the refresh, because after the first load this
cookie is known by the browser. When you hit
the page for a first time, there
Hi all,
I've got a regex that's working fine, apart from one little problem.
$tags = array (script,
!--!\[CDATA\[,
\]\]--);
A quick shot (perhaps I miss the point ;): if you do
$x = \[;
then $x will contain [. If you then do a regex with preg_match(/$x/,
...
If you want the [ to be escaped in the regex you have to double-escape
it:
$x = \ \[; (sorry, the two \ should be together without a space but my
stupid mail-app converts the string thinking it's an network address)
so $x will contain \[ as you want ( the first backslash escapes the
second).
Hi Peter,
Does anyone have a link to a good reference on how to insert a binary file
(zip file) into MSSQL?
why do you want to store binary file in DB?
It's more efficient to store the file in filesystem, and in DB only
store the path of the file.
Unless you really have a good reason and left
If you want the [ to be escaped in the regex you have to double-escape
it:
$x = \ \[; (sorry, the two \ should be together without a space but my
stupid mail-app converts the string thinking it's an network address)
so $x will contain \[ as you want ( the first backslash escapes the
Hi,
I am opening a socket on a remote server(weblogic) and sending my username
and psswd to authentify them...
I figure my php is opening the socket as no errors r being trapped.. However
the response is a blank page instead of an xml formatted response...why???
how can i rectify this??
Well, I personally prefer PHP over ASP because better support from
webhosting companies, but ASP has some good points.
This is especially the case if you can setup the complete hosting
environment yourself and have some money to spend.
First of all databases. PHP has support for a limited but
I am a newbie to programming, ASP is easier to learn? I heard PHP was
At 04:48 PM 1/9/2002 +0100, Robert Klinkenberg wrote:
Well, I personally prefer PHP over ASP because better support from
webhosting companies, but ASP has some good points.
This is especially the case if you can setup the
PHPSESSID will not be set on the first request. On the first request to a
page with session_start(), PHP creates a session and sends a cookie named
PHPSESSID to the browser. When the browser returns the cookie in the next
request, PHPSESSID gets put into $HTTP_COOKIE_VARS[] array, and if
Hi
I am trying to keep information that is input via a form. This form may be
used 1, 2, 3, 4 or more times for each entry. Meaning that the form will be
filled out and added then another of the same form filled our and so on
until the person clicks the the complete button.
Can I hold this info
As far as I can see (notice: I'm not a regex-king ;) the regex seems
correct
to me. The only thing I'm wondering about is the /^ (second last line
of
the citation). Together with your expression in the array it results in
preg_match(/\/!\[CDATA\[/, ...)
I'm wondering if that (/![CDATA...) is
Hi,
I am opening a socket on a remote server(weblogic) and sending my username
and psswd to authentify them...
I figure my php is opening the socket as no errors r being trapped.. However
the response is a blank page instead of an xml formatted response...why???
how can i rectify this??
Both ways. I would use session if the form(s) must be completed at once.
If someone can save forms 1 and 2 and another day return to complete the
remaining steps, then a database might be better.
Also, if you use a database to hold temp info that must fly between the
forms, you would have to
Probably here :
$header .= User-Agent: PHP/4.0.6 (Apache/1.3.20)\r\n\r\n;
you have two new lines instead of one.
HTH
Regards,
Andrey Hristov
- Original Message -
From: Sandeep Murphy [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 09, 2002 6:23 PM
Subject: [PHP]
Plus, isn't your request content-type: application/x-www-form-urlencoded?
And another thing, since you send all the headers HTTP 1.1 compatible, why don't
you use it instead of 1.0?
Bogdan
Sandeep Murphy wrote:
Hi,
I am opening a socket on a remote server(weblogic) and sending my username
Well, I don't know ASP, but I fonud that learning PHP was really easy when
you already know C, C++ And no variables types, pointer, etc ... is
great !!!
Le Mercredi 9 Janvier 2002 17:01, Dean Ouellette a écrit :
I am a newbie to programming, ASP is easier to learn? I heard PHP was
At
somebody can help me, does not obtain to discover because this error with postgres
happens?
Warning: PostgresSQL query failed: ERROR: pollolitoral_cidade: Permission denied. in
../php3/pg_functions.php3 on line 172
Thanks,
Aurélio Sabino
I don't want to start a war, but last time I looked PHP had native support
for every database I'd ever heard of including Oracle, SQLServer, etc...
Just don't want the guy doing the report that php is database limited...
On Wed, 9 Jan 2002, Robert Klinkenberg wrote:
Well, I personally prefer
suggestion would be to post a snippet of the relavent code... say lines 160 to
175 or something like that. Troubleshooting across the etherial plane is
expensive.
Dave
-Original Message-
From: aurelio [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 09, 2002 12:48 PM
To: [EMAIL
try rawurlencode() and rawurldecode()
Salu2,
V
-Mensaje original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Enviado el: jueves 27 de diciembre de 2001 3:46
Para: [EMAIL PROTECTED]
Asunto: [PHP] problems with urlencoding
Hi,
I try to send the content of a variable about
Philip Hallstrom wrote:
I don't want to start a war, but last time I looked PHP had native support
for every database I'd ever heard of including Oracle, SQLServer, etc...
Just don't want the guy doing the report that php is database limited...
Native support can mean different things,
As far as I know all arrays in php are hash arrays. Your serial array is
actually a hash array with numeric keys, so in your example using numeric
keys and having to loop through them has nothing going for it.
I'm sure someone will tell me if I'm wrong.
Tim
www.chessish.com
I agree about not starting a war between PHP and ASP. We already have one
going on that is out of hand between Linux and Windows :-)
I do think it is up to how you view things. When I think of support being
native I think of that meaning that something can perform a task using
only its own
You should probably consider ASP.NET. Visual Studio .NET is out in early Feb
and ASP.NET makes an enormous leap in functionality. It should almost be
considered a new web development environment.
It allows development in any CLR compliant language (straight VB.NET, C#,
managed C++ etc..)
It
More about this here:
http://www.php.net/manual/en/function.func-get-arg.php
Robert Zwink
http://www.zwink.net/daid.php
-Original Message-
From: Chris Hall [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 08, 2002 9:48 PM
To: [EMAIL PROTECTED]
Subject: [PHP] functions...
function
Off course PHP does support Oracle and the like. What I wanted to say is
that PHP support most common databases, but if your company needs support
for some strange database you can't access it very fast and easily
(especially when you use PHP on Unix). On the other hand with ASP you can
access
Hi
Something I dont think anyone's mentioned yet is that PHP is also great for
running stuff from the command line - e.g. for background scripts for a site
or mailing scripts or whatever...
In case that doesnt sound so useful, it measn you can use all the same
libraries for the online site
Hi There,
Okay, I have a server that allows a couple hundred virtual hosts that we
have run websites as we are a hosting company. Recently one of our
customers decided to spawn lynx through PHP. The process was running at
80% cpu for over 400 minutes, and it appears that Apache's RLimitCPU
on 1/9/02 8:17 AM, Henning Sprang at [EMAIL PROTECTED] appended the
following bits to my mbox:
just another one - but i am too out of practice with html standarts to
know if this is compliant ( a browser showing a result doesn't
neccessary mean it's standarts compliant!)
FYI:
By default,
Well being a former ASP programmer and a current PHP programmer I think
I can help you there.
The key point is ease of use. PHP provides far more functionality than
ASP (try finding a function to print out the date in ASP.. yeah, I
thought so), while at the same time giving you access to
Just a quick question -- I'm temporarily unsubbed so if anyone could CC
me directly that would be great.
I'm trying to write my code in accordance with the PHP 4.1.0 security
advisory -- that is, I want to use the $_GET and $_POST arrays when
grabbing variables passed with GET and POST forms.
I'm having a problem with a HTML form. When it gets submitted, I keep
getting an undefined variable error message. And a blank page (aside from
a 'Hi' written on it...). I don't think its a problem with my install of
PHP as other PHP code is running fine, but can't get it to print out this
In looking into this more, while I can put stuff there, PHP doesn't pick
it up (or perhaps the browser doesn't send it) unless you do something
like this:
if ( !isset($PHP_AUTH_USER) ) {
Header(WWW-Authenticate: Basic realm=\Foo\);
Header(HTTP/1.0 401 Unauthorized);
exit;
}
But in
Sorry,
corrected on PHP only after 15 being reported.. should read:
corrected on PHP only after 15 minutes being reported..
That was a good thing I saw. I still remember, some exec() problems with
slashes and some letters on a specific plataform. Stunned me how fast the
bug was solved.
ASP function to print out the date:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/vsfctformatdatetime.asp
--- START SAMPLE CODE ---
Function GetCurrentDate
' FormatDateTime formats Date in long date.
GetCurrentDate = FormatDateTime(Date, 1)
End Function
Hi there,
I'm really really new to both PHP and MySQL, so this is probably going to
turn out to be an easy fix.
The basis is this: I have a MySQL database with two tables in it. I'm
trying to update 1 of the fields (aqfl_team) in the first table
(nfl_players) with a value from a field
The problem is here:
$nfl_player_id = mysql_query(SELECT player_id FROM nfl_players WHERE
first_name='$aqfl_player_first' AND last_name='$aqfl_player_last' AND
position='$aqfl_player_position' AND nfl_team='$aqfl_player_nfl_team');
mysql_query does not return the ID, but the handle of the
What I have is a text file that has data in the following format:
username, numbers
The quotation markes can't be helped...the script I use to generate
the file adds them automatically. (Hummingbird Basic, one of the
worst languages in the history of mankind.)
What I've been trying to do is
Databases - although PHP 'supports' many databases natively, the support
is in the form of 3rd party libraries with PHP wrapper functions.
Nothing inherently wrong with that, but the current method dictates that
to use oracle you use oci_ functions, for mysql you use mysql_
functions,
I had the same problem happen to me a couple of days ago.
A form that has been working has stopped working all of a sudden - all
fields would be submitting as blank (undefined).
Unfortunately, I was not able figure out what the problem was :-(
I got it down to the line that was causing my form
I don't like this line:
input type=submit name=submit value=Submit /
change it:
input type=submit name=submit value=Submit
to my mind it could help ;
PK html
PK head
PK titleMy Form/title
PK /head
PK body
PK form action=test2.php method=GET
PK My name is:
PK br input
while (!feof ($fp)) {
$line = fgets($fp, 4096);
$data = explode(,, str_replace(\, , $line)); //using
str_replace to get rid of quote marks
//following line to see if data is correct
echo $data[0]. .$data[1].br;
$theArray[$data[0]]=$data[1];
}
fclose($fp);
Rasmus Lerdorf wrote:
Databases - although PHP 'supports' many databases natively, the support
is in the form of 3rd party libraries with PHP wrapper functions.
Nothing inherently wrong with that, but the current method dictates that
to use oracle you use oci_ functions, for mysql you use
The presence of the final / in the line makes the page XHTML compliant.
It should be left in, and it has no effect whatsoever on the
functionality of the input tag. In fact, it should be included in the
input type=text tag as well.
I can't find a darn thing wrong with your script. You
I actually was going to mention it, because I know it's being worked on
- last I read it was 'beta' or something similar, and only supported a
handful. My understanding was that even it was still a wrapper system,
but it's definitely a welcome (huge) step in the right direction, in our
Also, make sure you get rid of the space at the beginning of $data[1] - the
space after the comma gets in there, so either use trim() or just trim the
first character programatically ($data[1]=substr($data[1],1)).
Bogdan
Jamison Roberts wrote:
What I have is a text file that has data in the
Hi,
Under PHP 4.0 getcwd() worked fine. Now my provider changes to PHP 4.1.1 and
now it doesn't work any more. What can i do to get the current directory
(url) now?
thx
Paul Zernik
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
On 7 Feb 2002, at 23:21, Sander Peters wrote:
Hello,
This is my problem:
$today = date(Ymd, mktime(0,0,0, date(m),date(d),date(Y)));
$last_week = date(Ymd, mktime(0,0,0, date(m),date(d)-7,date(Y)));
echo ($today - $last_week); The result is a number like 8876
(20020107-20011231 =
When I run Apache display this error:
[wed Jan 09 15:50:18 2002] [warn] pid file c:/Archivos de programa/apache
group/
apache/logs/httpd.pid overwritten -- Unclean shutdown of previous run?
Cannot find module IP-MIB: At line 0 in none
Cannot find module IF-MIB: At line 0 in none
Cannot
hey folks -
i'm stumped. been working on what i thought would be a simple script to
cycle through users' records and perform a query. But I can't get the loops
right, it seems like only one or two records get updated.
Using MySQL, we have about 2000 students enrolled. each month they take a
Hi list,
I have some images stored in a blob in mysql. I've made this code to output
them to html, but the problem is if there's no image at a given id the page
tooks a long time to load and display the broken image, there's a way to
avoid this, I mean, there's a way to print a message or
I am writing an online store and have setup sessions to run when a user
enters the site they can shop around and browse without logging in. They
only have to login when the want to checkout. But if a user a) closes the
browser or b)leaves the site without buying anything then i need it to empty
Hi,
You can store all shopping cart activites in a cookie until
it is written to your database.
When they login, call the cookie and insert the cookie SC
to the database
--- Ryan Kelley [EMAIL PROTECTED] wrote:
I am writing an online store and have setup sessions to
run when a user
Hi,
If I am not missing anything, you are not sorting
SELECT Month, Score
FROM scores
WHERE Username = '$Username'
Also, the requirement is not three consecutive test in a
month, so I would not break the loop into months.
once you have it ordered it by the date :
while (list($Month,
Hi all,
I'm looking for a PHP Party Invite/RSVP app. I'd like it to be similar to
evite.com. I'm just checking first to see if something exists before I dig
into it myself.
Thanks,
mto
--
Michael O'Neal
Web Producer
-
M A N G O
B O U L D E R
Hi all,
I'm looking for a PHP Party Invite/RSVP app. I'd like it to be similar to
evite.com. I'm just checking first to see if something exists before I dig
into it myself.
Thanks,
mto
--
Michael O'Neal
Web Producer
-
M A N G O
B O U L D E R
go take a look at some of the script archive pages like
http://www.hotscripts.com
I'm sure someone out there has made this already
- Original Message -
From: Michael O'Neal [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 09, 2002 2:56 PM
Subject: [PHP] Party/RSVP
My way around this is using two fallback stages: for one you test
mysql_num_rows() after performing the query. If that's 0, use a default image
placed in the database beforehand. If that also returns a null mysql_num_rows()
then echo an image (probably the same default) from a known location in
Hi... I have an interesting problem I don't know which way to solve. So I'll
shoot it out to you guys and see what you might offer.
I have two databases, say X, and Y:
CREATE TABLE X(
Id int(11) NOT NULL auto_increment,
Dep_Date date,
Return_Date date,
Cat1_Status varchar(100),
Cat2_Status
I forgot the parameter to change in httpd.conf so when the trailing /
is left off, the index.html will be executed. Anyone know the
parameter?
Many thanks
Todd
--
Todd Cary
Ariste Software
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
Hi -
How long can the session ID be? Infinitely long? It seems to
always be 32 characters on my system, but it looks like it's built from
the PID and the time and some other stuff which can change... so I'm
assuming it can too...
Can I safely assume it won't get larger than say 64
On Wed, Jan 09, 2002 at 03:47:16PM -0800, Todd Cary wrote:
:
: I forgot the parameter to change in httpd.conf so when the trailing /
: is left off, the index.html will be executed. Anyone know the
: parameter?
DirectoryIndex index.html index.htm
--
Eugene Lee
[EMAIL PROTECTED]
--
could you change this
$query2 = (SELECT Month, Score FROM scores WHERE Username =
'$Username');
to
$query2 = (SELECT count(*) FROM scores WHERE Username = '$Username' and
Score = 75 and Month in ('January', 'December', 'November', 'October'));
$result2 = mysql_query($query2) or die
If you are querying the Score = 75 how are you ging to
take the Consecutive requirement into the account.
--- Martin Towell [EMAIL PROTECTED] wrote:
could you change this
$query2 = (SELECT Month, Score FROM scores WHERE
Username =
'$Username');
to
$query2 = (SELECT count(*)
i'm converting Brian's php code into sql - he's looking for scores in Oct,
Nov, Dec and Jan, that's what I'm doing in the sql, and the if's all have
if score = 75 which is what I'm doing in the sql too, Brian is getting a
total $tally++ so am I count(*)...
-Original Message-
From:
Hi:
When run Apache display this error:
Cannot find module IP-MIB:At line 0 none
Cannot find module IF-MIB:At line 0 none
Cannot find module TCP-MIB:At line 0 none
Cannot find module UDP-MIB:At line 0 none
Cannot find module SNMPv2-MIB:At line 0 none
Cannot find module SNMPv2-SMI:At line 0 none
It's obviously more effective to do it in MySQL, but you shouldn't have any real
processing problems even if you don't find an appropriate solution using MySQL
exclusively, because you'd have the two arrays ordered by MySQL, so all you'll
have to do would be something like
1 - 100 of 108 matches
Mail list logo