I see that you got a lot of responses, but I didn't see anyone using
what I use. I had problems using rand() because it wasn't quite random
enough. The following code is as random as you can get (at least from
what I've seen).
mt_srand ((double) microtime() * 100);
$myrandomnumber = mt_rand
there. Actually, you could more than likely get your
own
server through us for less than $100 dollars a month. If you would rather email me
back,
I can forward the information on to her and find out a price range for what you want.
If
you have any questions, let me know.
-Angela
--
Angela C
ot;Francais"){
header("location: http://www.francais.com");
}else{
show_the_choice_page();
}
?>
I think this would be the best solution. Let me know if anybody comes up with anything
better.
-Angela
--
Angela Curtis
Internet Programmer
Innovative Busines
f the redirecting.
-Angela
Original Message
Subject: Re: PHP and cookies and/or headers
Date: Fri, 16 Feb 2001 08:57:23 -0500
From: Angela <[EMAIL PROTECTED]>
To: Jeremy Gillies <[EMAIL PROTECTED]>,[EMAIL PROTECTED]
On your splash page, instead of having it send the user d
When they click on the tab to change languages, you could have that go back to a page
on
the main site, reset the cookie, and then send it on to the site you want it to go to.
-Angela
Jeremy Gillies wrote:
>
> angela,
>
> this would work if people did not switch back and f
some help. ;)
Hopefully this makes sense. If I need to be clearer, please let me know.
Thanks!
Angela
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thank you for everyone's input. Someone suggested the MySQL list, so I
posted my question there and got the answer I needed.
Regards,
Angela
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At first, I thought about adding a parameter to each URL and parsing
that in the script, but that would get old real fast, and also, I may forget to
add it each time. Is there a way to tell the script to ignore my visits?
Thank you,
Angela
--
PHP General Mailing List (http://www.php.net/)
inst mine? I don't have a static IP.
Thanks,
Angela
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Mar 4, 2013, at 9:56 AM, Ashley Sheridan wrote:
> set a cookie with a long life and check for that, discounting visits when
> either are true
Hi Ash,
I don't know anything about cookies. It sounds complicated to me. Is
there a simple way to set one?
Thanks,
Angela
--
f
> your cookie.
I don't know why, but I can't get cookies to work. Here's a script I'm
calling from my browser:
Test Page
"; ?>
"; ?>
The domain is being displayed but the cookie is not. There's no cookie
in the browser
You're right - I didn't really understand cookies. However, with
everyone's help here, and by searching the web, I got it to work.
Thank you to Tommy, Ash, and David!
Angela
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
;$date_time' WHERE `page` = '$page'";
$result = mysql_query($query) or die ('Error! -- ' . mysql_error());
}
However, I've read where this is not really acceptable. Can someone
help me eliminate the 'else' portion of this if statement?
at of the statement.
Angela
t or I'm asking the wrong question. Here's a complete scriptlet:
Using the supplied data, the result should be "Don't save." Can you
see what's wrong?
Angela
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
statement to return early and
> return often. Its best to exit out of your functions sooner than later.
> Specially if its a large function.
O.K. I just thought there might be a more elegant way of doing it. I
at least got rid of the else statement like you mentioned.
Thanks for your help,
Angela
er to go back and re-enter the correct data, so I'm
at a loss as to why this is happening.
How can I see what's triggering this to happen? I have the following
line in my php.ini:
error_reporting = E_ALL & E_STRICT & E_NOTICE & E_DEPRECATED
Thank you,
y( '820','821','822','823','824', ),
);
?>
> side effects if you don't act carefully with it.
I don't remember where that came from, but for the most part, this
script works perfectly. However, I removed it and will test without it.
Angela
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
breviation in the array, everything is fine, but if someone was
to enter, say 'XX' like I did above or leave it blank, then the error is
produced. I placed an if statement around the foreach loop to test for that
and I'll keep an eye on it.
Thank you for getting me to look at the array again, which led me to
look at the State.
Angela
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lank. I've since given the "Select a State..." choice a
value of 'XX' and I'm now looking for that in the if statement I mentioned
before.
Angela
On Mar 13, 2013, at 9:07 AM, Jim Giner wrote:
> Why not just check if the $state exists as a key of the array $states before
> doing this?
Jim,
Are you thinking about the in_array function?
Angela
How does that differ from if(isset($states[$state]))?
Angela
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
th
array_key_exists, simply because it makes more sense to me in English. ;)
Thanks again to everyone. I got it to work _and_ there are no more
errors!!!
Angela
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ite I work on within only a few seconds of each other. I seriously
doubt they are a customer. ;)
I'd appreciate any insights.
Thank you,
Angela
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
file.
There are a lot of pages that have come up in my search, but nothing
seems to pertain to what I'm trying to do.
Thank you,
Angela
BTW, I know about Piwik and I use that, as well. This is something I'm doing
on my own.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi All
I'm new to this list and I suppose fairly new to PHP - and hope that
this question is in keeping with the type of thing that's usually asked.
I'm trying to dynamically randomise a chunk of HTML that is used on a
page, aka random image, so that each time a client opens the page [or
refresh
will be appreciated.
Thanks
Ange
***
Angela K Hilton
Web & E-Learning Officer
ISD, UMIST
Tel: 0161 306 3109
***
Hamid
works fine - all the code works OK - apart from the seed issue.
A
***
Angela K Hilton
Web & E-Learning Officer
ISD, UMIST
Tel: 0161 306 3109
***
-Original Message-
From: Hamid Hossain [mailto:[EMAIL PROTE
I 'Think' there are also different formats for military bases here and
overseas.
[this is a faint memory from validating post codes in a database some
years ago]
A
*******
Angela K Hilton
Web & E-Learning Officer
ISD, UMIST
Tel:
29 matches
Mail list logo