Anyone here familiar with the DOM XML functions in PHP?
Im running an XPath query on an XML document and I get back a list of DOM
Elements which I can iterate through. Great. But want I really want to do
it convert all of those tags into strings, concatenate them together and
save them in a da
On Nov 19, 2007, at 4:29 PM, Ben Sgro (ProjectSkyLine) wrote:
Hello,
Sorry to hijack, but I started thinking about something I read
for optimization of php.
They stated, if you know your not going to make changes
to a variable, to send it to a function as reference, as to NOT
make a copy of it.
At 1:25 PM -0500 11/12/07, Dan Cech wrote:
tedd wrote:
> Scrub and clean all user input.
My understanding -- nothing can get in unless you allow it (barring
server breaches).
Here's an example of js injection:
http://webbytedd.com/bb/insecure-form/
SQL injection (as I understand it) is
Hello Cliff,
Alright, makes sense.
Thanks.
- Original Message -
From: "Cliff Hirsch" <[EMAIL PROTECTED]>
To: "NYPHP Talk"
Sent: Monday, November 19, 2007 4:21 PM
Subject: Re: [nyphp-talk] Why is pass-by-reference deprecated?
Hello,
Sorry to hijack, but I started thinking about so
At 9:00 AM -0500 11/16/07, Urb LeJeune wrote:
Sorry about the last message, I accidently hit the send button.
It there a way to detect if a user's browser has Java Script enabled
from within a PHP script?
Urb
No.
PHP runs before the browser/javascript does.
Having php deter
> Hello,
>
> Sorry to hijack, but I started thinking about something I read
> for optimization of php.
>
> They stated, if you know your not going to make changes
> to a variable, to send it to a function as reference, as to NOT
> make a copy of it...
>
Going back to some very, very old threads
Hello,
Sorry to hijack, but I started thinking about something I read
for optimization of php.
They stated, if you know your not going to make changes
to a variable, to send it to a function as reference, as to NOT
make a copy of it...
Is this really worthwhile?
func($a)
{
echo $a;
}
VS
f
On 11/19/07 1:27 PM, "Gary Mort" <[EMAIL PROTECTED]> wrote:
> Cliff Hirsch wrote:
>> The php manual says:
>> ³In recent versions of PHP you will get a warning saying that
>> "Call-time pass-by-reference" is deprecated when you use a & in foo(&$a);²
>> Why is this? Besides being ugly, difficult to u
Gary Mort wrote:
Cliff Hirsch wrote:
Besides being ugly, difficult to understand and not very elegant...
Because ... you should know ahead of time whether or not you want to
pass by reference or pass a copy, and not decide to do it at the time
you call your code.
[snip]
That's a good explanat
I believe pass-by-reference is now noted in function definitions ala:
function myFunc(&$myvar) {/* Function */}
whereas in PHP4, you could force pass-by-reference at runtime using:
myFunc(&$myvar);
This was depreciated because parameter definitions should be maintained in
the function definitio
Cliff Hirsch wrote:
The php manual says:
“In recent versions of PHP you will get a warning saying that
"Call-time pass-by-reference" is deprecated when you use a & in foo(&$a);”
Why is this? Besides being ugly, difficult to understand and not very
elegant, is there any reason technical reaso
The php manual says:
³In recent versions of PHP you will get a warning saying that "Call-time
pass-by-reference" is deprecated when you use a & in foo(&$a);²
Why is this? Besides being ugly, difficult to understand and not very
elegant, is there any reason technical reason why this is deprecated?
On Nov 19, 2007 7:05 AM, David Krings <[EMAIL PROTECTED]> wrote:
> Urb LeJeune wrote:
> > It all depends upon you philosophy of programming. To most
> > people a good program is one that works. To me a good program
> > has three important characteristics:
> >
> > 1. It does what the specifi
Urb LeJeune wrote:
It all depends upon you philosophy of programming. To most
people a good program is one that works. To me a good program
has three important characteristics:
1. It does what the specifications require under all circumstances.
2. It is efficient in the use of resources,
If it's one or two lines, a function can be more distracting than it's
worth.
Until you find an error in those lines, or you need to add an
extra line.
It all depends upon you philosophy of programming. To most
people a good program is one that works. To me a good program
has
Hi Micheal,
Using a search criteria, a MySQL call is made and the required MySQL record
is returned.
The HTML FORM is made up of three forms. the first two forms are used to
display (read-only) infomation to the enduser
The third and last FORM is used by the enduser to update the MySQL record.
16 matches
Mail list logo