On Sun, 30 Oct 2011 17:24:07 -
John Allsopp j...@johnallsopp.co.uk wrote:
Hi
I'm afraid I've fallen a little out of touch with PHP dev, so a stupid
question for you.
I want to write a script that requests a URL and then reads that
website .. I'm interested to map web structures. My
Dont get me wrong, I love programming! But what an absolute pain in the
ass it is when you re-use old code only to discover something less well
made.
You all know about this right?
You go into your homemade library of code to re-use some piece that you
already are using 12 other places in
On Tue, 21 Dec 2010 10:32:21 -0500
Adam Richardson simples...@gmail.com wrote:
1. Turn off magic_quotes_gpc if on, as its use has been deprecated.
2. Use prepared statements.
3. Don't worry about stripping slashes ever again :)
Thank you for a very enlightening answer. I guess I misunderstood
Hi.
In an article about SQL Injection by Chris Shiflett he mentions the
following in a comment: The process of escaping should preserve data,
so it should never be necessary to reverse it. When I'm auditing an
application, things like stripslashes() alert me to design problems.
Now, I'm always
On Tue, 21 Dec 2010 00:32:19 -0500
Paul M Foster pa...@quillandmouse.com wrote:
On Tue, Dec 21, 2010 at 05:31:15AM +0100, Rico Secada wrote:
Hi.
In an article about SQL Injection by Chris Shiflett he mentions the
following in a comment: The process of escaping should preserve
data
Hi.
What can cause that no parse error gets displayed (blank page/no output
at all) even though error reporting is set to -1?
I have run the script through php lint on the console and it comes up
with no errors.
I have run into this problem the last couple of days making debugging a
nightmare.
On Tue, 16 Nov 2010 12:16:25 +0530
Himani Aggarwal incrediblehim...@gmail.com wrote:
Hi Folks, is it possible to install PHP on IIS? If yes, can someone
please guide me on how to go about doing it? Thanks
Now, why would you wanna do something crazy like that?! :)
--
PHP General Mailing
On Wed, 27 Oct 2010 10:52:58 +0200
Jordan Jovanov jovanovj...@gmail.com wrote:
Hello All,
I finished with coding and now I am on the part when need to write
documentation. But I don't know how to write correct documentation.
Does have some rules or standard for writing documentation for
On Mon, 25 Oct 2010 00:26:23 -0700
Tommy Pham tommy...@gmail.com wrote:
-Original Message-
From: Rico Secada [mailto:coolz...@it.dk]
Sent: Sunday, October 24, 2010 9:06 PM
To: php-general@lists.php.net
Subject: [PHP] Best practice for if (!$stmt-execute())
Hi.
I have
On Mon, 25 Oct 2010 22:56:37 -0400
Paul M Foster pa...@quillandmouse.com wrote:
Bear in mind, an error is *never* that a query returned no data or
data the user might consider bad.
This is an important point. When is an error an actual error? When is
it something that *needs* to be logged and
On Thu, 21 Oct 2010 10:55:14 -0400
Paul M Foster pa...@quillandmouse.com wrote:
On Thu, Oct 21, 2010 at 04:05:50AM +0200, Rico Secada wrote:
Hi.
I am working on a small system where I am both trying to avoid code
duplication and at the same time I am trying to keep the
presentation
Hi.
I have been doing like this:
if (!$stmt-execute()) {
return false;
} else {
... some code
return true;
OR
return $foo; // Some int, string, whatever.
}
I am thinking about changing the return false with a:
if (!$stmt-execute()) {
die(DB_ERROR);
This way
Hi.
I am working on a small system where I am both trying to avoid code
duplication and at the same time I am trying to keep the presentation
logic separated from the application logic.
I am using sessions and are avoiding headers already sent problem by
keeping the HTML out of the application.
On Sat, 12 Sep 2009 00:43:50 -0400
Paul M Foster pa...@quillandmouse.com wrote:
(Or maybe I've completely misread what you're trying to do.)
Yes you did, but never mind :)
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hi.
Some time ago I developed a small web application that a bunch of users
has installed.
I have always used the DOCUMENT_ROOT for my includes, but the other day
I installed the application in a subdirectory, and as you've guessed a
lot of the includes didn't work.
I have been reading up on
Hi.
This post has also been posted on the Debian list.
I have two different Debian Etch machines running with the exact same
packages installed, when I use PHP memcached with compression (zlib) it
works at one machine but not the other. No errors are thrown.
I need to know why it is only
On Mon, 24 Nov 2008 15:13:32 -0500
Al [EMAIL PROTECTED] wrote:
Try debug_backtrace()
Thanks for your reply.
I get an empty array:
array(0) { }
Rico Secada wrote:
Hi.
This post has also been posted on the Debian list.
I have two different Debian Etch machines running
17 matches
Mail list logo