Re: [PHP] Newbie Question - Parse XML with PHP...

2013-04-21 Thread shiplu
On Apr 22, 2013 7:00 AM, "Bastien Koert" wrote: > > I have an app that gets passed in xml and use this code to read that data in > > // We use php://input to get the raw $_POST results. > $xml_post = file_get_contents('php://input'); $xml_post is string. I think now you know what to do.

Re: [PHP] Newbie Question - Parse XML with PHP...

2013-04-21 Thread Bastien Koert
I have an app that gets passed in xml and use this code to read that data in // We use php://input to get the raw $_POST results. $xml_post = file_get_contents('php://input'); Maybe it will help Bastien On Sat, Apr 20, 2013 at 7:48 AM, shiplu wrote: > > > > > > > > Question: how do you use $

Re: [PHP] Newbie Question - Parse XML with PHP...

2013-04-20 Thread shiplu
> > > > Question: how do you use $mylist when the xml is not as a file but is > returned on a web page? > I assume It returns as a string from page. Then use simplexml_load_string(). See http://php.net/manual/en/function.simplexml-load-string.php -- Shiplu.Mokadd.im ImgSign.com | A dynamic sig

Re: [PHP] Newbie Question - Parse XML with PHP...

2013-04-20 Thread Matijn Woudt
On Sat, Apr 20, 2013 at 12:51 AM, dealTek wrote: > > On Apr 19, 2013, at 3:32 PM, tamouse mailing lists < > tamouse.li...@gmail.com> wrote: > > >> > >> page1.php is sending out to credit card company - getting processed - > then coming back to the *same page1.php* with the XML data listed below..

Re: [PHP] Newbie Question - Parse XML with PHP...

2013-04-20 Thread tamouse mailing lists
This will be brief as I'm on a tablet... On Apr 19, 2013 5:53 PM, "dealTek" wrote: > > > On Apr 19, 2013, at 3:32 PM, tamouse mailing lists < tamouse.li...@gmail.com> wrote: > > >> > >> page1.php is sending out to credit card company - getting processed - then coming back to the *same page1.php*

Re: [PHP] Newbie Question - Parse XML with PHP...

2013-04-19 Thread dealTek
On Apr 19, 2013, at 3:32 PM, tamouse mailing lists wrote: >> >> page1.php is sending out to credit card company - getting processed - then >> coming back to the *same page1.php* with the XML data listed below... > > Please expand what you mean by "sending out" and "coming back" - is > this a

Re: [PHP] Newbie Question - Parse XML with PHP...

2013-04-19 Thread tamouse mailing lists
On Fri, Apr 19, 2013 at 4:04 PM, dealTek wrote: > > On Apr 19, 2013, at 1:33 PM, Sebastian Krebs wrote: > >> A "webpage" is a file, that (usually) a browser downloads and parses. You'll >> do exactly the same :-) I don't know exactly, but you can try to pass the >> URL directly to simplexml_loa

Re: [PHP] Newbie Question - Parse XML with PHP...

2013-04-19 Thread dealTek
On Apr 19, 2013, at 1:33 PM, Sebastian Krebs wrote: > A "webpage" is a file, that (usually) a browser downloads and parses. You'll > do exactly the same :-) I don't know exactly, but you can try to pass the URL > directly to simplexml_load_file(). If this doesn't work, download the content >

Re: [PHP] Newbie Question - Parse XML with PHP...

2013-04-19 Thread Sebastian Krebs
A "webpage" is a file, that (usually) a browser downloads and parses. You'll do exactly the same :-) I don't know exactly, but you can try to pass the URL directly to simplexml_load_file(). If this doesn't work, download the content (for example with file_get_contents()) and pass it to simplexml_lo

[PHP] Newbie Question - Parse XML with PHP...

2013-04-19 Thread dealTek
Hi all, newbie - just starting with trying to parse XML... $mylist = simplexml_load_file('thelist.xml'); then use a foreach to echo the data... title; $artist=$songinfo->artist; $date=$songinfo['dateplayed']; echo $title.' --- '; echo $artist.' --- ';

[PHP] Newbie question: replacing truetype fonts with UTF8 encoded Unicode characters

2011-08-22 Thread Venkatesh
Greetings I have some HTML text using truetype fonts which i have to convert to UTF8 encoded unicode characters. I am just trying to replace the truetype font characters. The problem is that somehow the HTML tags also get converted to UTF8 :-( I do a lot of str_replace such as the following: $b

Re: [PHP] Newbie question. What is the best structure of a php-app?

2011-08-16 Thread Richard Quadling
separate the real code from html, which make debugging easier - at least for > me :) > > BTW, take a look on some free stuff. You can always learn from others. There > are some good ideas in open CMS systems, like Joomla. > > > Cheers, > >        Tom > > -O

RE: [PHP] Newbie question. What is the best structure of a php-app?

2011-08-16 Thread Dajka Tamás
Cheers, Tom -Original Message- From: Andreas [mailto:maps...@gmx.net] Sent: Tuesday, August 16, 2011 12:39 AM To: php-general@lists.php.net Subject: [PHP] Newbie question. What is the best structure of a php-app? Hi, I'm fairly new to PHP but not to programming as such. C

[PHP] Newbie question. What is the best structure of a php-app?

2011-08-15 Thread Andreas
Hi, I'm fairly new to PHP but not to programming as such. Currently I sat up XAMPP with xdebug, Netbeans and Eclipse to get a feeling. I can write and run php-files but I am wondering how I should construct a more complex application that runs over several pages between a login and a logout.

Re: [PHP] Newbie Question

2011-01-07 Thread David Hutto
On Fri, Jan 7, 2011 at 2:33 PM, tedd wrote: > At 2:16 AM -0500 1/7/11, Daniel Brown wrote: >> >> On Thu, Jan 6, 2011 at 23:09, Bill Guion wrote: >>> >>>  Fogging must be a REAL OLD Fashioned term. Please clarify. >> >>    It was originally written before man invented the letter 'L', Bill. > > No,

Re: [PHP] Newbie Question

2011-01-07 Thread tedd
At 2:16 AM -0500 1/7/11, Daniel Brown wrote: On Thu, Jan 6, 2011 at 23:09, Bill Guion wrote: Fogging must be a REAL OLD Fashioned term. Please clarify. It was originally written before man invented the letter 'L', Bill. No, it was the predecessor to water-boarding. Cheers, tedd --

RE: [PHP] Newbie Question

2011-01-07 Thread Jay Blanchard
{snip] ...stuff about tedd... [/snip] Thank goodness there is someone on the list much older than me. [snip] >PS: It's not Friday yet. [/snip] It is now. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newbie Question

2011-01-06 Thread Daniel Brown
On Thu, Jan 6, 2011 at 23:09, Bill Guion wrote: > > Fogging must be a REAL OLD Fashioned term. Please clarify. It was originally written before man invented the letter 'L', Bill. Welcome back, by the way. For someone who only posts once in a [great[ while, you certainly scrutinize spell

Re: [PHP] Newbie Question

2011-01-06 Thread Bill Guion
At 11:37 AM -0500 01/06/11, tedd wrote: At 8:16 PM -0500 1/5/11, Daniel Brown wrote: On Wed, Jan 5, 2011 at 19:45, David Harkness wrote: [snip!] Most companies will gladly give their product away to put it in the hands of soon-to-be-professionals. :) Tedd had his chance to be profes

Re: [PHP] Newbie Question

2011-01-06 Thread tedd
At 8:16 PM -0500 1/5/11, Daniel Brown wrote: On Wed, Jan 5, 2011 at 19:45, David Harkness wrote: [snip!] Most companies will gladly give their product away to put it in the hands of soon-to-be-professionals. :) Tedd had his chance to be professional back in the forties (the eighteen-f

Re: [PHP] Newbie Question

2011-01-05 Thread Daniel Brown
On Wed, Jan 5, 2011 at 19:45, David Harkness wrote: [snip!] > > Most companies will gladly give their product away to put it in the hands of > soon-to-be-professionals. :) Tedd had his chance to be professional back in the forties (the eighteen-forties, I believe). Now he teaches others who

Re: [PHP] Newbie Question

2011-01-05 Thread David Harkness
On Wed, Jan 5, 2011 at 3:05 PM, tedd wrote: > I spent a couple of hours reviewing PHPStorm and it looks *very* promising! Thank you for sharing your thoughts on PHPStorm. My main performance gripe with NetBeans has lessened in the year I've been using it, so I'm less inclined to go up yet anoth

Re: [PHP] Newbie Question

2011-01-05 Thread tedd
At 8:32 AM -0800 1/5/11, David Harkness wrote: On Wed, Jan 5, 2011 at 8:20 AM, tedd <tedd.sperl...@gmail.com> wrote: I teach using NetBeans, because it generally sucks less than Eclipse. Eclipse is simply too complicated and NetBeans tries to be less, but it's

Re: [PHP] Newbie Question

2011-01-05 Thread sono-io
On Jan 4, 2011, at 5:27 AM, Steve Staples wrote: > I now use Komodo (the free version) on my ubuntu workstation, and I love > it... I dont know how I managed before. I use Komodo Edit on OS X and I love it as well, except for the compare files feature. It's the worst one I've ever used

Re: [PHP] Newbie Question

2011-01-05 Thread David Harkness
On Wed, Jan 5, 2011 at 10:35 AM, Daniel Brown wrote: > On Wed, Jan 5, 2011 at 11:32, David Harkness > wrote: > > I do have to say that NetBeans more than Eclipse will randomly become > > unusable for unknown reasons: disk and CPU activity spike, > code-completion > > lags, whatever. Eclipse seem

Re: [PHP] Newbie Question

2011-01-05 Thread Robert Cummings
On 11-01-05 01:35 PM, Daniel Brown wrote: On Wed, Jan 5, 2011 at 11:32, David Harkness wrote: I do have to say that NetBeans more than Eclipse will randomly become unusable for unknown reasons: disk and CPU activity spike, code-completion lags, whatever. Eclipse seems more solid in this regard

Re: [PHP] Newbie Question

2011-01-05 Thread Daniel Brown
On Wed, Jan 5, 2011 at 11:32, David Harkness wrote: > > I do have to say that NetBeans more than Eclipse will randomly become > unusable for unknown reasons: disk and CPU activity spike, code-completion > lags, whatever. Eclipse seems more solid in this regard. Whereas, on Linux, I've found t

Re: [PHP] Newbie Question

2011-01-05 Thread David Harkness
On Wed, Jan 5, 2011 at 8:20 AM, tedd wrote: > I teach using NetBeans, because it generally sucks less than Eclipse. > Eclipse is simply too complicated and NetBeans tries to be less, but it's > still too much. > Have you tried PHPStorm? I installed it but haven't had a chance to play with it yet

Re: [PHP] Newbie Question

2011-01-05 Thread tedd
At 7:43 PM -0600 1/2/11, Larry Garfield wrote: On Sunday, January 02, 2011 4:56:28 pm Adolfo Olivera wrote: Thanks for the replies. I'll just put a php on all my html containing php. A little of topic. Wich IDE are you guys using. I'm sort of in a catch twenty two here. I been alternating vim

Re: [PHP] Newbie Question

2011-01-05 Thread tedd
At 9:36 PM -0300 1/1/11, Adolfo Olivera wrote: Hi, I'm new for php. Just trying to get my hello world going on godaddy hosting. Can't getting to work. I think sintax it's ok. I was understanding that my shared hosting plan had php installed. Any suggestions. Thanks, Happy 2011!! PS: Please

Re: [PHP] Newbie Question

2011-01-04 Thread Steve Staples
On Sun, 2011-01-02 at 21:10 -0500, David McGlone wrote: > On Sunday, January 02, 2011 08:43:51 pm Larry Garfield wrote: > > On Sunday, January 02, 2011 4:56:28 pm Adolfo Olivera wrote: > > > Thanks for the replies. I'll just put a php on all my html containing > > > php. A little of topic. Wich IDE

Re: [PHP] Newbie Question

2011-01-03 Thread Paul M Foster
On Mon, Jan 03, 2011 at 12:03:41PM -0300, Adolfo Olivera wrote: > Tim, >I've come to learn that relying on heavy and non free ides for > developing can kick you in the rear when you have to setup your developement > enviroment after a while. I've have that problem with some previous projec

Re: [PHP] Newbie Question

2011-01-03 Thread Ashley Sheridan
On Mon, 2011-01-03 at 10:00 -0500, Mujtaba Arshad wrote: > I just went back and read the original post and realized the recent > discussion has nothing to do with it. Awesome. Yeah, that happens sometimes! The OP changed the subject this time, so it should be OK ;) Also, if you can avoid it,

Re: [PHP] Newbie Question

2011-01-03 Thread Adolfo Olivera
Tim, I've come to learn that relying on heavy and non free ides for developing can kick you in the rear when you have to setup your developement enviroment after a while. I've have that problem with some previous projects made with adobe flex, asp.net and sql 2008. That's the reason why I'm

Re: [PHP] Newbie Question

2011-01-03 Thread Mujtaba Arshad
everyone I know who uses dreamweaver does so because the people that are supervising the project want to use dreamweaver, otherwise I haven't found anyone who actually liked using it. So I don't know if that actually means anything but that's the way it is. I guess it would be important to remembe

Re: [PHP] Newbie Question

2011-01-03 Thread Tim Thorburn
On 1/2/2011 5:56 PM, Adolfo Olivera wrote: Thanks for the replies. I'll just put a php on all my html containing php. A little of topic. Wich IDE are you guys using. I'm sort of in a catch twenty two here. I been alternating vim and dreamweaver. I'm trying to go 100% open source, but I really fin

Re: [PHP] Newbie Question

2011-01-03 Thread Ashley Sheridan
On Sun, 2011-01-02 at 21:10 -0500, David McGlone wrote: > On Sunday, January 02, 2011 08:43:51 pm Larry Garfield wrote: > > On Sunday, January 02, 2011 4:56:28 pm Adolfo Olivera wrote: > > > Thanks for the replies. I'll just put a php on all my html containing > > > php. A little of topic. Wich ID

Re: [PHP] Newbie Question

2011-01-02 Thread David McGlone
On Sunday, January 02, 2011 08:43:51 pm Larry Garfield wrote: > On Sunday, January 02, 2011 4:56:28 pm Adolfo Olivera wrote: > > Thanks for the replies. I'll just put a php on all my html containing > > php. A little of topic. Wich IDE are you guys using. I'm sort of in a > > catch twenty two here.

Re: [PHP] Newbie Question

2011-01-02 Thread Larry Garfield
On Sunday, January 02, 2011 4:56:28 pm Adolfo Olivera wrote: > Thanks for the replies. I'll just put a php on all my html containing php. > A little of topic. Wich IDE are you guys using. I'm sort of in a catch > twenty two here. I been alternating vim and dreamweaver. I'm trying to go > 100% open

Re: [PHP] Newbie Question

2011-01-02 Thread Joshua Kehn
On Jan 2, 2011, at 5:56 PM, Adolfo Olivera wrote: > Thanks for the replies. I'll just put a php on all my html containing php. > A little of topic. Wich IDE are you guys using. I'm sort of in a catch twenty > two here. I been alternating vim and dreamweaver. I'm trying to go 100% open > source, b

Re: [PHP] Newbie Question

2011-01-02 Thread Adolfo Olivera
Thanks for the replies. I'll just put a php on all my html containing php. A little of topic. Wich IDE are you guys using. I'm sort of in a catch twenty two here. I been alternating vim and dreamweaver. I'm trying to go 100% open source, but I really find dreamweaver easier to use so far. El ene 2

Re: [PHP] Newbie Question

2011-01-02 Thread Joshua Kehn
On Jan 2, 2011, at 1:17 PM, Adam Richardson wrote: > > I tend to disagree with Ashley on this topic. For many websites, I'll start > out making all pages .php, even if they don't require PHP at the moment. > That's for a couple reasons. > > 1) A few years back, there was certainly a significant

Re: [PHP] Newbie Question

2011-01-02 Thread Adam Richardson
On Sun, Jan 2, 2011 at 12:16 PM, Ashley Sheridan wrote: > On Sun, 2011-01-02 at 11:48 -0500, ad...@buskirkgraphics.com wrote: > > > Add this to your .htaccess file and HTML files will be handled like PHP > > files allowing you put PHP in HTML files. > > > > AddType application/x-httpd-php .html >

Re: [PHP] Newbie Question

2011-01-02 Thread Joshua Kehn
On Jan 2, 2011, at 12:50 PM, wrote: > The question was "The .php extension is a requirement?" > > The answer is no. > > While me and Ash may completely disagree on the php parser, the simple answer > is there are many ways around running a non .php extension file in php. > > > mod_rewrite ru

RE: [PHP] Newbie Question

2011-01-02 Thread admin
ehn'; robl...@aapt.net.au; php-general@lists.php.net Subject: RE: [PHP] Newbie Question On Sun, 2011-01-02 at 11:48 -0500, ad...@buskirkgraphics.com wrote: > Add this to your .htaccess file and HTML files will be handled like PHP > files allowing you put PHP in HTML files. >

Re: [PHP] Newbie Question

2011-01-02 Thread Joshua Kehn
On Jan 2, 2011, at 11:48 AM, wrote: > Add this to your .htaccess file and HTML files will be handled like PHP > files allowing you put PHP in HTML files. > > AddType application/x-httpd-php .html > > > Richard L. Buskirk > I would not recommend this approach, some perfectly valid reasons giv

RE: [PHP] Newbie Question

2011-01-02 Thread Ashley Sheridan
riginal Message- > From: Adolfo Olivera [mailto:olivera.ado...@gmail.com] > Sent: Saturday, January 01, 2011 8:38 PM > To: Joshua Kehn > Cc: robl...@aapt.net.au; php-general@lists.php.net > Subject: Re: [PHP] Newbie Question > > Sorry, here is the code. The .php extension is

RE: [PHP] Newbie Question

2011-01-02 Thread admin
To: Joshua Kehn Cc: robl...@aapt.net.au; php-general@lists.php.net Subject: Re: [PHP] Newbie Question Sorry, here is the code. The .php extension is a requirement? Can't it b embedded on a .html file? http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.o

Re: [PHP] Newbie Question

2011-01-01 Thread Joshua Kehn
On Jan 1, 2011, at 8:37 PM, Adolfo Olivera wrote: > Sorry, here is the code. The .php extension is a requirement? Can't it b > embedded on a .html file? > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> > http://www.w3.org/1999/xhtml";> > > > Untitled Document > > > > $a =

Re: [PHP] Newbie Question

2011-01-01 Thread Adolfo Olivera
Sorry, here is the code. The .php extension is a requirement? Can't it b embedded on a .html file? http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml";> Untitled Document On Sat, Jan 1, 2011 at 9:55 PM, Joshua Kehn wrote: > On Jan 1, 2011, at 7:50 PM,

Re: [PHP] Newbie Question

2011-01-01 Thread Joshua Kehn
On Jan 1, 2011, at 7:50 PM, David Robley wrote: > > And normally would need to be saved as a .php file so the contents will be > handled by php. > > > Cheers > -- > David Robley > > A fool and his money are my two favourite people. > Today is Boomtime, the 2nd day of Chaos in the YOLD 3177.

Re: [PHP] Newbie Question

2011-01-01 Thread David Robley
Joshua Kehn wrote: > On Jan 1, 2011, at 7:36 PM, Adolfo Olivera wrote: > >> Hi, >>I'm new for php. Just trying to get my hello world going on godaddy >> hosting. Can't getting to work. I think sintax it's ok. I was >> understanding that my shared hosting plan had php installed. Any >> sugges

Re: [PHP] Newbie Question

2011-01-01 Thread Joshua Kehn
On Jan 1, 2011, at 7:36 PM, Adolfo Olivera wrote: > Hi, >I'm new for php. Just trying to get my hello world going on godaddy > hosting. Can't getting to work. I think sintax it's ok. I was understanding > that my shared hosting plan had php installed. Any suggestions. Thanks, > > Happy 2011!

[PHP] Newbie Question

2011-01-01 Thread Adolfo Olivera
Hi, I'm new for php. Just trying to get my hello world going on godaddy hosting. Can't getting to work. I think sintax it's ok. I was understanding that my shared hosting plan had php installed. Any suggestions. Thanks, Happy 2011!! PS: Please, feel free to educate me on how to address the m

Re: [PHP] newbie question about code

2010-09-10 Thread Adam Richardson
On Fri, Sep 10, 2010 at 3:03 PM, Joshua Kehn wrote: > Adam- > > It is unique. I'm writing code that really can't be done any other way. How > it handles events, sockets, etc is exceptional. The best part is everything > now is JavaScript. The server (Node.js) is written in JavaScript. MongoDB is

Re: [PHP] newbie question about code

2010-09-10 Thread Joshua Kehn
Adam- It is unique. I'm writing code that really can't be done any other way. How it handles events, sockets, etc is exceptional. The best part is everything now is JavaScript. The server (Node.js) is written in JavaScript. MongoDB is JavaScript. The frontend used to manage the WebSocket is ent

Re: [PHP] newbie question about code

2010-09-10 Thread chris h
I would check this out to give you a decent understanding of php's oop. http://php.net/manual/en/language.oop5.php Chris. On Fri, Sep 10, 2010 at 2:27 PM, Adam Williams wrote: > I'm looking at someone's code to learn and I'm relatively new to > programming. In the code I see commands like: >

Re: [PHP] newbie question about code

2010-09-10 Thread Adam Richardson
> > > > This is what I get for taking a week to code everything in Node.js. > > It is a Friday, so I'll let my curiosity get the best of me and ask a follow-up on something non-PHP. What insights/impressions do you have regarding Node.js after a week of working with it? Thanks, Adam -- Nephta

Re: [PHP] newbie question about code

2010-09-10 Thread tedd
At 2:27 PM -0400 9/10/10, Joshua Kehn wrote: Adam- That is a function call. In Java: class Code { public static void function do_command(){ } } Code.do_command(); Regards, -Josh Not just Java, but does I've seen this in several languages. Javascript is one. But realize that Java is to

Re: [PHP] newbie question about code

2010-09-10 Thread Joshua Kehn
ava? :P > > Thanks, > Ash > http://www.ashleysheridan.co.uk > > - Reply message - > From: "Joshua Kehn" > Date: Fri, Sep 10, 2010 19:32 > Subject: [PHP] newbie question about code > To: "Bob McConnell" > Cc: "Adam Williams" , "P

Re: [PHP] newbie question about code

2010-09-10 Thread a...@ashleysheridan.co.uk
Node.js, wouldn't that be javascript rather than java? :P Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: "Joshua Kehn" Date: Fri, Sep 10, 2010 19:32 Subject: [PHP] newbie question about code To: "Bob McConnell" Cc: "Adam Williams

Re: [PHP] newbie question about code

2010-09-10 Thread a...@ashleysheridan.co.uk
It's object oriented code. $code is an instance of class, and do_command() is a method if that class. I'd advise reading up on oop php. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: "Adam Williams" Date: Fri, Sep 10, 2010 19:27 Subject: [PHP] n

Re: [PHP] newbie question about code

2010-09-10 Thread Joshua Kehn
Bob- Yes, yes I did. And note that my Java code is incorrect, that should simply be public static void, no function. This is what I get for taking a week to code everything in Node.js. Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com

RE: [PHP] newbie question about code

2010-09-10 Thread Bob McConnell
Did you mean to say "That is a method call."? Bob McConnell - From: Joshua Kehn That is a function call. In Java: class Code { public static void function do_command(){ } } Code.do_command(); Regards, -Josh Joshua Kehn | josh.k

Re: [PHP] newbie question about code

2010-09-10 Thread Joshua Kehn
Adam- That is a function call. In Java: class Code { public static void function do_command(){ } } Code.do_command(); Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com On Sep 10, 2010, at 2:27 PM, Adam Williams wrote: > I'm lookin

[PHP] newbie question about code

2010-09-10 Thread Adam Williams
I'm looking at someone's code to learn and I'm relatively new to programming. In the code I see commands like: $code->do_command(); I'm not really sure what that means. How would that look in procedural style programming? do_command($code); or something else? -- PHP General Mailing List

Re: [PHP] Newbie Question about Conditionals

2010-03-31 Thread Matty Sarro
After looking up the === operator, I see exactly what you mean. Thanks for your help everyone. I think the confusion was that I was always under the impression that assignment is either true or false; I would never have guessed it was equal to the value assigned. Your examples really helped to soli

Re: [PHP] Newbie Question about Conditionals

2010-03-31 Thread Richard Quadling
On 31 March 2010 05:45, Matty Sarro wrote: > That explains it perfectly, thanks you! > > On Wed, Mar 31, 2010 at 12:40 AM, Tommy Pham wrote: > >> On Tue, Mar 30, 2010 at 9:22 PM, Matty Sarro wrote: >> > Hey all! >> > This is probably my second post on the list, so please be gentle. Right >> now

Re: [PHP] Newbie Question about Conditionals

2010-03-30 Thread Matty Sarro
That explains it perfectly, thanks you! On Wed, Mar 31, 2010 at 12:40 AM, Tommy Pham wrote: > On Tue, Mar 30, 2010 at 9:22 PM, Matty Sarro wrote: > > Hey all! > > This is probably my second post on the list, so please be gentle. Right > now > > I am running through the "Heads First PHP and MySQ

Re: [PHP] Newbie Question about Conditionals

2010-03-30 Thread Tommy Pham
On Tue, Mar 30, 2010 at 9:22 PM, Matty Sarro wrote: > Hey all! > This is probably my second post on the list, so please be gentle. Right now > I am running through the "Heads First PHP and MySQL" book from O'Reilly. > It's been quite enjoyable so far, but I have some questions about some of > the

[PHP] Newbie Question about Conditionals

2010-03-30 Thread Matty Sarro
Hey all! This is probably my second post on the list, so please be gentle. Right now I am running through the "Heads First PHP and MySQL" book from O'Reilly. It's been quite enjoyable so far, but I have some questions about some of the code they're using in one of the chapters. Basically the code

[PHP] newbie question - php parsing

2009-07-22 Thread Sebastiano Pomata
Hi all, A little doubt caught me while I was writing this snippet of code for a wordpress template: I always thought that php was called only between the tags, and I'm pretty sure that's right, while HTML code was simply wrote in document as is, without further logic. Now, I can't figure out

Re: [PHP] Newbie Question: How to pass URL info to .php script ?

2008-06-19 Thread Chris Scott
You could just use an apache (or other web server) alias: www.test.com/article -> www.test.com/article.php where article.php uses: "; ?>

Re: [PHP] Newbie Question: How to pass URL info to .php script ?

2008-06-19 Thread Nathan Nobbe
On Thu, Jun 19, 2008 at 1:18 AM, Ethan Whitt <[EMAIL PROTECTED]> wrote: > I pasted your example in and it doesn't work for me (again, newbie). I > will play with it and see if I can get it working. My main goal is to have > Ruby-like URL's vs "?var=3425". Is this possible with .php (without > m

Re: [PHP] Newbie Question: How to pass URL info to .php script ?

2008-06-19 Thread Nathan Nobbe
On Thu, Jun 19, 2008 at 1:28 AM, Bob <[EMAIL PROTECTED]> wrote: > Have you tried CodeIgniter http://www.codeigniter.com? > > Not as restrictive as many MVC frameworks and very easy to work with. > > What you wish to achieve can be done with one line. > > $myvar = $this->uri->segment(2); right, a

Re: [PHP] Newbie Question: How to pass URL info to .php script ?

2008-06-19 Thread Jignesh Thummar
Ethan, you can try this: $url = www.test.com/article/3435; echo basename($url); another solution is that you can use explode() function to seprate your url from '/' or you can use regex to parse your url - Jignesh On Thu, Jun 19, 2008 at 8:18 AM, Ethan Whitt <[EMAIL PROTECTED]> wrote: > I pasted

RE: [PHP] Newbie Question: How to pass URL info to .php script ?

2008-06-19 Thread Bob
x27;s taste but on a personal level I think it's one of the better MVCs about. Bob. -Original Message- From: Ethan Whitt Sent: 19 June 2008 17:19 To: Nathan Nobbe Cc: php-general@lists.php.net Subject: Re: [PHP] Newbie Question: How to pass URL info to .php script ? I pasted your e

Re: [PHP] Newbie Question: How to pass URL info to .php script ?

2008-06-19 Thread Ethan Whitt
I pasted your example in and it doesn't work for me (again, newbie). I will play with it and see if I can get it working. My main goal is to have Ruby-like URL's vs "?var=3425". Is this possible with .php (without mod_rewrite / something in the http server?) Thanks, Ethan On Wed, Jun 18, 20

Re: [PHP] Newbie Question: How to pass URL info to .php script ?

2008-06-18 Thread Nathan Nobbe
On Wed, Jun 18, 2008 at 10:45 PM, Ethan Whitt <[EMAIL PROTECTED]> wrote: > Not sure how to achieve this. How can I grab a portion of a URl to send to > a .php script in this fashion? > > www.test.com/article/3435 <- Grab the "3435" to process in a script? take a look at the $_SERVER superglob

[PHP] Newbie Question: How to pass URL info to .php script ?

2008-06-18 Thread Ethan Whitt
Not sure how to achieve this. How can I grab a portion of a URl to send to a .php script in this fashion? www.test.com/article/3435 <- Grab the "3435" to process in a script? Thanks in advance! Ethan

Re: [PHP] Newbie question about sending email

2008-04-17 Thread Daniel Brown
On Thu, Apr 17, 2008 at 12:50 PM, Pete Holsberg <[EMAIL PROTECTED]> wrote: > > 1E6 thank yous!! My TI SR-10 couldn't handle that calculation and blew up in my hand. ;-P -- Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract! Dedicated servers,

Re: [PHP] Newbie question about sending email

2008-04-17 Thread Pete Holsberg
Ooops! processor.php is now: $where_form_is = "http://".$_SERVER['SERVER_NAME'].dirname($_SERVER['PHP_SELF'])."/"; $to = "[EMAIL PROTECTED],[EMAIL PROTECTED]"; $subject = "SUBSCRIBE"; //$from = $_POST['field_4']; <<<== this was the culprit $body = "Form data: Name: ".$_POST['field_1'].

Re: [PHP] Newbie question about sending email

2008-04-17 Thread Daniel Brown
On Thu, Apr 17, 2008 at 12:37 PM, Pete Holsberg <[EMAIL PROTECTED]> wrote: > > OK. I don't see a mail() in your code. Would it be > > mail($to, $subject, $body, $headers); > > ? Entirely my fault, Pete. I'm a moron sometimes. Could've sworn it was in there. Sorry about that. Yes, yo

Re: [PHP] Newbie question about sending email

2008-04-17 Thread Pete Holsberg
Daniel Brown has written on 4/17/2008 12:29 PM: I'll reiterate: "Note the mail() parameters. There's no header information there." RTFM: http://php.net/mail You just have your mail() function wrong. Reiterating my code as well (with updated field_4 data): http://".$

Re: [PHP] Newbie question about sending email

2008-04-17 Thread Daniel Brown
On Thu, Apr 17, 2008 at 12:17 PM, Pete Holsberg <[EMAIL PROTECTED]> wrote: [snip!] > > OK. Here's what I have now for processor.php: > > > > // > $where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/")); > > $where_form_is = > "http://".$_SERVER['SERVER

Re: [PHP] Newbie question about sending email

2008-04-17 Thread Pete Holsberg
Daniel Brown has written on 4/16/2008 5:20 PM: On Wed, Apr 16, 2008 at 5:14 PM, Pete Holsberg <[EMAIL PROTECTED]> wrote: Why do I need both from_addr and field_4 (Email Address)? Could I just use $from = $_POST['field_4']? Sorry, I noticed it after I started rewriting the form p

Re: [PHP] Newbie question about sending email

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 5:14 PM, Pete Holsberg <[EMAIL PROTECTED]> wrote: > > Why do I need both from_addr and field_4 (Email Address)? Could I just use > > $from = $_POST['field_4']? Sorry, I noticed it after I started rewriting the form processor, and then forgot to edit the email accordin

Re: [PHP] Newbie question about sending email

2008-04-16 Thread Pete Holsberg
Daniel Brown has written on 4/16/2008 4:56 PM: On Wed, Apr 16, 2008 at 4:39 PM, Pete Holsberg <[EMAIL PROTECTED]> wrote: The entire processor.php file is: http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/")); mail("[EMAIL PROTECTED],[EMAIL PROTECTED]","SUBSCR

Re: [PHP] Newbie question about sending email

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 4:39 PM, Pete Holsberg <[EMAIL PROTECTED]> wrote: > > The entire processor.php file is: > > > > $where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/")); > > mail("[EMAIL PROTECTED],[EMAIL PROTECTED]","SUBSCRIBE","Form > data: > >

Re: [PHP] Newbie question about sending email

2008-04-16 Thread Pete Holsberg
Daniel Brown has written on 4/16/2008 4:04 PM: On Wed, Apr 16, 2008 at 3:53 PM, Pete Holsberg <[EMAIL PROTECTED]> wrote: I wanted a form for people in my community to use to subscribe to a yahoo group that I run. Not being a PHP programmer, I created the form with phpFormGenerator from Sour

Re: [PHP] Newbie question about sending email

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 3:53 PM, Pete Holsberg <[EMAIL PROTECTED]> wrote: > I wanted a form for people in my community to use to subscribe to a yahoo > group that I run. > > Not being a PHP programmer, I created the form with phpFormGenerator from > SourceForge. > > It works fine except that the

[PHP] Newbie question about sending email

2008-04-16 Thread Pete Holsberg
I wanted a form for people in my community to use to subscribe to a yahoo group that I run. Not being a PHP programmer, I created the form with phpFormGenerator from SourceForge. It works fine except that the email that gets sent to yahoo appears to come from my web host's domain! How can

Re: [PHP] Newbie question, Which way is best?

2008-03-20 Thread Philip Thompson
On Mar 20, 2008, at 12:05 PM, George Jamieson wrote: Hi Philip, Hope you don't mind me sending this to you direct. Thanks for the answer but... I'm sorry I don't follow you. My form sets up the query parameters. It works. My pagination code passes the page no. It works. What it doesn't do

Re: [PHP] newbie question about one php script passing control to another

2008-03-20 Thread tedd
At 12:08 PM -0400 3/20/08, Rod Clay wrote: Hello. I am new to php programming, but have spent many years programming in many other languages, most recently perl (with which php seems to have much in common!). In every other language I've worked with there is a way for one program to pass cont

Re: [PHP] newbie question about one php script passing control to another

2008-03-20 Thread Rick Pasotto
On Thu, Mar 20, 2008 at 12:08:39PM -0400, Rod Clay wrote: > Hello. I am new to php programming, but have spent many years > programming in many other languages, most recently perl (with which > php seems to have much in common!). In every other language I've > worked with there is a way for one

Re: [PHP] Newbie question, Which way is best?

2008-03-20 Thread George J
Hi Shawn, >> My query code- >> >> ---SQL query construction block >> $query = "SELECT * FROM prods "; >> if($catagory != 0){ >> // >> if category != 0 >> $where="WHERE c = $catagory "; >> if ($manu != 0){ // >> check >> m

Re: [PHP] Newbie question, Which way is best?

2008-03-20 Thread Shawn McKenzie
George J wrote: > ""Thiago Pojda"" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> De: George J [mailto:[EMAIL PROTECTED] >> >>> So calling the script via the form works i.e it passes the >>> neccessary variables to constrct the sql query for the next >>> call. >> As Shawn said, i

Re: [PHP] newbie question about one php script passing control to another

2008-03-20 Thread Daniel Brown
On Thu, Mar 20, 2008 at 12:37 PM, Rod Clay <[EMAIL PROTECTED]> wrote: > Yes, let me try to say more about exactly what I'm trying to do. I have > a php script running in a browser window (opened specifically for this > purpose) in which the user keys a blog item, then hits 'submit.' After > th

Re: [PHP] newbie question about one php script passing control to another

2008-03-20 Thread Rod Clay
Yes, let me try to say more about exactly what I'm trying to do. I have a php script running in a browser window (opened specifically for this purpose) in which the user keys a blog item, then hits 'submit.' After this script has successfully added the new blog item to the database, what I'd

RE: [PHP] newbie question about one php script passing control to another

2008-03-20 Thread admin
Im not sure I understand the question. Pass control from index.php to welcome.php ??? index.php : "; ?> welcome.php That kind of pass control? Hello. I am new to php programming, but have spent many years programming in many other languages, most recently perl (with which php seems to h

  1   2   3   4   5   6   >