Re: [PHP] assign array values to variables

2009-03-09 Thread Jim Lucas
PJ wrote: Jochem Maas wrote: PJ schreef: Seems it should be simple, but how does one extract values from an array and assign them to a variable? foreach ($categoriesIN as $category) { 1. if $categoriesIN comes from a POST, use $_POST['categoriesIN'] instead. It does, but results are the same.

Re: [PHP] DOM recursion

2009-03-09 Thread Jochem Maas
Jochem Maas schreef: > Joanne Lane schreef: >> I am trying to create a class that recursively iterates over an array an >> creates XML tree to reflect a multidimensional array. >> I am not really a PHP coder, but am trying my hand. > > I've seen 'real coders' write stuff thats leagues worse. > >>

Re: [PHP] Opendir on site root directory?

2009-03-09 Thread Stuart
2009/3/8 Clancy > On Sun, 8 Mar 2009 12:33:15 +, stut...@gmail.com (Stuart) wrote: > > >2009/3/8 Clancy > > > >> On Sun, 8 Mar 2009 09:01:18 +, stut...@gmail.com (Stuart) wrote: > >> > >> >2009/3/8 Clancy > >> > > >> >> I want to index the files on a website recursively. The program wil

[PHP] Line Break Problem

2009-03-09 Thread Alice Wei
Hi, I have a question regarding using line breaks in PHP. I have the code something like: echo "1" . "\t " . $x . "\t" . $y . "\r\n"; When I run the code, it looks like a whole blob of text, but when I use "View Source", the line breaks are formatted then correctly. Anyone can plea

Re: [PHP] Line Break Problem

2009-03-09 Thread Stuart
2009/3/9 Alice Wei > I have a question regarding using line breaks in PHP. I have the code > something like: > > echo "1" . "\t " . $x . "\t" . $y . "\r\n"; > > When I run the code, it looks like a whole blob of text, but when I use > "View Source", the line breaks are formatted then corre

Re: [PHP] Line Break Problem

2009-03-09 Thread Jochem Maas
Stuart schreef: > 2009/3/9 Alice Wei > >> I have a question regarding using line breaks in PHP. I have the code >> something like: >> >> echo "1" . "\t " . $x . "\t" . $y . "\r\n"; >> >> When I run the code, it looks like a whole blob of text, but when I use >> "View Source", the line brea

RE: [PHP] Line Break Problem

2009-03-09 Thread Alice Wei
> Date: Mon, 9 Mar 2009 13:28:19 +0100 > From: joc...@iamjochem.com > To: stut...@gmail.com > CC: aj...@alumni.iu.edu; php-general@lists.php.net > Subject: Re: [PHP] Line Break Problem > > Stuart schreef: > > 2009/3/9 Alice Wei > > > >> I have a question regarding using line breaks in PHP. I

Re: [PHP] PHP includes

2009-03-09 Thread tedd
At 1:06 PM -0400 3/8/09, Gary wrote: I'm working on learning php and have been toying with includes, and I am trying to figure the advantages/disadvantages to using them. I know that using them eliminates the need to "put" the files once altered as with a template, however, is that the only adva

Re: [PHP] Retrieving Image Location in PHP from MySQL

2009-03-09 Thread Sashikanth Gurram
Hi Nathan, Thanks a lot for the suggestion. It is working fine for an example code I have used to test it. The code I have written after your suggestion is as follows. The above code is yielding me a picture. Now, When I tried to use it in my original code it is not giving me the image. Inst

Re: [PHP] Retrieving Image Location in PHP from MySQL

2009-03-09 Thread Sashikanth Gurram
Hi Nathan, Thanks a lot for the suggestion. It is working fine for an example code I have used to test it. The code I have written after your suggestion is as follows. The above code is yielding me a picture. Now, When I tried to use it in my original code it is not giving me the image. Inst

[PHP] Re: php fop (XSLFO)

2009-03-09 Thread Nathan Rixham
Tom Sparks wrote: is there a php Fop (XSLFO)? if not are there any that are not java based and can be run o a website that has php support only? Hi Tom, Not XSLFO as such, this was split up years ago in to it's comprising parts - XSLT, XSL and XPath, all of which PHP supports with the fant

Re: [PHP] verify data in fields

2009-03-09 Thread haliphax
On Sun, Mar 8, 2009 at 4:52 PM, PJ wrote: > Ashley Sheridan wrote: >> On Sun, 2009-03-08 at 10:25 -0500, PJ wrote: >> >>> My mysql table contains data. But I don't know how to verify what >>> exactly is the data... is it an array, an integer, an alphanumeric >>> character or what? >>> vardump($wha

Re: [PHP] DOM recursion

2009-03-09 Thread Nathan Rixham
Jochem Maas wrote: Jochem Maas schreef: Joanne Lane schreef: I am trying to create a class that recursively iterates over an array an creates XML tree to reflect a multidimensional array. I am not really a PHP coder, but am trying my hand. I've seen 'real coders' write stuff thats leagues wors

Re: [PHP] Line Break Problem

2009-03-09 Thread Nathan Rixham
Alice Wei wrote: Date: Mon, 9 Mar 2009 13:28:19 +0100 From: joc...@iamjochem.com To: stut...@gmail.com CC: aj...@alumni.iu.edu; php-general@lists.php.net Subject: Re: [PHP] Line Break Problem Stuart schreef: 2009/3/9 Alice Wei I have a question regarding using line breaks in PHP. I have

Re: [PHP] PHP includes

2009-03-09 Thread Virgilio Quilario
> I'm working on learning php and have been toying with includes, and I am > trying to figure the advantages/disadvantages to using them. > > I know that using them eliminates the need to "put" the files once altered > as with a template, however, is that the only advantage. > > My particular conce

Re: [PHP] Re: PHP Frameworks

2009-03-09 Thread haliphax
On Sun, Mar 8, 2009 at 11:57 PM, Micah Gersten wrote: > Chetan Rane wrote: >> HI >> >> I also was looking for various frameworks and came across a very nice >> framework, which is feature rich as well as very fast >> >> You can see more details at http://www.yiiframework.com/ >> >> >> -Origina

Re: [PHP] Opendir on site root directory?

2009-03-09 Thread Nathan Rixham
Stuart wrote: 2009/3/8 Clancy On Sun, 8 Mar 2009 12:33:15 +, stut...@gmail.com (Stuart) wrote: 2009/3/8 Clancy On Sun, 8 Mar 2009 09:01:18 +, stut...@gmail.com (Stuart) wrote: 2009/3/8 Clancy I want to index the files on a website recursively. The program will run in the s

Re: [PHP] PHP includes

2009-03-09 Thread Nathan Rixham
Virgilio Quilario wrote: I'm working on learning php and have been toying with includes, and I am trying to figure the advantages/disadvantages to using them. I know that using them eliminates the need to "put" the files once altered as with a template, however, is that the only advantage. My p

Re: [PHP] Line Break Problem

2009-03-09 Thread Virgilio Quilario
> Hi, > >  I have a question regarding using line breaks in PHP. I have the code > something like: > >       echo "1" . "\t " . $x . "\t" . $y . "\r\n"; > > When I run the code, it looks like a whole blob of text, but when I use "View > Source", the line breaks are formatted then correctly. > Any

RE: [PHP] How Much Data Can Be Written to a Database In One Instance?

2009-03-09 Thread Alice Wei
> Date: Wed, 4 Mar 2009 15:29:19 -0500 > Subject: Re: [PHP] How Much Data Can Be Written to a Database In One Instance? > From: danbr...@php.net > To: rob...@interjinn.com > CC: aj...@alumni.iu.edu; php-general@lists.php.net > > On Wed, Mar 4, 2009 at 15:26, Robert Cummings wrote: > > > > See

Re: [PHP] Retrieving Image Location in PHP from MySQL

2009-03-09 Thread haliphax
On Mon, Mar 9, 2009 at 1:29 AM, Sashikanth Gurram wrote: > Hi Nathan, > > Thanks a lot for the suggestion. It is working fine for an example code I > have used to test it. The code I have written after your suggestion is as > follows. > $location="C:\wamp\bin\apache\apache2.2.8\htdocs\Bldgs_lots\

Re: [PHP] web refreshing problem

2009-03-09 Thread Nathan Rixham
Andrew Williams wrote: Hi, my php program does not display current result of submitted form instead the previous content is shown until you refresh manually (which means resubmitting the form). Can someone help me out because, I want to display the result of the latest form result and not the o

Re: [PHP] stdin, stdout, stderr, 3

2009-03-09 Thread Daniel Brown
On Sun, Mar 8, 2009 at 22:35, Richard Lynch wrote: > I have a program sending/receiving data to/from my CLI script using: > > 0 stdin > 1 stdout > 2 stderr > 3 ?? UNIX Channel 3 is a non-standard stream resource, though I don't believe it's even yet been given a name, so we'll have to cha

[PHP] Error in Building an XML File

2009-03-09 Thread Joe Harman
Hello, I am using PHP to build an XML file, but I keep on getting an XML error when open the file in Google Chrome. - This page contains the following errors: error on line 30 at column 318: Entity 'iuml' not defined

Re: [PHP] Opendir on site root directory?

2009-03-09 Thread Virgilio Quilario
>> >> >> I want to index the files on a website recursively. The program will >> run >> >> in >> >> >> the site root >> >> >> directory, which GETCWD reports as D:/Websites/Website_1.  I can open >> >> any >> >> >> file in the root >> >> >> directory simply using its file name; Joe.dat, for example

RE: [PHP] Re: PHP Frameworks

2009-03-09 Thread Marc Christopher Hall
hink about. The only thing I have to add since the last time this came up was that I have been using CodeIgniter lately on a personal project of mine, and I find it quite pleasant. It's like Cake, only slimmer--but not lacking in important core features. Pretty quick little bugger, too, and

Re: [PHP] Retrieving Image Location in PHP from MySQL

2009-03-09 Thread Nathan Nobbe
On Sun, Mar 8, 2009 at 11:29 PM, Sashikanth Gurram wrote: > Hi Nathan, > > Thanks a lot for the suggestion. It is working fine for an example code I > have used to test it. The code I have written after your suggestion is as > follows. > $location="C:\wamp\bin\apache\apache2.2.8\htdocs\Bldgs_lot

Re: [PHP] web refreshing problem

2009-03-09 Thread Virgilio Quilario
>> Hi, >> >> my php program does not display current result of submitted form >> instead the previous content is shown until you refresh manually >> (which means resubmitting the form). >> >> Can someone help me out because, I want to display the result of the >> latest form result and not the old

Re: [PHP] Retrieving Image Location in PHP from MySQL

2009-03-09 Thread Sashikanth Gurram
Hi, Yes, the problem was solved, but It did not work fine when I used the same code in my larger file. Now it makes sense. Let me just repeat what you have said just to make sure that I did not misread you. So you say that the solution to this problem is to create another php file with the ima

Re: [PHP] assign array values to variables

2009-03-09 Thread haliphax
On Mon, Mar 9, 2009 at 9:25 AM, Jim Lucas wrote: > haliphax wrote: >> >> On Mon, Mar 9, 2009 at 2:22 AM, Jim Lucas wrote: >>> >>> PJ wrote: >> >> PJ, this looks like your third thread for this same question. It might >> be easier to get a straight answer if your request isn't scattered all >> ove

Re: [PHP] Re: PHP Frameworks

2009-03-09 Thread haliphax
On Mon, Mar 9, 2009 at 9:25 AM, Marc Christopher Hall wrote: > @todd; Micah - Precisely why I presented the question anew. Not only do I not > have enough time to troll through the archives; I was looking for a fresher > set of responses based on today's smorgasbord. Thank you for your input; I

[PHP] Re: Error in Building an XML File

2009-03-09 Thread Nathan Rixham
Joe Harman wrote: Hello, I am using PHP to build an XML file, but I keep on getting an XML error when open the file in Google Chrome. - This page contains the following errors: error on line 30 at column 318: Entity

Re: [PHP] Retrieving Image Location in PHP from MySQL

2009-03-09 Thread Virgilio Quilario
> I am using a WAMP server for my coding purposes. My MySQL Version is > 5.0.51b, PHP version is 5.2.6 and Apache version is 2.2.8 > > I have created a database with one of the tables containing a location of > the image. Using PHP I am trying to retrieve the location of the image (from > the mysql

Re: [PHP] Retrieving Image Location in PHP from MySQL

2009-03-09 Thread haliphax
On Mon, Mar 9, 2009 at 9:32 AM, Sashikanth Gurram wrote: >> On Mon, Mar 9, 2009 at 1:29 AM, Sashikanth Gurram wrote: >> >>> >>> Hi Nathan, >>> >>> Thanks a lot for the suggestion. It is working fine for an example code I >>> have used to test it. The code I have written after your suggestion is a

Re: [PHP] Error in Building an XML File

2009-03-09 Thread Virgilio Quilario
> I am using PHP to build an XML file, but I keep on getting an XML > error when open the file in Google Chrome. > - > This page contains the following errors: > > error on line 30 at column 318: Entity 'iuml' not defin

RE: [PHP] Error in Building an XML File

2009-03-09 Thread Bob McConnell
From: Joe Harman > > I am using PHP to build an XML file, but I keep on getting an XML > error when open the file in Google Chrome. > - > This page contains the following errors: > > error on line 30 at column 318: E

[PHP] Re: PHP includes

2009-03-09 Thread Gary
Thank you to everybody that replied...but it almost seems it is making extra work. I can understand using an include for a menu, since they tend to change often and it is on every page, but the normal content I am not understanding the benefit. If I have a page that has unique content on it, t

Re: [PHP] web refreshing problem

2009-03-09 Thread Virgilio Quilario
>>> >> my php program does not display current result of submitted form >>> >> instead the previous content is shown until you refresh manually >>> >> (which means resubmitting the form). >>> >> >>> >> Can someone help me out because, I want to display the result of the >>> >> latest form result an

Re: [PHP] Re: PHP Frameworks

2009-03-09 Thread Virgilio Quilario
> wrote: >> @todd; Micah - Precisely why I presented the question anew. Not only do I >> not have enough time to troll through the archives; I was looking for a >> fresher set of responses based on today's smorgasbord. Thank you for your >> input; I have looked at both YII and CI and they look

RE: [PHP] Re: PHP includes

2009-03-09 Thread Mayer, Jonathan
>Thank you to everybody that replied...but it almost seems it is making extra >work. >I can understand using an include for a menu, since they tend to change >often and it is on every page, but the normal content I am not understanding >the benefit. If I have a page that has unique content on

Re: [PHP] Retrieving Image Location in PHP from MySQL

2009-03-09 Thread Nathan Nobbe
On Mon, Mar 9, 2009 at 7:32 AM, Sashikanth Gurram wrote: > Hi, > > Yes, the problem was solved, but It did not work fine when I used the same > code in my larger file. Now it makes sense. right, just track down where you started sending the output, and remember if youre going to use header() ca

Re: [PHP] stdin, stdout, stderr, 3

2009-03-09 Thread Per Jessen
Daniel Brown wrote: > On Sun, Mar 8, 2009 at 22:35, Richard Lynch wrote: >> I have a program sending/receiving data to/from my CLI script using: >> >> 0 stdin >> 1 stdout >> 2 stderr >> 3 ?? > > UNIX Channel 3 is a non-standard stream resource, though I don't > believe it's even yet been

RE: [PHP] Re: PHP includes

2009-03-09 Thread Bob McConnell
From: Gary > > Thank you to everybody that replied...but it almost seems it is making extra > work. > > I can understand using an include for a menu, since they tend to change > often and it is on every page, but the normal content I am not understanding > the benefit. If I have a page that h

Re: [PHP] Retrieving Image Location in PHP from MySQL

2009-03-09 Thread Sashikanth Gurram
Hi, Thanks a lot for all the patient replies. All the suggestions led me in a positive direction. Finally, instead of using the header() in my main PHP file (with HTML tags), I have used it in a secondary file and called it using a tag. It is working fine. But, the image I need to display is

RE: Re: [PHP] stdin, stdout, stderr, 3

2009-03-09 Thread Bob McConnell
From: Per Jessen > Daniel Brown wrote: > >> On Sun, Mar 8, 2009 at 22:35, Richard Lynch wrote: >>> I have a program sending/receiving data to/from my CLI script using: >>> >>> 0 stdin >>> 1 stdout >>> 2 stderr >>> 3 ?? >> >> UNIX Channel 3 is a non-standard stream resource, though I don'

RE: [PHP] Retrieving Image Location in PHP from MySQL

2009-03-09 Thread Bob McConnell
From: Sashikanth Gurram > > Hi, > Thanks a lot for all the patient replies. All the suggestions led me in > a positive direction. Finally, instead of using the header() in my main > PHP file (with HTML tags), I have used it in a secondary file and called > it using a tag. It is working fine. B

Re: [PHP] Retrieving Image Location in PHP from MySQL

2009-03-09 Thread haliphax
On Mon, Mar 9, 2009 at 10:24 AM, Sashikanth Gurram wrote: > Nathan Nobbe wrote: >> >> >> On Mon, Mar 9, 2009 at 7:32 AM, Sashikanth Gurram > > wrote: >> >>    Hi, >> >>    Yes, the problem was solved, but It did not work fine when I used >>    the same code in my larger fil

Re: [PHP] Error in Building an XML File

2009-03-09 Thread Joe Harman
On Mon, Mar 9, 2009 at 9:53 AM, Bob McConnell wrote: > From: Joe Harman >> >> I am using PHP to build an XML file, but I keep on getting an XML >> error when open the file in Google Chrome. >> > > - >> This page conta

Re: [PHP] stdin, stdout, stderr, 3

2009-03-09 Thread Daniel Brown
On Mon, Mar 9, 2009 at 11:14, Per Jessen wrote: > > "UNIX Channel 3" ?? Sorry, Per, I must've stuttered. Yes, I said, "UNIX Channel 3." For lack of a better reference. That not withstanding, the direct response to Lynch's question still holds true. > It's just file descriptor 3, that's all

Re: [PHP] Retrieving Image Location in PHP from MySQL

2009-03-09 Thread Sashikanth Gurram
Thanks a lot everyone, particularly Haliphax, Nathan, Virgilio and Bob. I will try it and will come back to you. Thanks, Sashi haliphax wrote: On Mon, Mar 9, 2009 at 10:24 AM, Sashikanth Gurram wrote: Nathan Nobbe wrote: On Mon, Mar 9, 2009 at 7:32 AM, Sashikanth Gurram mailto:sashi

Re: [PHP] Retrieving Image Location in PHP from MySQL

2009-03-09 Thread haliphax
On Mon, Mar 9, 2009 at 10:52 AM, Sashikanth Gurram wrote: > haliphax wrote: >> >> On Mon, Mar 9, 2009 at 10:24 AM, Sashikanth Gurram >> wrote: >> >>> >>> Nathan Nobbe wrote: >>> On Mon, Mar 9, 2009 at 7:32 AM, Sashikanth Gurram >>> > wrote:   Hi, >

Re: [PHP] stdin, stdout, stderr, 3

2009-03-09 Thread Per Jessen
Daniel Brown wrote: >> It's just file descriptor 3, that's all. In the old days, it was >> occasionally called "stdaux", but AFAIK that's not used any more. > > Now that you mention it, I do seem to recall the term "STDAUX," > but I'm not sure if it's an actual memory or just one of those thi

Re: [PHP] Re: PHP includes

2009-03-09 Thread Sudheer Satyanarayana
Gary wrote: Thank you to everybody that replied...but it almost seems it is making extra work. I can understand using an include for a menu, since they tend to change often and it is on every page, but the normal content I am not understanding the benefit. If I have a page that has unique co

Re: [PHP] Error in Building an XML File

2009-03-09 Thread Nathan Rixham
Joe Harman wrote: On Mon, Mar 9, 2009 at 9:53 AM, Bob McConnell wrote: From: Joe Harman I am using PHP to build an XML file, but I keep on getting an XML error when open the file in Google Chrome. - This page c

[PHP] Re: PHP includes

2009-03-09 Thread Nathan Rixham
Gary wrote: Thank you to everybody that replied...but it almost seems it is making extra work. I can understand using an include for a menu, since they tend to change often and it is on every page, but the normal content I am not understanding the benefit. If I have a page that has unique co

[PHP] Re: PHP includes

2009-03-09 Thread Nathan Rixham
Gary wrote: Thank you to everybody that replied...but it almost seems it is making extra work. What is the best type of file to be used as an include (.txt, .php). new I forgot something! the best type of file to be used as an include differs on a case by case basis. name the files correc

[PHP] Hi!! I Joined the PHP Mailing List

2009-03-09 Thread Picu Priya
Hello Everyone, I have just joined the PHP Community.. I hope, I will spend good time here.. I am already a PHP programmer, and Love to learn a lot of new php tricks while helping others, as best of my knowledge. :) -- http://www.iniad.com : Iniad Link Xchange System

[PHP] Re: Hi!! I Joined the PHP Mailing List

2009-03-09 Thread Shawn McKenzie
Picu Priya wrote: > Hello Everyone, I have just joined the PHP Community.. I hope, I will spend > good time here.. I am already a PHP programmer, and Love to learn a lot of > new php tricks while helping others, as best of my knowledge. :) > Welcome! You are the designated helper for PJ. -- Th

Re: [PHP] Re: Hi!! I Joined the PHP Mailing List

2009-03-09 Thread Eric Butera
On Mon, Mar 9, 2009 at 2:07 PM, Shawn McKenzie wrote: > Picu Priya wrote: >> Hello Everyone, I have just joined the PHP Community.. I hope, I will spend >> good time here.. I am already a PHP programmer, and Love to learn a lot of >> new php tricks while helping others, as best of my knowledge. :)

Re: [PHP] web refreshing problem

2009-03-09 Thread Andrew Williams
Hi everyone, I discovered that error and warning messages from my program does not display automatically unless you refresh the page. and page also has the same problem. Does it has anything to do with the PHP - Apache settings. I have added the below message to it but its not making no diffe

Re: [PHP] web refreshing problem

2009-03-09 Thread Nathan Rixham
Andrew Williams wrote: Hi everyone, I discovered that error and warning messages from my program does not display automatically unless you refresh the page. and page also has the same problem. Does it has anything to do with the PHP - Apache settings. post your code - limited in what help

[PHP] Re: Hi!! I Joined the PHP Mailing List

2009-03-09 Thread Nathan Rixham
Picu Priya wrote: Hello Everyone, I have just joined the PHP Community.. I hope, I will spend good time here.. I am already a PHP programmer, and Love to learn a lot of new php tricks while helping others, as best of my knowledge. :) welcome :-) -- PHP General Mailing List (http://www.php.net

Re: [PHP] Re: PHP Frameworks

2009-03-09 Thread Jason Norwood-Young
haliphax wrote: Perhaps I should have phrased it a bit more concise: This has been discussed many times--often, and RECENTLY. Anyway, since I'm already writing this, I'll say that overhead/bloat vs. productivity of the developer is a trade-off you're going to have to make for ANY of the framework

Re: [PHP] Re: Hi!! I Joined the PHP Mailing List

2009-03-09 Thread 9el
Welcome here as well :) www.twitter.com/nine_L www.lenin9l.wordpress.com > > >

Re: [PHP] Hi!! I Joined the PHP Mailing List

2009-03-09 Thread haliphax
On Mon, Mar 9, 2009 at 12:54 PM, Picu Priya wrote: > Hello Everyone, I have just joined the PHP Community.. I hope, I will spend > good time here.. I am already a PHP programmer, and Love to learn a lot of > new php tricks while helping others, as best of my knowledge. :) Hello, and welcome! Just

Re: [PHP] Re: PHP Frameworks

2009-03-09 Thread haliphax
On Mon, Mar 9, 2009 at 1:26 PM, Jason Norwood-Young wrote: > haliphax wrote: >> >> Perhaps I should have phrased it a bit more concise: This has been >> discussed many times--often, and RECENTLY. Anyway, since I'm already >> writing this, I'll say that overhead/bloat vs. productivity of the >> dev

Re: [PHP] Re: PHP Frameworks

2009-03-09 Thread Nathan Rixham
Jason Norwood-Young wrote: haliphax wrote: Perhaps I should have phrased it a bit more concise: This has been discussed many times--often, and RECENTLY. Anyway, since I'm already writing this, I'll say that overhead/bloat vs. productivity of the developer is a trade-off you're going to have to m

Re: [PHP] Re: PHP Frameworks

2009-03-09 Thread Jason Norwood-Young
haliphax wrote: On Mon, Mar 9, 2009 at 1:26 PM, Jason Norwood-Young wrote: haliphax wrote: Perhaps I should have phrased it a bit more concise: This has been discussed many times--often, and RECENTLY. Anyway, since I'm already writing this, I'll say that overhead/bloat vs. productivity

Re: [PHP] Re: PHP Frameworks

2009-03-09 Thread Nathan Rixham
Jason Norwood-Young wrote: haliphax wrote: On Mon, Mar 9, 2009 at 1:26 PM, Jason Norwood-Young wrote: haliphax wrote: Perhaps I should have phrased it a bit more concise: This has been discussed many times--often, and RECENTLY. Anyway, since I'm already writing this, I'll say that overh

RE: [PHP] Re: PHP includes

2009-03-09 Thread Ashley Sheridan
On Mon, 2009-03-09 at 15:10 +, Mayer, Jonathan wrote: > >Thank you to everybody that replied...but it almost seems it is making > extra > >work. > > >I can understand using an include for a menu, since they tend to change > > >often and it is on every page, but the normal content I am not >

Re: [PHP] Error in Building an XML File

2009-03-09 Thread Ashley Sheridan
On Mon, 2009-03-09 at 16:26 +, Nathan Rixham wrote: > Joe Harman wrote: > > On Mon, Mar 9, 2009 at 9:53 AM, Bob McConnell wrote: > >> From: Joe Harman > >>> I am using PHP to build an XML file, but I keep on getting an XML > >>> error when open the file in Google Chrome. > >>> > >> ---

Re: [PHP] Re: PHP includes

2009-03-09 Thread Nathan Rixham
Ashley Sheridan wrote: Just thought I'd point out that it's recommended against giving non-php extensions to PHP code pages. Basically, making all of your include files .inc without the server correctly configured to recognise all .inc files as PHP files, you are opening yourself up to possible h

Re: [PHP] Re: PHP includes

2009-03-09 Thread Larry Garfield
On Monday 09 March 2009 3:07:17 pm Nathan Rixham wrote: > Ashley Sheridan wrote: > > Just thought I'd point out that it's recommended against giving non-php > > extensions to PHP code pages. Basically, making all of your include > > files .inc without the server correctly configured to recognise al

Re: [PHP] Re: PHP includes

2009-03-09 Thread Ashley Sheridan
On Mon, 2009-03-09 at 15:23 -0500, Larry Garfield wrote: > On Monday 09 March 2009 3:07:17 pm Nathan Rixham wrote: > > Ashley Sheridan wrote: > > > Just thought I'd point out that it's recommended against giving non-php > > > extensions to PHP code pages. Basically, making all of your include > > >

Re: [PHP] Re: PHP Frameworks

2009-03-09 Thread haliphax
On Mon, Mar 9, 2009 at 2:50 PM, Nathan Rixham wrote: > haliphax wrote: >> >> Framework = Overhead (when compared to vanilla PHP). Period. I'm not > > by vanilla do you mean vanilla from lussimo? [http://getvanilla.com/] ? You know damn well I didn't. :) -- // Todd -- PHP General Mailing List

[PHP] Script execution

2009-03-09 Thread George Larson
Hi everybody. The "problem" that I'm having is probably because I've got more of a Windows background -- and it isn't so much a problem as a point of curiosity. I've recently noticed that when I write a script that they seem to have different permissions when executed at the command line. Two th

Re: [PHP] Script execution

2009-03-09 Thread Ashley Sheridan
On Mon, 2009-03-09 at 16:59 -0400, George Larson wrote: > Hi everybody. > > The "problem" that I'm having is probably because I've got more of a Windows > background -- and it isn't so much a problem as a point of curiosity. > > I've recently noticed that when I write a script that they seem to h

Re: [PHP] Script execution

2009-03-09 Thread Daniel Brown
On Mon, Mar 9, 2009 at 16:59, George Larson wrote: > > Am I imagining things?  If not, how would I properly make them able to run > through a browser? You're not imagining things. In general, unless set up with SuExec privileges, Apache (which is probably the HTTP server you're using) will r

Re: [PHP] Re: PHP Frameworks

2009-03-09 Thread Nathan Rixham
haliphax wrote: On Mon, Mar 9, 2009 at 2:50 PM, Nathan Rixham wrote: haliphax wrote: Framework = Overhead (when compared to vanilla PHP). Period. I'm not by vanilla do you mean vanilla from lussimo? [http://getvanilla.com/] ? You know damn well I didn't. :) I'd love to lol - but really n

[PHP] Re: Script execution

2009-03-09 Thread Shawn McKenzie
George Larson wrote: > Hi everybody. > > The "problem" that I'm having is probably because I've got more of a Windows > background -- and it isn't so much a problem as a point of curiosity. > > I've recently noticed that when I write a script that they seem to have > different permissions when ex

[PHP] Re: Script execution

2009-03-09 Thread Shawn McKenzie
George Larson wrote: > Hi everybody. > > The "problem" that I'm having is probably because I've got more of a Windows > background -- and it isn't so much a problem as a point of curiosity. > > I've recently noticed that when I write a script that they seem to have > different permissions when ex

Re: [PHP] Script execution

2009-03-09 Thread haliphax
On Mon, Mar 9, 2009 at 4:04 PM, Daniel Brown wrote: > On Mon, Mar 9, 2009 at 16:59, George Larson wrote: >> >> Am I imagining things?  If not, how would I properly make them able to run >> through a browser? > >    You're not imagining things.  In general, unless set up with > SuExec privileges,

Re: [PHP] Script execution

2009-03-09 Thread Daniel Brown
On Mon, Mar 9, 2009 at 17:17, haliphax wrote: > > OP is a Windows user. I am assuming that they are using Windows. Re-read the context of that first paragraph from the OP and you'll see why I presume (as opposed to *ass*ume) that, despite his experience with Windows, this is a *NIX-like setup

Re: [PHP] Script execution

2009-03-09 Thread George Larson
Thanks everybody! I guess I was a little vague. I'm working on an OpenSUSE setup with Apache, MySQL and PHP. I just knew that my confusion was because of my Windows up-bringing. The writing I referred to was to a file. One example is I had a script that was pulling data from a database and usi

Re: [PHP] Script execution

2009-03-09 Thread Daniel Brown
On Mon, Mar 9, 2009 at 17:21, Daniel Brown wrote: > >    Re-read the context of that first paragraph from the OP and you'll > see why I presume (as opposed to *ass*ume) that, despite his > experience with Windows, this is a *NIX-like setup. DISCLAIMER: This was supposed to be added to my seem

Re: [PHP] Script execution

2009-03-09 Thread haliphax
On Mon, Mar 9, 2009 at 4:28 PM, Daniel Brown wrote: > On Mon, Mar 9, 2009 at 17:21, Daniel Brown wrote: >> >>    Re-read the context of that first paragraph from the OP and you'll >> see why I presume (as opposed to *ass*ume) that, despite his >> experience with Windows, this is a *NIX-like setup

Re: [PHP] Script execution

2009-03-09 Thread George Larson
That's funny! I've been watching this and a few other lists (MySQL, local Linux Users' Group) for a few days - weeks and I had wondered why the PHP list seemed more hostile. :) On Mon, Mar 9, 2009 at 5:28 PM, Daniel Brown wrote: > On Mon, Mar 9, 2009 at 17:21, Daniel Brown wrote: > > > >R

Re: [PHP] Script execution

2009-03-09 Thread Michael A. Peters
George Larson wrote: Thanks everybody! I guess I was a little vague. I'm working on an OpenSUSE setup with Apache, MySQL and PHP. I just knew that my confusion was because of my Windows up-bringing. The writing I referred to was to a file. One example is I had a script that was pulling data

Re: [PHP] Script execution

2009-03-09 Thread haliphax
On Mon, Mar 9, 2009 at 4:36 PM, George Larson wrote: > That's funny! > > I've been watching this and a few other lists (MySQL, local Linux Users' > Group) for a few days - weeks and I had wondered why the PHP list seemed > more hostile.  :) In a word, I think "familiarity" sums it up. That, or "

Re: [PHP] Script execution

2009-03-09 Thread Daniel Brown
On Mon, Mar 9, 2009 at 17:39, haliphax wrote: > > That, or "***holes." That's what my name tag says. -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ 50% Off All Shared Hosting Plans at PilotPig: Use Coupon DOW1 -- PHP General Mail

Re: [PHP] Script execution

2009-03-09 Thread Nathan Rixham
Daniel Brown wrote: On Mon, Mar 9, 2009 at 17:39, haliphax wrote: That, or "***holes." That's what my name tag says. you got shot in the nametag 3 times? i dunno if that's good or bad luck! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

Re: [PHP] Script execution

2009-03-09 Thread haliphax
On Mon, Mar 9, 2009 at 4:55 PM, Nathan Rixham wrote: > Daniel Brown wrote: >> >> On Mon, Mar 9, 2009 at 17:39, haliphax wrote: >>> >>> That, or "***holes." >> >>    That's what my name tag says. > > you got shot in the nametag 3 times? i dunno if that's good or bad luck! Yep. Now nobody can tell

Re: [PHP] Script execution

2009-03-09 Thread Nathan Rixham
George Larson wrote: That's funny! I've been watching this and a few other lists (MySQL, local Linux Users' Group) for a few days - weeks and I had wondered why the PHP list seemed more hostile. :) may be something to do with the fact 95% of posts here could be covered by: - a 5 question "fa

Re: [PHP] Script execution

2009-03-09 Thread Nathan Rixham
haliphax wrote: On Mon, Mar 9, 2009 at 4:55 PM, Nathan Rixham wrote: Daniel Brown wrote: On Mon, Mar 9, 2009 at 17:39, haliphax wrote: That, or "***holes." That's what my name tag says. you got shot in the nametag 3 times? i dunno if that's good or bad luck! Yep. Now nobody can tell i

[PHP] DOMDocument getElementsByAttribute ??

2009-03-09 Thread Michael A. Peters
Seems like such a function does not exist in php. I can write my own function that does it using DOMElement->hasAttribute() - but I'm not sure how to get an array of every element in the DOM to test them for the attribute. Any hints? I'm sure it's simple, I'm just not seeing the function that

Re: [PHP] Script execution

2009-03-09 Thread Ray
On Monday 09 March 2009 15:38:37 Michael A. Peters wrote: > George Larson wrote: > > Thanks everybody! > > > > I guess I was a little vague. I'm working on an OpenSUSE setup with > > Apache, MySQL and PHP. I just knew that my confusion was because of my > > Windows up-bringing. > > > > The writin

[PHP] Re: DOMDocument getElementsByAttribute ??

2009-03-09 Thread Nathan Rixham
Michael A. Peters wrote: Seems like such a function does not exist in php. I can write my own function that does it using DOMElement->hasAttribute() - but I'm not sure how to get an array of every element in the DOM to test them for the attribute. Any hints? I'm sure it's simple, I'm just no

Re: [PHP] Opendir on site root directory?

2009-03-09 Thread Clancy
On Mon, 9 Mar 2009 10:07:33 +, stut...@gmail.com (Stuart) wrote: ... >As in the example script I've posted above you can refer to the current >working directory with a single period (.), but this is still relying on the >current working directory being what you expect it to be. Thank you!

Re: [PHP] DOM recursion

2009-03-09 Thread Jochem Maas
Nathan Rixham schreef: > Jochem Maas wrote: >> Jochem Maas schreef: >>> Joanne Lane schreef: I am trying to create a class that recursively iterates over an array an creates XML tree to reflect a multidimensional array. I am not really a PHP coder, but am trying my hand. >>> I'v

[PHP] Re: DOMDocument getElementsByAttribute ??

2009-03-09 Thread Michael A. Peters
Nathan Rixham wrote: Michael A. Peters wrote: Seems like such a function does not exist in php. I can write my own function that does it using DOMElement->hasAttribute() - but I'm not sure how to get an array of every element in the DOM to test them for the attribute. Any hints? I'm sure it

  1   2   >