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
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
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
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
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
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 *
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
>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.
--
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();
>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
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
> 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
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
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
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
"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
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
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
>
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
* 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;
> }
> }
>
--- 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
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
* 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
thanx, that points me into the right direction. I will do some research on
that.
cheers,
Merlin
--
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
> -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
> -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
"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
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
--- 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
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
* 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
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
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 .
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
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.
> -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
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
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
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
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,
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
[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
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
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
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
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
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
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
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
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
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
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
53 matches
Mail list logo