RE: [PHP] Website content question CMS

2010-06-25 Thread Ernie Kemp
-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 wrote: > Th

Re: [PHP] Website content question CMS

2010-06-25 Thread Daniel Brown
On Fri, Jun 25, 2010 at 15:38, Ernie Kemp 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 to undefined fu

RE: [PHP] Website content question CMS

2010-06-25 Thread Ernie Kemp
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 /home/ekemp/public_html/wordpress/con

Re: [PHP] Using fopen or SQL to check image

2010-06-25 Thread Peter Lind
On 25 June 2010 21:02, Ashley Sheridan wrote: > > On Fri, 2010-06-25 at 21:01 +0200, Peter Lind wrote: > > On 25 June 2010 20:59, Ashley Sheridan wrote: > > > > On Fri, 2010-06-25 at 20:57 +0200, Peter Lind wrote: > > > > On 25 June 2010 19:35, Ashley Sheridan wrote: > > > On Fri, 2010-06-25 at

RE: [PHP] in_array - what the...

2010-06-25 Thread Bob McConnell
From: Peter Lind > On 25 June 2010 19:58, Bob McConnell 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

Re: [PHP] Using fopen or SQL to check image

2010-06-25 Thread Ashley Sheridan
On Fri, 2010-06-25 at 21:01 +0200, Peter Lind wrote: > On 25 June 2010 20:59, Ashley Sheridan wrote: > > > > On Fri, 2010-06-25 at 20:57 +0200, Peter Lind wrote: > > > > On 25 June 2010 19:35, Ashley Sheridan wrote: > > > On Fri, 2010-06-25 at 19:31 +0200, Karl Cifius wrote: > > > > > >> Hi, > >

Re: [PHP] Using fopen or SQL to check image

2010-06-25 Thread Peter Lind
On 25 June 2010 20:59, Ashley Sheridan wrote: > > On Fri, 2010-06-25 at 20:57 +0200, Peter Lind wrote: > > On 25 June 2010 19:35, Ashley Sheridan 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 u

Re: [PHP] Using fopen or SQL to check image

2010-06-25 Thread Ashley Sheridan
On Fri, 2010-06-25 at 20:57 +0200, Peter Lind wrote: > On 25 June 2010 19:35, Ashley Sheridan 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

Re: [PHP] Using fopen or SQL to check image

2010-06-25 Thread Peter Lind
On 25 June 2010 19:35, Ashley Sheridan 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 server currently i

Re: [PHP] in_array - what the...

2010-06-25 Thread Peter Lind
On 25 June 2010 19:58, Bob McConnell 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

Re: [PHP] Website content question CMS

2010-06-25 Thread Ashley Sheridan
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/ > > > > Whe

[PHP] Website content question CMS

2010-06-25 Thread Ernie Kemp
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. http://digitalbiz4u.co

RE: [PHP] in_array - what the...

2010-06-25 Thread Bob McConnell
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 McConne

Re: [PHP] Using fopen or SQL to check image

2010-06-25 Thread Ashley Sheridan
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 thes

RE: [PHP] in_array - what the...

2010-06-25 Thread Daevid Vincent
> -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) { > >>

[PHP] Using fopen or SQL to check image

2010-06-25 Thread Karl Cifius
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 fac

Re: [PHP] Unexpected behaviour from define()

2010-06-25 Thread James Long
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 'dis

RE: [PHP] Returning a Recordset from a Funtion

2010-06-25 Thread David Stoltz
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 MS

Re: [PHP] Attachment to email from form.

2010-06-25 Thread Bastien Koert
;> >>  echo "We have also sent you an e-mail to $email with the submitted >> information as well as our contact information for your convienience. > /> >>  Thank you for the opportunity to serve you!"; >> >> >> /*This is the email message to sub

Re: [PHP] Returning a Recordset from a Funtion

2010-06-25 Thread Andrew Ballard
On Fri, Jun 25, 2010 at 9:55 AM, David Stoltz 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 calling p

Re: [PHP] Returning a Recordset from a Funtion

2010-06-25 Thread Richard Quadling
On 25 June 2010 15:07, David Stoltz 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); > > T

RE: [PHP] Returning a Recordset from a Funtion

2010-06-25 Thread David Stoltz
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 Quad

Re: [PHP] Attachment to email from form.

2010-06-25 Thread Ashley Sheridan
nk you $fname for your submission, find our contact information > listed for your convenience.\n\n" > ."$contact\n\n" > . "You have submitted the following information\n\n" > . "Name: $fname $lname \n" > . "E-Mail Address: $email\n" > . &

Re: [PHP] Returning a Recordset from a Funtion

2010-06-25 Thread Richard Quadling
On 25 June 2010 14:55, David Stoltz wrote: > > 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 ... Fields(1); ?> -- - Rich

Re: [PHP] Attachment to email from form.

2010-06-25 Thread Richard Quadling
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

[PHP] Returning a Recordset from a Funtion

2010-06-25 Thread David Stoltz
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: Fields(1); ?> The mssql.php include file is: open

[PHP] Attachment to email from form.

2010-06-25 Thread Gary
"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. http://www.eset.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Making a Password Confirmation in PHP

2010-06-25 Thread Andrew Ballard
On Fri, Jun 25, 2010 at 5:35 AM, Richard Quadling wrote: > And the fact that a browser will transmit 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: http://www.php.net/unsub.php

Re: [PHP] Unexpected behaviour from define()

2010-06-25 Thread Richard Quadling
On 24 June 2010 22:41, James Long wrote: outputs ... Notice: Constant LOG_WARNING already defined in - on line 4 LOG_NORMAL 0 LOG_WARNING 5 LOG_ERROR 2 I'm on Win32 PHP 5.3.3-RC1 (cli) (built: Jun 17 2010 22:43:29) -- - Richard Quadling "Standing on the shoulders of some very clever

Re: [PHP] Making a Password Confirmation in PHP

2010-06-25 Thread Richard Quadling
On 24 June 2010 19:46, Ashley Sheridan 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 >> Sub

RE: [PHP] in_array - what the...

2010-06-25 Thread Ford, Mike
> -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_addres

Re: [PHP] in_array - what the...

2010-06-25 Thread Gary .
"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

RE: [PHP] in_array - what the...

2010-06-25 Thread Ford, Mike
> -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($n

[PHP] in_array - what the...

2010-06-25 Thread Gary .
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 d