php-general Digest 25 Jun 2010 13:06:20 - Issue 6815
Topics (messages 306409 through 306423):
Re: Unexpected behaviour from define()
306409 by: James Long
306410 by: Tim Schofield
306411 by: Ashley Sheridan
306412 by: Tim Schofield
306422 by: Richard
If I have an array that looks like
array(1) {
[mac_address]=
string(2) td
}
and I call
if (in_array($name, self::$aboveArray))
with $name as
string(11) mac_address
what should be the result?
Because it is *false* and it is driving me nuts! This despite the fact
that if I do
-Original Message-
From: Gary . [mailto:php-gene...@garydjones.name]
Sent: 25 June 2010 08:18
To: PHP
Subject: [PHP] in_array - what the...
If I have an array that looks like
array(1) {
[mac_address]=
string(2) td
}
and I call
if (in_array($name,
Ford, Mike writes:
-Original Message-
If I have an array that looks like
array(1) {
[mac_address]=
string(2) td
}
and I call
if (in_array($name, self::$aboveArray))
with $name as
string(11) mac_address
what should be the result?
FALSE -- in_array checks the
-Original Message-
From: Gary . [mailto:php-gene...@garydjones.name]
Sent: 25 June 2010 09:14
To: PHP
Subject: Re: [PHP] in_array - what the...
Ford, Mike writes:
-Original Message-
If I have an array that looks like
array(1) {
[mac_address]=
string(2)
On 24 June 2010 19:46, Ashley Sheridan a...@ashleysheridan.co.uk wrote:
On Thu, 2010-06-24 at 20:37 +0200, David Česal wrote:
Yes, it is.
D
-Original Message-
From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk]
Sent: Thursday, June 24, 2010 8:32 PM
To: Floyd Resler
Cc: PHP
On 24 June 2010 22:41, James Long p...@umpquanet.com wrote:
?php
error_reporting(-1);
ini_set('display_errors', 1);
define( 'LOG_NORMAL', 0 );
define( 'LOG_WARNING', 1 );
define( 'LOG_ERROR', 2 );
echo 'LOG_NORMAL ' . LOG_NORMAL . \n;
echo 'LOG_WARNING ' . LOG_WARNING . \n;
echo 'LOG_ERROR
On Fri, Jun 25, 2010 at 5:35 AM, Richard Quadling rquadl...@gmail.com wrote:
And the fact that a browser will transmit input type=password as
plain text isn't a security issue?
That's what SSL is for.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
. Clients Name: $fname . $lname \n
. Email Address: $email\n
. Comments: $comments\n
;
mail($to, $subject, $msg, 'From:' .$from);
?
__ Information from ESET Smart Security, version of virus signature
database 5228 (20100625) __
The message was checked by ESET Smart Security
Hi Folks,
Upon occasion, I have the need to hit our MS MSL database from our
PHP/mySQL server. So I've created a function, but I'm not sure if you
can return a recordset from a function. My code is below...
In the calling page I code:
?php
include('../includes/mssql.php');
First of all, take a look at
http://docs.php.net/manual/en/features.file-upload.php
You are trying to open a named file (attachment.zip), but that may not
be what was uploaded.
The 2 main functions to get to grips with are ...
is_uploaded_file() and move_uploaded_file().
Uploaded files are not
On 25 June 2010 14:55, David Stoltz dsto...@shh.org wrote:
?php
include('../includes/mssql.php');
hitMSSQL(server,database,username,password,SELECT * FROM
TABLE1);
echo $rs-Fields(1);
?
You are not catching the result of the hitMSSQL() function.
Try ...
?php
, $msg, 'From:' .$from);
?
__ Information from ESET Smart Security, version of virus signature
database 5228 (20100625) __
The message was checked by ESET Smart Security.
http://www.eset.com
--
PHP General Mailing List (http://www.php.net
Tried that -
I finally got it - in the function I had to return the actual query execute,
instead of the recordset.
This did not work:
$rs = $conn-execute($query);
Return $rs;
This DID work:
Return $conn-execute($query);
Thanks for the reply!
-Original Message-
From: Richard
On 25 June 2010 15:07, David Stoltz dsto...@shh.org wrote:
Tried that -
I finally got it - in the function I had to return the actual query execute,
instead of the recordset.
This did not work:
$rs = $conn-execute($query);
Return $rs;
This DID work:
Return $conn-execute($query);
On Fri, Jun 25, 2010 at 9:55 AM, David Stoltz dsto...@shh.org wrote:
Hi Folks,
Upon occasion, I have the need to hit our MS MSL database from our
PHP/mySQL server. So I've created a function, but I'm not sure if you
can return a recordset from a function. My code is below...
In the
\n
;
mail($to, $subject, $msg, 'From:' .$from);
?
__ Information from ESET Smart Security, version of virus signature
database 5228 (20100625) __
The message was checked by ESET Smart Security.
http://www.eset.com
--
PHP General Mailing List (http://www.php.net
The only reasons are I'm a PHP newbie ;-)
I'm not really familiar with all the ways to hit a MS SQL server, this
particular way always worked for me. It's not difficult to code, and has been
working for years, so I've grown accustom to it.
There are only a few instances left to connect to MS
Thank you very much! Once I realized the source of the problem,
I was dismayed that one could declare a constant and have the
interpreter absolutely ignore it without warning. I already had
error_reporting to E_ALL in php.ini, so was unaware of what else
I could do. Didn't think to look for
Hi,
I'm making a Facebook application that can generate images to user's
albums. To publish a story a thumbnail of this image is stored on my
server. Since this server currently is very limited I want to be able
to clean these thumbnails pretty often.
To not get broken links in older
-Original Message-
From: Gary . [mailto:php-gene...@garydjones.name]
Sent: Friday, June 25, 2010 1:14 AM
To: PHP
Subject: Re: [PHP] in_array - what the...
Ford, Mike writes:
-Original Message-
If I have an array that looks like
array(1) {
[mac_address]=
On Fri, 2010-06-25 at 19:31 +0200, Karl Cifius wrote:
Hi,
I'm making a Facebook application that can generate images to user's
albums. To publish a story a thumbnail of this image is stored on my
server. Since this server currently is very limited I want to be able
to clean these
From: Daevid Vincent
Why do this in_array() business??
Just do this...
if (self::$aboveArray[$name])
{
//something interesting here
}
Does that gibberish actually do something? It doesn't make any sense to
me, while in_array() actually looks like what it does.
Bob McConnell
--
Need a some help from the group.
I'm adding some wordpress template programs to my site.
I added a contact page contact.php to wordpress on my site.
http://digitalbiz4u.com/wordpress/
When I click the contact button on the home page I get an 404 error.
On Fri, 2010-06-25 at 14:00 -0400, Ernie Kemp wrote:
Need a some help from the group.
I’m adding some wordpress template programs to my site.
I added a contact page “contact.php” to wordpress on my site.
http://digitalbiz4u.com/wordpress/
When I click the
On 25 June 2010 19:58, Bob McConnell r...@cbord.com wrote:
From: Daevid Vincent
Why do this in_array() business??
Just do this...
if (self::$aboveArray[$name])
{
//something interesting here
}
Does that gibberish actually do something? It doesn't make any sense to
me, while
On 25 June 2010 19:35, Ashley Sheridan a...@ashleysheridan.co.uk wrote:
On Fri, 2010-06-25 at 19:31 +0200, Karl Cifius wrote:
Hi,
I'm making a Facebook application that can generate images to user's
albums. To publish a story a thumbnail of this image is stored on my
server. Since this
On Fri, 2010-06-25 at 20:57 +0200, Peter Lind wrote:
On 25 June 2010 19:35, Ashley Sheridan a...@ashleysheridan.co.uk wrote:
On Fri, 2010-06-25 at 19:31 +0200, Karl Cifius wrote:
Hi,
I'm making a Facebook application that can generate images to user's
albums. To publish a story a
On 25 June 2010 20:59, Ashley Sheridan a...@ashleysheridan.co.uk wrote:
On Fri, 2010-06-25 at 20:57 +0200, Peter Lind wrote:
On 25 June 2010 19:35, Ashley Sheridan a...@ashleysheridan.co.uk wrote:
On Fri, 2010-06-25 at 19:31 +0200, Karl Cifius wrote:
Hi,
I'm making a Facebook
On Fri, 2010-06-25 at 21:01 +0200, Peter Lind wrote:
On 25 June 2010 20:59, Ashley Sheridan a...@ashleysheridan.co.uk wrote:
On Fri, 2010-06-25 at 20:57 +0200, Peter Lind wrote:
On 25 June 2010 19:35, Ashley Sheridan a...@ashleysheridan.co.uk wrote:
On Fri, 2010-06-25 at 19:31 +0200,
From: Peter Lind
On 25 June 2010 19:58, Bob McConnell r...@cbord.com wrote:
From: Daevid Vincent
Why do this in_array() business??
Just do this...
if (self::$aboveArray[$name])
{
//something interesting here
}
Does that gibberish actually do something? It doesn't make any sense to
On 25 June 2010 21:02, Ashley Sheridan a...@ashleysheridan.co.uk wrote:
On Fri, 2010-06-25 at 21:01 +0200, Peter Lind wrote:
On 25 June 2010 20:59, Ashley Sheridan a...@ashleysheridan.co.uk wrote:
On Fri, 2010-06-25 at 20:57 +0200, Peter Lind wrote:
On 25 June 2010 19:35, Ashley
That may be part of my problem.
I could put the contact.php program in the
http://digitalbiz4u.com/wordpress/ directory and the program will find it
but the CMS Edit this entry part gives me the error
Fatal error: Call to undefined function have_posts() in
On Fri, Jun 25, 2010 at 15:38, Ernie Kemp ernie.k...@sympatico.ca wrote:
That may be part of my problem.
I could put the contact.php program in the
http://digitalbiz4u.com/wordpress/ directory and the program will find it
but the CMS Edit this entry part gives me the error
Fatal error: Call
-Original Message-
From: paras...@gmail.com [mailto:paras...@gmail.com] On Behalf Of Daniel
Brown
Sent: June-25-10 4:05 PM
To: Ernie Kemp
Cc: a...@ashleysheridan.co.uk; PHP General List
Subject: Re: [PHP] Website content question CMS
On Fri, Jun 25, 2010 at 15:38, Ernie Kemp
35 matches
Mail list logo