Re: [PHP] PHP Fusebox

2003-08-05 Thread daniel
i have used this before , its a wierd system and you have to echo the html absolutely painful > I am trying to standardize my development process and have been looking > at the different frameworks out there. > > One of the philosophies I like is that of Fusebox, although originally > developed fo

RE: [PHP] Sum a column of values from a MySQL query

2003-08-05 Thread Ben C.
Yes, I know. However, the while() loop should generate all the invoice in a list. -Original Message- From: Giz [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 12:03 AM To: 'Ben C.'; [EMAIL PROTECTED] Subject: RE: [PHP] Sum a column of values from a MySQL query I think you're a

Re: [PHP] PHP Fusebox

2003-08-05 Thread Alexandru COSTIN
Hello, You could also take a look at Krysalis Foundation - http://www.interakt.ro/products/Krysalis/ It implements the MVC approach by defining a sitemap with the request serving rules, and by separating the model from the view using XML trees as the output of the model and XSL to add

Re: [PHP] PHP Fusebox

2003-08-05 Thread daniel
really tedious logic >Hello, >You could also take a look at Krysalis Foundation - > http://www.interakt.ro/products/Krysalis/ > >It implements the MVC approach by defining a sitemap with the >request > serving rules, and by separating the model from the view using XML > trees as th

[PHP] strange foreach behaviour

2003-08-05 Thread Martin Peck
I have come up against a very strange problem. I currently have no idea how to even approach attempting to fix it... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: strange foreach behaviour

2003-08-05 Thread Martin Peck
My apologies for the last post - somehow managed to send whilst attempting to copy and paste... d'oh. I'd like to try again. I have come up against a very strange problem. I currently have no idea how to even approach attempting to fix it... In the following code snippet, $this->items is an arra

[PHP] snippet

2003-08-05 Thread Harry Wiens
can someone explain this for me: ... $sFont =submit("font") ? SITE_ROOT . PROG_PATH . submit("font") : ""; ... mfg. hwiens -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] snippet

2003-08-05 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Tue, 5 Aug 2003 at 11:14, lines prefixed by '>' were originally written by you. > $sFont =submit("font") ? SITE_ROOT . PROG_PATH . submit("font") : ""; it is the same as: if(submit("font")){ $sFont = SITE_ROOT . PROG_PATH; } else { $s

Re: [PHP] Sum a column of values from a MySQL query

2003-08-05 Thread Jason Wong
On Tuesday 05 August 2003 15:43, Ben C. wrote: > Yes, I know. However, the while() loop should generate all the invoice in > a list. As has been pointed out the query only results in a single row. So how would the while-loop "generate all the invoice[s]"? It's only ever given a single row to pl

[PHP] Best PHP CMS

2003-08-05 Thread Anthony
I'm just looking for some opinions. I've been going though sourceforge looking at different CMS systems. There are a lot of really good CMS projects out there. I'm looking for some opinions on the best ones out there. I'm obviously looking at something PHP based and using mySQL backend. Some o

RE: [PHP] Sum a column of values from a MySQL query

2003-08-05 Thread Jay Blanchard
[snip] However, why not just SUM all the rows in the table in the query if you just want a total? $sql_2 = "SELECT SUM(partpaidamount) as partpaid FROM $tb_name"; [/snip] That is what he is doing. The SELECT SUM will only return ONE row! I am not sure that the problem is being explained clearly t

Re: [PHP] Formatted text from mySQL DB

2003-08-05 Thread CPT John W. Holmes
From: "PHPSpooky" <[EMAIL PROTECTED]> > When I create any field and let data be sent into my mySQL DB through > it.. it goes ok. But when I retrieve it.. the data comes completely > unformatted. Ah, this question again. Has it been four days already? HTML does not render new lines. Have a look at

Re: [PHP] Repopulating forms

2003-08-05 Thread Gerard L Petersen
Sweet... Thank you. Works perfectly. You all have be most helpful. Hope this works in Smarty Gerard - Original Message - From: "CPT John W. Holmes" <[EMAIL PROTECTED]> To: "Gerard L Petersen" <[EMAIL PROTECTED]>; "Php-General" <[EMAIL PROTECTED]> Sent: Tuesday, August 05, 2003 4:0

[PHP] problem using unlink()

2003-08-05 Thread James Brash
Hi, I have a problem using unlink(); on a system using FreeBSD and Apache... where my local system using Windows and Apache experiences no problems. On the windows system is deletes the file, but on the FBSD system the file does not delete and returns no error. I have tried using the full path,

[PHP] PHP/JavaScript/HTML

2003-08-05 Thread Mauricio
Hello folks I wrote a JavaScript to set the values of a Select html object by client side. The values are copied from another Select that I create getting the values from the database. After the user set the values he/she wants to add it in another form, for example, then press submit button, the

[PHP] Formatted text from mySQL DB

2003-08-05 Thread PHPSpooky
Astrum Et Securis! I had a question.. When I create any field and let data be sent into my mySQL DB through it.. it goes ok. But when I retrieve it.. the data comes completely unformatted. That is.. let's say I fed this in a textarea.. The Man Is Cool. If I view the data from my phpMyAdmin o

RE: [PHP] Repopulating forms

2003-08-05 Thread Ford, Mike [LSS]
> -Original Message- > From: Gerard L Petersen [mailto:[EMAIL PROTECTED] > Sent: 05 August 2003 14:56 > > My code looks like this. > > $test = "gerard's name is \"gerard\""; > echo $test.""; > echo ''; echo ''; Cheers! Mike

[PHP] Allowed mem size exhausted

2003-08-05 Thread Shawn McKenzie
I have the following code that generates the following error. I am using this code to prepare a zip or tar.gz file as an email attachment. Can someone suggest a better / more efficient way to do this and maybe avoid the error??? I believe that the file that generated this error was about 1.8MB.

[PHP] Re: FDF problem with IE - any experts out there?!?

2003-08-05 Thread Richard Lynch
Oooh, and I forgot! In addition to all the other Microsuck non-compliance... IE just plain doesn't like the IDEA of a dynamic PDF file. Thus, if you use the usual no-cache headers, it will puke on you. So what you have to do is embed a random part in your URL. Continuing with our example from

Re: [PHP] snippet

2003-08-05 Thread Jon Haworth
Hi Harry, > can someone explain this for me: > ... > $sFont =submit("font") ? SITE_ROOT . PROG_PATH . submit("font") : ""; > ... It's called the "ternary operator", and it's a shorthand for if...else... The line you're asking about is equivalent to: if (submit("font")) { $sFont = SITE_ROOT .

RE: [PHP] Formatted text from mySQL DB

2003-08-05 Thread PHPSpooky
Astrum Et Securis! Thanks all.. for the very needed input. www.php.net/nl2br has been very helpful. I'm still testing out the different ways. There appears to be a differentiation between people's usage and formulas for the same. While some find nl2br() very helpful, others find it a waste of ti

Re: [PHP] gettin parameters from url, architecture question

2003-08-05 Thread Curt Zirzow
* Thus wrote Merlin ([EMAIL PROTECTED]): > they are dynamic. Would it make sence to put all requests to an error > document? Is this not a huge load for the server? > > Lets say I redirect all 401 errors to one php page where I parse the url and > find the right file to redirect. This would be pos

Re: [PHP] PHP/JavaScript/HTML

2003-08-05 Thread CPT John W. Holmes
From: "Mauricio" <[EMAIL PROTECTED]> > I wrote a JavaScript to set the values of a Select html object by client > side. The values are copied from another Select that I create getting the > values from the database. After the user set the values he/she wants to add > it in another form, for example

Re: [PHP] Handling DELETE requests

2003-08-05 Thread Seairth Jacobs
"Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote Seairth Jacobs ([EMAIL PROTECTED]): > > Under Apache 1.3, how can I respond to DELETE request with a PHP script? I > > have no problem with GET, POST, or PUT. The only thing I found was the > > "Scripts" dire

Re: [PHP] Session ID as a regex

2003-08-05 Thread Jason Wong
On Wednesday 06 August 2003 02:28, Gerard Samuel wrote: > How would you best describe a session id as a regex? > [a-z0-9]{32} > > Just checking to see if any other characters can be in a session id. I think [a-f0-9]{32} is sufficient. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open

Re: [PHP] how to auto create a new page on the fly

2003-08-05 Thread Chris Shiflett
--- DougD <[EMAIL PROTECTED]> wrote: > I would like to create a new page on the fly - basically having > the PHP file to export content into a new static HTML file and > save it as content.php. Can you give more information? This answers your current question (assuming you meant to phrase that as

RE: [PHP] Values from forms

2003-08-05 Thread Ford, Mike [LSS]
> -Original Message- > From: Beauford.2005 [mailto:[EMAIL PROTECTED] > Sent: 05 August 2003 00:36 > > Thanks for the info. The first suggestion doesn't work, The first suggestion does work -- I've used it more than once in the past. If it doesn't work for you, you're doing something wrong

RE: [PHP] Sum a column of values from a MySQL query

2003-08-05 Thread Ford, Mike [LSS]
> -Original Message- > From: Ben C. [mailto:[EMAIL PROTECTED] > Sent: 05 August 2003 07:42 > > I am trying to sum a query of values from a MySQL table. The > code I am > using is: > > ---BEGIN CODE #1-- > $sql_2 = "SELECT SUM(partpaidamount) as partpaid > FROM $tb_name

Re: [PHP] Repopulating forms

2003-08-05 Thread CPT John W. Holmes
From: "Gerard L Petersen" <[EMAIL PROTECTED]> > My code looks like this. > > $test = "gerard's name is \"gerard\""; > echo $test.""; > echo ''; > ?> Just like HTML doesn't render newlines, it also doesn't understand using the \ character as an escape character. You are creating this: So, HTML

Re: [PHP] dev style guide

2003-08-05 Thread Curt Zirzow
* Thus wrote jsWalter ([EMAIL PROTECTED]): > Is there a style guide for coding practices used when creating code to be > shared with the community? The rule is to code they way the community has been coding. if the indent like such: if ($var) { //blah } Dont change it to no matter ho

Re: [PHP] gettin parameters from url, architecture question

2003-08-05 Thread Merlin
thanx, that points me into the right direction. I will do some research on that. cheers, Merlin --