Re: [PHP] Gracefully dealing with Cookies OFF

2003-06-04 Thread John Huggins
On Wed, 04 Jun 2003 03:08:00 -0400, Monty wrote:

I've decided to require that members for a site need to have cookies enabled
in their browsers to sign-up and use the site. Is there a graceful way to
deal with this when users who have cookies off try to sign-up or log-in to
the site? 

You can lead them to a page where you politly suggest they turn on their cookies just 
for your site and why.

I would suggest using cookies only for the convenience of having their login 
information survive from session to session  and use PHP 
Sessions for management of a particular visit.

That said, I admit to having a cookie only site and have had absolutly no problems 
with my users figuring out they must have cookies 
enabled.  However, I intend to add PHP Sessions to this site for those who like to log 
out after every session.  Most like having their login 
information remembered via cookies.



Thanks,

Monty


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: Cookies

2002-07-26 Thread John Huggins

Thanks for responding.  It turns out this is a known bug in 4.2.2 along with
Apache 2.x.x according to the developers.  The CVS snapshots seem to work,
but I have moved back to Apache 1.3.x from the 2.x.x stuff.

http://groups.google.com/groups?q=php+4.2.2+cookie+bugie=UTF-8oe=UTF-8hl=
en


So watch out for 4.2.2 if you use Apache 2.x.x.  It seems to be okay with
Apache 1.3.26.

John

 -Original Message-
 From: Richard Lynch [mailto:[EMAIL PROTECTED]]
 Sent: Friday, July 26, 2002 12:33 PM
 To: John S. Huggins
 Cc: [EMAIL PROTECTED]
 Subject: [PHP] Re: Cookies


 
 Say it is not so.
 
 I hear the PHP 4.2.2 will only set the last cookie delivered by a browser
 to a variable in the PHP environment.
 
 Is this true?

 Huh?

 Do you mean last cookie of the same NAME maybe?

 Because that's probably quite likely, and within 'spec' for the
 Cookie Spec.

 They will all be in an array $_COOKIE['foo'] rather than as a
 global $foo by
 default -- You can change that in php.ini if you don't care about
 security,
 which is a Bad Idea, but might be what you have to do until you convert...

 --
 Like Music?  http://l-i-e.com/artists.htm
 I'm looking for a PRO QUALITY two-input sound card supported by Linux (any
 major distro).  Need to record live events (mixed already) to stereo
 CD-quality.  Soundcard Recommendations?
 Software to handle the recording? Don't need fancy mixer stuff.  Zero (0)
 post-production time.  Just raw PCM/WAV/AIFF 16+ bit, 44.1KHz, Stereo
 audio-to-disk.

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Congrats to Rasmus?

2002-03-07 Thread John Huggins


 
 http://www.phpdeveloper.org/
 
 Well, everyone's favorite PHP developer multiplied last night - Rasmus 
 Lerdorf now has a son (9.0lbs, 19.25in. - a big boy) was born at 13:26 
 PDT on Wednesday March 6, 2002. If you'd like to see some pics from the 
 family, check out this page - or to send congrats, email 
 [EMAIL PROTECTED]

9 pounds!!  Wow.  Forget Dad, hats off to the Mom.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] It doesn't cost you anything, why not try it!

2001-11-13 Thread John Huggins

Well, well.  They got around the USMail fraud problem so this now only
violates several dozen laws.

 -Original Message-
 From: Saint [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, November 13, 2001 1:24 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] It doesn't cost you anything, why not try it!


   You will find the Legal Info at the bottom
 

 RE: PayPal Account

 This is something that I wouldn't normally even look at, except
 that, I read
 an article in the Wall Street Journal about PayPal and x.com.

 There have been other articles written about these companies in other well
 recognized journals. Because I'm a member of PayPal, I knew that this was
 real and would work.

 If you need to make a few thousand dollars REALLY FAST, then please
 take a
 moment to read this simple program I'm sharing with you.

 THIS IS THE FASTEST, EASIEST PROGRAM YOU WILL EVER
 DO!!!




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] PHP 4.0.5 module causes Apache child processes to segfault...

2001-05-02 Thread John Huggins

If I were you I would let the PHP guys figure this out.  I am sure they read
messages here so stick with 4.04p11 and live on.  I was just about to
download 4.0.5, but I want your issue to be addressed before I waste my time
with a recompile.

John

 -Original Message-
 From: Darron Froese [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 02, 2001 12:04 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] PHP 4.0.5 module causes Apache child processes to
 segfault...


 I compiled and installed PHP 4.0.5 onto our development server (Mandrake
 Linux 7.1 w/kernel 2.2.17) today and tried to access one of our php
 intensive sites on it - most of the pages wouldn't respond.

 This is how 4.0.5 was compiled:

 ./configure \
 --with-apxs=/usr/local/apache_1.3.19/bin/apxs \
 --with-mysql=/usr/local/mysql \
 --enable-ftp \
 --with-curl \
 --with-zlib \
 --with-pspell \
 --with-ldap \
 --with-pdflib \
 --with-imap=/usr/local/src/imap-4.5 \
 --with-zlib-dir=/usr/lib \
 --with-gd \
 --with-ttf \
 --with-t1lib \
 --with-xml \
 --with-swf=/usr/local \
 --with-java=/usr/local/jdk \
 --with-gettext \
 --with-mcrypt \
 --with-mhash \
 --enable-sockets \
 --enable-calendar \
 --enable-trans-sid \
 --enable-track-vars=yes \
 --enable-magic-quotes=yes

 Looking at the logs I saw a few of these - this wasn't happening with
 4.0.4pl1:

 [Tue May  1 20:49:21 2001] [notice] child pid 19423 exit signal
 Segmentation
 fault (11)
 [Tue May  1 20:51:17 2001] [notice] caught SIGTERM, shutting down
 [Tue May  1 20:51:45 2001] [notice] Apache configured -- resuming normal
 operations
 [Tue May  1 20:57:41 2001] [warn] child process 19677 still did not exit,
 sending a SIGTERM
 [Tue May  1 20:57:45 2001] [error] child process 19677 still did not exit,
 sending a SIGKILL
 [Tue May  1 20:57:46 2001] [notice] caught SIGTERM, shutting down
 [Tue May  1 20:58:08 2001] [notice] Apache configured -- resuming normal
 operations
 [Tue May  1 20:59:11 2001] [notice] child pid 20039 exit signal
 Segmentation
 fault (11)
 [Tue May  1 21:00:54 2001] [notice] child pid 20290 exit signal
 Segmentation
 fault (11)

 I've downgraded to 4.0.4pl1 and all is well again.

 I've tried to generate a core dump file (Apache also has write access to a
 folder specified with the CoreDumpDirectory directive.) using the
 instructions here but have been unsuccessful:

 http://www.php.net/bugs-generating-backtrace.php

 I can't run httpd -X as suggested on that page because my version
 of Apache
 (1.3.19) doesn't support it.

 What can I do to get more debugging information so that this can
 get looked
 at?
 --
 darron froese
 new media technologist
 sutton javelin corporate communications
 t  403.716.0351
 f  403.265.7662
 e  [EMAIL PROTECTED]




 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] rounding up

2001-04-25 Thread John Huggins


  Is there a PHP command to round up to the nearest integer?

 www.php.net/ceil
 www.php.net/round


These are the correct functions, but take great care in reading the user
contributed notes in the round function concerning x.5 rounding randomness.
Sometimes this can get you.

If you want to be sure 4.5 always rounds to 5, add a fudge factor smaller
than your precision, but larger than the precision of the computer.

$value = 4.5;
$fudge = 0.001;

round($value) sometimes returns 5
round($value) sometimes returns 4

$fudgedvalue = $value + $fudge;

round($fudgedvalue) = 5

This comes into play often when you do things like split a long list of
items into two columns on your web page and you use PHP (or any language) to
figure out where to end the first column and start the second.

It should be noted that this is not a PHP issue.  It affects any language
which relies on the hardware to compute.

Fun stuff eh?

John


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Site Structure

2001-04-24 Thread John Huggins

This guy is proof that PHP programmers are a functional clever bunch and PHP
does not box us in with too many limits.

 -Original Message-
 From: Matthew M. Boulter [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 24, 2001 9:16 AM
 To: Steve Werby; Toby Miller; indrek siitan
 Cc: PHP General Mailing List
 Subject: RE: [PHP] Site Structure



 G'day all, I thought I'd mention how I developed my last project and got
 around some of these problems, bear with me it can be quite complicated.
 ==
 ==
 ===
 In the development we had to develop on many different servers, mine at
 home, my partners at his place then two different ones at work. Here's the
 site structure (Red Hat 7):

 /var/www/api/ -- all my code outside of the web tree
config/-- where all the API's config
 files go (*.cfg)
0.1/   -- version 0.1 of my API
modules/   -- all of my 0.1 version modules (*.lib)
0.2/   -- version 0.2 of my API
modules/   -- all of my 0.2 version modules (*.lib)
 /var/www/html/v1/ -- version 1 of the site (/html is
 Red Hat 7's name for
 /htdocs)
 /var/www/html/v2/ -- version 2   
 ---

 [in PHP.INI]  include_path =
 .:/var/www/api/config:/var/www/api/modules

 In each /HTML/?? directory there is a file - api_connect.cfg

 [in api_connect.cfg]  include 'api01.cfg'

 This basically says use version 0.1 of the API for this website.
 This way as
 I experiment and change my source code I can make an entire new version
 branch of my source code (i.e., make /var/www/api/0.3/modules) and change
 the 'api_connect.cfg' file to suit.

 * How to access in a PHP and/or HTML-hybrid file?
   Easy! ?php include 'api_connect.cfg'; ? at the top of your document.

 --For-example--
 My index file has a login form, therefore my index.html has the code
 ?php include 'api_connect.cfg';
   // do other processing here, since that code sets up my API
 connection I
 can use all my objects
   $dbase = new ApiDbaseConn(); //etc, etc, etc
 ?
 HTML
 !-- blah, blah, blah --
 /HTML

 The include process would look like:  --I-- Includes
 /var/www/html/v1/index.html   --I--
 /var/www/html/v1/api_connect.cfg   --I--   /var/www/api/config/api01.cfg

   ^
 ** NOTE: This link takes advantage of the /var/www/api/config
 entry in the
 PHP.INI include_path directive **

 ==Now=What??===What=does=API??.CFG=do?
 ==
 ===
 This is where the fun starts ;) Below is a *censored ;)* API04.CFG file:


 [API04.CFG]
 --
 --
 ---
 //--begin-file-guard--
 $included_flag='__API_CONFIG_'.basename(__FILE__);
 if(defined($included_flag)) {return true;} define($included_flag,TRUE);
 //--end-file-guard---

 /*
 **
 ***/
 /*==FRAMEWORK===CONSTANTS=
 ==
 ==*/
 /*
 **
 ***/
 define('API_VERSION', '0.4');

 //==[SITE-DETAILS]
 ==
 
 define('API_DEBUG_ON', 0);//
 0 - off; 1 - on
 define('API_ERROR_ON', 0);//
 0 - off; 1 - on

 $czServerName = 'vandyk';

 switch ($czServerName)
 {
   case 'vandyk':  define('SLASH', '/');
   define('API_PATH', '/var/www/api'.SLASH);

 define('API_DBASE_PRIMARY','***CENSORED***');

 define('API_DBASE_SECONDARY','***CENSORED***');

 define('API_DBASE_DBASENAME','***CENSORED***');

 define('API_DBASE_PASSWORD','***CENSORED***');

 define('API_DBASE_DBASENAME','***CENSORED***');
   $bIsUnix = TRUE;
   break;
   //---

   case 'enki':define('SLASH', '\\');

   define('API_PATH',
 'C:\apache\api'.SLASH);

 define('API_DBASE_PRIMARY','***CENSORED***');

 define('API_DBASE_SECONDARY','***CENSORED***');

 define('API_DBASE_DBASENAME','***CENSORED***');

 define('API_DBASE_PASSWORD','***CENSORED***');

 define('API_DBASE_DBASENAME','***CENSORED***');
   $bIsUnix = FALSE;
   break;
   //---

   case 'fontaine':// you get the idea
   //---

   case 'morillo':
 // you get the idea
   //---
   case 'oakenfold':   // you get the idea
 }


 

RE: [PHP] link variables space problem in netscape

2001-04-24 Thread John Huggins

IE may tolerate it, but you should transpose those spaces into the URL
encoded equiv.  I think this is %20 for a space, but check your hex table to
be sure.

Here is your function to do this.

http://www.php.net/manual/en/function.urlencode.php


IE tolerates a lot of slack programming.  Netscape tells it like it should
be so us it for testing your code along with IE.

John

 -Original Message-
 From: Mark Lo [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 24, 2001 2:23 PM
 To: *PHP mail list
 Subject: [PHP] link variables space problem in netscape


 Hi,

  I am having a problem in link variables in netscape.  etc.
 www.domain.com?xx=1xxx=2=mark loxxxee=polol

 if the above link contains space, then everyting is faded after the space,
 how to over come this problem in netscape.  In IE5, it is okay to
 have space
 in link variables.

 Thank you


 Mark


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Site Structure

2001-04-23 Thread John Huggins

I would suggest putting your includes out of the web tree.

/.../website/htdocs/admin
/.../website/htdocs/images
/.../website/includes

This may be totally inappropriate for now, but is a good habit to get into.

Call the includes with the full pathname.  I know this stinks, but is a good
solution if you define most of your path with a variable.

 -Original Message-
 From: Jordan Elver [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 23, 2001 10:56 AM
 To: PHP General Mailing List
 Subject: [PHP] Site Structure


 Hi,
 I have a site structure like:

 - root
 --- includes
 --- admin
 --- images

 I'm using headers and footers and they are in the includes directory. My
 pages in the root directory include the files like:

 include('includes/header.inc');

 Thats woprks fine, but i want to be able ti use the same headers
 and footers
 in the admin directory but, of course, the paths are going to be wrong.

 How can i get around this?

 Any ideas,

 Jord

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Site Structure

2001-04-23 Thread John Huggins

This is true and I do this in .htaccess or in the main Apache config file
when possible.  However, for those who do not have control over the main
config file, you are at the mercy of the system operator.  They could turn
off looking at your .htaccess files and not have the Files directive to
hide the .inc files and then your code you thought private is not private at
all.

The moral of this is to always assume the worst and put those .inc files
anywhere, but the web tree.  However, do this only if you care about
protecting the contents.

Caveat Emptor

 -Original Message-
 From: Kurth Bemis [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 23, 2001 1:24 PM
 To: Toby Miller; Jordan Elver
 Cc: PHP General Mailing List
 Subject: Re: [PHP] Site Structure


 At 01:12 PM 4/23/2001, Toby Miller wrote:

 personally i deny all access to my .inc files. with this Apache config...

 works really good :-)

 in httpd.conf

 # The following prevents .inc file from being read by web clients

 Files ~ .inc
  Order allow,deny
  Deny from all
 /Files




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Site Searchable function

2001-04-19 Thread John Huggins

You may not like this answer, but before anyone gets too far along with any
site search engine method using PHP, I would suggest a review of something
like http://www.htdig.org/.  It is free, it works fast and searches your
site just like a web browser so what it indexes is what your viewers see.

Here are some other references:

http://www.phpbuilder.com/forum/archives/1/2000/10/1/104324

http://www.phpbuilder.com/forum/archives/1/2000/9/1/103222


I use htdig with great success and index my site each morning so all new
forum posts are captured for use during the day.

John

 -Original Message-
 From: Kevin A Williams [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 19, 2001 1:11 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Site Searchable function


 Hi,

 I was wondering whether anyone could direct me in the direction
 of creating a search function like the one on php.net?

 I have tried looking rather fruitlessly to implement a system,
 would one possible implementation be to use reference files for
 the information and then use string matching to analyse the
 information, or search the source .php files (although security
 issues of revealing scripts).

 Thanks in advance




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] How to send e-mail using PHP with the sender's address is my company's e-mail ??

2001-03-30 Thread John Huggins

You can always add a "From: [EMAIL PROTECTED]" to the fourth field
which includes additional email headers.

However, the real solution is for your provider to fix their setup to change
the address to a proper one as the mail moves through and leaves their
system.

John

 -Original Message-
 From: Bassv [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 30, 2001 3:58 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] How to send e-mail using PHP with the sender's address is
 my company's e-mail ??


 Hi ,

 My copmany have a website and is hosted on a web server of some
 web hosting
 company .
 I want to use PHP to send e-mail on that server .
 I use

 $result = mail("[EMAIL PROTECTED]" , "E-mail Test" , "this e-mail is
 sent by php")
 ;

 to do it .

 But when I receive the e-mail , the SENDER 's address is the
 server's domain
 name !
 such as '[EMAIL PROTECTED]'

 It's a large problem if I send a e-mail to my clients with this cos they
 won't know
 who send the e-mail !!

 how can I send a e-mail with the sender's address is my company's
 e-mail ???
 for exmaple ' [EMAIL PROTECTED] '??

 THX A LOT



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Comparing Times

2001-03-29 Thread John Huggins

You need to convert all the times you are comparing into a number such as
seconds since the Unix epoch (Jan 1, 1970 I think).  Then you can use the
usual programming syntax to do what you want.

Look here for more ideas:

http://www.php.net/manual/en/function.time.php

John

 -Original Message-
 From: Brian C. Doyle [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, March 29, 2001 1:57 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Compairing Times


 Hello All,

 how do I compare 2 times.
 What i want to do is
 $time=date("H:i:s",mktime(0,1,03,0,0,0));
 IF ($time  00:00:35) { echo "Too High"};

 when I do this all i ever get is
 Too High no matter what the value of time is


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Create a Bulletin Board

2001-03-21 Thread John Huggins

You mean something like this:

http://www.astronomy.net/forums/



 -Original Message-
 From: Jimmy Bckstrm [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, March 20, 2001 4:54 PM
 To: PHP General List
 Subject: [PHP] Create a Bulletin Board


 Yo!
 I'm thinking of writing a bulletin board and I wonder about
 threads. I want the board to be built on threads but I don't know
 how to do it. I want it to look something like this:

 subject 1
|
|__ reply1 to 'subject 1'
|   |
|   |__ reply1 to 'reply1 to subject 1'
|   |
|   |__ reply2 to 'reply1 to subject 1'
|
|__ reply2 to 'subject 1'

 This is important to me so I'm thankful for any help I can get!

 //Broder



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Can you recommend an ISP with the following?

2001-03-16 Thread John Huggins

You mention a large desire for a good web based administrator.  I wonder if
there is a version of a web based system administrator available that works
like Cobalt, but can be installed on any hosting setup.  Have you folks
heard of such a thing?  I am aware of Webmin, but am not too impressed with
it yet.

I have toyed with the idea of writing my own.  Jamie, what items do you feel
must be controllable in a web hosting account administration panel?  Yes, we
all know the basics, like email, dns, etc. but a bulleted list would be a
good start at organizing a development effort.

John

 -Original Message-
 From: Jamie Jackson [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 16, 2001 10:45 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Can you recommend an ISP with the following?


 I'm looking to move from an old Web host (stormweb.net) that has
 entirely stopped responding to customer support emails. I liked what
 they had to offer, before they became unresponsive, so I'm looking for
 a similar ISP with:

 *PHP4
 *MySQL
 *Telnet access
 *Decent Support
 *Preferably a Cobalt server (or one with a VERY good Web-based
 administrator, most other types of Web administrators I've seen have
 been clunky and a PITA)
 *Pretty Cheap

 I've checked out ISP check, and it would be great if they listed the
 type of Wed-based administrator, but they don't. It's VERY tedious to
 get a demo account, and see that their Web-based administrator is
 junk. I'm used to the very slick administrator found on Cobalt
 servers. I have given up after a half-dozen attempts at other servers.
 I sincerely hope someone can help.

 Thank you very much,
 Jamie

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] CGI Question?

2001-03-14 Thread John Huggins

This has been true since CGI began in the NSCA days.  Any program that can
take input from STDIN and output to STDOUT works as a CGI program.
Languages I have actually used in the CGI bin include, C, C++, AWK, Sh, PHP
and of course Perl.

The C program simply has to deal with the CGI variables coming in on STDIN.
There are probably many C libraries available to help parse this out into an
array or something.

This is actually a very good method if you want the fastest speed possible
form a web application.  Compile the C program statically for the best
speed.

John

 -Original Message-
 From: Dan Pupek [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, March 14, 2001 7:40 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] CGI Question?


 On the latest version of Apache I have heard you can run Compiled
 C binaries
 from the CGI bin. Is this true? If so how does it work?

 --
 Dan Pupek

 On the Web:
 http://www.sunnet.net/dnkp/dan

 Email:
 [EMAIL PROTECTED]



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Date Question

2001-03-08 Thread John Huggins

You might try converting these dates to Unix time and then compare the
numbers as integers.


Let's see, here is a function that converts the data from a MySQL date field
to a Unix timestamp...


  function mysql_to_epoch ($datestr)
  {
list($year,$month,$day,$hour,$minute,$second) =
split("([^0-9])",$datestr);
return date("U",mktime($hour,$minute,$second,$month,$day,$year));
  }


And here is where I use it to calculate the age of the item in the database.

  $epochTime = mysql_to_epoch($messageCreated);
  $currentEpochTime = time();
  $ageInSeconds = $currentEpochTime - $epochTime;


I hope this provides a clue for your application.

John

 -Original Message-
 From: Chris [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, March 08, 2001 12:12 PM
 To: php
 Subject: [PHP] Date Question


 Hi,
 Since there is no Date type in php, is there a way to compare dates?

 Something like:

 if ((3/8/2001)  (3/9/2001)){
// Date is newer
 }

 Thanks,
 Chris



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Date Question

2001-03-08 Thread John Huggins

If it is on a Unix box, it most likely is the Unix time value; It is the
number of seconds since the UNIX Epoch which I believe starts at 0 seconds
in January 1970.  I am not quite sure about that date, but it is close.

It also reveals the problem if you are dealing with dates before 1970 and
after 2^32 seconds after that.

Again, this specifics above may not be totally accurate, but are close
enough to describe the point.

John

 -Original Message-
 From: Jason Jacobs [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, March 08, 2001 12:22 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] Date Question


 Ok, I understand that the epoch is a point in time that's static, but what
 exactly is the epoch?  I've heard it mentioned a lot on the list,
 but I have
 no idea what it really is. :)

 Jason


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] on the list yesterday regarding mysql time

2001-03-07 Thread John Huggins

Forget about the PHP functions and do this:

$query  = "INSERT INTO tablename ";
$query .= "SET field1 = '$field1', ";
$query .= "field2 = '$field2', ";
$query .= "datesubmitted = NOW();

Let MySQL simply do this for you with the NOW() SQL command.

 -Original Message-
 From: Jerry Lake [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, March 07, 2001 5:41 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] on the list yesterday regarding mysql time
 
 
 I know this was on the list yesterday,
 but I for some reason erased it.
 
 I have an online form that I would like
 to have record the time submitted and
 recorded into a MySQL date field, how
 the hell do I use the date and mktime
 functions to make the date compatible
 with the MySQL -00-00 format?
 
 Jerry Lake- [EMAIL PROTECTED]
 Web Designer
 Europa Communications - http://www.europa.com
 Pacifier Online   - http://www.pacifier.com
 
 
 -Original Message-
 From: george [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, March 07, 2001 1:51 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] passing variables again
 
 
 
 not really sure I understand,
 
 but what I want to do is take the HTML generated in step 3 and place it
 between the form tags in the last page where the code is displayed
 
 ie
 
 tdTitle/tdtd mr/stronginput type=radio name=title 
 value=mr checked
 
 mrs/stronginput type=radio name=title value=mrs
 
 Miss/stronginput type=radio name=title
 value=missbr/td/trtdname/tdtdinput type=text
 name=name/td/trtrtdaddress/tdtdinput type=text
 name=address/td/trtdaddress2/tdtdinput type=text
 name=address2/td/trtd valign="top"message/tdtdtextarea
 name="message" cols= rows=/textarea/td/tr
 
 that is the code from step 3 how do I get that to display on the 
 next page.
 
 
 
 TIA
 
 
 george
 
 
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Redirect using PHP to a new browser window.

2001-03-06 Thread John Huggins

List,

I current use something like this to send some one who clicks on my links to
the actual web page.


  $row = @mysql_fetch_array($result);

  $url = $row["url"];
  $ID  = $row["ID"];

  header("Location: $url");
  header("");


And then the hitcounter for that particular ID is incremented, thus the
reason for this whole script.

This works great.  However, I would like the option to open up the target in
a new window like when you specify "target="somewindowname" in the a
href... tag.

How can I accomplish the same thing with the header or ... sigh ... can I
not do this.


John


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Can't connect php to mysql on linux

2001-03-01 Thread John Huggins

Also, consider getting PHP 4 on your system.  PHP 3 is old hat.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, February 24, 2001 11:33 AM
 To: George Alexander; [EMAIL PROTECTED]
 Subject: Re: [PHP] Can't connect php to mysql on linux
 
 
 Addressed to: "George  Alexander" [EMAIL PROTECTED]
   [EMAIL PROTECTED]
 
 ** Reply to note from "George  Alexander" 
 [EMAIL PROTECTED] 24 Feb 2001 05:40:59 -

  Hi,

  I working on Redhat Linux 6.1 and I've installed 
  MySQL-3.23.33-1.i386.rpm and MySQL-client-3.23.33-1.i386.rpm.
  MySql is working fine. I've even created a database also using 
  MySqlAdmin.
  Regarding Php I've installed php-3.0.18-1.6.x.i386.rpm and as for 
  Apache : apache-1.3.14-2.6.2.i386.rpm.
  I've even installed php-mysql-3.0.16-1.i386.rpm and 
  mod-php3-3.0.12-2.i386.rpm.

  My problem is I can't connect PHP to Mysql Db using the 
  mysyql_connect("localhost","root","mypassword") command.
 
 
 mypassword is the same password you used for mysqladmin, and the command
 line interpreter for the root user, right?
 
 
 Try this command and see what it returns.  If the error message doesn't
 give you a good idea what is wrong, please post again, including the
 error message you receive.
 
 
 mysql_connect( "localhost", "root", "mypassword" ) or
die( "Unable to connectBR" . mysql_error());
 
 
 I suggest you always use this code, along with:
 
 mysql_select_db( "database" ) or
die( "Unable to selectBR" . mysql_error());
 
  in every program you write.  It is almost impossible to troubleshoot
 problems if you don't know what went wrong.
 
 
 
 
 Rick Widmer
 Internet Marketing Specialists
 http://www.developersdesk.com
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Double Click

2001-02-28 Thread John Huggins

If you are lucky and are feeding this form data to a database, you can
create a unique hash field from other fields that would not change from
click 1 to click 2.  Then just make the database treat the hash as a unique
index and it should prevent double entries.  Works for me.

Other advice is to not tell the double clicker that had an error; Just
silently ignore their second request.

 -Original Message-
 From: Manuel Lemos [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 28, 2001 2:55 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] Double Click


 Hello Fabian,

 On 28-Feb-01 03:01:02, you wrote:


 Hi,

 I have a page, and when I have to add a product I use a form,
 many people are
 used to make double click in every task, so when the product is
 sent with a
 double click in the send button, the program send it twice to
 the data base.

 What can I do to prevent this?

 You may want to try this forms generation class that lets you define a
 warning message that shows when the user attempts to submit a form more
 than once.

 http://phpclasses.UpperDesign.com/browse.html/package/1

 Regards,
 Manuel Lemos

 Web Programming Components using PHP Classes.
 Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED]
 --
 E-mail: [EMAIL PROTECTED]
 URL: http://www.mlemos.e-na.net/
 PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
 --


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Cold Fusion vs. PHP

2001-02-28 Thread John Huggins

Try this...

http://www.google.com/search?q=PHP+vs.+ColdFusion

 -Original Message-
 From: Alex Puritche [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 28, 2001 3:15 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Cold Fusion vs. PHP
 
 
 Hi, folks!
 I'll highly appreciate if somebody can send me URL of the page where I
 can read performance comparison of the both techniques, of course if
 somebody has it own experience in such things then I'll get to know it
 with increased attention!
 
 P.S. I'm a bit abashed because of my English. I'm sorry. English isn't
 my native language.
 
 
 
   
 
 -- 
  Regards,
  Alex  mailto:[EMAIL PROTECTED]
 
  May all your Internet Dreams come true!
  http://www.intellinetusa.com/
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Image in a Template

2001-02-13 Thread John Huggins

In my humble opinion, I would place the actual images in your web directory
and put the file names into the database so build your image tags.

Sure the db can store the actual image data, but I really believe that the
filesystem is the better medium for the raw files.

Name the image relating to the product ID to keep the many files organized
and unique.

My two cents.

 -Original Message-
 From: Gary [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 13, 2001 3:25 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Image in a Template


 Hi All,
   I am writing a catalog and shopping cart. Our clients want a image on
 the page for the product. The page is a template generated on the fly. I
 could put the images in the db and call it from there, but I don't like
 doing that. Is there another  way to put the pic on the page?

 TIA
 Gary


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Using a variable in a variable

2001-02-13 Thread John Huggins

Have a look at the $$ syntax as opposed to just $.

 -Original Message-
 From: Brandon Orther [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 13, 2001 4:07 PM
 To: PHP User Group
 Subject: [PHP] Using a variable in a variable


 Hello,

 Is there a way to use a variable in the middle of a variable?

 ## START EXAMPLE ##

 ?

 $test1text = "";
 $test2text = "";
 $test3text = "";

 $count = 3;

 $i = 0;
 do{

 $test$itext = "$i";

 }while($i  $count);

 ?

 ## END EXAMPLE ##


 $test($i)text = "$i";
   ^^--I want this variable to get bigger while the
 loop is going but I can't figure out how to make the $test#text
 variable to
 read it correctly.

 I hope someone can understand what I am saying.

 Thank you,

 
 Brandon Orther
 WebIntellects Design/Development Manager
 [EMAIL PROTECTED]
 800-994-6364
 www.webintellects.com
 


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHP as Scripting Language

2001-02-07 Thread John Huggins


Well, I have compiled a php binary for use as yet another scripting language
to work along side AWK, Perl, Sh, etc.

It works too.  I have this file...


#!/usr/local/bin/php
?
print("Hello World\n");
?


I run it and get..




host:~/projects/PHPScripts # ./test.php
Content-type: text/html

Hello World



Great.  Now how do I get rid of the Content-type line?  I have searched the
docs with little clues.

Thanks for your help.



***
John Huggins

Transmitter Location Systems, LLC
14120 Parke Long Court, 103
Chantilly, Virginia 20151
703-227-8435
703-968-8808 fax
[EMAIL PROTECTED]
http://www.tls2000.com/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] The meaning of myurl.myurl2.com

2001-02-06 Thread John Huggins


 What is the meaning of a URL that has two periods in it?  For example

 http://www.myloc.aristesoftware.com

 Where does that take the sufer relative to the root of
 aristesoftware.com?

 Todd

Somewhere the above host name resolves to an IP address.  It is just a
different host.

In the world of domain names , arietesoftware is a subnet of ".com" and
"myloc" is a subnet of "aristesoftware.com" with "www" finally being a host
in the subnet "myloc.aristesoftware.com."

Also,

com= root domain
aristesoftware = 2nd level domain
myloc  = 3rd level domain
www= host in the 3rd level domain

This could go on forever.

John


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] how to specify the sender email address in the mail() function?

2001-02-02 Thread John Huggins

You specify that in the additional headers field.

http://www.php.net/manual/en/function.mail.php

John

 -Original Message-
 From: david klein [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 02, 2001 2:25 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] how to specify the sender email address in the mail()
 function?
 
 
 It seems that mail($recipient, $subject, $content) has no place 
 to specify 
 the sender's email address. Does anyone know how to specify the sender's 
 email address?
 
 Thanks,
 David
 _
 Get your FREE download of MSN Explorer at http://explorer.msn.com
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Windows Time modification 12/31/1969???

2001-02-02 Thread John Huggins

Not sure, but I think NT may not report the last modified data resulting in
a unixtime of 0 which would be 12/31/1969 I believe.

 -Original Message-
 From: Joe [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 02, 2001 3:14 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Windows Time modification 12/31/1969???


 I'm opening the files in a directory, and trying to find the most
 recent modification date. The problem is that I'm getting the date
 of 12/31/1969 for all my files, and when I try to print out the
 modification

 timestamp from filemtime directly I get nothing.

 If you look at the code you can see. Nothing is printed out at print
 $fileDate.
 It is a windows NT system could this be the problem. Having troubles
 with the UNIX timestamp?

 while (false!=($file = readdir($handle))) { // read all files in dir

   if ($file != "."  $file != "..") { // only if file is not . or ..
   $fileDate = filemtime($file); // get date from file
   $newDate = filemtime($newFile); // get date from newFile

   print $fileDate;

   if ($newDate  $fileDate) { // if file is newer
   $newFile = $file; // replace newFile with
 newer file
   }
   }
 }







 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] 404 error checker

2001-02-01 Thread John Huggins

Ah yes, this seems to stem from the fact the "ErrorDocument 404 /404.php" is
really a kind if redirect.  What's weird about this is if you use it one way
(in the .htaccess) the PHP variables that appear are pre-redirect.  If you
put "Errordocument 404 /404.php" into the httpd.conf the PHP variables are
post-redirect and are just as if you went straight to the 404.php page.  I
am sure I am missing some kind of Apache "point-of-view," but is it working
for most of my URLs now.  Some ancient CGI accesses come in now and again
and they show this problem.

However, thanks for the idea and code.  Even as just a 404 trigger, this is
very useful.  The emails are starting to show just how many old URLs exist
on my servers.

John

 -Original Message-
 From: Institute for Social Ecology [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 01, 2001 2:32 PM
 To: John Huggins
 Cc: [EMAIL PROTECTED]
 Subject: RE: [PHP] 404 error checker


 John,

 I had the same problem, but it was a matter of how I was refering the teh
 404 file in htaccess.  It is working fine for me now.  An example of my
 output is below.  I wish I knew more about appache and htaccess to help
 you out, but I don't.

 michael



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] 404 error checker

2001-02-01 Thread John Huggins

After some experimenting I find this 404.php program only shows the original
missing file when the .htaccess file has the "ErrorDocument 404 /404.php"
phrase.  One might assume that putting this directly into the httpd.conf
file of the Apache server would perform the same thing.  Indeed, the value
of where the link came from does survive, but the value of the missing file
is always 404.php, not the actual missing page.

Strange.


 Jason,

 Thanks for the pointer. Worked like a charm, well almost.  I had to tweak
 my .htaccess file as it was messing up some global variables cause i was
 using absolute URLS to point to my error script.

 Someone else ask to see the script.  You can check it
 at:  http://www.social-ecology.org/404.txt  The top part of the script
 actually does all the funky passing of error info to a selected email, and
 the bottom part is the page that is displayed upon a 404 error.  You'll
 have to mess with your .htaccess so it looks something like this:

 ErrorDocument 404 /404.php

 Thanks again!

 Michael

 On Thu, 1 Feb 2001, Jason Murray wrote:

   I am writing a script that will send me an email every time a 404
   error is returned for an http request.  So far I have the script
   working so that it will email me and inform me of the URL of the
   page that has the offending link by using the HTTP_REFERER
 environment
   variable.  I would also like to find out what the requested
 page URL is.
   I have checked phpinfo() for info on other Apache enviro variables,
   but can't seem to find anything that would work. How can I do this?
   Is it possible?
 
  Sure - $REQUEST_URI is what you're looking for.
 
  Example of its use: http://www.inww.com/typesomecrapinhere :)
 
  Jason
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] PHP Editors... perhaps Ultraedit

2001-01-18 Thread John Huggins

Karl,

I suggest Ultraedit (on the PC) at http://www.ultraedit.com.  I use it along
side Dreamweaver with good results and good organization.  Ultraedit (out of
the box) does not know about PHP; you configure it with one of the several
wordlist files and then you will have syntax highlighting.  I try to use
Dreamweaver to organize and FTP the files back and forth from server to
workstation.  However, I have frequently used the built in FTP Load/Save
ability in Ultraedit; This is a great timesaver.

All of this is besides the point if you already know another editor like
Emacs where finding a PHP mode in that editor will get you going full speed
in less time.

Still, an editor is just an editor so I will suggest at least looking at
Ultraedit.  If you have any problems configuring the wordlist (a tedious
task) please feel free to email me off list and I will help you as best I
can.

Regards.
John


 So what editor is recommended?  I'm a little familiar with Emacs (kinda
 cool, but I'm use to keywords and such being colored - as in Interdev).

 Thanks!



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]