Re: [PHP] Question about creating php files from a form

2010-05-13 Thread Paul M Foster
On Thu, May 13, 2010 at 11:53:54PM -0400, Kevin wrote: > /On a side note: > I am having some issues with connecting to a SQLite database right now > ... I'm getting the following error "Fatal Error: 'sqlite_open' is an > unknown function" > But I'm putting that on the side right now. I think th

Re: [PHP] Append Dom Document

2010-05-13 Thread Nathan Nobbe
> > I am not sure what you mean in your second point, but I can explain the > first one. I am using PHP to parse RSS feeds, so that is why they all look > the same. > wow thats hilarious, you can see how little ive worked w/ rss feeds, read *none* > Or, what do you mean here? I checked out your

Re: [PHP] Question about creating php files from a form

2010-05-13 Thread Kevin
Ashley Sheridan wrote: On Thu, 2010-05-13 at 23:07 -0400, Kevin wrote: Hello All, I am trying to figure out how to create files when a user submits a form ... I have seen something about '*fopen*' , is that the direction I should be going? Here is what I am trying to accomplish: I am creati

Re: [PHP] Question about creating php files from a form

2010-05-13 Thread Ashley Sheridan
On Thu, 2010-05-13 at 23:07 -0400, Kevin wrote: > Hello All, > > I am trying to figure out how to create files when a user submits a form ... > I have seen something about '*fopen*' , is that the direction I should > be going? > > Here is what I am trying to accomplish: > > I am creating a pro

[PHP] Question about creating php files from a form

2010-05-13 Thread Kevin
Hello All, I am trying to figure out how to create files when a user submits a form ... I have seen something about '*fopen*' , is that the direction I should be going? Here is what I am trying to accomplish: I am creating a program to keep track of recipes for my wife. I have have page set

RE: [PHP] Append Dom Document

2010-05-13 Thread Alice Wei
Date: Thu, 13 May 2010 18:49:35 -0600 Subject: Re: [PHP] Append Dom Document From: quickshif...@gmail.com To: aj...@alumni.iu.edu CC: php-general@lists.php.net On Thu, May 13, 2010 at 5:46 PM, Alice Wei wrote: Hi, I am trying to create a news feed page that loads a number of different

Re: [PHP] Append Dom Document

2010-05-13 Thread Nathan Nobbe
On Thu, May 13, 2010 at 5:46 PM, Alice Wei wrote: > > Hi, > > I am trying to create a news feed page that loads a number of different > feeds depending on what options the user selects. For some reason, I could > not figure out how to get the dom document to "append" the different xml > document

[PHP] Append Dom Document

2010-05-13 Thread Alice Wei
Hi, I am trying to create a news feed page that loads a number of different feeds depending on what options the user selects. For some reason, I could not figure out how to get the dom document to "append" the different xml documents that get created. Below is the code, and obviously now

Re: [PHP] GD - import a PNG image and make transparant

2010-05-13 Thread Alex Davies
Hi Ash, Thanks for your suggestion. I think this is where my confusion is. I understand how to use imagecolorallocatealpha() to for example create a 50% transparant colour, and apply it to a new rectangle for example. I dont understand how to "apply" it to a new source image, for example $src = i

Re: [PHP] GD - import a PNG image and make transparant

2010-05-13 Thread Karl DeSaulniers
Hey tedd, Sorry bout that.. here you go. http://designdrumm.com/upload_images_test.zip Karl On May 13, 2010, at 9:06 AM, tedd wrote: At 6:40 PM -0500 5/12/10, Karl DeSaulniers wrote: Hi Alex, I have a php file I made just a few months ago. It takes a gif, jpeg or png of any size and sizes i

Re: [PHP] opening a link in a new window

2010-05-13 Thread Ashley Sheridan
On Thu, 2010-05-13 at 17:13 -0400, David Mehler wrote: > Hello, > I want to open an external link in a new window, i know i can do this > with xhtml, but only with the transitional dtd, which i'm not using. I > was wondering if php could pull this off? > Thanks. > Dave. > No. PHP is on the serv

[PHP] opening a link in a new window

2010-05-13 Thread David Mehler
Hello, I want to open an external link in a new window, i know i can do this with xhtml, but only with the transitional dtd, which i'm not using. I was wondering if php could pull this off? Thanks. Dave. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

Re: [PHP] GD - import a PNG image and make transparant

2010-05-13 Thread tedd
At 6:40 PM -0500 5/12/10, Karl DeSaulniers wrote: Hi Alex, I have a php file I made just a few months ago. It takes a gif, jpeg or png of any size and sizes it proportionately to a specified size and then outputs a png. If the image is a transparent png or transparent gif, it will still hold th

Re: [PHP] function/class to convert IDN (Puny-Code)?

2010-05-13 Thread tedd
At 4:51 AM +0200 5/13/10, Michelle Konzack wrote: Hello, while reading RFC3490 (plus 3454/3491/3492) and before I am ongoing to reinvent the wheel here the question: Does someone HAVE or know a function/class which does the IDN conversion "toASCII" and "toUNICODE"? Note: The C Sour

Re: [PHP] create tree from arrays

2010-05-13 Thread Richard Quadling
On 13 May 2010 11:42, shahrzad khorrami wrote: > > Dear Richard, > we have more than one parentID  with value 0 in main array, your > code is so good but show me just the children of first parentID 0. > > :) > > Thanks, > Shahrzad > print_r($Data[0]['children']); maybe. -- - Richa

Re: [PHP] create tree from arrays

2010-05-13 Thread shahrzad khorrami
Dear Richard, we have more than one parentID with value 0 in main array, your code is so good but show me just the children of first parentID 0. :) Thanks, Shahrzad

Re: [PHP] create tree from arrays

2010-05-13 Thread shahrzad khorrami
Thanks Rechard :) I'm testing it... merccc

Re: [PHP] create tree from arrays

2010-05-13 Thread Richard Quadling
On 13 May 2010 11:09, Richard Quadling wrote: > On 13 May 2010 09:51, shahrzad khorrami wrote: >> hi all, >> >> I want to create an array from another array to create json file in my >> format and pass it to a js libraryok. >> I just know that I have to use recursive function... but how? it's

Re: [PHP] create tree from arrays

2010-05-13 Thread Richard Quadling
On 13 May 2010 09:51, shahrzad khorrami wrote: > hi all, > > I want to create an array from another array to create json file in my > format and pass it to a js libraryok. > I just know that I have to use recursive function... but how? it's hard for > me to create the new array.. Assuming tha

[PHP] create tree from arrays

2010-05-13 Thread shahrzad khorrami
hi all, I want to create an array from another array to create json file in my format and pass it to a js libraryok. I just know that I have to use recursive function... but how? it's hard for me to create the new array.. main array: Array ( [0] => Array ( [nid] => 1

RE: [PHP] Parse question

2010-05-13 Thread Lawrance Shepstone
-Original Message- From: Ron Piggott [mailto:ron.pigg...@actsministries.org] Sent: 13 May 2010 06:34 AM To: PHP General Subject: [PHP] Parse question If $message_body contains: $message_body="You are subscribed using u...@domain. To update"; How do I capture just the e-mail address? R

Re: [PHP] Parse question

2010-05-13 Thread Cemal Eker
Check this out. http://www.regular-expressions.info/email.html --- “Talk is cheap. Show me the code” - Linus Torvalds On Thu, May 13, 2010 at 7:34 AM, Ron Piggott wrote: > > If $message_body contains: > > $message_body="You are subscribed using u...@domain. To update"; > > How do I capture jus

[PHP] Parse question

2010-05-13 Thread Ron Piggott
If $message_body contains: $message_body="You are subscribed using u...@domain. To update"; How do I capture just the e-mail address? Ron

RE: [PHP] stristr query trouble

2010-05-13 Thread Lawrance Shepstone
On 13 May 2010 10:08, Lawrance Shepstone wrote: > -Original Message- > From: Ron Piggott [mailto:ron@actsministries.org] > Sent: 13 May 2010 06:02 AM > To: PHP General > Subject: [PHP] stristr query trouble > > I am not understanding why 'true' isn't the result of this syntax because >

Re: [PHP] stristr query trouble

2010-05-13 Thread Peter Lind
On 13 May 2010 10:08, Lawrance Shepstone wrote: > -Original Message- > From: Ron Piggott [mailto:ron@actsministries.org] > Sent: 13 May 2010 06:02 AM > To: PHP General > Subject: [PHP] stristr query trouble > > I am not understanding why 'true' isn't the result of this syntax because >

Re: [PHP] stristr query trouble

2010-05-13 Thread Warren Windvogel
Ron Piggott wrote: $subjects = "Delivery Status Notification(Failure)"; Here is my syntax: if ( stristr( $subjects, "Delivery Status Notifcation(Failure)" ) ) { Notification is misspelled. Next time copy and paste the comparison string or use regular expressions to be more safe. Kind rega

RE: [PHP] stristr query trouble

2010-05-13 Thread Lawrance Shepstone
-Original Message- From: Ron Piggott [mailto:ron@actsministries.org] Sent: 13 May 2010 06:02 AM To: PHP General Subject: [PHP] stristr query trouble I am not understanding why 'true' isn't the result of this syntax because $subjects equals: $subjects = "Delivery Status Notification(F

[PHP] stristr query trouble

2010-05-13 Thread Ron Piggott
I am not understanding why 'true' isn't the result of this syntax because $subjects equals: $subjects = "Delivery Status Notification(Failure)"; Here is my syntax: if ( stristr( $subjects, "Delivery Status Notifcation(Failure)" ) ) { $TIRSFlag = true; echo "true"; }