Re: [PHP] Running script produces no output

2003-08-05 Thread Jacob Vennervald Madsen
Does the script work when you run it by hand? Try to insert an echo "TESTER" in the top the shell script to make sure something is sent to stdout. And then check in your php script that you receive the message. Best regards, Jacob Vennervald On Wed, 2003-08-06 at 08:38, Chris Blake wrote: > Gree

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

2003-08-05 Thread Ben C.
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 WHERE invoiceid = \"$invoiceid\" "; $result_2 = @mysql_query($sql_2,$connection) or die(mysql_err

Re: [PHP] Stop neurotic posting

2003-08-05 Thread Jason Wong
On Wednesday 06 August 2003 14:26, Curt Zirzow wrote: > Now noisyness from the 'helpers'... I have noticed at times that a > question is answered the same way like 10 times by 10 different > people; this I consider more noisy than a RTFM post. And what I find really annoying is that some helpers

Re: [PHP] Stop neurotic posting

2003-08-05 Thread John W. Holmes
andu wrote: This is a very busy list, over 100 message in a quiet day and most people are helpful and decent, don't mind reading and learning. Unfortunately there are some who mostly post stuff like 'read the manual' and other shit like that. Stuffing e-mailboxes with such garbage day after da

Re: [PHP] OO function overloading?

2003-08-05 Thread Greg Beaver
Hi, This statement isn't entirely correct, overloading is possible with the overload extension. http://www.php.net/overload Regards, Greg -- phpDocumentor http://www.phpdoc.org Curt Zirzow wrote: * Thus wrote Jean-Christian IMbeault ([EMAIL PROTECTED]): Is it possible to overload a function is

Re: [PHP] Command line php....

2003-08-05 Thread Jason Wong
On Wednesday 06 August 2003 11:11, John Nichel wrote: > 4.3.2 Try disabling output buffer in php.ini. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development *

[PHP] dev style guide

2003-08-05 Thread jsWalter
Is there a style guide for coding practices used when creating code to be shared with the community? Walter -- Ankh if you love Isis. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Unzipping Files

2003-08-05 Thread Mike Migurski
>I am doing this for a client, and he doesn't have the ZZIPlib installed, >and would like to avoid it if possible. Any other ideas? It has been mentioned before: use exec, or the backtick operator, and the command-line tools: unzip, bunzip, gunzip, etc. --

Re: [PHP] preventing output dump of passthru()

2003-08-05 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Wed, 6 Aug 2003 at 00:56, lines prefixed by '>' were originally written by you. > Hello, > Trying to prevent the output dumping of passthru() and instead store > the > output in a variable. > I read an article that suggested this: > ob_start();

Re: [PHP] dev style guide

2003-08-05 Thread Mike Migurski
>Is there a style guide for coding practices used when creating code to be >shared with the community? PEAR has some, http://pear.php.net/manual/en/standards.php I gave them a cursory glance, and they seem to be pretty solid -- in line with standards that I used for the past year or so after real

Re: [PHP] PHP Fusebox

2003-08-05 Thread Tariq Murtaza
Hi Ralph! I suggest MVC. http://phrame.sourceforge.net/ http://www.phpmvc.net/ Regards, TM. Ralph Guzman wrote: 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 de

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

2003-08-05 Thread Merlin
> Also, don't rule out the possibility of generating static HTML at regular > intervals. This is how sites such as Slashdot operate - it's a sort of a > creative server-side caching mechanism. this sounds very interesting. So they are saving cpu and db_traffic by writing html pages out? How are th

Re: [PHP] PHP/JavaScript/HTML

2003-08-05 Thread CPT John W. Holmes
From: "Mauricio" <[EMAIL PROTECTED]> > On the Address Bar I can see: index.php?slcAdd=1&slcAdd=2&slcAdd=3 > But when I get the value using $HTTP_GET_VARS['slcAdd']; it returns just the > last value. What can I do to get them all? Name your select box as "slcAdd[]" and you'll have all of the values

Re: [PHP] How can I change ? to %3F

2003-08-05 Thread John W. Holmes
David Nicholson wrote: If you want *only* the ?:&/ characters changed then it can be done with a regular rexpression, the e modifier, and the ord(), hex() and strtoupper() functions, post back if you would like an example. $new_str = str_replace(array('?',':','&','/'),array('3F','3A','26','2F'),$o

Re: [PHP] Best PHP CMS

2003-08-05 Thread Nick Talbott
On Tuesday 05 Aug 2003 2:51 pm, you wrote: > 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 Have a look at Typo3 - http://typo3.com Will do all you want, but it's a big package and may be too sophist

[PHP] Re: why doesn't default values for this function work

2003-08-05 Thread Kevin Stone
"Anders Thoresson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I'm having problem with a function that I'll use to validate user input > before passing it to MySQL. For strings, I want to make sure that they > aren't to long, so I have written this function: > > function

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

2003-08-05 Thread Bobby Patel
also look into output buffering. so you would then do these steps 1. start buffer 2. redirect all output to varaible $output 3. echo Static HTML code (from opening to closing tags) 4. when completly done all output, the variable $output should have all the html code 5. then using filesystem funct

Re: [PHP] How to get exec() to display output from UNIX Shell Environemnt?

2003-08-05 Thread Reuben D. Budiardja
On Tuesday 05 August 2003 05:20 pm, Scott Fletcher wrote: > Hi! > > How do I get the php function exec() to spit out the data from the Unix > Shell Environment onto the webpage? I mean, I can create a script in bash > shell environment using the terminal on the Unix machine and it would spit >

Re: [PHP] How to get exec() to display output from UNIX Shell Environemnt?

2003-08-05 Thread Scott Fletcher
I have read the manual but haven't seen anything that work with system, passthru, exec for this command code. Here's the example that I use for exec() and curl with one example script and it work. --snip-- exec("curl -d \"$XP_ECALS_STR\" 2>&1 ".TARGET_URL, $result_array, $res_code); --snip-- But

Re: [PHP] Class extension problem

2003-08-05 Thread Curt Zirzow
* Thus wrote Joshua Groboski ([EMAIL PROTECTED]): > > class CMS { > var $prop1 = "a"; > function CMS(){ > $this->prop1 = "A"; > } > } > > class WebSite extends CMS{ > var $prop2 = "b"; > function WebSite(){ } > function setProp2(){ > $this->prop2 = $this->prop1; > } > } >

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

2003-08-05 Thread Chris Shiflett
--- Merlin <[EMAIL PROTECTED]> wrote: > So they are saving cpu and db_traffic by writing html pages out? Pretty much, yeah, though I don't think the pages are completely static HTML either, but the majority of the logic is done in batches. It was basically a common sense approach taken a long tim

Re: [PHP] Display Records in Multiple Pages help please !

2003-08-05 Thread Justin French
If you're using CGI/Perl, WHY WHY WHY are you asking questions on a PHP list? I've given you a hint, so perhaps take that hint and ask a question on an Oracle list, or search the Oracle documentation for similar functions. Justin French On Tuesday, August 5, 2003, at 10:37 PM, Coello, David

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 --