[PHP] PHP Math Question

2003-12-11 Thread Mike D
to 3 8 is to 4 9 is to 1 10 is to 2 11 is to 3 12 is to 4 13 is to 1 14 is to 2 15 is to 3 16 is to 4 And so on... Is anyone good at math, that can throw me a bone? Thanks y'all, Mike D Mike Dunlop AWN, Inc. // www.awn.com [ e ] [EMAIL PROT

[PHP] fopen >> custom 404 issue

2003-12-10 Thread Mike D
I am trying to read in a particular page to a variable. How do you handle if the page is a 404 and then redirects to a custom error page? Am I supposed to use fsockopen and read headers or ?? Ideally I need to pull the end-result page to search for a string in it. Here's the code $handle = fopen

Re: [PHP] Variables scope question

2003-12-03 Thread Mike D
y an example? > > Martin > >> -Original Message- >> From: Mike D [mailto:[EMAIL PROTECTED] >> Sent: Thursday, 4 December 2003 10:35 AM >> To: PHP General list >> Subject: [PHP] Variables scope question >> >> >> Hello, >>

[PHP] Variables scope question

2003-12-03 Thread Mike D
Hello, I have recently noticed something that I wasn't aware of until now. I have index.php which contains include1.txt and include2.txt. If a variable is set in include1.txt it will *only* have a local scope, even if I declare it GLOBAL. Is this normal or a bug? - MD

[PHP] Count online users question

2003-11-26 Thread Mike D
Hi all, I am trying to figure an accurate way to calculate how many users are viewing a site, at any particular time. This task is very simple except for one part - How do you determine when a person has left the site...apache hasn't served anymore requests from a particular ip for xx minutes ??

[PHP] How do i mod php.ini to use an outside smtp?

2003-10-28 Thread Mike D
php v4.12 on redhat linux 6.2. Is it possible to give a domain or ip instead of a path?? - MD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] form POST file upload mystery

2003-03-04 Thread Mike D
up in the $_FILES array arfter submitting... Array ( [userfile] => Array ( [name] => linker2_0_4.tar [type] => application/x-tar [tmp_name] => /temp/phpFSoKmc [size] => 0 ) ) thanks Mike D

[PHP] include_path doesn't seem to work

2003-02-07 Thread Mike D
ssing something here? Thanks Mike D -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] STDIN question

2002-11-14 Thread Mike D
Thanks again Jason. - MD On Thursday, November 14, 2002, at 12:38 PM, Jason Wong wrote: On Friday 15 November 2002 04:27, Mike D wrote: Thanks for the feedback BigDog and Jason Wong (you guys rock!) That's what I thought as far as the STDIN goes... My host has told me that it would scr

Re: [PHP] STDIN question

2002-11-14 Thread Mike D
2, at 05:18 AM, BigDog wrote: You would have to pass it through the "get" method... You can only pass stdin to the binary... On Thu, 2002-11-14 at 20:05, Mike D wrote: Is it possible to pass STDIN data to a php script via wget or lynx (cuz Apache is not installed in CGI mode, so

[PHP] STDIN question

2002-11-14 Thread Mike D
a DB for a ticketing system. Thanks Mike D -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP apache module question

2002-11-14 Thread Mike D
found nothing. Msytified, Mike D -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Qmail / PHP question

2002-11-13 Thread Mike D
contents of the email to the php script... Thanks in advance! mike D

Re: [PHP] Mail Question

2002-11-13 Thread Mike D
Yes we are using qmail. So all I have to do is create the .qmail-info file and have that point to a php script? - MD On Wednesday, November 13, 2002, at 12:35 PM, Jason Wong wrote: On Thursday 14 November 2002 04:12, Mike D wrote: Does anyone know of a way to achieve the following on linux

Re: [PHP] PHP include dir

2002-11-13 Thread Mike D
in your web document directory HTH On Wed, 2002-11-13 at 19:48, Mike D wrote: How do I find the PHP include dir? I looked in the .ini file but it appears that the include dir directive is commented out, here it is: ; UNIX: "/path1:/path2" ;include_path = ".:/php/includes" Do I nee

[PHP] Mail Question

2002-11-13 Thread Mike D
Does anyone know of a way to achieve the following on linux/apache/qmail/php server > I want to have an email address that when people send a message to, a php script is triggered and the data of the email is extracted and inserted into a DB for use in a ticketing system. I know how to do all

[PHP] PHP include dir

2002-11-13 Thread Mike D
How do I find the PHP include dir? I looked in the .ini file but it appears that the include dir directive is commented out, here it is: ; UNIX: "/path1:/path2" ;include_path = ".:/php/includes" Do I need to uncomment this? Thanks Mike Mike Dunlop Webmaster - AWN, Inc. [E] [EMAIL PROTECTED]