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

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

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

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!

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

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

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

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

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

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

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.

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

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

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

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

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

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) =

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

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

[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,

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

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

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

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

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

[PHP] PHP as Scripting Language

2001-02-07 Thread John Huggins
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-22

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

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

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

RE: [PHP] 404 error checker

2001-02-01 Thread John Huggins
, 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

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

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