Don't forget that people are very good at coming up with easy to read
displays that a computer will have trouble processing. I'll include a
lightly sanitized (so I don't get in trouble at work) example below:
- - - - -
W d y f m S
h 0 o s e
Turn off the short tag option in the PHP ini file, and always use '?php' as
your php start tag. When short tags are enabled, PHP sees the '?' in
'?xml', and assumes it is a start tag.
- Theo
-Original Message-
From: Scott Fletcher [mailto:[EMAIL PROTECTED]]
Sent: Thursday,
If you want to get a warning when you accidentally do an assignment instead
of a comparison ( = instead of == ), get in the habbit of putting the
constant/function FIRST when you're doing a comparison.
For example, using 'while(mysql_fetch_row($result) = $row)' or 'if(5 = $x)'
should give the
Doesn't work for those of us who are on the digest.
- Theo
-Original Message-
From: Kevin Stone [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 09, 2002 4:59 PM
To: Brendan P. Caulfield; PHP
Subject: Re: [PHP] dumb
Thank you brendan my point from the beginning. Outlook users
You know the retail establishment has invested alot of money, what about the
underpaid waiter/checkout person they employ?
What is that waiter doing with your credit card when he/she takes it from
the table for processing?
Is the checkout person have a photographic memory writing down
Think about it for a moment. E-commerce involving properly signed sites is,
at the very least, more secure than handing your credit card to a waiter in
a restauraunt. The waiter can walk off with your card, and come back 2
minutes later with your card. You'll never know if he copied down the
It really should ignore anything in any sort of comment. The whole point of
a comment is that it provides the programmer with information and is ignored
by the compiler/interpreter. If // is supposed to comment until the end of
the line, then by god, it should comment until the end of the line,
If you want to tailor the page to the screen size (generally a bad idea in
the first place), you'd have to do that with client-side code. Otherwise,
when the user resizes their window your 'tailored' content doesn't fit
correctly anymore.
Its generally a better idea to make sure your HTML looks
Does anybody know if they completed the handling of the 'echo shortcut' to
work with all 3 opening tag styles?
(As of 4.0.x, I seem to recall that '?=' and '%=' were equivalent to '?
echo', and '% echo' respectively, but '?php=' wasn't equivalent to '?php
echo'. I also seem to recall some
I've got an include file that provides the basic framework for every page on
my site, and at the bottom of each page, I want to spit out when the page
was last updated. I used $PHP_SELF inside the include file, and got the
include file's path. Is there a variable equivalent to $PHP_SELF that
For the record br/ (which would be the 'normal' xhtml style) is
unrecognized (and therefor ignored) by Netscape 4.x. However, it recognizes
and properly handles br /, which I'm sure is why it is output in that
format. If anybody has seen br/ misbehave, try going back and testing
with br /.
Try a bitwise and (I think the operator is '')...
?php
$bitMask = 16;
$value1 = 24;
$value2 = 36;
?$value1 has bit 5 set? ?php
if($bitMask $value1)
{
//should get here
echo 'true\r\n';
}
else
{
echo 'false\r\n';
}
?$value2 has bit 5 set? ?php
if($bitMask $value1)
{
OK, If I understand correctly, the following scenario would work?
Given: My site is being brought up inside somebody else's (say
about.com)frameset. [We'll call this page about.html]
Given: I want my main page (index.html) to break out of the frames in the
about.html page.
Solution: My main
Pull the plug? :)
-Original Message-
From: Chris Lott [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 19, 2002 1:28 PM
To: Ruben Vermeersch
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Crashing a webserver
I have got the task to down our webserver, to see how stable she is, and
how
Typically, when people talk about 'native' database access, they're
referring to accessing the database using the database's native interface,
not that the language directly supports the database. (i.e.: not limiting
everything to the lowest common denominator). The advantage you get from
The in-between hacker who catches the encoded password would gain the same
access if the JavaScript hashing function wasn't there. However the server
expects the password, he'd have gotten that form of it by sniffing that set
of packets. On the other hand, he wouldn't have your plain-text
I'm looking to add a PHP-based website management tool to a web server I'm
running, so updates can be done remotely without having to open ports for
FTP. Can anybody recommend a good package that's easy to configure?
- Theo
--
PHP General Mailing List (http://www.php.net/)
To
Don't know if you've tried it, but typically, you put square brackets '[]'
around a table or field name that ODBC doesn't like. (i.e.: it has a space
in it, it has a name which is a reserved word in SQL, etc...)
- Theo
-Original Message-
From: Jim [mailto:[EMAIL PROTECTED]]
Sorry for sending this message through the list, but I'm getting mail errors
when I try to send it directly.
- - - - -
Sorry it took so long. The generation scripts aren't very fleshed out,
and neither is the display format, but it's a good solid example of the
basic example. Every main
PHP will do fine. What's the project? I'm a wannabe game developer, and I
had a bit of fun a few months back with randomly generated, but
reproducable, game worlds (in my case it was a star map for a space conquest
type of game). It's a really neat concept, and its how alot of the 'big
world'
I wrote a small script to generate an image file containing a version number
for use in some web apps we are coding at work. The problem is, that with
an up-to-date version of IE, the image shows up and can only be saved as a
BMP. Older versions don't display it, but prompt for download and
For the record:
If you check the HTML spec, you'll discover that SCRIPT tags aren't
allowed within HEAD tags. Most browsers handle them, but YMMV. (Last
time I tested it, Mozilla (aka Netscape 6) didn't even display pages with
scripts in the header because it's invalid html. I couldn't
Try it this way instead (my apologies for any typos, I'm getting ready to
leave work and didn't bother to test it, but it should get the concept
across).
- - - - -
?php
error_reporting(E_ALL);
include("/home/httpd/php/open_db.inc");
// default setting for $sort_term
if ($sort_term == null)
{
Actually, the egg did. Eggs existed LONG before land animals, much less
chickens. Besides, the first chicken hatched from an egg laid by an
almost-chicken.
- Theo
-Original Message-
From: Jerry Lake [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 09, 2001 6:38 PM
To: [EMAIL
A tactic I've been planning to use, but don't know if it actually works or
not, is to disable the button first thing in its onClick so the second click
occurs on a disabled button. Does anybody know if this actually works or
not?
- Theo
-Original Message-
From: John Huggins
I think the subject pretty much says it all. I need help setting up things
on both ends to let a VB app (on Windows, obviously) connect to a PostgreSQL
database on a Linux box.
Any help appreciated.
- Theo
Sorry about cross-posting to the two lists, but I figured it was pertinent
to
26 matches
Mail list logo