Re: [PHP] Help using PHP 5.3.3 mail() with Apache James

2012-10-25 Thread Maciek Sokolewicz
On 23-10-2012 23:54, Steven Pogue wrote: Dan, I assume you meant to add a system() call into it...if so, here is what was presented. -rwxrwxrwx. 1 root root 3878 Sep 6 14:45 /opt/james-2.3.2/bin/sendmail.py -rwxrwxrwx. 1 root root 3878 Sep 6 14:45 /opt/james-2.3.2/bin/sendmail.py Steve

Re: [PHP] Help using PHP 5.3.3 mail() with Apache James

2012-10-25 Thread tamouse mailing lists
On Thu, Oct 25, 2012 at 5:32 AM, Maciek Sokolewicz maciek.sokolew...@gmail.com wrote: On 23-10-2012 23:54, Steven Pogue wrote: Dan, I assume you meant to add a system() call into it...if so, here is what was presented. -rwxrwxrwx. 1 root root 3878 Sep 6 14:45

Re: [PHP] Help using PHP 5.3.3 mail() with Apache James

2012-10-23 Thread Daniel Brown
On Tue, Oct 23, 2012 at 5:00 PM, Steven Pogue spo...@us.ibm.com wrote: Has anyone been successful at using the above on a RHEL 6.2 environment? I am able to use Postfix using the php.ini SENDMAIL_PATH but when I bring down PostFix, start Apache James and switch the sendmail_path value to point

Re: [PHP] Help using PHP 5.3.3 mail() with Apache James

2012-10-23 Thread Steven Pogue
To: Steven Pogue/Raleigh/IBM@IBMUS Cc: php-general@lists.php.net Date: 10/23/2012 05:24 PM Subject: Re: [PHP] Help using PHP 5.3.3 mail() with Apache James Sent by: paras...@gmail.com On Tue, Oct 23, 2012 at 5:00 PM, Steven Pogue spo...@us.ibm.com wrote: Has anyone been successful at using the above

Re: [PHP] Help with MSSQL and Stored Procs

2012-08-29 Thread Andrew Ballard
On Wed, Aug 29, 2012 at 3:14 PM, Phillip Baker phil...@freewolf.net wrote: I am trying to access a MSSQL DB on another system. I am having trouble executed a stored proc and debugging the problem./ I have included the code below. I can connect to the DB just fine. I also can run regular

Re: [PHP] help with query

2012-06-07 Thread Ashley Sheridan
Jack jacklistm...@gmail.com wrote: Hello All, I have this string defined for my query and it shows the different types of categories fine, but when I change a.categoryid = c.categoryid to a.categoryid = 1 which is only one of the categories It shows me the same record twice. $query =

Re: [PHP] help with query

2012-06-07 Thread Jim Lucas
On 06/07/2012 09:37 AM, Jack wrote: $query = select a.startdate, a.articleid, c.name, a.title, a.intro, a.datecreated from articles as a, categories as c where (a.startdate = -1 or a.startdate= {$now}) and (a.enddate = -1 or a.enddate= {$now}) and a.categoryid = c.categoryid order by a.startdate

RE: [PHP] help with query

2012-06-07 Thread Jack Sasportas
Thanks Jim, worked like a charm. -Original Message- From: Jim Lucas [mailto:li...@cmsws.com] Sent: Thursday, June 07, 2012 4:08 PM To: Jack Cc: PHP Subject: Re: [PHP] help with query On 06/07/2012 09:37 AM, Jack wrote: $query = select a.startdate, a.articleid, c.name, a.title

Re: [PHP] help with preg_match

2012-06-04 Thread Chris Purves
On 2012-06-03 22:37, Robert Williams wrote: On Jun 3, 2012, at 17:28, Chris Purvesch...@northfolk.ca wrote: I know that the text ends 'end', but I don't know what the Something, something is. I am using preg_match as follows: preg_match('/[^]*end/',$curl_response,$matches); I want to

Re: [PHP] help with preg_match

2012-06-03 Thread Robert Williams
On Jun 3, 2012, at 17:28, Chris Purves ch...@northfolk.ca wrote: I know that the text ends 'end', but I don't know what the Something, something is. I am using preg_match as follows: preg_match('/[^]*end/',$curl_response,$matches); I want to match 'end' and everything before it that is not

RE: [PHP] help with preg_match

2012-06-03 Thread admin
-Original Message- From: Chris Purves [mailto:ch...@northfolk.ca] Sent: Sunday, June 03, 2012 8:26 PM To: php-general General Subject: [PHP] help with preg_match Hello, I am trying to use preg_match to match something from an html file. Within the html file is some text that looks

Re: [PHP] Help! Having trouble getting one XML field from this feed reliably

2012-02-09 Thread Yared Hufkens
I wonder why you use cURL as SimpleXML itself can load URLs: $vastdata = new SimpleXMLElement('http://afe.specificclick.net/?l=32259t=xrnd=123456',0,true); See http://de.php.net/manual/en/simplexmlelement.construct.php Am 09.02.2012 04:44, schrieb Rob Gould: Can anyone tell me what I'm doing

Re: [PHP] Help! Having trouble getting one XML field from this feed reliably

2012-02-09 Thread Adam Richardson
On Thu, Feb 9, 2012 at 9:10 AM, Yared Hufkens y4...@yahoo.de wrote: I wonder why you use cURL as SimpleXML itself can load URLs: $vastdata = new SimpleXMLElement('http://afe.specificclick.net/?l=32259t=xrnd=123456 ',0,true); See http://de.php.net/manual/en/simplexmlelement.construct.php

Re: [PHP] Help! Having trouble getting one XML field from this feed reliably

2012-02-08 Thread Adam Richardson
On Wed, Feb 8, 2012 at 10:44 PM, Rob Gould gould...@mac.com wrote: Can anyone tell me what I'm doing wrong here? I'm trying to get the VASTAdTagURI field from the XML data at this url: http://afe.specificclick.net/?l=32259t=xrnd=123456 Here's my code. (below). It works maybe 30% of

Re: [PHP] Help with redeclare error

2011-10-28 Thread Ashley Sheridan
On Thu, 2011-10-27 at 17:40 -0700, UltraMega Admin wrote: On 10/27/2011 5:33 PM, Daniel Brown wrote: On Thu, Oct 27, 2011 at 20:06, Jason Pruimli...@pruimphotography.com wrote: Most likely you have in included in 2 files... Look into it from that angle... It only needs to be included

RE: [PHP] Help with redeclare error

2011-10-28 Thread Jack
A function with that name already exists in PHP as of 5.3.0. You'll have to rename it or something. http://us2.php.net/manual/en/function.date-diff.php That looks like what happened that new function was added and we had written one with the same name from the stone age... Thanks! --

Re: [PHP] Help with redeclare error

2011-10-27 Thread Jason Pruim
Jason Pruim li...@pruimphotography.com On Oct 27, 2011, at 7:55 PM, Jack wrote: Hello All, I have some code that just broke with a PHP upgrade, the error says: PHP Fatal error: Cannot redeclare date_diff() the line of the error is the close bracket of the function which is below.

Re: [PHP] Help with redeclare error

2011-10-27 Thread Daniel Brown
On Thu, Oct 27, 2011 at 20:06, Jason Pruim li...@pruimphotography.com wrote: Most likely you have in included in 2 files... Look into it from that angle... It only needs to be included in 1 file to work throughout all the files. Prune is spot-on. That error generally happens when you

Re: [PHP] Help with redeclare error

2011-10-27 Thread UltraMega Admin
On 10/27/2011 5:33 PM, Daniel Brown wrote: On Thu, Oct 27, 2011 at 20:06, Jason Pruimli...@pruimphotography.com wrote: Most likely you have in included in 2 files... Look into it from that angle... It only needs to be included in 1 file to work throughout all the files. Prune is

Re: [PHP] Help on number matching function

2011-09-16 Thread Robert Williams
On Sep 16, 2011, at 6:02, Dare Williams darrenwi...@yahoo.com wrote: I have a 5 Digits set of number and need to match it with another set of five digits and return how many number are match and the figures that are match. Check out array_intersect().

Re: [PHP] Help on number matching function

2011-09-16 Thread Ken Robinson
At 08:36 AM 9/16/2011, Dare Williams wrote: Dear PHP Group, I need a Function of any category in either PHP or MySQL RDBMS customize Function, Class, Methods or anything that could help me compare a particular set of number and return their matching result. e.g If I have a 5 Digits set of

Re: [PHP] Help on number matching function

2011-09-16 Thread Andre Polykanine
Hello Dare, DW I need a Function of any category in  either PHP or MySQL RDBMS DW customize Function, Class, Methods or anything that could help me DW compare a particular set of number and return their matching DW result. consider using array_intersect(). -- With best regards from

Re: [PHP] Help on number matching function

2011-09-16 Thread Mattias Thorslund
If one or both of your data sets are in MySQL already, there may be no need to do the comparison in PHP. Just use IN() or INNER JOIN. Or is there some particular reason why neither of these will work in your case? Cheers, Mattias On 09/16/2011 05:36 AM, Dare Williams wrote: Dear PHP Group,

Re: [PHP] help with an array if its possible!

2011-06-22 Thread Daniel P. Brown
On Wed, Jun 22, 2011 at 18:43, Adam Preece a...@blueyonder.co.uk wrote: Hi Gang! i have 2 assoc arrays from 2 querys, first one is page categorys it consists of:        id        name second is pages        name        cat_id now, i am using smarty, so i pass arrays into the view.

Re: [PHP] help with an array if its possible!

2011-06-22 Thread Jim Lucas
On 6/22/2011 3:43 PM, Adam Preece wrote: Hi Gang! i have 2 assoc arrays from 2 querys, first one is page categorys it consists of: id name second is pages name cat_id now, i am using smarty, so i pass arrays into the view. this i would like to pass to

Re: [PHP] Help needed with php.ini

2011-06-06 Thread Joe Francis
I remember that there's 2 php.ini in Fedora, one is for SAPI like apache or other CGIServer, and another is for CLI. Can you confirm that you edited a right config file? On Mon, Jun 6, 2011 at 4:55 AM, Camilo Sperberg unrea...@gmail.com wrote: On 05-06-2011, at 10:31, Adam Tong

Re: [PHP] Help needed with php.ini

2011-06-05 Thread Richard Quadling
And here is the output of phpinfo(): - In the same phpinfo() output, what is the path/location of the php.ini file you are using? Loaded Configuration File D:\PHP\INI\php-cgi-fcgi.ini for example. -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling :

Re: [PHP] Help needed with php.ini

2011-06-05 Thread Camilo Sperberg
On 05-06-2011, at 10:31, Adam Tong adam.to...@gmail.com wrote: Hi, I can't set correctly the error display and reporting properties. I don't know what i'm doing wrong. Here is the section that i modified in php.ini: - display_errors = On ; Default Value: On ; Development

Re: [PHP] help with _get error

2011-03-23 Thread Donovan Brooke
Jack wrote: Hello All, I'm having a problem with this line of code which worked fine for years: $l_url2 = ..$_GET[SERVER_NAME]; Here is the error: [Wed Mar 23 13:33:49 2011] [error] [client 16.139.201.61] PHP Notice: Use of undefined constant SERVER_NAME - assumed 'SERVER_NAME' in

Re: [PHP] help with a safe mode snag

2011-03-15 Thread Daniel Brown
On Mon, Mar 14, 2011 at 21:12, Jack jacklistm...@gmail.com wrote: Hello All, Im writing a script that creates a temp file which it then encrypts and sends out in an email. This works 100% on servers that don't have safe mode, but this server with safe mode doesn't understand it's all the

Re: [PHP] Help translating PHP5 code to PHP4.

2011-03-09 Thread Richard Quadling
On 7 March 2011 17:29, Marc Guay marc.g...@gmail.com wrote: Hi Richard, It's not a SOAP service, and I've actually decided to have ask the client to upgrade their server software before continuing.  But for the sake of study: Depending upon your requirement, you could use

Re: [PHP] Help translating PHP5 code to PHP4.

2011-03-09 Thread Marc Guay
The ease I had in running multiple versions of PHP on Windows would suggest it should be pretty easy to do for non-windows. Funny and true. Thanks for the tips Richard, I've suggested that they upgrade their hosting package. Marc -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Help translating PHP5 code to PHP4.

2011-03-08 Thread Jim Lucas
On 3/7/2011 8:16 AM, Marc Guay wrote: Hi folks, I've stumbled into a project involving a server running PHP4 without cURL. The script fetches data from an XML webservice and deals with it. Is http://ca2.php.net/xml_parser_create the place to start? Any tips (besides updating PHP)?

Re: [PHP] Help translating PHP5 code to PHP4.

2011-03-07 Thread sexyprout
Just take another web host. 2011/3/7 Marc Guay marc.g...@gmail.com Hi folks, I've stumbled into a project involving a server running PHP4 without cURL. The script fetches data from an XML webservice and deals with it. Is http://ca2.php.net/xml_parser_create the place to start? Any tips

Re: [PHP] Help translating PHP5 code to PHP4.

2011-03-07 Thread Richard Quadling
On 7 March 2011 16:16, Marc Guay marc.g...@gmail.com wrote: Hi folks, I've stumbled into a project involving a server running PHP4 without cURL.  The script fetches data from an XML webservice and deals with it.  Is http://ca2.php.net/xml_parser_create the place to start?  Any tips (besides

Re: [PHP] Help translating PHP5 code to PHP4.

2011-03-07 Thread Marc Guay
Hi Richard, It's not a SOAP service, and I've actually decided to have ask the client to upgrade their server software before continuing. But for the sake of study: Depending upon your requirement, you could use simplexml_load_string() to convert an XML string into a native PHP object

Re: [PHP] Help! Made a boo-boo encrypting credit cards

2011-03-03 Thread Brian Dunning
My merchant provider levies monthly fines based on how many of their security restrictions you fail to follow. I follow as many as are reasonably practical, but I think it's virtually impossible to follow them all, such as absurdly expensive (and probably unnecessary) hardware. IMHO, some of

Re: [PHP] Help! Made a boo-boo encrypting credit cards

2011-03-03 Thread Brian Dunning
That's a great suggestion. I will try this and report back. It's also been suggested to me that I should have base64_encoded the encryptions before storing them in MySQL, so I'll try this option at the same time. On Mar 1, 2011, at 2:04 PM, Ashley Sheridan wrote: Onto the problem of the data

RE: [PHP] Help! Made a boo-boo encrypting credit cards

2011-03-03 Thread Bob McConnell
From: Brian Dunning My merchant provider levies monthly fines based on how many of their security restrictions you fail to follow. I follow as many as are reasonably practical, but I think it's virtually impossible to follow them all, such as absurdly expensive (and probably unnecessary)

Re: [PHP] Help needed with mysql import

2011-03-02 Thread Alex
You shouldn't have a default value in an auto increment field. You can set AUTO_INCREMENT to 0 and start with 1, but as auto increment is a unique field and its automagically incremented, you should not set a default value on it... -- Sent from my Android phone with K-9 Mail. Please excuse my

Re: [PHP] Help needed with mysql import

2011-03-02 Thread Jim Lucas
On 3/2/2011 4:25 AM, Alex wrote: You shouldn't have a default value in an auto increment field. You can set AUTO_INCREMENT to 0 and start with 1, but as auto increment is a unique field and its automagically incremented, you should not set a default value on it... This is fine and dandy

Re: [PHP] Help needed with mysql import

2011-03-02 Thread Jim Lucas
On 3/2/2011 9:48 AM, Ashley Sheridan wrote: Jim Lucas li...@cmsws.com wrote: On 3/2/2011 4:25 AM, Alex wrote: You shouldn't have a default value in an auto increment field. You can set AUTO_INCREMENT to 0 and start with 1, but as auto increment is a unique field and its automagically

Re: [PHP] Help! Made a boo-boo encrypting credit cards

2011-03-01 Thread Brian Dunning
I just wanted to ping this, as it's becoming a serious problem. I hope someone can help. On Feb 11, 2011, at 2:42 PM, Brian Dunning wrote: Hey all - I'm using mcrypt to store credit cards into MySQL. About 90% of them decrypt fine, but about 10% decrypt as nonsense (b1�\�JEÚU�A��� is a

Re: [PHP] Help! Made a boo-boo encrypting credit cards

2011-03-01 Thread Bastien Koert
On Tue, Mar 1, 2011 at 12:34 PM, Brian Dunning br...@briandunning.com wrote: I just wanted to ping this, as it's becoming a serious problem. I hope someone can help. On Feb 11, 2011, at 2:42 PM, Brian Dunning wrote: Hey all - I'm using mcrypt to store credit cards into MySQL. About 90%

Re: [PHP] Help! Made a boo-boo encrypting credit cards

2011-03-01 Thread Ken Kixmoeller
On Fri, Feb 11, 2011 at 4:42 PM, Brian Dunning br...@briandunning.com wrote: Hey all - I'm using mcrypt to store credit cards into MySQL. About 90% of them decrypt fine, but about 10% decrypt as nonsense (b1�\�JEÚU�A��� is a good example). Maybe there is a character that appears in about

Re: [PHP] Help needed with mysql import

2011-03-01 Thread Thijs Lensselink
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/02/2011 07:56 AM, Ashim Kapoor wrote: Dear all, I am trying to make a website with php and I found the following code in a book and I am trying to import it. The following are the beginning of the file i am trying to import with the

Re: [PHP] Help! Made a boo-boo encrypting credit cards

2011-02-14 Thread Brian Dunning
On Feb 13, 2011, at 12:44 AM, Richard Quadling wrote: You are using addslashes($_POST['cc_number']). Considering a credit card number is purely numeric, the addslashes would seem to be redundant as you don't need to escape numbers. I do that routinely to all input fields as one additional

Re: [PHP] Help! Made a boo-boo encrypting credit cards

2011-02-13 Thread Richard Quadling
On 11 February 2011 22:42, Brian Dunning br...@briandunning.com wrote: Hey all - I'm using mcrypt to store credit cards into MySQL. About 90% of them decrypt fine, but about 10% decrypt as nonsense (b1�\�JEÚU�A��� is a good example). Maybe there is a character that appears in about 10% of

Re: [PHP] Help: Validate Domain Name by Regular Express

2011-01-09 Thread Ashley Sheridan
On Sun, 2011-01-09 at 11:44 +0800, WalkinRaven wrote: Right, RFC 1034 allow valid endless . parts, till the sum length is over 255. On 01/09/2011 01:21 AM, TR Shaw wrote: On Jan 8, 2011, at 12:09 PM, Ashley Sheridan wrote: On Sat, 2011-01-08 at 16:55 +0800, WalkinRaven wrote: PHP

Re: [PHP] Help: Validate Domain Name by Regular Express

2011-01-08 Thread Ashley Sheridan
On Sat, 2011-01-08 at 16:55 +0800, WalkinRaven wrote: PHP 5.3 PCRE Regular Express to match domain names format according to RFC 1034 - DOMAIN NAMES - CONCEPTS AND FACILITIES /^ ( [a-z] | [a-z] (?:[a-z]|[0-9]) | [a-z] (?:[a-z]|[0-9]|\-){1,61} (?:[a-z]|[0-9])

Re: [PHP] Help: Validate Domain Name by Regular Express

2011-01-08 Thread TR Shaw
On Jan 8, 2011, at 12:09 PM, Ashley Sheridan wrote: On Sat, 2011-01-08 at 16:55 +0800, WalkinRaven wrote: PHP 5.3 PCRE Regular Express to match domain names format according to RFC 1034 - DOMAIN NAMES - CONCEPTS AND FACILITIES /^ ( [a-z] | [a-z] (?:[a-z]|[0-9])

Re: [PHP] Help: Validate Domain Name by Regular Express

2011-01-08 Thread WalkinRaven
On 01/09/2011 01:09 AM, Ashley Sheridan wrote: On Sat, 2011-01-08 at 16:55 +0800, WalkinRaven wrote: PHP 5.3 PCRE Regular Express to match domain names format according to RFC 1034 - DOMAIN NAMES - CONCEPTS AND FACILITIES /^ ( [a-z] | [a-z] (?:[a-z]|[0-9]) | [a-z]

Re: [PHP] Help with variable variables not being set for a multi-dimensional array

2010-11-10 Thread David Harkness
On Tue, Nov 9, 2010 at 6:55 PM, Daevid Vincent dae...@daevid.com wrote: I've used variable variables before but for some reason I can't figure this snippet out. Why doesn't $ini_file get set (or appended to). AFAIK variable variables can only reference actual variables--not array subscripts

Re: [PHP] Help with sending credentials?

2010-10-15 Thread Richard Quadling
On 14 October 2010 21:45, Brian Dunning br...@briandunning.com wrote: Gents - I'm trying to work with a major vendor's web service, but all my efforts are met with a 401 authentication error response. I can log in manually to this URL using these credentials through a browser, so I know the

RE: [PHP] Help with sending credentials?

2010-10-15 Thread Tommy Pham
-Original Message- From: Richard Quadling [mailto:rquadl...@gmail.com] Sent: Friday, October 15, 2010 1:47 AM To: Brian Dunning Cc: PHP-General List Subject: Re: [PHP] Help with sending credentials? On 14 October 2010 21:45, Brian Dunning br...@briandunning.com wrote: Gents

Re: [PHP] Help with sending credentials?

2010-10-15 Thread Richard Quadling
On 15 October 2010 10:51, Tommy Pham tommy...@gmail.com wrote: -Original Message- From: Richard Quadling [mailto:rquadl...@gmail.com] Sent: Friday, October 15, 2010 1:47 AM To: Brian Dunning Cc: PHP-General List Subject: Re: [PHP] Help with sending credentials? On 14 October 2010

Re: [PHP] Help with sending credentials?

2010-10-14 Thread Adam Richardson
On Thu, Oct 14, 2010 at 4:45 PM, Brian Dunning br...@briandunning.comwrote: Gents - I'm trying to work with a major vendor's web service, but all my efforts are met with a 401 authentication error response. I can log in manually to this URL using these credentials through a browser, so I

RE: [PHP] Help with template file and email

2010-07-26 Thread Carlos Sura
Hello Joey, No problem, I'm glad you got it working now. Any other question. Use php-list. Regards, Carlos Sura. From: j.hendrick...@comcast.net To: carlos_s...@hotmail.com Subject: Re: [PHP] Help with template file and email Date: Sat, 24 Jul 2010 08:29:03 -0500 Hi Carlos, I

Re: [PHP] help using phpadmin

2010-07-19 Thread Isaac Lee
thanks carlos, but where would i enter that command? and i tried editing the php.ini file but that didn't accomplish anything. isaac On Mon, Jul 19, 2010 at 1:29 AM, Carlos Sura carlos_s...@hotmail.com wrote: Hello Isaac Lee. Are you running on Linux or Windows? You might try: mysql SET

Re: [PHP] help using phpadmin

2010-07-19 Thread Isaac Lee
im using windows. On Mon, Jul 19, 2010 at 12:23 PM, Isaac Lee rhinecant...@gmail.com wrote: thanks carlos, but where would i enter that command? and i tried editing the php.ini file but that didn't accomplish anything. isaac On Mon, Jul 19, 2010 at 1:29 AM, Carlos Sura

RE: [PHP] help using phpadmin

2010-07-19 Thread Carlos Sura
. Date: Mon, 19 Jul 2010 12:24:26 -0400 From: rhinecant...@gmail.com To: carlos_s...@hotmail.com CC: php-general@lists.php.net Subject: Re: [PHP] help using phpadmin im using windows. On Mon, Jul 19, 2010 at 12:23 PM, Isaac Lee rhinecant...@gmail.com wrote: thanks carlos, but where would

RE: [PHP] help using phpadmin

2010-07-18 Thread Carlos Sura
Hello Isaac Lee. Are you running on Linux or Windows? You might try: mysql SET PASSWORD FOR ‘root’@'localhost’ = PASSWORD(’yourpassword’); Then restart your service -if needed- If not... Try to edit config.inc.php file. Regards, Carlos Sura -Original Message- From: Isaac Lee

Re: [PHP] help with sql statement

2010-07-13 Thread Richard Quadling
On 12 July 2010 18:34, Tommy Pham tommy...@gmail.com wrote: SELECT srs.Name FROM SMS_R_System srs WHERE srs.SystemOUName IN (example.com/COMPUTERS/MAIN CAMPUS/ABC, example.com/COMPUTERS/MAIN CAMPUS/XYZ) As this is a single table query, there is no need for the table alias. SELECT Name FROM

Re: [PHP] Help with template file and email

2010-07-13 Thread Richard Quadling
On 13 July 2010 14:56, Joey Hendricks j.hendrick...@comcast.net wrote: Hello,  I have been working on a birtday invite program. The form takes 10 names and 10 email addresses. I think the problem is the $to variable in my function. I get this warning-Warning: mail() [function.mail]: SMTP

RE: [PHP] Help with template file and email

2010-07-13 Thread Carlos Sura
: Tue, 13 Jul 2010 15:02:14 +0100 To: j.hendrick...@comcast.net CC: php-general@lists.php.net Subject: Re: [PHP] Help with template file and email On 13 July 2010 14:56, Joey Hendricks j.hendrick...@comcast.net wrote: Hello, I have been working on a birtday invite program. The form takes 10

Re: [PHP] help with sql statement

2010-07-12 Thread Ashley Sheridan
On Mon, 2010-07-12 at 10:24 -0500, Adam wrote: I was google searching, and the only SQL mailing list I found is currently giving a 503 error, so I hope you don't mind me asking my SQL question here, since there are a lot of SQL gurus here. I am having a syntax problem: Instead of doing

RE: [PHP] help with sql statement

2010-07-12 Thread Tommy Pham
-Original Message- From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: Monday, July 12, 2010 8:26 AM To: Adam Cc: PHP General Subject: Re: [PHP] help with sql statement On Mon, 2010-07-12 at 10:24 -0500, Adam wrote: I was google searching, and the only SQL mailing

Re: [PHP] Help, FPDI is changing the size of my PDFs

2010-05-21 Thread Brian Dunning
Solved it. Here's the solution: $pdf = new fpdi(); $pdf-setSourceFile('D:\\DocShare\\'.$filename); $tplidx = $pdf-ImportPage(1); $s = $pdf-getTemplatesize($tplidx); $pdf-AddPage($s['h'] $s['w'] ? 'P' : 'L', array($s['w'], $s['h'])); // This gets it the right dimensions $pdf-useTemplate($tplidx,

Re: [PHP] Help with exec.

2010-03-03 Thread Richard Quadling
On 3 March 2010 13:01, Paul Halliday paul.halli...@gmail.com wrote: I need to pipe some data to an external application. I have this: while ($row = mysql_fetch_array($theData[0])) {    $src_ip[] = $row[0];    $dst_ip[] = $row[1];    $sig_desc[] = $row[2];    $rec ++;    if ( $rec ==

Re: [PHP] Help with exec.

2010-03-03 Thread Teus Benschop
On Wed, 2010-03-03 at 13:04 +, Richard Quadling wrote: On 3 March 2010 13:01, Paul Halliday paul.halli...@gmail.com wrote: I need to pipe some data to an external application. I have this: while ($row = mysql_fetch_array($theData[0])) { $src_ip[] = $row[0]; $dst_ip[] =

Re: [PHP] Help with exec.

2010-03-03 Thread Paul Halliday
I work by example :) I can't find enough of an example to get me going with this. I have this: $glow = popen('afterglow.pl -c color.properties -s -e 3 -p 1 -l 2000 | neato -Tpng -o /usr/local/www/test.png','r'); how do I feed my array to that? Thanks. On Wed, Mar 3, 2010 at 9:04 AM, Richard

Re: [PHP] Help preserving sentence structure

2010-02-26 Thread Ashley Sheridan
On Fri, 2010-02-26 at 14:11 -0600, John Tamm-Buckle wrote: Hi, new to this list... I'm adapting some code that generates text and want to keep the syntax. In the original version the output was iterated from an array in pre tags. That was fine for what it was, but it's now a word press

Re: [PHP] Help preserving sentence structure

2010-02-26 Thread Ryan Sun
http://us.php.net/manual/en/function.htmlentities.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] help, please, understanding my problem

2010-02-22 Thread Ashley Sheridan
On Mon, 2010-02-22 at 09:09 -0600, Stan wrote: I have a PHP page that has require_once(genMyOverlay.js.php); . . . echo body; echo script language=\JavaScript\doit(\mydiv\);/scriptbr; echo /body; genMyOverlay.js.php contains: createDiv() (see below) that creates a DIV ID=mydiv

Re: [PHP] help, please, understanding my problem

2010-02-22 Thread tedd
At 3:15 PM + 2/22/10, Ashley Sheridan wrote: Also, your script tags need a type attribute: script language=javascript type=text/javascript Actually, you only need this: script type=text/javascript The language attribute will throw an error in validation. Cheers, tedd -- ---

Re: [PHP] help, please, understanding my problem

2010-02-22 Thread Ashley Sheridan
On Mon, 2010-02-22 at 12:33 -0500, tedd wrote: At 3:15 PM + 2/22/10, Ashley Sheridan wrote: Also, your script tags need a type attribute: script language=javascript type=text/javascript Actually, you only need this: script type=text/javascript The language attribute will throw

Re: [PHP] help, please, understanding my problem

2010-02-22 Thread tedd
At 5:32 PM + 2/22/10, Ashley Sheridan wrote: On Mon, 2010-02-22 at 12:33 -0500, tedd wrote: At 3:15 PM + 2/22/10, Ashley Sheridan wrote: Also, your script tags need a type attribute: script language=javascript type=text/javascript Actually, you only need this: script

Re: [PHP] Help with regex (search/replace) please

2010-02-08 Thread Gautam Bhatia
hello, Hi ryan, i am not sure i am getting you on what ya want , is this something like what ya want, the code below which i wrote? function get_value() { var el = document.form_name.elements.length; for(var i =0 ; i= el ; i++) { if(document.form_name.elements[i].type=checkbox) { var id =

Re: [PHP] Help with regex (search/replace) please

2010-02-06 Thread Phpster
Why not just pass the value in the onclick? Onclick=doSomething(this); Would give you simple access to all the properties of that element. This.value would pass just the value. Bastien Sent from my iPod On Feb 6, 2010, at 9:43 AM, Ryan S gen...@yahoo.com wrote: Hey guys, As many of you

Re: [PHP] Help with regex (search/replace) please

2010-02-06 Thread Ashley Sheridan
On Sat, 2010-02-06 at 06:43 -0800, Ryan S wrote: Hey guys, As many of you might know, i totally suck at regex..so would really appreciate some help here. Basically i have a html page with a lot of textboxes,radios,checkboxes etc i need your help in the form of a regex so that when i

Re: [PHP] Help with regex (search/replace) please

2010-02-06 Thread Ryan S
Hey Ash,Bastien! clip Rather than a regex, you're probably better off using something like DomDocument, where you can iterate over all of the input elements in the document, and check the attributes of each one to check if they match your criteria. /clip @Ash, You're kinda reading my mind...

Re: [PHP] Help with regex (search/replace) please

2010-02-06 Thread Ashley Sheridan
On Sat, 2010-02-06 at 07:53 -0800, Ryan S wrote: Hey Ash,Bastien! clip Rather than a regex, you're probably better off using something like DomDocument, where you can iterate over all of the input elements in the document, and check the attributes of each one to check if they match your

Re: [PHP] help with preg_replace pattern

2010-01-26 Thread Adam Richardson
On Tue, Jan 26, 2010 at 10:37 PM, Rob Gould gould...@mac.com wrote: It appears that IE renders it's display: none in all caps while Firefox and other browsers pass it back in lowercase. This throws off my php line of code the is supposed to nuke blank bullets from a string of text: $bl = LI

Re: [PHP] Help needed with calculation

2009-11-15 Thread Adam Shannon
If the download speed is constant (linear) then you can just use. (10245458756 / 6t)/1000 = kb/second or (10245458756 / 6t)/6 = kb/minute The general form would be. (size_of_file / download_speed * time) / convert_to_units Where t (or time) is the amount of seconds that the download

Re: [PHP] Help on pregreplace

2009-08-18 Thread Ashley Sheridan
On Tue, 2009-08-18 at 16:00 +0200, Merlin Morgenstern wrote: Hi there, I am highlighting keywords with the help of pregreplace. This works great with one limitation. If the word that has to be replaced contains a slash, preg throws an error. So far I could not find a fix. Can someone

Re: [PHP] Help on pregreplace

2009-08-18 Thread Merlin Morgenstern
Ashley Sheridan wrote: On Tue, 2009-08-18 at 16:00 +0200, Merlin Morgenstern wrote: Hi there, I am highlighting keywords with the help of pregreplace. This works great with one limitation. If the word that has to be replaced contains a slash, preg throws an error. So far I could not find a

Re: [PHP] Help on pregreplace

2009-08-18 Thread Tom Worster
On 8/18/09 10:56 AM, Merlin Morgenstern merli...@fastmail.fm wrote: Ashley Sheridan wrote: On Tue, 2009-08-18 at 16:00 +0200, Merlin Morgenstern wrote: Hi there, I am highlighting keywords with the help of pregreplace. This works great with one limitation. If the word that has to be

Re: [PHP] HELP - Parse Error

2009-08-04 Thread Daniel Brown
On Tue, Aug 4, 2009 at 13:47, Allen McCabeallenmcc...@gmail.com wrote: [snip=everything] Looks like you're missing a closing bracket here: if(!empty($_POST['EMailAddress'])) { $EMailAddress = $_POST['EMailAddress']; } else { $EMailAddress = ; // --- Right here -- /Daniel P. Brown

Re: [PHP] HELP - Parse Error

2009-08-04 Thread Jim Lucas
Allen McCabe wrote: *Parse error*: syntax error, unexpected $end in * /home/a9066165/public_html/admin/processccu.php* on line *231* I have learned from a number of similar mistakes that this error message /normally/ means that I have a miss-matched number of brackets on a foreach, while, or

Re: [PHP] HELP - Parse Error

2009-08-04 Thread Ashley Sheridan
On Tue, 2009-08-04 at 10:56 -0700, Jim Lucas wrote: Allen McCabe wrote: *Parse error*: syntax error, unexpected $end in * /home/a9066165/public_html/admin/processccu.php* on line *231* I have learned from a number of similar mistakes that this error message /normally/ means that I have

Re: [PHP] HELP - Parse Error

2009-08-04 Thread Allen McCabe
Ashley - I am formatting this way, it just didn't translate into gmail : ) Daniel, Martin, and Jim - Thanks very much, my php runs now, however I don't get the result page anymore. My inbox receives the form (missing cells, but that's another issue), but the browser doesn't load processccu.php,

Re: [PHP] HELP - Parse Error

2009-08-04 Thread Allen McCabe
Well, I got it to display a thank you page instead of what I had. I'm rolling with the punches. Got to work on why my email table is not building right. Stay tuned! On Tue, Aug 4, 2009 at 11:09 AM, Allen McCabe allenmcc...@gmail.com wrote: Ashley - I am formatting this way, it just didn't

Re: [PHP] HELP - Parse Error

2009-08-04 Thread Jim Lucas
Allen McCabe wrote: Ashley - I am formatting this way, it just didn't translate into gmail : ) You might try using indentation with more then one space. Try tabs. Any respectable editor will allow you to set the number of spaces it uses to actually represent the tab. That way I can have mine

Re: [PHP] HELP - Parse Error

2009-08-04 Thread Allen McCabe
I created a webpage with the code listed, and a screen shot of the email I am currently receiving (with nonsense entered into my inputs) URL: http://lpacmarketing.hostzi.com/admin/help.html Anyone that can provide help will be rewarded in their next life. That's a promise. Thanks! On Tue, Aug

Re: [PHP] HELP - Parse Error

2009-08-04 Thread Jim Lucas
Allen McCabe wrote: I created a webpage with the code listed, and a screen shot of the email I am currently receiving (with nonsense entered into my inputs) URL: http://lpacmarketing.hostzi.com/admin/help.html Anyone that can provide help will be rewarded in their next life. That's a

Re: [PHP] Help with file downloads.

2009-07-19 Thread Ashley Sheridan
On Sun, 2009-07-19 at 16:47 +0930, tony mount wrote: Hi, My first post. Been writing php from scratch for about 12 months, mainly with what I learnt from the web. Have a problem trying to download multiple files. I'm using the following code: if (file_exists($file)) {

Re: [PHP] HELP SQL INJECTION

2009-07-11 Thread Ashley Sheridan
On Saturday 11 July 2009 01:17:28 Zareef Ahmed wrote: Hi, First of all change your FTP password and stop storing your password in your FTP client. This type of attacks are very common with the people who use insecure FTP client. My previous experience with your kind of problem tell me

Re: [PHP] HELP SQL INJECTION

2009-07-10 Thread Daniel Brown
On Fri, Jul 10, 2009 at 15:48, Chris Paynechris_pa...@danmangames.com wrote: Hi everyone, My server appears to be the victim of a chinese hack-attack and I believe they managed to change pages via SQL Injection, do any of you have any ideas how to lock down my forms so MySQL cannot be used

Re: [PHP] HELP SQL INJECTION

2009-07-10 Thread Eddie Drapkin
On Fri, Jul 10, 2009 at 3:50 PM, Daniel Browndanbr...@php.net wrote: On Fri, Jul 10, 2009 at 15:48, Chris Paynechris_pa...@danmangames.com wrote: Hi everyone, My server appears to be the victim of a chinese hack-attack and I believe they managed to change pages via SQL Injection, do any of

Re: [PHP] HELP SQL INJECTION

2009-07-10 Thread Govinda
On Jul 10, 2009, at 1:50 PM, Daniel Brown wrote: On Fri, Jul 10, 2009 at 15:48, Chris Paynechris_pa...@danmangames.com wrote: Hi everyone, My server appears to be the victim of a chinese hack-attack and I believe they managed to change pages via SQL Injection, do any of you have any ideas

  1   2   3   4   5   6   7   8   9   10   >