On Jul 8, 2010, at 12:38 PM, David Mehler wrote:
> Hello,
> Got a form that takes in data to enter in to a database. I want to
> make it as secure and as invulnerable to sql injection and other
> attacks as possible. I'm wondering if mysqli_real_escape_string or
> stripslashes should be used or
Hello,
Got a form that takes in data to enter in to a database. I want to
make it as secure and as invulnerable to sql injection and other
attacks as possible. I'm wondering if mysqli_real_escape_string or
stripslashes should be used or if the former does the latter. For
example, I have a name vari
On 8 July 2010 18:55, Gary . wrote:
> On 7/8/10, Marc Guay wrote:
>>> And yes, I'd rather use DOM, but I can't.
>>
>> Could you use this: http://simplehtmldom.sourceforge.net/?
>
> Interesting.
>
> Although I can't use DOM or Tidy (because they're normally built in,
> but TPTB decided to recompile
On Thu, Jul 8, 2010 at 1:00 PM, Ashley Sheridan
wrote:
> On Thu, 2010-07-08 at 09:53 -0700, Michael Calkins wrote:
>
> > I right now have a complete user login and registration system however it
> uses cookies when you login to store information. Is this a bad
> thing?$_COOKIE vs $_SESSION for l
On Thu, Jul 8, 2010 at 1:01 PM, Paul Halliday wrote:
> Is there something that needs to be tweaked or added to get this to
> work? I am trying to connect to server 2008 w/ MS SQL 2008. I can see
> the connections fail in the servers event logs if I take away \domain
> from \domain\username (mixed
On 7/8/10, Nisse Engström wrote:
> On Thu, 8 Jul 2010 17:15:02 +0200, "Gary ." wrote:
>> I'm guessing that those attributes "must" be quoted in XML and
>> "should" be in HTML (but patently aren't)?
>
> For that attribute value, it's a "must" in both cases.
Okay. Please tell L**! :)
--
PHP Ge
On 7/8/10, Marc Guay wrote:
>> And yes, I'd rather use DOM, but I can't.
>
> Could you use this: http://simplehtmldom.sourceforge.net/?
Interesting.
Although I can't use DOM or Tidy (because they're normally built in,
but TPTB decided to recompile PHP and exclude them, and I am not
allowed to rec
On 7/8/10, Richard Quadling wrote:
> On 8 July 2010 16:15, Gary wrote:
>> Okay. At least one of the problems with this so called HTML seems to
>> be that the body tag looks like
>>
>> and xml_parse complains that "> required" on that line (i.e. it is
>> claiming it can't find the end of the tag!).
> -Original Message-
> From: Paul Halliday [mailto:paul.halli...@gmail.com]
> Sent: Thursday, July 08, 2010 10:01 AM
> To: php-general@lists.php.net
> Subject: [PHP] MSSQL failing.
>
> Is there something that needs to be tweaked or added to get this to work?
I
> am trying to connect to ser
On Jul 8, 2010, at 10:09 AM, Ashley Sheridan wrote:
thanks Ash,
I figure it out. I was not entering the full year.
date('y-m-d',strtotime($fval))
needed to be
date('o-m-d',strtotime($fval))
Duh ;-)
Thanks,
Don
On Wed, 2010-07-07 at 13:28 -0700, Don Wieland wrote:
Hello all,
I am proc
On Wed, 2010-07-07 at 13:28 -0700, Don Wieland wrote:
> Hello all,
>
> I am processing an array to build an INSERT string in PHP. The code
> below I build an a separate array for the TARGET fields and the VALUES.
>
> I am trying to trap for a NULL ENTRY in a Date Input Field. Date
> fields a
On Thu, 2010-07-08 at 09:53 -0700, Michael Calkins wrote:
> I right now have a complete user login and registration system however it
> uses cookies when you login to store information. Is this a bad
> thing?$_COOKIE vs $_SESSION for login systems
>
> From,Michael calkinsmichaelcalk...@live.co
Is there something that needs to be tweaked or added to get this to
work? I am trying to connect to server 2008 w/ MS SQL 2008. I can see
the connections fail in the servers event logs if I take away \domain
from \domain\username (mixed auth is turned off) so the communication
is somewhat working.
On Thu, Jul 8, 2010 at 6:40 AM, David Négrier <
d.negr...@thecodingmachine.com> wrote:
> Hi list,
>
> After struggling a bit to set-up a debug environment in PHP, I decided to
> write a complete tutorial to explain how to set-up XDebug in a WAMP /
> Eclipse PDT environment.
>
> Everything was alre
I right now have a complete user login and registration system however it uses
cookies when you login to store information. Is this a bad thing?$_COOKIE vs
$_SESSION for login systems
From,Michael calkinsmichaelcalk...@live.com425-239-9952
__
On Thu, 8 Jul 2010 17:15:02 +0200, "Gary ." wrote:
> Okay. At least one of the problems with this so called HTML seems to
> be that the body tag looks like
>
> and xml_parse complains that "> required" on that line (i.e. it is
> claiming it can't find the end of the tag!).
>
> I'm guessing that
> And yes, I'd rather use DOM, but I can't.
Could you use this: http://simplehtmldom.sourceforge.net/?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 8 July 2010 16:15, Gary . wrote:
> Okay. At least one of the problems with this so called HTML seems to
> be that the body tag looks like
>
> and xml_parse complains that "> required" on that line (i.e. it is
> claiming it can't find the end of the tag!).
>
> I'm guessing that those attributes
Okay. At least one of the problems with this so called HTML seems to
be that the body tag looks like
and xml_parse complains that "> required" on that line (i.e. it is
claiming it can't find the end of the tag!).
I'm guessing that those attributes "must" be quoted in XML and
"should" be in HTML (
> I wonder what the difference is between doing "new
> SimpleXMLElement" and calling simplexml_load_string which results in the
> libxml_use_internal_errors call being ineffective. Odd.
The documentation for "Dealing with XML errors" only mentions
simplexml_load_string() and this comment
http://c
Marc Guay writes:
>> libxml_use_internal_errors(true);
>> $this->xml = new SimpleXMLElement($this->htmlString);
> I have code that looks like this:
>
> libxml_use_internal_errors(true);
> $xml = simplexml_load_string($val);
Yeah. I tried simplexml_load_string and found that "worked" (in that it
d
> libxml_use_internal_errors(true);
> $this->xml = new SimpleXMLElement($this->htmlString);
Hi Gary,
I have code that looks like this:
libxml_use_internal_errors(true);
$xml = simplexml_load_string($val);
$errors = libxml_get_errors();
if ($errors)
do this
else
do that
which wo
Richard Quadling writes:
> On 8 July 2010 08:07, Gary wrote:
>> Why am I still getting an exception when I do this:
>>
>> libxml_use_internal_errors(true);
>> $this->xml = new SimpleXMLElement($this->htmlString);
>>
>> or this
>> $this->xml = new SimpleXMLElement($this->htmlString,
>> LIBXML_NOERRO
At 11:48 AM +0100 7/8/10, Richard Quadling wrote:
On 7 July 2010 17:59, tedd wrote:
Hi gang:
I have *my way* of handling this problem, but I would like to hear how you
> guys do it.
-snip-
I hope this is of some sense to you. It certainly is an interesting topic.
Richard.
Richard:
I use naming convention for interface.
If an object can be cached, I create an interface I+Cache+able = ICachable.
So a sample class would be named as ASampleClass.php
And the Interface would be ICachable.php
This is a well known interface naming convention.
Shiplu Mokadd.im
My talks, http://ta
On 8 July 2010 08:07, Gary . wrote:
> Why am I still getting an exception when I do this:
>
> libxml_use_internal_errors(true);
> $this->xml = new SimpleXMLElement($this->htmlString);
>
> or this
> $this->xml = new SimpleXMLElement($this->htmlString,
> LIBXML_NOERROR|LIBXML_NOWARNING);
>
> ?
>
> T
On 7 July 2010 17:59, tedd wrote:
> Hi gang:
>
> I have *my way* of handling this problem, but I would like to hear how you
> guys do it.
>
> Here's the problem -- let's say you have a database containing names and
> addresses and you want "approved" users to be able to access the data. As
> such,
Hi list,
After struggling a bit to set-up a debug environment in PHP, I decided
to write a complete tutorial to explain how to set-up XDebug in a WAMP /
Eclipse PDT environment.
Everything was already available on the web but was squattered on
several different sites.
I've tried to write a s
On Thu, 2010-07-08 at 04:00 +0200, Hans Åhlin wrote:
> *.api
> Application Programming Interface
> http://en.wikipedia.org/wiki/Application_Programming_Interface
>
> **
> Hans Åhlin
>Tel: +46761488019
>icq: 275232967
>http://www.kronan-net.
Why am I still getting an exception when I do this:
libxml_use_internal_errors(true);
$this->xml = new SimpleXMLElement($this->htmlString);
or this
$this->xml = new SimpleXMLElement($this->htmlString,
LIBXML_NOERROR|LIBXML_NOWARNING);
?
The exception says "Exception: String could not be parsed
On 7/6/10, Per Jessen wrote:
> It really is _only_ the syntax. Same goes for e.g. the C lint -
Sorry, but that's not what I remember from my C days, nor what wikipedia
says "lint was the name originally given to a particular program that
flagged some suspicious and non-portable constructs (likely
31 matches
Mail list logo