php-general Digest 2 May 2012 06:45:47 -0000 Issue 7796

2012-05-02 Thread php-general-digest-help
php-general Digest 2 May 2012 06:45:47 - Issue 7796 Topics (messages 317727 through 317734): Re: code deployment through php 317727 by: Camilo Sperberg 317728 by: rene7705 317729 by: Stuart Dallas 317730 by: admin 317731 by: Larry Garfield

[PHP] problem loading php extension: undefined reference to __gxx_personality_v0‏

2012-05-02 Thread Nathan Ridge
Hi, I'm having trouble loading a PHP extension that I made. When starting PHP, I get the following error: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/libtg.so' - /usr/lib/php5/20090626/libtg.so: undefined symbol: __gxx_personality_v0 in Unknown on line

Re: [PHP] code deployment through php

2012-05-02 Thread rene7705
I can't use anything like git on my shared hoster. But I suppose I could use something like git at home, and use a sync script like I posted in my OP on the shared hoster.

Re: [PHP] code deployment through php

2012-05-02 Thread rene7705
On Wed, May 2, 2012 at 11:47 AM, rene7705 rene7...@gmail.com wrote: I can't use anything like git on my shared hoster. But I suppose I could use something like git at home, and use a sync script like I posted in my OP on the shared hoster. Maybe you git gurus can help me along a bit

Re: [PHP] code deployment through php

2012-05-02 Thread Lester Caine
rene7705 wrote: I can't use anything like git on my shared hoster. But I suppose I could use something like git at home, and use a sync script like I posted in my OP on the shared hoster. I have some legacy hosting packages which are just ftp access and BC just lists them and allows me to

[PHP] PHP Emacs

2012-05-02 Thread Mihamina Rakotomandimby
Hi all, For curiosity, are there people here using Emacs to code in PHP? What modes do you add? cedet, ecb,... I see (just for the example) that Drupal has a short documentation page for Emacs http://drupal.org/node/59868 Have you got some in your bookmarks for general PHP coding? -- RMA.

[PHP] get content rss feed

2012-05-02 Thread Doeke Wartena
Hi all, I try to get the content from the following rss feed http://www.adafruit.com/blog/feed/ I want to store it in a database in order to use it for a school assignment. If i look in my browser to the feed then i see content and description, however if i try to get them with php then

[PHP] Problem with AssertTag: children count wrong

2012-05-02 Thread Michael Otteneder
Hi List! I'm trying to use phpUnit's AssertTag function to make sure that some html code contains an ul element with exactly li items in it. My test looks like this: function testUnconfiguredFilter() { $matcher = array( 'tag' = 'ul', 'children' = array( 'count' = 3, 'only' = array('tag' =

[PHP] PHP Database Problems

2012-05-02 Thread Ethan Rosenberg
have a database mysql describe Intake3; ++-+--+-+-+---+ | Field | Type| Null | Key | Default | Extra | ++-+--+-+-+---+ | Site | varchar(6) | NO | PRI | | | | MedRec | int(6) | NO |

[PHP] RE: [PHP-DB] PHP Database Problems

2012-05-02 Thread Gavin Chalkley
Ethan, Some coding you are using would be helpful (as far as i am aware attachments are not support on the mailing list's) Gav -Original Message- From: Ethan Rosenberg [mailto:eth...@earthlink.net] Sent: 02 May 2012 19:54 To: php-db-lists.php.net; php-general@lists.php.net Subject:

Re: [PHP] Problem with AssertTag: children count wrong

2012-05-02 Thread Jim Lucas
On 05/02/2012 10:55 AM, Michael Otteneder wrote: Hi List! I'm trying to use phpUnit's AssertTag function to make sure that some html code contains an ul element with exactly li items in it. My test looks like this: function testUnconfiguredFilter() { $matcher = array( 'tag' = 'ul',

Re: [PHP] PHP Database Problems

2012-05-02 Thread Jim Lucas
I do believe attachments are allowed. Looking back, I see that there have been messages sent to the list that had odt, php, and ini attachments On 05/02/2012 12:12 PM, Gavin Chalkley wrote: Ethan, Some coding you are using would be helpful (as far as i am aware attachments are not support on

Re: [PHP] PHP Database Problems

2012-05-02 Thread Terry Ally (Gmail)
Dear Ethan, It would be useful to see what code you are using. The syntax is: UPDATE table_name SET column1=value, column2=value2,... WHERE some_column=some_value The data that you are required to enter is for Intake3. I am assuming that the only change is the History and/or Phone that you

Re: [PHP] Problem with AssertTag: children count wrong

2012-05-02 Thread Michael Otteneder
Hi, sorry, I forgot to include the class definition: class GeneratedFiltersTest extends PHPUnit_Framework_Testcase { function testUnconfiguredFilter() { $matcher = array( 'tag' = 'ul', 'children' = array( 'count' = 3, 'only' = array('tag' = 'li') )

[PHP] date conversion/extraction issues

2012-05-02 Thread Haluk Karamete
This is my code and the output is right after that... $PDate = $row['PDate']; //row is tapping into ms-sql date field. //and the ms-sql data field has a value like this for the PDate; //07/12/2001 $PDate = $PDate-date; echo h1[, $PDate , ]/h1; echo h1[, var_dump($row['PDate']) , ]/h1; echo h1[,

[PHP] PHP Database Problems -- Code Snippets

2012-05-02 Thread Ethan Rosenberg
Dear list - Sorry for the attachment. Here are code snippets --- GET THE DATA FROM INTAKE3: function handle_data() { global $cxn; $query = select * from Intake3 where 1; if(isset($_Request['Sex']) trim($_POST['Sex']) != '' ) { if

[PHP] Re: [PHP-DB] PHP Database Problems -- Code Snippets

2012-05-02 Thread Christopher Jones
I noticed the use of SQL concatenation like: $allowed_fields = array ( 'Site' =$_POST['Site'], 'MedRec' = $_POST['MedRec'], 'Fname' = $_POST['Fname'], 'Lname' = $_POST['Lname'] , 'Phone' = $_POST['Phone'] , 'Sex' = $_POST['Sex'] , 'Height' = $_POST['Height'] );

Re: [PHP] date conversion/extraction issues

2012-05-02 Thread Matijn Woudt
On Wed, May 2, 2012 at 11:36 PM, Haluk Karamete halukkaram...@gmail.com wrote: This is my code and the output is right after that... $PDate = $row['PDate']; //row is tapping into ms-sql date field. //and the ms-sql data field has a value like this for the PDate; //07/12/2001 $PDate =

Re: [PHP] PHP Database Problems -- Code Snippets

2012-05-02 Thread Matijn Woudt
On Wed, May 2, 2012 at 11:43 PM, Ethan Rosenberg eth...@earthlink.net wrote: Dear list - Sorry for the attachment.  Here are code snippets --- Ethan, I don't want to sound rude, but it appears to me you don't have any understanding of what you're doing. It might help if you understand what

Re: [PHP] PHP Database Problems

2012-05-02 Thread Duken Marga
But I don't see any attachments in this message. On Thu, May 3, 2012 at 2:28 AM, Jim Lucas li...@cmsws.com wrote: I do believe attachments are allowed. Looking back, I see that there have been messages sent to the list that had odt, php, and ini attachments On 05/02/2012 12:12 PM, Gavin

Re: [PHP] PHP Database Problems -- Code Snippets

2012-05-02 Thread Duken Marga
It is a good habbit to write the core code just for inserting/retrieving data from database. It will reduce much of your code complexity. When you see your code is working, you can continue to embed it with your visual front-end or with your filter. On Thu, May 3, 2012 at 4:43 AM, Ethan Rosenberg

[PHP] Retrieve pages from an ASP driven site

2012-05-02 Thread EPA WC
Hi List, I am trying to write a crawler to go through web pages at http://www.freebookspot.es/CompactDefault.aspx?Keyword=. But I am not quite familiar with how asp uses _doPostBack function with the next button below the book list to advance to the next page. I hope someone who knows ASP well

Re: [PHP] PHP Database Problems

2012-05-02 Thread Jim Lucas
On 5/2/2012 4:28 PM, Duken Marga wrote: But I don't see any attachments in this message. This was in the first email of this thread. I can easily extract data from the database. However, if I try to enter data, it goes into the incorrect record. Following are some screenshots. The program