[PHP] How do I produce a random database query for each day or week?

2004-10-01 Thread I.A. Gray
Hi, My brain is working very slowly this morning (maybe that is because of having 5hrs sleep...) Could someone help me with this problem. I would like to show a different CD with information on it, on the home page each week- a kind of 'recording of the week' and I would also like to have on the

[PHP] get_browser and $_SERVER info from an IFRAME

2004-07-14 Thread I.A. Gray
Hi, I have a php webstats script that puts info into a MYSQL database. I include it at the top of each page that I have. I recently put a php built forum (PHPBB) on our website and wanted to include the php script at the top of that. Unfortunately as it already uses sessions, I kept on getting

RE: [PHP] Re: Simple POP3 mailbox checker script

2004-07-14 Thread I.A. Gray
Thanks- I will take a look. But (sigh) my hosting company doesn't have PEAR. Sob, sob... -Original Message- From: Torsten Roehr [mailto:[EMAIL PROTECTED] Sent: 14 July 2004 14:39 To: [EMAIL PROTECTED] Subject: [PHP] Re: Simple POP3 mailbox checker script > Hi all, > Is there are a simp

[PHP] Simple POP3 mailbox checker script

2004-07-14 Thread I.A. Gray
Jason Wong said [With your posting style you successfully torpedoed this useful feature; your posting shows up within an existing thread it has nothing to do with.] Sorry- I didn't realise this happened. Why can't things be easy in life? I have posted this again as a new message. Hope you will

[PHP] Simple POP3 mailbox checker script

2004-07-14 Thread I.A. Gray
Hi all, Is there are a simple way of checking quickly using PHP: 1) How many email messages on a POP3 mailbox 2) How many new email messages on a POP3 mailbox 3) The amount of memory in Kb or Mb used up on the POP3 mail box I want to be able to show these on our customer control p

RE: [PHP] PHP Web Mail

2004-07-05 Thread I.A. Gray
] Sent: 05 July 2004 18:01 To: I.A. Gray; Jose Leon; [EMAIL PROTECTED] Subject: Re: [PHP] PHP Web Mail On Monday 05 July 2004 07:33 am, I.A. Gray wrote: > Thanks- looked at Squirrel Mail. Looks really good, > however we use POP3- I don't think Squirrel Mail > uses POP3 does it? M

RE: [PHP] PHP Web Mail

2004-07-05 Thread I.A. Gray
Thanks- looked at Squirrel Mail. Looks really good, however we use POP3- I don't think Squirrel Mail uses POP3 does it? -Original Message- From: Jose Leon [mailto:[EMAIL PROTECTED] Sent: 05 July 2004 12:09 To: I.A. Gray Cc: [EMAIL PROTECTED] Subject: Re: [PHP] PHP Web Mail

[PHP] PHP Web Mail

2004-07-05 Thread I.A. Gray
Hi everyone, I use UebiMiau for our web mail service, but to be honest I haven't been particularly happy with it. It's ok, but what I find frustrating is that if our customers click the back button on their browser it always gives the 'this page has expired' message. I assume it is using session

RE: [PHP] Re: getting query string from referer website

2004-06-28 Thread I.A. Gray
I think I managed to do it myself- http://search.yahoo.com/search?p=pianist+web+sites+design&ei=UTF-8&fr=fp-ta b-web-t&cop=mss&tab="; if (strpos($referer, "q=") != FALSE) { $query = "q=";} else if (strpos($referer, "p=") != FALSE) { $query = "p=";} $searcharray = explode("&", substr($referer, (st

RE: [PHP] Re: getting query string from referer website

2004-06-28 Thread I.A. Gray
someone visits your page, they visit foo.php (for example), thus your QUERY_STRING will always be blank. I believe you're looking for HTTP_REFERER "I.A. Gray" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, > > When I use the $_SERVER to

[PHP] getting query string from referer website

2004-06-28 Thread I.A. Gray
Hi all, When I use the $_SERVER to get a query string it doesn't ever seem to return me anything: $queryy = $_SERVER['QUERY_STRING']; In my webstats script, 790 are blank and 2 give the value of "loc=uk" and "currentID=6" - not very satisfactuary! Why is this happening? Could I get the search

[PHP] getting query string from referer website

2004-06-28 Thread I.A. Gray
Hi all, When I use the $_SERVER to get a query string it doesn't ever seem to return me anything: $queryy = $_SERVER['QUERY_STRING']; In my webstats script, 790 are blank and 2 give the value of "loc=uk" and "currentID=6" - not very satisfactuary! Why is this happening? Could I get the search

[PHP] Running a PHP script on an automated regular schedule

2004-06-10 Thread I.A. Gray
Hi. I am wanting to use a PHP script to check on an hourly/daily basis on a few things- ie links on my sites, whether the sites are up and running and also to send an e-mail to me. I know how to do this using PHP but my problem is how to have this running 24/7. I can't really have this on a web

RE: [PHP] Re: Changing variable names in a while loop

2004-05-28 Thread I.A. Gray
tno' . $countything; etc... as I have about 8 variables to change? Best wishes, Ian Gray -Original Message- From: Torsten Roehr [mailto:[EMAIL PROTECTED] Sent: 28 May 2004 12:30 To: [EMAIL PROTECTED] Subject: [PHP] Re: Changing variable names in a while loop "I.A. Gray&qu

[PHP] Changing variable names in a while loop

2004-05-28 Thread I.A. Gray
Hi all, Easy question (I hope). My brain seems not be working today, so could someone help me with this one? I have a while loop outputting part of an html form which inputs track information for CDs: $countything = 1; while ($countything !=31) { echo " $countything.

[PHP] Finding Screen Size

2004-04-19 Thread I.A. Gray
Hello. I know it's easy to find the screen res of a user from javascript- but I want to let my PHP script know what the resolution is. Is this possible? I would like the easiest way possible- I'd rather not resort to sessions/cookies. Is there a way to make a variable available to PHP? I find t

[PHP] $_GET, expressions and conditional statements

2004-03-11 Thread I.A. Gray
Hi everyone, I know this is probably really simple, but I am not very good at expressions and conditional statements. I am wanting to show a list from a MYSQL database. I am using the URL to store the variables that control the output. The variable $ORDER can be set to ASC (Ascending), DESC (De