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
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+bug&ie=UTF-8&oe=UTF-8&hl=
en
So
>
> 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 t
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 i
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 Froes
> > 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
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
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
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 "" directive to
hide th
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
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.
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---
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 Messag
You mean something like this:
http://www.astronomy.net/forums/
> -Original Message-
> From: Jimmy Bäckström [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
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 wit
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 com
>
> Hi all.
>
> Can I use PHP as a shell script, like bash? Or this is inviable,
> impossible
> and/or out of question?
>
It is viable and works great. You must have a php binary somewhere from a
default installation of PHP. Usually, this binary is found somewhere like
/usr/local/bin/php.
Then
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
aft
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("([
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
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, t
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
>
>
>
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 som
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
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 th
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
Look for php3.ini file in this directory
-i PHP information
-h This help
John Huggins wrote:
Well, I have compiled a php binary for use as yet another scripting
languageto work along side AWK, Perl, Sh, etc.It works too. I have this
file...#!/usr/local/bin/phpI run it an
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
> 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
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 modi
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 ad
http://httpd.apache.org/docs/mod/core.html#options
The directive:
Options Indexes
must not be defined or you will get a listing of the directory IF there is
no index file.
> -Original Message-
> From: Matt Williams [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 02, 2001 10:17 AM
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
wever, 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, Febru
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
35 matches
Mail list logo