On Wed, 2007-07-11 at 15:52 +0100, Stut wrote:
Robert Cummings wrote:
On Wed, 2007-07-11 at 09:46 +0100, Robin Vickery wrote:
On 11/07/07, kvigor [EMAIL PROTECTED] wrote:
Is there a php function similar to in_array that can detect if a partial
value is in an array value or not:
e.g.
Robert Cummings wrote:
On Wed, 2007-07-11 at 15:52 +0100, Stut wrote:
Robert Cummings wrote:
On Wed, 2007-07-11 at 09:46 +0100, Robin Vickery wrote:
On 11/07/07, kvigor [EMAIL PROTECTED] wrote:
Is there a php function similar to in_array that can detect if a partial
value is in an array
On Wed, 2007-07-11 at 16:07 +0100, Stut wrote:
Robert Cummings wrote:
On Wed, 2007-07-11 at 15:52 +0100, Stut wrote:
Robert Cummings wrote:
On Wed, 2007-07-11 at 09:46 +0100, Robin Vickery wrote:
On 11/07/07, kvigor [EMAIL PROTECTED] wrote:
Is there a php function similar to in_array
On 11/07/07, Robert Cummings [EMAIL PROTECTED] wrote:
On Wed, 2007-07-11 at 09:46 +0100, Robin Vickery wrote:
On 11/07/07, kvigor [EMAIL PROTECTED] wrote:
Is there a php function similar to in_array that can detect if a partial
value is in an array value or not:
e.g.
$var1 = big
On Wed, July 11, 2007 9:52 am, Stut wrote:
$needle = (array)$needle;
Conversion to array creates an array with one element... the value
converted.
Without raising a notice?
Sure looks like it:
php -d error_reporting=2047 -r '$foo = (array) foo; var_dump($foo);'
array(1) {
[0]=
On Wed, 2007-07-11 at 16:11 -0500, Richard Lynch wrote:
On Wed, July 11, 2007 9:52 am, Stut wrote:
$needle = (array)$needle;
Conversion to array creates an array with one element... the value
converted.
Without raising a notice?
Sure looks like it:
php -d error_reporting=2047
On Wed, July 11, 2007 4:16 pm, Robert Cummings wrote:
But I'd have to say that the intent is not all that clear, really,
and
I'd be leery of this feature, personally.
I wouldn't be leery at all. It's been around for a very long time and
it's documented:
On Wed, 2007-07-11 at 16:40 -0500, Richard Lynch wrote:
On Wed, July 11, 2007 4:16 pm, Robert Cummings wrote:
But I'd have to say that the intent is not all that clear, really,
and
I'd be leery of this feature, personally.
I wouldn't be leery at all. It's been around for a very long
On 6/19/07, revDAVE [EMAIL PROTECTED] wrote:
I am just beginning to learn about PHP.
It seems as though if I make a code error... The PHP page will simply come
up blank. ( Not too helpful for error checking) - I would like to see some
kind of report on the page as to what went wrong.
I have
On 6/19/07, Daniel Brown [EMAIL PROTECTED] wrote:
On 6/19/07, revDAVE [EMAIL PROTECTED] wrote:
I am just beginning to learn about PHP.
It seems as though if I make a code error... The PHP page will simply come
up blank. ( Not too helpful for error checking) - I would like to see some
kind
revDAVE wrote:
I am just beginning to learn about PHP.
It seems as though if I make a code error... The PHP page will simply come
up blank. ( Not too helpful for error checking) - I would like to see some
kind of report on the page as to what went wrong.
I have tried adding various
On 6/15/07, Paul K [EMAIL PROTECTED] wrote:
I have just started with a clean install on a Windows XP Pro system,
Apache 2.24 and PHP 5.2.3
Apache Monitor reports Apache/2.24(Win32)PHP/5.2.3.
I can access html files just fine but I can't even run a test program
?php
phpinfo();
?
Nothing
Paul K wrote:
I have just started with a clean install on a Windows XP Pro system,
Apache 2.24 and PHP 5.2.3
Apache Monitor reports Apache/2.24(Win32)PHP/5.2.3.
I can access html files just fine but I can't even run a test program
?php
phpinfo();
?
Nothing displays.
Where do I look to see
On Mon, May 28, 2007 6:46 pm, Davis Chan wrote:
Hi! I am developing a site with some authenticated users only
features.
I would like to know if the following is true:
1. script for login process is located on a SSL-enabled server, so
usernames and passwords are encrypted.
2. upon successful
My pleasure, Arno!
On 5/22/07, Arno Kuhl [EMAIL PROTECTED] wrote:
-Original Message-
From: Daniel Brown [mailto:[EMAIL PROTECTED]
Sent: 18 May 2007 10:27
To: Al
Cc: php-general@lists.php.net
Subject: Re: [PHP] Security Question, re directory permissions [long
answer]
On 5/18/07
On 5/19/07, itoctopus [EMAIL PROTECTED] wrote:
I'm genuinely interested to know with whom you're hosting...
No problem, it's www.dapx.com, it hasn't a lot security, safe_mode is
off for example.
If you know the right stuff from another user on the same server, you
can actually do some nice
I use Hosting Matters. It is super reliable and solid.
itoctopus wrote:
I'm genuinely interested to know with whom you're hosting...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 5/18/07, Al [EMAIL PROTECTED] wrote:
I'm on a shared Linux host and have been wondering about security and directory other
[world] permissions.
The defaults are 755. The 'others' [world] can read them only.
Is there a security hole if a dir on the doc root if a directory has
permissions
How can they write or edit files there without having ftp access or the site's
file manager?
Tijnema ! wrote:
On 5/18/07, Al [EMAIL PROTECTED] wrote:
I'm on a shared Linux host and have been wondering about security and
directory other [world] permissions.
The defaults are 755. The 'others'
On 5/18/07, Al [EMAIL PROTECTED] wrote:
How can they write or edit files there without having ftp access or the site's
file manager?
SSH access? Telnet maybe? PHP script? CGI script? ASP script?
There are a lot of possible ways someone can write there.
Tijnema
Tijnema ! wrote:
On
On 5/18/07, Al [EMAIL PROTECTED] wrote:
I'm on a shared Linux host and have been wondering about security and
directory other [world] permissions.
The defaults are 755. The 'others' [world] can read them only.
Is there a security hole if a dir on the doc root if a directory has
permissions
But, SSH and telnet, etc. require authentication login-in and all the executables you mentioned [and others] require
someone who has access to upload a harmful file to start with. Right? Once they are in there, they can do anything they
please anyhow.
Al.
Tijnema ! wrote:
On
On 5/19/07, Al [EMAIL PROTECTED] wrote:
But, SSH and telnet, etc. require authentication login-in and all the
executables you mentioned [and others] require
someone who has access to upload a harmful file to start with. Right? Once
they are in there, they can do anything they
please anyhow.
How can anyone, other than the staff, get into my site? Far as I know, other users can't get out of their own domain
space and into mine.
Tijnema wrote:
On 5/19/07, Al [EMAIL PROTECTED] wrote:
But, SSH and telnet, etc. require authentication login-in and all the
executables you mentioned
On Fri, 2007-05-18 at 20:16 -0400, Al wrote:
How can anyone, other than the staff, get into my site? Far as I know, other
users can't get out of their own domain
space and into mine.
Bugs in your code, bugs in third-party code, bugs in PHP itself,
sometimes they can be abused to take
On 5/19/07, Al [EMAIL PROTECTED] wrote:
How can anyone, other than the staff, get into my site? Far as I know, other
users can't get out of their own domain
space and into mine.
That's quite easy, especially when you have SSH access.
Of course, it will only work with specific settings, and
I guess your comment The less secure everything else is. is the best
answer.
I'm developing a CMS where logged-in, selected users can create new directories and pages in them. I'm comfortable that
my code is secure. I'm using php's ftp functions, with good security, to mkdir and create
I'm genuinely interested to know with whom you're hosting...
--
itoctopus - http://www.itoctopus.com
Tijnema [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On 5/19/07, Al [EMAIL PROTECTED] wrote:
How can anyone, other than the staff, get into my site? Far as I know,
other users
On Fri, May 4, 2007 9:23 pm, revDAVE wrote:
I have a form on page one - and would like to submit to a second page
in PHP
that could grab the fields and send it out as an e-mail.
Are there any links that show how do this?
http://php.net/faq.php
Somewhere in there is a question about
Q: is there some kind of mail command like this for PHP?
yes, it is called mail()
check out this example, it is short but to the point.
http://us.php.net/mail#57473
Jim Lucas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 5/4/2007 7:29 PM, Brad Sumrall [EMAIL PROTECTED] wrote:
Where are the fields?
Hi Brad,
Just a basic form with a few fields inside like - name - address etc lie:
form action=sendmail.php method=post
input name=name type=text
input name=email type=text
/form
--
Thanks - RevDave
[EMAIL
Message-
From: revDAVE [mailto:[EMAIL PROTECTED]
Sent: Friday, May 04, 2007 10:36 PM
To: php-general@lists.php.net
Cc: Brad Sumrall
Subject: Re: [PHP] Newbie Question - Form To Email Needed
On 5/4/2007 7:29 PM, Brad Sumrall [EMAIL PROTECTED] wrote:
Where are the fields?
Hi Brad
On 4/11/07, Steve [EMAIL PROTECTED] wrote:
If you're working under an NDA or on code that doesn't belong to you, you'll
most likely need to hit up the hobbiest side of programming to build your
portfolio. Sit down, plan some app that would make your life easier (or
someone else's), go through
On Sun, April 8, 2007 6:29 pm, [EMAIL PROTECTED] wrote:
I have ..
foreach( $_POST as $key ) {
echo $keybr /;
}
You are actually echoing out the VALUE, not the KEY...
and that gives me
item1
item2
item3
item4
item5br /
Unless your VALUE has item1\nitem2\nitem3\nitem4\nitem5 in
-general@lists.php.net
Sent: Monday, April 09, 2007 5:20 AM
Subject: Re: [PHP] foreach question
[EMAIL PROTECTED] wrote:
both examples do the same thing..
no, ex1 only has 1 br /
so outputs like..
item1item2item3item4item5br /
Where as I want this..
item1br /
item2br
[EMAIL PROTECTED] wrote:
I have ..
foreach( $_POST as $key ) {echo $keybr /;
}
and that gives me
item1
item2
item3
item4
item5br /
how do I write it to give me
item1br /
item2br /
item3br /
item4br /
item5br /
Thanks
both examples do the same thing..
--
PHP General Mailing List
PROTECTED]
Cc: php-general@lists.php.net
Sent: Monday, April 09, 2007 1:22 AM
Subject: Re: [PHP] foreach question
[EMAIL PROTECTED] wrote:
I have ..
foreach( $_POST as $key ) {echo $keybr /;
}
and that gives me
item1
item2
item3
item4
item5br /
how do I write it to give me
item1br /
item2br
]
Cc: php-general@lists.php.net
Sent: Monday, April 09, 2007 1:22 AM
Subject: Re: [PHP] foreach question
[EMAIL PROTECTED] wrote:
I have ..
foreach( $_POST as $key ) {echo $keybr /;
}
and that gives me
item1
item2
item3
item4
item5br /
how do I write it to give me
item1br /
item2br
AM
Subject: Re: [PHP] foreach question
[EMAIL PROTECTED] wrote:
I have ..
foreach( $_POST as $key ) {echo $keybr /;
}
and that gives me
item1
item2
item3
item4
item5br /
how do I write it to give me
item1br /
item2br /
item3br /
item4br /
item5br
the full script to the list.
Lori
- Original Message - From: Sebe [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: php-general@lists.php.net
Sent: Monday, April 09, 2007 1:22 AM
Subject: Re: [PHP] foreach question
[EMAIL PROTECTED] wrote:
I have ..
foreach( $_POST as $key ) {echo $keybr
be better to post the full script to the list.
Lori
- Original Message - From: Sebe [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: php-general@lists.php.net
Sent: Monday, April 09, 2007 1:22 AM
Subject: Re: [PHP] foreach question
[EMAIL PROTECTED] wrote:
I have ..
foreach( $_POST as $key
PROTECTED]
To: [EMAIL PROTECTED]
Cc: php-general@lists.php.net
Sent: Monday, April 09, 2007 5:20 AM
Subject: Re: [PHP] foreach question
[EMAIL PROTECTED] wrote:
both examples do the same thing..
no, ex1 only has 1 br /
so outputs like..
item1item2item3item4item5br /
Where as I want
there is this:
http://php.net/manual/en/function.simplexml-element-addChild.php
which will allow adding of string data (so you won't be needing to
create the new SimpleXMLElement object as per your example below).
obviously you will have to first load tghe complete xml document
into simplexml
tedd wrote:
In the php manual it says:
imagecreate() returns an image identifier representing a blank image of
specified size.
We recommend the use of imagecreatetruecolor().
Q: Why the recommendation?
Because the need to create 256 colour (or less) images grows less year
by year. If you
At 4:27 PM +0100 4/2/07, Richard Davey wrote:
tedd wrote:
In the php manual it says:
imagecreate() returns an image identifier representing a blank
image of specified size.
We recommend the use of imagecreatetruecolor().
Q: Why the recommendation?
Because the need to create 256 colour
Did you try making it transparent first, before adding the circle?
Only a question because I'm not sure if it will make a difference. I
know I had problems trying to get the alpha blending to actually look
decent in png's (ended up looking like a very poor gif with a non-
antialiased mask)
On 3/31/07, buFka [EMAIL PROTECTED] wrote:
Hello,
I would like to install pOWL
(http://aksw.informatik.uni-leipzig.de/Projects/Powl) with ORACLE. I obey
the installation steps. I log in:
http://www.picvalley.net/u/26/25123_331.PNG
and then then i get this error message
The Database exists:
[EMAIL PROTECTED]:~$ sqlplus SYSTEM/[EMAIL PROTECTED]
SQL*Plus: Release 10.2.0.1.0 - Production on Sa Mrz 31 15:44:09 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Verbunden mit:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With
On 3/31/07, buFka [EMAIL PROTECTED] wrote:
The Database exists:
[EMAIL PROTECTED]:~$ sqlplus SYSTEM/[EMAIL PROTECTED]
SQL*Plus: Release 10.2.0.1.0 - Production on Sa Mrz 31 15:44:09 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Verbunden mit:
Oracle Database 10g Enterprise
Tijnema ! wrote:
Hmm, in your image i see Database 'testdb' not found. Followed by a
link. What happens if you click on that link?
I don't know anything about Oracle/pOWL, but it looks like the script
can't connect to your Oracle database. Did you check if the database
settings are
On Sat, March 31, 2007 8:53 am, Tijnema ! wrote:
On 3/31/07, buFka [EMAIL PROTECTED] wrote:
Hmm, in your image i see Database 'testdb' not found. Followed by a
link. What happens if you click on that link?
I don't know anything about Oracle/pOWL, but it looks like the script
can't connect to
Miguel J. Jiménez wrote:
// Example 2520. Creating an XSLTProcessor
?php
$xml_filename = collection.xml;
$xsl_filename= collection.xsl;
$doc = new DOMDocument();
$xsl = new XSLTProcessor();
$doc-load($xsl_filename);
$xsl-importStyleSheet($doc);
$doc-load($xml_filename);
echo
Ross wrote:
Can I put post values directly into insert statements?
$query = INSERT INTO categories (category_name) VALUES
('$_POST['cat_name']);
Yes you can, but it is not secure to do that!
use (insecure):
$query = INSERT INTO categories (category_name) VALUES
Ross wrote:
Can I put post values directly into insert statements?
$query = INSERT INTO categories (category_name) VALUES
('$_POST['cat_name']);
Yes, although this is not recommended.
What is someone puts a single quote in there? Or some other bad
characters
otherwise... 2
At 3:59 PM +0100 3/26/07, Ross wrote:
Can I put post values directly into insert statements?
$query = INSERT INTO categories (category_name) VALUES
('$_POST['cat_name']);
Open to sql injection.
tedd
--
---
http://sperling.com http://ancientstones.com http://earthstones.com
--
PHP
On Mon, March 26, 2007 9:59 am, Ross wrote:
Can I put post values directly into insert statements?
$query = INSERT INTO categories (category_name) VALUES
('$_POST['cat_name']);
Sure!
If you want your webserver to get hacked by the Bad Guys, just go
right ahead and do that.
[that was
Escape it, use either htmlentities (with ENT_QUOTES) or addslashes.
--
itoctopus - http://www.itoctopus.com
Richard Lynch [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Mon, March 26, 2007 9:59 am, Ross wrote:
Can I put post values directly into insert statements?
$query =
[EMAIL PROTECTED] wrote:
$count=count($data-legs-leg);
$k=0;
while($k $count)
{
On 3/24/07, Man-wai Chang [EMAIL PROTECTED] wrote:
create table temp ( big5 char(2) ) character set big5 collate big5_bin;
insert into temp ( big5 ) values ( 0x9f54 );
insert into temp ( big5 ) values ( 0x9f53 );
The 2nd query will report duplicated key. How should I fix the problem?
What
Tijnema ! wrote:
On 3/24/07, Man-wai Chang [EMAIL PROTECTED] wrote:
create table temp ( big5 char(2) ) character set big5 collate big5_bin;
insert into temp ( big5 ) values ( 0x9f54 );
insert into temp ( big5 ) values ( 0x9f53 );
The 2nd query will report duplicated key. How should I fix
$legrow[$data-legs-leg[$k]['legId']]
?? See if that works...
Jake
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 24, 2007 11:27 PM
To: php-general@lists.php.net
Subject: [PHP] Array Question
Hi All
I am having a bit of trouble
What if you put $temp = $data-legs-leg[$k]['legId'];
And then put that into $legrow[$temp];
Do you have anything in $temp?
Jake
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 24, 2007 11:27 PM
To: php-general@lists.php.net
Subject:
Hi Jake
Thanks for the answer.
That is what I had in my example that did not work.
I had tried that and then wondered how I might access that key.
I have tried $legrow[number];
where number is a value I know to be one of the legId's. Is this correct?
Regards
Richard
Hi Jake
I tried that and got the same result.
Regards
Richard
What if you put $temp = $data-legs-leg[$k]['legId'];
And then put that into $legrow[$temp];
Do you have anything in $temp?
Jake
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Saturday,
What is the result your getting?
Jake
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 24, 2007 11:57 PM
To: Jake McHenry
Cc: php-general@lists.php.net
Subject: RE: [PHP] Array Question
Hi Jake
I tried that and got the same result
Hi Jake
I am getting nothing at all.
Regards
Richard
What is the result your getting?
Jake
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 24, 2007 11:57 PM
To: Jake McHenry
Cc: php-general@lists.php.net
Subject: RE: [PHP] Array
:09 AM
To: Jake McHenry
Cc: php-general@lists.php.net
Subject: RE: [PHP] Array Question
Hi Jake
I am getting nothing at all.
Regards
Richard
What is the result your getting?
Jake
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent
On 3/23/07, Richard Lynch [EMAIL PROTECTED] wrote:
On Thu, March 22, 2007 2:33 pm, Tijnema ! wrote:
2). How do you handle numbers that large, while maintaining
precision.
keep them as strings - and/or use a 64bit machine?
a 64bit machine would make the number larger, not unlimited :)
Jake McHenry wrote:
I searched the archives... Haven't seen an answer to this yet
Does anyone know why Virtual Directory Support is enabled on windows, but
disabled on unix? And what exactly is it? I know I can enable it by
--enable-maintainer-zts, but it says in configure that it is
I scanned over it quick.. Looks interesting.. Thanks :) I'll get into it
more tomorrow
Jake
-Original Message-
From: Jochem Maas [mailto:[EMAIL PROTECTED]
Sent: Friday, March 23, 2007 7:58 PM
To: Jake McHenry
Cc: php-general@lists.php.net
Subject: Re: [PHP] Configure question
On 3/22/07, Matt Carlson [EMAIL PROTECTED] wrote:
When dealing with large numbers inside of php, I know at the int limit, a
variable is recast into float.
1). How do you return the true number of the float when it reaches the upper
limits of mysql's bigint (9223372036854775807).
2). How
Matt Carlson wrote:
When dealing with large numbers inside of php, I know at the int limit, a
variable is recast into float.
1). How do you return the true number of the float when it reaches the upper
limits of mysql's bigint (9223372036854775807).
I can't see how that is possible,
On 3/22/07, Jochem Maas [EMAIL PROTECTED] wrote:
Matt Carlson wrote:
When dealing with large numbers inside of php, I know at the int limit, a
variable is recast into float.
1). How do you return the true number of the float when it reaches the upper
limits of mysql's bigint
Tijnema ! wrote:
On 3/22/07, Jochem Maas [EMAIL PROTECTED] wrote:
Matt Carlson wrote:
When dealing with large numbers inside of php, I know at the int
limit, a variable is recast into float.
1). How do you return the true number of the float when it reaches
the upper limits of
On Thu, March 22, 2007 2:33 pm, Tijnema ! wrote:
2). How do you handle numbers that large, while maintaining
precision.
keep them as strings - and/or use a 64bit machine?
a 64bit machine would make the number larger, not unlimited :)
Even GMP (or BC) isn't unlimited...
It's just limited
On 3/21/07, Chris [EMAIL PROTECTED] wrote:
John Comerford wrote:
Hi Folks,
I am still pretty new to PHP and I have a question regarding classes and
using _construct. Up until now I have been creating my classes as follows:
class test1 {
var $name;
function test1($pName) {
$this-name
Dan Shirah wrote:
I had thought about having the multiple submissions on a single form, but
with the amount of user information that is collected and the variable
amount of users that may need to be entered this method would not be ideal.
(A single form that you have to scroll down a far way and
Because in my application it is VERY VERY VERY important that I track the
specific details for any given user in any given account. The user data
changes frequently and I need to be able to track user information changes,
numbers of accounts they are assigned to etc.
So rather than updating the
2007. 03. 20, kedd keltezéssel 16.31-kor Dan Shirah ezt írta:
Because in my application it is VERY VERY VERY important that I track the
specific details for any given user in any given account. The user data
changes frequently and I need to be able to track user information changes,
numbers
John Comerford wrote:
Hi Folks,
I am still pretty new to PHP and I have a question regarding classes and
using _construct. Up until now I have been creating my classes as follows:
class test1 {
var $name;
function test1($pName) {
$this-name = $pName;
}
}
So I when I create a new class I
On Tue, March 20, 2007 6:51 pm, John Comerford wrote:
I am still pretty new to PHP and I have a question regarding classes
and
using _construct. Up until now I have been creating my classes as
follows:
class test1 {
var $name;
function test1($pName) {
It changed from PHP 4 to PHP 5
On Tue, March 20, 2007 2:05 pm, Dan Shirah wrote:
Each account is unique. It is possible that the same user could be on
multiple accounts, therefore the account will be tied to the user each
time.
If each account can have multiple users, AND each user can have
multiple accounts, then you have
On Tue, March 20, 2007 3:31 pm, Dan Shirah wrote:
Because in my application it is VERY VERY VERY important that I track
the
specific details for any given user in any given account. The user
data
changes frequently and I need to be able to track user information
changes,
numbers of
Richard Lynch wrote:
On Tue, March 20, 2007 3:31 pm, Dan Shirah wrote:
Because in my application it is VERY VERY VERY important that I track
the
specific details for any given user in any given account. The user
data
changes frequently and I need to be able to track user information
changes,
On Mon, 2007-03-19 at 20:10 +, bob pilly wrote:
Hi all
Can anyone tell me what '' means before a var?
e.g function($var)
It means the variable is passed into the function as a reference.
Changes to the value of the variable will be reflected outside of the
function in the variable
bob pilly wrote:
Hi all
Can anyone tell me what '' means before a var?
e.g function($var)
http://us3.php.net/manual/en/language.references.php
Janet
--
Janet Valade -- janet.valade.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Stut wrote:
Seak, Teng-Fong wrote:
But after I've spent some time reading the log files, I've finally
found out how the hackers managed to achieve worm infiltration.
Actually, they're using an URL like this:
Turn off register_globals - if you pollute your scripts with global
variables like that you are asking for trouble. If you can't make sure you
clean the variable.
Using include($page.php) is asking for trouble.
If you can get register_globals switched off (it's off by default in PHP5
for this
-Message d'origine-
De : Richard Lynch [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 14 mars 2007 23:45
À : Tim
Cc : 'Haydar Tuna'; php-general@lists.php.net
Objet : RE: [PHP] Re: question regarding form filtering
On Wed, March 14, 2007 9:07 am, Tim wrote:
You almost for sure
Seak, Teng-Fong wrote:
No, I don't deserve anything because, as I've written in the
original post (but I suppose you didn't notice), the website is
outsourced and made by a 3rd company.
Well, I've just realised (and checked) that I forgot to mention that
my company's website was outsourced.
Seak, Teng-Fong wrote:
No, I don't deserve anything because, as I've written in the
original post (but I suppose you didn't notice), the website is
outsourced and made by a 3rd company.
Then you should be having this conversation with the 3rd party. They need
to validate *EVERY* bit of
On Thu, March 15, 2007 9:15 am, Seak, Teng-Fong wrote:
Stut wrote:
Seak, Teng-Fong wrote:
But after I've spent some time reading the log files, I've
finally
found out how the hackers managed to achieve worm infiltration.
Actually, they're using an URL like this:
expect many on this list to disagree with the preceding 2 paragraphs.
YMMV
On Tue, March 13, 2007 9:36 am, Tim wrote:
-Message d'origine-
De : Haydar Tuna [mailto:[EMAIL PROTECTED]
Envoyé : mardi 13 mars 2007 14:53
À : php-general@lists.php.net
Objet : [PHP] Re: question regarding
-Message d'origine-
De : Richard Lynch [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 14 mars 2007 09:48
À : Tim
Cc : 'Haydar Tuna'; php-general@lists.php.net
Objet : RE: [PHP] Re: question regarding form filtering
I personally would not presume that PHP and JS regex patterns
On Wed, March 14, 2007 9:07 am, Tim wrote:
You almost for sure do *NOT* want to attempt to send the
entire Webster's 2nd Edition dictionary to the browser as JS
data so that the JS can check. :-)
Hehe, oh? Really? ;-)
I suppose you could do a Web 2.0 Ajax-y thingie for that...
Not a
-Message d'origine-
De : Haydar Tuna [mailto:[EMAIL PROTECTED]
Envoyé : mardi 13 mars 2007 14:53
À : php-general@lists.php.net
Objet : [PHP] Re: question regarding form filtering
Hello,
You can write some basic functions such as checking
length of variable, removing
the index.php page is the first page where user should logon.
it consists of 3 flags (english, french and slovak).
when use click on 1 flags, it reload the index.php page and changes the
login and password words by their relative translation into the flag country
selected.
if user click on LOGON
Alain Roger wrote:
the index.php page is the first page where user should logon.
it consists of 3 flags (english, french and slovak).
when use click on 1 flags, it reload the index.php page and changes the
login and password words by their relative translation into the flag
country
selected.
Ryan A wrote:
Quick question, one of our sites already uses BASIC_AUTH to take the username
and pass from clients, we were thinking of instead doing it via a login form
(so we can also add a CAPTCHA later...if needed)
what I would like to know is, by using a login form instead of a BASIC_AUTH
I think you meant to send this to the OP not me. And please also include
the list in your replies.
Tijnema ! wrote:
The best way is using a HTML form, and then adding a javascript ,that
runs before submitting, that encrypts the password with md5.
This offers little more security than plain
901 - 1000 of 3066 matches
Mail list logo