[PHP] What's up with Quercus?

2011-05-27 Thread Arnold Hesnod
Although I've been mostly using Java and Ruby in my professional software 
development work for the past decade or so, in the past two or three years I've 
started to do more and more PHP.  I originally started using PHP because I 
needed to set-up and customize Drupal for a project.  Although as a programmer 
I've come to feel comfortable writing PHP code, I still don't feel like I have 
a good sense of where PHP is going as a platform and what's it's future is.  As 
the Drupal site has continued to grow both in terms of features and usage, it's 
become clear that this is something that I need to research and educate myself 
about.

That led me to give a closer look at Quercus, the implementation of PHP 5 that 
runs on top of the JVM.  I'd already heard about it somewhere along the line, 
but it's only in the past couple of weeks that I've actually pulled it down, 
read through the documentation and some of the source and tried it out.  So far 
I'm pretty impressed and enthusiastic about it.  The cancellation of PHP 6 
combined with the steady trickle of PHP-related bugs and security 
vulnerabilities that have become public over the past few years had made me 
very nervous about the future of the platform.  Having an open-source 
implementation of PHP that runs on the JVM, which is like the gold standard for 
server application performance and reliability, is reassuring.  The fact that 
it makes it easy and fast to use the huge library of Java frameworks out there 
in your PHP applications doesn't hurt either.

Although I've had great results so far in my experiments with Quercus, I'm 
curious to hear about other PHP developers' experiences with it.  Even though 
it seems like a significant number of people are using it for production 
applications, I'm curious why it's adoption isn't even higher than it is?  
Given the difficulties of writing a Virtual Machine, it seems like leveraging 
the JVM is a no brainer.  Is there some technical drawback that I'm unaware of 
or is it just a case of inertia?

Thanks.

-- Arnold


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] add item to end of (multidimensional) array

2004-10-15 Thread Arnold
Hi,

How can i add new items to an array without using an index.
Normally (single dimension) you can do:  Arr[]="x" and this item is
added to the array, but what if i have subitems like:
Arr[]['name']="arnold"; Arr[]['address']="street".
This last example doesnt work and i think there will be an easy solution but
who can tell me this?

Arnold

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How to load another php page?

2004-10-02 Thread Arnold
Hi Graham,

This works fine! Without the ob_start and ob_flush commands, all the
header() commands have to be put before the HTML  tag, otherwise an
error is displayed about header information that was already sent. Now i put
ob_start() on the first line before  and i can put the header()
command everywhere before ob_flush()! Suggestions from others about using
the "include" command doesnt work fine because the php name in the browser
isnt changed to the new php file and that results in some variables like
$_SERVER['PHP_SELF'] keeps pointing to the old php script.
This works fine, but i'm surprised that this was such a difficult question
(i'm not very experienced in PHP). I expected that there would be some kind
of command like "load script.php" to call a new script. Without your
solution you have to let some user constantly push a link or button and
define a new php script to that action.
Thanks for your help!

Regards, Arnold

"Graham Cossey" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> For my own clarification, would it not be possible to use output buffering
> and then either redirect to another script using header() or output the
> buffer contents?
>
>ob_start();
>
>   [php code]
>
>   if ($variable = 1)
> header("Location: script1.php");
>
>   if ($variable = 2)
> header("Location: script2.php");
>
>   ob_flush();
> ?>
>
> thanks
>
> Graham
>
> -Original Message-
> From: Marek Kilimajer [mailto:[EMAIL PROTECTED]
> Sent: 02 October 2004 21:07
> To: Arnold
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] How to load another php page?
>
>
> Arnold wrote:
> > Ok, i can live with it, include works but this doesnt replace the whole
> > running script, only the rest of the script (what is still coming), so
if
> a
> > few things have been written in "a.php", when "include('b.php') is
> executed,
> > this "b.php" does not replace all the (allready written) output of
> "a.php".
>
> That's how the life goes. Once you say something, you can't take it
> back. So think first, then open your mouth :) (put your logic before the
> output).
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How to load another php page?

2004-10-02 Thread Arnold
Ok, i can live with it, include works but this doesnt replace the whole
running script, only the rest of the script (what is still coming), so if a
few things have been written in "a.php", when "include('b.php') is executed,
this "b.php" does not replace all the (allready written) output of "a.php".

"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Arnold wrote:
> > This (header() function) works only if this is the first output sent to
> > browser so later in the script this doesnt work anymore, i've tried
that.
> > After that you get error messages like: "Warning: Cannot modify header
> > information - headers already sent by (output started at
> > D:\Inetpub\wwwroot\xxx.php:5) in D:\Inetpub\wwwroot\xx.php on
line
> > 31"
> > So what i want is to go to another php file everywhere in the php script
> > with something like: if(thisistrue) { load y.php; exit; }
> >
>
> Once again, why cannot you use inlude()?
>
> If include() does not work for you, you have to rethink the logic of
> your script.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How to load another php page?

2004-10-02 Thread Arnold
I created another php page with html and php code in it. What i want is
exact what is done in an form action when a new php file is loaded, but
without letting the customer pushing a button.
Include works for including php code with functions and the header()
function works if it is the first output sent in the script (otherwise you
get errors like: Warning: Cannot modify header information - headers already
sent by (output started at D:\Inetpub\wwwroot\xx.php:5) in
D:\Inetpub\wwwroot\xx.php on line 31
But what i want is to load another php/html script and stop the running
script. I guess it should be done with the header() function but then i have
to put the test rigth in the beginning of the script?

Arnold


"Alex Hogan" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> [snip]
> How can i load another php file ("another.php") directly without an action
> (example: clicking on a button)?
> [/snip]
>
> If you're looking to check a condition and then add another php file
> to your existing page then;
>
> if(isset($var1)) {
> include ('another.php');
> or
> include_once('another.php');
> }
> is what you're looking for.
>
> If you're looking to redirect to another file based on a condition then;
>
> if(isset($var)){
> header('Location: another.php');
> }
>
> will work.
>
>
> alex hogan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How to load another php page?

2004-10-02 Thread Arnold
This (header() function) works only if this is the first output sent to
browser so later in the script this doesnt work anymore, i've tried that.
After that you get error messages like: "Warning: Cannot modify header
information - headers already sent by (output started at
D:\Inetpub\wwwroot\xxx.php:5) in D:\Inetpub\wwwroot\xx.php on line
31"
So what i want is to go to another php file everywhere in the php script
with something like: if(thisistrue) { load y.php; exit; }

Arnold

"Lists" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hmmm, I'm not sure I am following you.  Maybe:
>
> header ("Location: page.php");
> exit;
>
> So you could do something like: if this condition then go to new page,
> else go to other page?
>
> -dg
>
> On Oct 2, 2004, at 9:44 AM, Arnold wrote:
>
> > I don't think include replaces the calling php script.
> > What i mean is that i want exactly the same as what is done by an
> > "submit"
> > action but then you have to press a button, whereafter a new phpfile is
> > loaded and the button-press is what i want to ignore.
> >
> > Arnold
> > <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> >> if(isset($var1)) { include 'another.php'; }
> >>
> >>
> >>
> >>> Hi,
> >>>
> >>> How can i load another php file ("another.php") directly without an
> > action
> >>> (example: clicking on a button)?
> >>> I'd like to do in my php script:
> >>>
> >>> if(isset($var1)) {  // load another.php }
> >>>
> >>> It is possible to include the file, but i just want to load the whole
> >>> "another.php" file.
> >>> I guess that there should be a php command like "load", but i didnt
> > found
> >>> it
> >>> yet.
> >>>
> >>> Who can help me?
> >>>
> >>> Regards, Arnold
> >>>
> >>> --
> >>> PHP General Mailing List (http://www.php.net/)
> >>> To unsubscribe, visit: http://www.php.net/unsub.php
> >>>
> >>>
> >
> > -- 
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How to load another php page?

2004-10-02 Thread Arnold
I don't think include replaces the calling php script.
What i mean is that i want exactly the same as what is done by an "submit"
action but then you have to press a button, whereafter a new phpfile is
loaded and the button-press is what i want to ignore.

Arnold
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> if(isset($var1)) { include 'another.php'; }
>
>
>
> > Hi,
> >
> > How can i load another php file ("another.php") directly without an
action
> > (example: clicking on a button)?
> > I'd like to do in my php script:
> >
> > if(isset($var1)) {  // load another.php }
> >
> > It is possible to include the file, but i just want to load the whole
> > "another.php" file.
> > I guess that there should be a php command like "load", but i didnt
found
> > it
> > yet.
> >
> > Who can help me?
> >
> > Regards, Arnold
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How to load another php page?

2004-10-02 Thread Arnold
Does an "include" replace the file who called include?

Arnold

<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> if(isset($var1)) { include 'another.php'; }
>
>
>
> > Hi,
> >
> > How can i load another php file ("another.php") directly without an
action
> > (example: clicking on a button)?
> > I'd like to do in my php script:
> >
> > if(isset($var1)) {  // load another.php }
> >
> > It is possible to include the file, but i just want to load the whole
> > "another.php" file.
> > I guess that there should be a php command like "load", but i didnt
found
> > it
> > yet.
> >
> > Who can help me?
> >
> > Regards, Arnold
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] How to load another php page?

2004-10-02 Thread Arnold
Hi,

How can i load another php file ("another.php") directly without an action
(example: clicking on a button)?
I'd like to do in my php script:

if(isset($var1)) {  // load another.php }

It is possible to include the file, but i just want to load the whole
"another.php" file.
I guess that there should be a php command like "load", but i didnt found it
yet.

Who can help me?

Regards, Arnold

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP and Excel

2004-07-13 Thread Arnold
Hi,

I want to use a large Excel sheet in a website. The Excel sheet exists of
lots of functions and the developer of it is a financial person who is used
to programmning in Excel, not in other "programming languages". How can i:
insert the data that's filled in in several forms on web pages (i guess the
"spreadsheet Excel Writer" package), let Excel do the work and produce the
output information, in PHP? Or is there an easier way to use an Excel sheet
together with web pages?

Arnold

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] How stable is CVS releases?

2003-06-06 Thread Timothy Arnold
Hi all,

I am having a problem with compiling PHP 4.3.2 on Solaris 8. The compile
runs ok but blows up when I try a make install. Before submitting this a
bug I downloaded the latest CVS release to see if it has been fixed. It
has!

Unfortunatly, I do not know how stable the CVS version is for production
use? At present 4.3.1 has some serious bugs (i.e persistent connections
not working) but we hve implemented workarounds.

What I would like to know is, is it worth waiting for PHP 4.3.3 or just
use the CVS version?

Thanks,
Timothy


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: PHP program running from shell ends silently

2003-03-17 Thread Arnold Schommer
There is a directive max_execution_time to be set in php.ini. afaik, it limits
the duration of php-scripts. Maybe you have to increase.
(The sense is something like to prevent "faulty" scripts from overloading the 
server)
The Value is in seconds; default 30 (?).

hth

Ruben wrote:
> 
> Hi:
> 
> I'm running a 'batch' PHP program from the shell with "#!/usr/bin/php
> -q" as the first line. After some processing, it ends silently without
> any visible notice or error. It processes information from a PostgreSQL
> database and shows its progression (via echoes) until it suddenly stops.
> This behaviour occurs when it treats a high volume of information, with
> just a few records it works fine.
> 
> I guess it may be a problem of lack of memory but I have tried to look
> for any trace in /var/logs and I cannot find any sign of the program.
> How can I know what is happening? Where can I look for the error?
> 
> Thanks a lot!

-- 
Arnold Schommer

FS EDV Service & Beratung GmbH

An der Pönt 48
40885 Ratingen

fon: +49 2102 186 400
fax: +49 2102 186 499

mailto:[EMAIL PROTECTED]
http://www.fs-edv.de

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: variables with ""

2003-03-17 Thread Arnold Schommer
a) $mail->Body = " 20pt;\">Heading";
b) $mail->Body = 'Heading';
The second method is better reabadle but also disable variable substitution
and most escape sequences (\n and the like).

hth

"Ian a. gray" wrote:
> 
> Hi,
> just a quick question.  How do I include double quotes
> in a variable?  I am trying to put html code in a
> variable in a mailing program:
> 
> 
> 
> $mail->Body = "Heading
> Please e-mail me at  href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]"
> 
> 
> 
> I know that you don't have to inclose everything in
> html tags with quotes, but sometimes you do.  The
> above qon't work obviously as it has nested quotes.
> How do I get the above to work?
> 
> Many thanks,
> 
> Ian Gray
> 
> ______
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com

-- 
Arnold Schommer

FS EDV Service & Beratung GmbH

An der Pönt 48
40885 Ratingen

fon: +49 2102 186 400
fax: +49 2102 186 499

mailto:[EMAIL PROTECTED]
http://www.fs-edv.de

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: List tables

2003-03-17 Thread Arnold Schommer
Hi, Shaun,

Shaun wrote:
> 
> Hi,
> 
> i would like to list all of the tables and field names in my database
> 
> e.g.
> 
> table 1
>   field 1
>   field 2
>   field 3
> table 2
>   field 1
>   field 2
>   field 3
> table 3
>   field 1
>   field 2
>   field 3
> etc
> 
> is there a simple way to do this?
> 
> thanks for your help

Usually any database has its data dictionary you may query via sql, but afaik
there is no real standard how the views are named etc.
What database are you takling about ?
For oracle e.g., you can start with something like 
select table_name, column_name from user_tab_columns
hth

-- 
Arnold Schommer

FS EDV Service & Beratung GmbH

An der Pönt 48
40885 Ratingen

fon: +49 2102 186 400
fax: +49 2102 186 499

mailto:[EMAIL PROTECTED]
http://www.fs-edv.de

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Cascading delete in oracle

2003-03-17 Thread Arnold Schommer
Hello, Eve,

I would think the first error leads to the solution: to me it looks like there
is no sql text at all. Try un-commenting the "echo $sqlStmt;" at the beginning
and look at the html-source generated; maybe it helps to use something like
echo ".$sqlStmt.";
instead to clearly see if it's empty.

hth


Arnold Schommer

Raven Eve wrote:
> 
> create table Shop(
> ordId NUMBER(7) NOT NULL PRIMARY KEY);
> 
> create table Customer(
> ordId NUMBER(7) NOT NULL,
> FOREIGN KEY (ordId) REFERENCES Shop(ordId) on delete cascade);
> 
> so, when i delete a row in shop, the corresponding row in customer will be
> deleted.
> 
> so, i have created a function in php to execute the query
> whereby $sqlStmt = "Delete from Shop where ordId = $ordId";
> 
> function executeSql($sqlStmt) //line 524
>  {
> 
>   //echo $sqlStmt;
> 
>$this->stmt = OCIParse($this->conn, $sqlStmt)or die
> ("Sorry, cannot parse the sql statement. Please inform the webmistress of
> the error messages");
> 
>// verify that SQL is valid
>$this->checkErrors();
> 
>   OCIExecute($this->stmt, OCI_DEFAULT) or die //line 534
> ("Sorry, cannot execute the sql statement. Please inform the webmistress of
> the error messages");
> 
>   $this->checkErrors();
> 
>   //commit to database
>   $this->commit();
> 
>  }
> 
> however, when i tried to execute the sql stmt, an error stmt will occur :
> Warning: Missing argument 1 for executesql() in
> c:\apache\htdocs\project\ProcessSql.php on line 524
> 
> Warning: OCIStmtExecute: ORA-24337: statement handle not prepared in
> c:\apache\htdocs\project\ProcessSql.php on line 534
> Sorry, cannot execute the sql statement. Please inform the webmistress of
> the error messages
> 
> This function works for tables that do not have cascading deletes.
> How do i get round this problem? thanx :P
> --
> 
> --

-- 
Arnold Schommer

FS EDV Service & Beratung GmbH

An der Pönt 48
40885 Ratingen

fon: +49 2102 186 400
fax: +49 2102 186 499

mailto:[EMAIL PROTECTED]
http://www.fs-edv.de

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Get Browsers time zone

2003-03-06 Thread Jonathan Arnold
Is there a way to figure out the client (ie., browser's) time
zone? I have a time stored as a GMT time, and I'd like to display
it in the viewer's time zone.
--
Jonathan Arnold (mailto:[EMAIL PROTECTED])
Amazing Developments   http://www.buddydog.org
So I'm ugly. So what? I never saw anyone hit with
his face. -- Yogi Berra
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Regular Expressions...

2002-01-18 Thread Tony Arnold

Thank you!

-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]] 
Sent: den 18 januari 2002 15:14
To: Tony Arnold; [EMAIL PROTECTED]
Subject: Re: [PHP] Regular Expressions...


On Friday 18 January 2002 22:09, Tony Arnold wrote:
> Howdy people... I want to extract the name of a hyperlink which looks 
> like
> this:
>
> this is the name!
>
> I tried to do this:
>
> ereg(">([a-zA-Z0-9_. -]*)<",$hlink, $reg3);
>
> and it works if it only consists of the above characters, how can I 
> tell ereg to include all characters? not only "a-zA-Z0-9_. -".
>
> / Tony...

Use .* as in:

 ereg(">(.*)<",$hlink, $reg3);



-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk

/*
court, n.:
A place where they dispense with justice.
-- Arthur Train
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Regular Expressions...

2002-01-18 Thread Tony Arnold

Howdy people... I want to extract the name of a hyperlink which looks like
this:

this is the name!

I tried to do this:

ereg(">([a-zA-Z0-9_. -]*)<",$hlink, $reg3);

and it works if it only consists of the above characters, how can I tell
ereg to include all characters? not only "a-zA-Z0-9_. -".

/ Tony...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] WDDX...

2002-01-16 Thread Tony Arnold

I'm doing a website which I want to be easily updated so I made it using
wddx, now I wonder how fast or slow it is? How many people can connect to my
website without seeing any slowdowns? Anyone knows?

/ Tony...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Parsing?

2002-01-16 Thread Tony Arnold

I'm wondering if it's possible to parse a .php-file so i looks exactly as if
I just were looking at the source trough a browser with all the
environment-variables intact and so on?

/ Tony...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Looping?

2001-12-14 Thread Tony Arnold

Thank you all for very good and quick answers. They did help! :-)

/ Tony...

"Tony Arnold" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello, I don't know if I'm in the right newsgroup but I'll give it a
try...
> :-)
>
> How can I make the following work:
>
> function start($times)
> {
> for...loop starts here...
> {  <-- notice only one bracket.
> }
>
> function end()
> {
> } <-- the ending bracket.
> }
>
> start('10');
> html-code... I want this to be repeated 10 times.
> end();
>
> This doesn't work but this is how I want it! :-) Anyone?
>
> / Tony Grefweberg
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Looping?

2001-12-14 Thread Tony Arnold

Hello, I don't know if I'm in the right newsgroup but I'll give it a try...
:-)

How can I make the following work:

function start($times)
{
for...loop starts here...
{  <-- notice only one bracket.
}

function end()
{
} <-- the ending bracket.
}

start('10');
html-code... I want this to be repeated 10 times.
end();

This doesn't work but this is how I want it! :-) Anyone?

/ Tony Grefweberg



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] conjob etc.

2001-10-24 Thread Arnold Gamboa

Hi there.

Need your help / comments on this couple of issues.

1. I already have a php compiled in apache module running.. How can i
install a cgi version that will also support mysql/postgresql/interbase (as
it was also supported on the compiled version)

2. If I'll be running a cron job calling a php script that access mysql and
reads data EVERY 5 MINS, will i exhaust my box's resources?  That is the
best /safest thing i have in mind in as far as doing an email account
manipulation on the linux box. Any idea is also appreciated.

Thanks.. Mabuhay!

--
Arnold Gamboa
Pres., Managing Dir.
SparrowInteractive.com, Inc.
[EMAIL PROTECTED]
http://www.sparrowinteractive.com
(63) 2 -  532-5373 / 532-5387

---
"He chose the nails"




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PostgreSQL vs. Interbase

2001-05-07 Thread Arnold Gamboa

Hi there.

I'm currently in serious research on what database to use for a B2B site
which is expected to hold millions of records. I have in so far considered
two open source databases - Interbase and PostgreSQL. With this in mind, I'm
sending this email to both the PostgreSQL and Interbase mailing lists and
also on PHP's. I would appreciate what ever information you can provide.
Thanks :)

My inquiry:

Please discuss as to your point of view the advantage of PostgreSQL over
Interbase and/or vise versa. I'm considering three (3) important points

1.  Speed
2.  Data Reliability
3.  Portability

Your messages will be greatly appreciated.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] mail() implementation problem

2001-03-16 Thread Mathieu Arnold



Manuel Lemos wrote:
> 
> Hello,
> 
> Mathieu Arnold wrote:
> >
> > Hi
> >
> > The actual implementation of the mail fonction use sendmail -t and
> > relies on sendmail to parse the headers to get the recipients.
> > It would be great if it was possible to switch from this way of using
> > sendmail to a more classic
> > sendmail -f sender rcpt
> > it should be quite easy, but I lack time to do it.
> 
> You may want to try this PHP MIME message composing and sending class
> that has subclasses for sending messages using directly sendmail, qmail
> or even a SMTP server.
> 
> http://phpclasses.UpperDesign.com/browse.html/package/9

looks nice, but I'm not going to ask all my clients to change their php
scripts ;)
I just need to change the way php calls sendmail :)
I believe I'm going to do it myself next week or so.

-- 
Mathieu Arnold

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] mail() implementation problem

2001-03-15 Thread Mathieu Arnold

Hi

The actual implementation of the mail function use sendmail -t and
relies on sendmail to parse the headers to get the recipients.
It would be great if it was possible to switch from this way of using
sendmail to a more classic 
sendmail -f sender rcpt
it should be quite easy, but I lack time to do it.

-- 
Mathieu Arnold

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] mail() implementation problem

2001-03-15 Thread Mathieu Arnold

Hi

The actual implementation of the mail fonction use sendmail -t and
relies on sendmail to parse the headers to get the recipients.
It would be great if it was possible to switch from this way of using
sendmail to a more classic 
sendmail -f sender rcpt
it should be quite easy, but I lack time to do it.

-- 
Mathieu Arnold

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PostgreSQL vs InterBase

2001-02-27 Thread Arnold Gamboa

I hve heard a great deal about InterBase.  Please comment on which is
better:

1.  Speed
2.  Data Reliability
3.  Compatibility with PHP

Thanks for your comments.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] crontab help

2001-02-22 Thread Arnold Gamboa

hi,

thanks again. questions:

1. sleep(300) would mean pause by 300 mins, right?  That's why i thought you
mean usleep(300) - 300 microseconds. please comment
2. what you mean is i will send 5000 emails, then pause and send again?

Thanks for your help.

> I send roughly 1M of these and put a sleep() (not usleep - that's
microseconds)
> into the while loop - I've come up with a decent balance that sends out a
good
> number (like 5000) and then sleeps just long enough to get them out of
qmail's
> queue, then it sends another 5000 (and so on).
>
> Usually takes about 24 hours to send out 1M messages.
>
> --Joe
>
> On Fri, Feb 22, 2002 at 03:36:33PM +0800, Arnold Gamboa wrote:
> > thanks for the comment
> >
> > let's just say i have 100k emails to send... don't you think that will
drain
> > the system resources if i send it all at once even if you have
usleep(300)
> > on each while?
> >
> > your comment please.
> >
> > > put a sleep(300); at the end of your while() loop - I did this on my
mass
> > > mailer and it worked like a charm.
> > >
> > > --Joe
> > >
> > > On Fri, Feb 22, 2002 at 02:53:10PM +0800, Arnold Gamboa wrote:
> > > > hi there.
> > > >
> > > > is there a way to tell crontab to do:
> > > >
> > > > "run script every 5 mins for 1 hour"..
> > > >
> > > > i have this mass email script that is so huge that i need it to
chunk
> > into
> > > > records and make sure that it will run every 5 mins for 1 hour.
> > > >
> > > > Thanks for any help.
> > > >
> > >
> > > --
> > >
> >
> --
> > -
> > > Joe Stump, PHP Hacker,
> >  -o)
> > > http://www.miester.org http://www.care2.com
> > /\\
> > > "It's not enough to succeed. Everyone else must fail" -- Larry Ellison
> > _\_V
> >
> --
> > -
> > >
> > >
> > >
> >
>
> --
>
> --
-
> Joe Stump, PHP Hacker,
 -o)
> http://www.miester.org http://www.care2.com
/\\
> "It's not enough to succeed. Everyone else must fail" -- Larry Ellison
_\_V
> --
-
>
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] crontab help

2001-02-21 Thread Arnold Gamboa

thanks for the comment

let's just say i have 100k emails to send... don't you think that will drain
the system resources if i send it all at once even if you have usleep(300)
on each while?

your comment please.

> put a sleep(300); at the end of your while() loop - I did this on my mass
> mailer and it worked like a charm.
>
> --Joe
>
> On Fri, Feb 22, 2002 at 02:53:10PM +0800, Arnold Gamboa wrote:
> > hi there.
> >
> > is there a way to tell crontab to do:
> >
> > "run script every 5 mins for 1 hour"..
> >
> > i have this mass email script that is so huge that i need it to chunk
into
> > records and make sure that it will run every 5 mins for 1 hour.
> >
> > Thanks for any help.
> >
>
> --
>
> --
-
> Joe Stump, PHP Hacker,
 -o)
> http://www.miester.org http://www.care2.com
/\\
> "It's not enough to succeed. Everyone else must fail" -- Larry Ellison
_\_V
> --
-
>
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] crontab help

2001-02-21 Thread Arnold Gamboa

hi there.

is there a way to tell crontab to do:

"run script every 5 mins for 1 hour"..

i have this mass email script that is so huge that i need it to chunk into
records and make sure that it will run every 5 mins for 1 hour.

Thanks for any help.