|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: php-general-digest-help
lists.php.netDate: Sun Sep 02 2001 - 21:07:57 CDT
php-general Digest 3 Sep 2001 02:07:57 -0000 Issue 853
Topics (messages 65633 through 65680):
Php4 + Imap with Debian potato 2.2r3
65633 by: Fabio Vendramin
Re: php's future
65634 by: nick
65635 by: nick
65640 by: Papp Gyozo
65641 by: Jack Dempsey
65648 by: Jack Sasportas
65653 by: Coconut Ming
65655 by: Chris Hobbs
65656 by: Mark Charette
65657 by: Tim
65658 by: Chris Hobbs
65659 by: Alexander Skwar
65660 by: Paul Roberts
65662 by: Alexander Skwar
65664 by: Jack Dempsey
65667 by: Alexander Skwar
65676 by: Michael Kimsal
Re: Really weird problem: cross-server databasing *g*
65636 by: Andrew Brampton
65661 by: Manuel Lemos
Re: ereg question
65637 by: Papp Gyozo
Database Function
65638 by: Georgie
65639 by: Hugh Bothwell
65644 by: Alfredo Yong
FREE CELL PHONE, FREE MEMBERSHIP, FREE SOFTWARE
65642 by: Alice
Re: Call to undefined function: dbase_open() in
65643 by: Alfredo Yong
65670 by: Richard Lynch
literature help
65645 by: Nikola Veber
65649 by: Egon Schmid
Problems with RELOAD on browsers
65646 by: pekesan
65650 by: Alfredo Yong
imap?
65647 by: shi
65673 by: Richard Lynch
PHP4 and Apache 1.3.20 DSO mode not working?
65651 by: Bill Carter
Re: [PHP-INST] PHP4 and Apache 1.3.20 DSO mode not working?
65652 by: Steve Brazill
65666 by: Stefan Siefert
Newbie: PHP has encountered an Access Violation..
65654 by: Michael Cronström
65674 by: Michael Kimsal
65679 by: Michael Cronström
for and emailmessage
65663 by: Jan Grafström
65668 by: Alexander Skwar
65672 by: Richard Lynch
Re: Newbie: PHP has encountered an Access Violation..More details!
65665 by: Alfredo Yong
probs with exec, pls help
65669 by: taz
Re: virtual nulls include problem
65671 by: Richard Lynch
Re: php-general Digest 2 Sep 2001 14:00:00 -0000 Issue 852
65675 by: Garth Dahlstrom
Re: FULLTEXT search sorting results
65677 by: BRACK
Re: virtual nulls include problem: It really happen
65678 by: Alfredo Yong
Problems with exec and sendfax
65680 by: Otto Brandstätter
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php-general
lists.php.net
----------------------------------------------------------------------
attached mail follows:
Hi to all.
I use debian potato 2.2r3 and i have installed apache + php4 plus the
module php4-imap, because i have to use the php4 imap function to
retrieve email from a imap server.
But when i try to open a mailbox whit the correct username and password
with the function imap_open() i wait longer but nothing appened.
Finally i have an timeout error.
Now the debian package of php4 contains the imap support ?
Anyone can tell me if i have to do anything to use imap functions ?
Thx a lot.
attached mail follows:
It's Chinese .....
I translated it ....maybe u cannot understand bcoz my English is not
good
First: jsp test for loop ....see below
<jsp:useBean id='clock' scope='page' class='dates.JspCalendar'
type="dates.JspCalendar"/>
<jsp:getProperty name="clock" property="time" />
<%
int i=0;
int j=0;
int k=0;
for(i=0;i<20000;i++){
for(j=0;j<20000;j++){
}
}
%>
<jsp:useBean id='clock1' scope='page' class='dates.JspCalendar'
type="dates.JspCalendar"/>
<jsp:getProperty name="clock1" property="time" />
4 secs taken
Next : php test for loop ....see below (he didn't mention if it is php3
or php4)
<?
$TTime=date("Y-n-d"). " " . date("H:i:s");
echo $TTime;
echo "
";
for($i=0;$i<1000;$i++){
for($j=0;$j<1000;$j++){
}
}
$TTime=date("Y-n-d"). " " . date("H:i:s");
echo $TTime;
?>
84 secs taken ++"
Third : Asp for loop test
<%
response.write now
response.write "
"
for i=0 to 2000
for j=0 to 2000
next
next
response.write now
%>
64 secs taken
Last one : Asp+ for loop test
<%
Dim intStart,intStop As DateTime
Dim timeUse As TimeSpan
dim Sum,i,j as int32
intStart = DateTime.Now
for i=1 to 20000
for j=1 to 20000
Sum=Sum + i
next
next
intStop = DateTime.Now
timeUse = intStop.Subtract(intStart)
Response.Write (TimeSpan.ToString(timeUse))
%>
3.6 secs taken
if u can read Chinese u can go
http://www.webappcabaret.com/jsptw/doc/test-report.htm for more
infomation.
It's a website which teach jsp at all
-----Original Message-----
From: Faisal Nasim [mailto:faisal
nasim.org]
Sent: Sunday, September 02, 2001 7:54 PM
To: nick
Subject: Re: [PHP] php's future
Where did you see that?
Faisal
At 04:28 PM 9/2/2001, you wrote:
>Hi all in the list :
>I read an news that said jsp/asp.net is better than php..
>
>They made a test that asp/php/jsp/asp.net using "for loops",
>
>Jsp from 1 to 20000 takes only 4 secs
>Asp from 1 to 2000 (not 20000) takes 72 secs
>Php from 1 to 2000 (not 20000) takes 68 secs
>Asp.Net from 1 to 20000 takes only 3.5~3.8 secs...
>
>So is it time to learn jsp/asp+ instead of learning php ..???
>I am so confused ~
>I have been learning php for a while and now it said jsp/asp+ is better
>than it.
attached mail follows:
Haha I tried its code and it only takes 1~2 secs to run it .
Well....god damn lies....
-----Original Message-----
From: nick [mailto:geteasy
seed.net.tw]
Sent: Sunday, September 02, 2001 8:38 PM
To: 'Faisal Nasim'; php-general
lists.php.net
Subject: RE: [PHP] php's future
It's Chinese .....
I translated it ....maybe u cannot understand bcoz my English is not
good
First: jsp test for loop ....see below
<jsp:useBean id='clock' scope='page' class='dates.JspCalendar'
type="dates.JspCalendar"/>
<jsp:getProperty name="clock" property="time" />
<%
int i=0;
int j=0;
int k=0;
for(i=0;i<20000;i++){
for(j=0;j<20000;j++){
}
}
%>
<jsp:useBean id='clock1' scope='page' class='dates.JspCalendar'
type="dates.JspCalendar"/>
<jsp:getProperty name="clock1" property="time" />
4 secs taken
Next : php test for loop ....see below (he didn't mention if it is php3
or php4)
<?
$TTime=date("Y-n-d"). " " . date("H:i:s");
echo $TTime;
echo "
";
for($i=0;$i<1000;$i++){
for($j=0;$j<1000;$j++){
}
}
$TTime=date("Y-n-d"). " " . date("H:i:s");
echo $TTime;
?>
84 secs taken ++"
Third : Asp for loop test
<%
response.write now
response.write "
"
for i=0 to 2000
for j=0 to 2000
next
next
response.write now
%>
64 secs taken
Last one : Asp+ for loop test
<%
Dim intStart,intStop As DateTime
Dim timeUse As TimeSpan
dim Sum,i,j as int32
intStart = DateTime.Now
for i=1 to 20000
for j=1 to 20000
Sum=Sum + i
next
next
intStop = DateTime.Now
timeUse = intStop.Subtract(intStart)
Response.Write (TimeSpan.ToString(timeUse))
%>
3.6 secs taken
if u can read Chinese u can go
http://www.webappcabaret.com/jsptw/doc/test-report.htm for more
infomation.
It's a website which teach jsp at all
-----Original Message-----
From: Faisal Nasim [mailto:faisal
nasim.org]
Sent: Sunday, September 02, 2001 7:54 PM
To: nick
Subject: Re: [PHP] php's future
Where did you see that?
Faisal
At 04:28 PM 9/2/2001, you wrote:
>Hi all in the list :
>I read an news that said jsp/asp.net is better than php..
>
>They made a test that asp/php/jsp/asp.net using "for loops",
>
>Jsp from 1 to 20000 takes only 4 secs
>Asp from 1 to 2000 (not 20000) takes 72 secs
>Php from 1 to 2000 (not 20000) takes 68 secs
>Asp.Net from 1 to 20000 takes only 3.5~3.8 secs...
>
>So is it time to learn jsp/asp+ instead of learning php ..???
>I am so confused ~
>I have been learning php for a while and now it said jsp/asp+ is better
>than it.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
I also can hardly believe the 84+ sec. In such case all PHP template engines may run for a thousand years.
----- Original Message -----
From: nick <geteasy
seed.net.tw>
To: 'nick' <geteasy
seed.net.tw>
Cc: <php-general
lists.php.net>
Sent: Sunday, September 02, 2001 2:56 PM
Subject: RE: [PHP] php's future
> Haha I tried its code and it only takes 1~2 secs to run it .
>
> Well....god damn lies....
>
> -----Original Message-----
> From: nick [mailto:geteasy
seed.net.tw]
> Sent: Sunday, September 02, 2001 8:38 PM
> To: 'Faisal Nasim'; php-general
lists.php.net
> Subject: RE: [PHP] php's future
>
> It's Chinese .....
>
> I translated it ....maybe u cannot understand bcoz my English is not
> good
>
> First: jsp test for loop ....see below
>
> <jsp:useBean id='clock' scope='page' class='dates.JspCalendar'
> type="dates.JspCalendar"/>
> <jsp:getProperty name="clock" property="time" />
> <%
> int i=0;
> int j=0;
> int k=0;
>
(i=0;i<20000;i++){
> for(j=0;j<20000;j++){
>
> }
> }
> %>
> <jsp:useBean id='clock1' scope='page' class='dates.JspCalendar'
> type="dates.JspCalendar"/>
> <jsp:getProperty name="clock1" property="time" />
>
> 4 secs taken
>
> Next : php test for loop ....see below (he didn't mention if it is php3
> or php4)
> <?
> $TTime=date("Y-n-d"). " " . date("H:i:s");
> echo $TTime;
> echo "
> ";
> for($i=0;$i<1000;$i++){
> for($j=0;$j<1000;$j++){
> }
> }
> $TTime=date("Y-n-d"). " " . date("H:i:s");
> echo $TTime;
> ?>
>
> 84 secs taken ++"
>
> Third : Asp for loop test
> <%
> response.write now
> response.write "
> "
> for i=0 to 2000
> for j=0 to 2000
> next
> next
> response.write now
> %>
>
> 64 secs taken
>
> Last one : Asp+ for loop test
>
> <%
> Dim intStart,intStop As DateTime
> Dim timeUse As TimeSpan
> dim Sum,i,j as int32
> intStart = DateTime.Now
> for i=1 to 20000
> for j=1 to 20000
> Sum=Sum + i
> next
> next
> intStop = DateTime.Now
> ti
meUse = intStop.Subtract(intStart)
> Response.Write (TimeSpan.ToString(timeUse))
> %>
>
> 3.6 secs taken
>
> if u can read Chinese u can go
> http://www.webappcabaret.com/jsptw/doc/test-report.htm for more
> infomation.
>
> It's a website which teach jsp at all
>
>
> -----Original Message-----
> From: Faisal Nasim [mailto:faisal
nasim.org]
> Sent: Sunday, September 02, 2001 7:54 PM
> To: nick
> Subject: Re: [PHP] php's future
>
> Where did you see that?
>
> Faisal
>
> At 04:28 PM 9/2/2001, you wrote:
> >Hi all in the list :
> >I read an news that said jsp/asp.net is better than php..
> >
> >They made a test that asp/php/jsp/asp.net using "for loops",
> >
> >Jsp from 1 to 20000 takes only 4 secs
> >Asp from 1 to 2000 (not 20000) takes 72 secs
> >Php from 1 to 2000 (not 20000) takes 68 secs
> >Asp.Net from 1 to 20000 takes only 3.5~3.8 secs...
> >
> >So is it time to learn jsp/asp+ instead of learning php ..???
> >I am so confused ~
> >I have been learning php for a while and now it said jsp/asp+ is better
> >than it.
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
exactly...don't believe everything you read... if you want some benchmarking results, search google...from what i've seen, php is the fastest out of any of them...certainly not jsp...
jack
nick wrote:
> Haha I tried its code and it only takes 1~2 secs to run it .
>
> Well....god damn lies....
>
> -----Original Message-----
> From: nick [mailto:geteasy
seed.net.tw]
> Sent: Sunday, September 02, 2001 8:38 PM
> To: 'Faisal Nasim'; php-general
lists.php.net
> Subject: RE: [PHP] php's future
>
> It's Chinese .....
>
> I translated it ....maybe u cannot understand bcoz my English is not
> good
>
> First: jsp test for loop ....see below
>
> <jsp:useBean id='clock' scope='page' class='dates.JspCalendar'
> type="dates.JspCalendar"/>
> <jsp:getProperty name="clock" property="time" />
> <%
> int i=0;
> int j=0;
> int k=0;
> for(i=0;i<20000;i++){
> for(j=0;j<20000;j++){
>
> }
> }
> %>
> <jsp:useBean id='clock1' scope='page' class='dates.JspCalendar'
> type="dates.JspCalendar"/>
> <jsp:getProperty name="clock1" property="time" />
>
> 4 secs taken
>
> Next : php test for loop ....see below (he didn't mention if it is php3
> or php4)
> <?
> $TTime=date("Y-n-d"). " " . date("H:i:s");
> echo $TTime;
> echo "
> ";
> for($i=0;$i<1000;$i++){
> for($j=0;$j<1000;$j++){
> }
> }
> $TTime=date("Y-n-d"). " " . date("H:i:s");
> echo $TTime;
> ?>
>
> 84 secs taken ++"
>
> Third : Asp for loop test
> <%
> response.write now
> response.write "
> "
> for i=0 to 2000
> for j=0 to 2000
> next
> next
> response.write now
> %>
>
> 64 secs taken
>
> Last one : Asp+ for loop test
>
> <%
> Dim intStart,intStop As DateTime
> Dim timeUse As TimeSpan
> dim Sum,i,j as int32
> intStart = DateTime.Now
> for i=1 to 20000
> for j=1 to 20000
> Sum=Sum + i
> next
> next
> intStop = DateTime.Now
> timeUse = intStop.Subtract(intStart)
> Response.Write (TimeSpan.ToString(timeUse))
> %>
>
> 3.6 secs taken
>
> if u can read Chinese u can go
> http://www.webappcabaret.com/jsptw/doc/test-report.htm for more
> infomation.
>
> It's a website which teach jsp at all
>
> -----Original Message-----
> From: Faisal Nasim [mailto:faisal
nasim.org]
> Sent: Sunday, September 02, 2001 7:54 PM
> To: nick
> Subject: Re: [PHP] php's future
>
> Where did you see that?
>
> Faisal
>
> At 04:28 PM 9/2/2001, you wrote:
> >Hi all in the list :
> >I read an news that said jsp/asp.net is better than php..
> >
> >They made a test that asp/php/jsp/asp.net using "for loops",
> >
> >Jsp from 1 to 20000 takes only 4 secs
> >Asp from 1 to 2000 (not 20000) takes 72 secs
> >Php from 1 to 2000 (not 20000) takes 68 secs
> >Asp.Net from 1 to 20000 takes only 3.5~3.8 secs...
> >
> >So is it time to learn jsp/asp+ instead of learning php ..???
> >I am so confused ~
> >I have been learning php for a while and now it said jsp/asp+ is better
> >than it.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
You should send those people an email tell them of your specs, and you want some kind of lab results to look at because you beleive their article is full of sh*t....
nick wrote:
> Hi all in the list :
> I read an news that said jsp/asp.net is better than php..
>
> They made a test that asp/php/jsp/asp.net using "for loops",
>
> Jsp from 1 to 20000 takes only 4 secs
> Asp from 1 to 2000 (not 20000) takes 72 secs
> Php from 1 to 2000 (not 20000) takes 68 secs
> Asp.Net from 1 to 20000 takes only 3.5~3.8 secs...
>
> So is it time to learn jsp/asp+ instead of learning php ..???
> I am so confused ~
> I have been learning php for a while and now it said jsp/asp+ is better
> than it.
-- ___________________________________________________________ Jack Sasportas Innovative Internet Solutions Phone 305.665.2500 Fax 305.665.2551 www.innovativeinternet.com www.web56.net
attached mail follows:
I can say.. It is really depends on your system specification and the users of it.... If the benchmark result is correct.. I think everybody will learn JSP rather than doing Php... Check your sources.. I guess they are not professional enough.. Have a nice day.
Regards Ming
Jack Sasportas wrote:
> You should send those people an email tell them of your specs, and you want
> some kind of lab results to look at because you beleive their article is
> full of sh*t....
>
> nick wrote:
>
> > Hi all in the list :
> > I read an news that said jsp/asp.net is better than php..
> >
> > They made a test that asp/php/jsp/asp.net using "for loops",
> >
> > Jsp from 1 to 20000 takes only 4 secs
> > Asp from 1 to 2000 (not 20000) takes 72 secs
> > Php from 1 to 2000 (not 20000) takes 68 secs
> > Asp.Net from 1 to 20000 takes only 3.5~3.8 secs...
> >
> > So is it time to learn jsp/asp+ instead of learning php ..???
> > I am so confused ~
> > I have been learning php for a while and now it said jsp/asp+ is better
> > than it.
>
> --
> ___________________________________________________________
> Jack Sasportas
> Innovative Internet Solutions
> Phone 305.665.2500
> Fax 305.665.2551
> www.innovativeinternet.com
> www.web56.net
attached mail follows:
nick wrote:
> Haha I tried its code and it only takes 1~2 secs to run it . > > Well....god damn lies....
Intersting. I tried the following code (which gives much more detailed time info, check it out - stolen from Andrey Hristov on php-db), and my times, on our P2-266 webserver, are just above 9 seconds. That's at 2000x2000 iterations, or 4M iterations.
Of course, I'm trying to figure out when I would have a script that really needed to go through 4M iterations, and thus (like most benchmarks) this probably has no real bearing on the (or at least my) real world.
<? $starttime = explode(" ", microtime()); for ($i=0; $i<2000; $i++) { for ($j=0; $j<2000; $j++) { } } $endtime=explode(" ", microtime()); $starttime = $starttime[1]+$starttime[0]; $endtime = $endtime[1]+$endtime[0]; $parse_time = $endtime-$starttime; printf ("%.4f seconds",$parse_time); ?>
--
_______ ___ _ ____ _____
Chris Hobbs / ____\ \ / / | | |/ ___\| __ \
Head Geek | (___ \ \ / /| | | | (___ | | | |
WebMaster \___ \ \ \/ / | | | |\___ \| | | |
PostMaster ____) | \ / | |__| |____) | |__| |
\____/ \/ \____/ \____/|_____/
http://www.silvervalley.k12.ca.us
chobbs
silvervalley.k12.ca.us
attached mail follows:
And, of course, the JSP was running 20000 x 20000 iterations, or 400,000,000 iterations, in a few seconds.
Yeah, right.
> Intersting. I tried the following code (which gives much more detailed > time info, check it out - stolen from Andrey Hristov on php-db), and my > times, on our P2-266 webserver, are just above 9 seconds. That's at > 2000x2000 iterations, or 4M iterations. > > Of course, I'm trying to figure out when I would have a script that > really needed to go through 4M iterations, and thus (like most > benchmarks) this probably has no real bearing on the (or at least my) > real world.
attached mail follows:
Actually, an optimizing Java compiler would have detected it was a "dead loop" (i.e. didn't actually do anything) and just skipped it, meaning it took four seconds just to load the JSP page and invoke the bean. :) :)
The only benchmarks that mean anything are your actual web applications running on your actual servers...anything else is only speculation.
- Tim http://www.phptemplates.org
On Sun, 2001-09-02 at 15:08, Mark Charette wrote: > And, of course, the JSP was running 20000 x 20000 iterations, or 400,000,000 > iterations, in a few seconds. > > Yeah, right.
attached mail follows:
So, we can say that on scripts that accomplish absolutely nothing, jsp is faster than php - I can live with that :) Most of my scripts do accomplish something (intended or not!) ;)
Tim wrote:
> Actually, an optimizing Java compiler would have detected it was a "dead > loop" (i.e. didn't actually do anything) and just skipped it, meaning it > took four seconds just to load the JSP page and invoke the bean. :) :) > > The only benchmarks that mean anything are your actual web applications > running on your actual servers...anything else is only speculation. > > - Tim > http://www.phptemplates.org > > > On Sun, 2001-09-02 at 15:08, Mark Charette wrote: > >>And, of course, the JSP was running 20000 x 20000 iterations, or 400,000,000 >>iterations, in a few seconds. >> >>Yeah, right. >> > > >
--
_______ ___ _ ____ _____
Chris Hobbs / ____\ \ / / | | |/ ___\| __ \
Head Geek | (___ \ \ / /| | | | (___ | | | |
WebMaster \___ \ \ \/ / | | | |\___ \| | | |
PostMaster ____) | \ / | |__| |____) | |__| |
\____/ \/ \____/ \____/|_____/
http://www.silvervalley.k12.ca.us
chobbs
silvervalley.k12.ca.us
attached mail follows:
So sprach »Chris Hobbs« am 2001-09-02 um 12:00:26 -0700 : > Of course, I'm trying to figure out when I would have a script that > really needed to go through 4M iterations, and thus (like most
Well, this is of course true, but I can easily imagine a script which is run 200,000 times per second (well, not really...) and which loops thru 20 values.
Alexander Skwar
-- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 5 hours 29 minutes
attached mail follows:
me too and as the max execution time is 30 secs and there's no code to
override it.....
----- Original Message -----
From: "nick" <geteasy
seed.net.tw>
To: "'nick'" <geteasy
seed.net.tw>
Cc: <php-general
lists.php.net>
Sent: Sunday, September 02, 2001 1:56 PM
Subject: RE: [PHP] php's future
| Haha I tried its code and it only takes 1~2 secs to run it .
|
| Well....god damn lies....
|
| -----Original Message-----
| From: nick [mailto:geteasy
seed.net.tw]
| Sent: Sunday, September 02, 2001 8:38 PM
| To: 'Faisal Nasim'; php-general
lists.php.net
| Subject: RE: [PHP] php's future
|
| It's Chinese .....
|
| I translated it ....maybe u cannot understand bcoz my English is not
| good
|
| First: jsp test for loop ....see below
|
| <jsp:useBean id='clock' scope='page' class='dates.JspCalendar'
| type="dates.JspCalendar"/>
| <jsp:getProperty name="clock" property="time" />
| <%
| int i=0;
| int j=0;
| int k=0;
| for(i=0;i<20000;i++){
| for(j=0;j<20000;j++){
|
| }
| }
| %>
| <jsp:useBean id='clock1' scope='page' class='dates.JspCalendar'
| type="dates.JspCalendar"/>
| <jsp:getProperty name="clock1" property="time" />
|
| 4 secs taken
|
| Next : php test for loop ....see below (he didn't mention if it is php3
| or php4)
| <?
| $TTime=date("Y-n-d"). " " . date("H:i:s");
| echo $TTime;
| echo "
| ";
| for($i=0;$i<1000;$i++){
| for($j=0;$j<1000;$j++){
| }
| }
| $TTime=date("Y-n-d"). " " . date("H:i:s");
| echo $TTime;
| ?>
|
| 84 secs taken ++"
|
| Third : Asp for loop test
| <%
| response.write now
| response.write "
| "
| for i=0 to 2000
| for j=0 to 2000
| next
| next
| response.write now
| %>
|
| 64 secs taken
|
| Last one : Asp+ for loop test
|
| <%
| Dim intStart,intStop As DateTime
| Dim timeUse As TimeSpan
| dim Sum,i,j as int32
| intStart = DateTime.Now
| for i=1 to 20000
| for j=1 to 20000
| Sum=Sum + i
| next
| next
| intStop = DateTime.Now
| timeUse = intStop.Subtract(intStart)
| Response.Write (TimeSpan.ToString(timeUse))
| %>
|
| 3.6 secs taken
|
| if u can read Chinese u can go
| http://www.webappcabaret.com/jsptw/doc/test-report.htm for more
| infomation.
|
| It's a website which teach jsp at all
|
|
| -----Original Message-----
| From: Faisal Nasim [mailto:faisal
nasim.org]
| Sent: Sunday, September 02, 2001 7:54 PM
| To: nick
| Subject: Re: [PHP] php's future
|
| Where did you see that?
|
| Faisal
|
| At 04:28 PM 9/2/2001, you wrote:
| >Hi all in the list :
| >I read an news that said jsp/asp.net is better than php..
| >
| >They made a test that asp/php/jsp/asp.net using "for loops",
| >
| >Jsp from 1 to 20000 takes only 4 secs
| >Asp from 1 to 2000 (not 20000) takes 72 secs
| >Php from 1 to 2000 (not 20000) takes 68 secs
| >Asp.Net from 1 to 20000 takes only 3.5~3.8 secs...
| >
| >So is it time to learn jsp/asp+ instead of learning php ..???
| >I am so confused ~
| >I have been learning php for a while and now it said jsp/asp+ is better
| >than it.
|
|
|
|
| --
| PHP General Mailing List (http://www.php.net/)
| To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
| For additional commands, e-mail: php-general-help
lists.php.net
| To contact the list administrators, e-mail: php-list-admin
lists.php.net
|
|
|
|
| --
| PHP General Mailing List (http://www.php.net/)
| To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
| For additional commands, e-mail: php-general-help
lists.php.net
| To contact the list administrators, e-mail: php-list-admin
lists.php.net
|
|
attached mail follows:
So sprach »Paul Roberts« am 2001-09-02 um 17:06:08 +0100 : > me too and as the max execution time is 30 secs and there's no code to > override it.....
Not so.
http://www.php.net/manual/en/function.set-time-limit.php http://www.php.net/manual/en/configuration.php#ini.max-execution-time
PS: Quote only what's neccessary.
Alexander Skwar
-- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 5 hours 53 minutes
attached mail follows:
i think he meant in that specific code, they don't change the default time, therefore, it'd be impossible....
Alexander Skwar wrote:
> So sprach »Paul Roberts« am 2001-09-02 um 17:06:08 +0100 :
> > me too and as the max execution time is 30 secs and there's no code to
> > override it.....
>
> Not so.
>
> http://www.php.net/manual/en/function.set-time-limit.php
> http://www.php.net/manual/en/configuration.php#ini.max-execution-time
>
> PS: Quote only what's neccessary.
>
> Alexander Skwar
> --
> How to quote: http://learn.to/quote (german) http://quote.6x.to (english)
> Homepage: http://www.digitalprojects.com | http://www.iso-top.de
> iso-top.de - Die günstige Art an Linux Distributionen zu kommen
> Uptime: 5 hours 53 minutes
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
So sprach »Jack Dempsey« am 2001-09-02 um 16:29:52 -0400 : > i think he meant in that specific code, they don't change the default time, > therefore, it'd be impossible....
Ah, I see. Well, yes, that's right.
Uhm - "maybe" not. Although very unlikely, it's possible that they've changed it in the php.ini file.
Alexander Skwar
-- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 6 hours 8 minutes
attached mail follows:
Pardon my English - I don't know Chinese. :(
That's the worst comparison benchmarks I've ever seen.
http://www.zdnet.com/enterprise/stories/linux/0,12249,2646052,00.html
DAMN - they've moved it. Anyone got a better link? The only one I could find was
http://groups.yahoo.com/group/ASP-Developers/message/1816
Basically, JSP came in dead LAST in a benchmark. PHP was about 3 times faster doing the same stuff (running a simulated "real world" shopping system.).
If you want to run empty loops in 4 seconds, use JSP. To run real web apps, run PHP.
What hardware were they running? What version of PHP? What speed processors? Why loop 20,000 in one, but 1,000 in another? Why keep track of 2 counter variables in JSP and PHP, but 3 in ASP? There are WAY too many problems with this to be taken seriously at all. I wouldn't base a technical career decision on this info.
nick wrote:
>Hi all in the list :
>I read an news that said jsp/asp.net is better than php..
>
>They made a test that asp/php/jsp/asp.net using "for loops",
>
>Jsp from 1 to 20000 takes only 4 secs
>Asp from 1 to 2000 (not 20000) takes 72 secs
>Php from 1 to 2000 (not 20000) takes 68 secs
>Asp.Net from 1 to 20000 takes only 3.5~3.8 secs...
>
>So is it time to learn jsp/asp+ instead of learning php ..???
>I am so confused ~
>I have been learning php for a while and now it said jsp/asp+ is better
>than it.
>
attached mail follows:
How about you make a simple script on Server B that will handle Database stuff, and you get a Script on server A to fopen http://B/myscript.php and do calls like myscript.php?a=add&name=fred&address=uk etc
and you can do the same to retrieve data but just parse out the popup with the script on Server A
Does this wierd idea make sense?
Andrew
----- Original Message -----
From: "Markus Mayer" <webmaster
defx.de>
To: <php-db
lists.php.net>; <php-general
lists.php.net>
Sent: Sunday, September 02, 2001 3:42 AM
Subject: [PHP] Really weird problem: cross-server databasing *g*
> Hi folks!
>
> Let's say you have two servers, on the first one ("A") you have your
website
> containig all those nice php scripts and co but only a crazy small
database
> (2 megs), on the second one ("B") you have a really big database available
> but the problem, that the provider won't allow you to access the database
> from any other place than from your account on B. That wouldn't be the
> problem, but B opens pop ups each time, you open a website there - and
that
> couldn't be the solution.
>
> Has anyone an idea how to access the database on B without opening a
webpage
> there (and with this, without opening a popup) from server A?
>
> ANY help much appreciated!
>
> Markus Mayer
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
Hello,
Markus Mayer wrote: > Let's say you have two servers, on the first one ("A") you have your website > containig all those nice php scripts and co but only a crazy small database > (2 megs), on the second one ("B") you have a really big database available > but the problem, that the provider won't allow you to access the database > from any other place than from your account on B. That wouldn't be the > problem, but B opens pop ups each time, you open a website there - and that > couldn't be the solution. > > Has anyone an idea how to access the database on B without opening a webpage > there (and with this, without opening a popup) from server A?
If you can run your own scripts in the site you want to have access the database, maybe you want to try using SOAP to implement remote services that retrieve the data you need from the database or otherwise execute some other action, all over HTTP.
In that case, you may want to try this SOAP server PHP base class that you can use to develop new SOAP services without having to learn too much about the protocol.
http://phpclasses.UpperDesign.com/browse.html/package/251
Regards, Manuel Lemos
attached mail follows:
Hello,
check it in the manual: http://www.php.net/manual/en/function.ereg.php
If you don't pass the third -- optional -- argument, then it's true. Otherwise not.
I don't know this book, but you may keep in my mind that PHP is evolving, so the online manual can be its most up-to-date documentation.
----- Original Message -----
From: js <js
san.rr.com>
To: <php-general
lists.php.net>
Sent: Sunday, September 02, 2001 3:05 AM
Subject: [PHP] ereg question
> In the Leon Atkinson Core PHP book, in his ereg example he states that
ereg
> will only return the first match on a line. Can anyone confirm or deny
this?
>
> Thanks,
> Josh
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
I have a simple php script that searchs a MySQL database and returns results that I made myself and I'm trying to implement code that splits the results into x amount of pages, buts it really tricky.
Can anyone give me a link to some code or even better, a search database script that I could adapt for my own needs?
Thanks
attached mail follows:
"Georgie" <georgiecasey
e-merge.ie> wrote in message
news:20010902154429.59652.qmail
pb1.pair.com...
> I have a simple php script that searchs a MySQL database and returns
results
> that I made myself and I'm trying to implement code that splits the
results
> into x amount of pages, buts it really tricky.
... if you want X results per page, look at the LIMIT clause for your SQL statements.
If you actually meant X _pages_ (... I don't see where this would be useful, but hey...) I would check the number of returned results with mysql_num_rows(), calculate the start-row offset, and then mysql_data_seek() to the place you want.
Either way, it's actually pretty simple.
attached mail follows:
look here: http://www.bitmechanic.com/mail-archives/mysql/Jun1998/0387.html
An extract:
**************** Write this:
select * from table_name limit 100 select * from table_name limit 100, 100 select * from table_name limit 200, ( what number you want)..
On Mon, 15 Jun 1998, Joe Walnes wrote:
> Hi. I am fairly new to MySQL. Is there a way to return only certain pages > from a SELECT query. > > By this I mean, suppose a query returns 1000 results, can I refine this to > only results 1-100, or 101-200, and so forth? > > Thanks in advance. > > -Joe Walnes.
**************** Georgie wrote:
> I have a simple php script that searchs a MySQL database and returns results > that I made myself and I'm trying to implement code that splits the results > into x amount of pages, buts it really tricky. > > Can anyone give me a link to some code or even better, a search database > script that I could adapt for my own needs? > > Thanks > > >
attached mail follows:
YOUR FREE MEMBERSHIP!!
Plus get a Free Cell Phone and Free Computer Software To Help YOU Make MORE Money !!
CHECK IT OUT! http://www.freewebco.net/bizopp or http://www.freewebhostingcentral.cc/bizopp
The Fastest Way To Earn $2000+ EVERY Month Online !!!
Looking for a secure and legitimate online home business? One that WILL bring steady, dependable monthly checks EVERY month and in the shortest amount of time ??
We can share with you a way to earn $1000's per month on the Internet and receive GUARANTEED monthly checks that will continue to grow.
No Hype Here ! - We Can PROVE It !!
Free To Join - Means Instant Growth ! Can YOU give away FREE memberships? Most Certainly !! All day long in fact, AND earn an explosive income in doing so !
No pre-launch here! Four year old company with proven system - that works !! Making money on the Internet has never been EASIER ! Join Free and get your own free web site where you can watch your downline grow before your eyes !! Check it daily then you decide !! See why thousands of people from all over the world are joining - FREE ! Lock in Your Position Today and we'll also give you promotional software that will increase traffic to ANY web site !! See for Yourself !
Grab your ID Here ! DON"T MISS OUT !!
http://www.freewebco.net/bizopp or http://www.freewebhostingcentral.cc/bizopp ---------------------------------------------------------
This is a one time mailing and you will not be contacted
again and though it is not necessary to request removal,
you may do so by sending an email to:
mailto:mail0719
btamail.net.cn?subject=Please_Remove_Bizopp
attached mail follows:
You need to load the dbase.so support module in your php. Like a dll in windows. Php has a lot of libraries, the idea is t load only those you need. I don't remember the syntax and the files to modify, check configuration manual or ask your system administrator. I had a similar problem, solved it translating the dbase to a text file with sql inserts.
Yang wrote:
> i want try to open the test.dbf files .. > but have the problem > Call to undefined function: dbase_open() in > > >
attached mail follows:
PHP was not compiled/configured to have dbase support.
In Linux, you can recompile --with-dbase (see configure --help). In Windows, you can alter you php.ini to have something not unlike: basephp.dll in your Extensions
-- WARNING richardzend.com address is an endangered species -- Use ceo
l-i-e.com Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm ----- Original Message ----- From: Yang <jakry
bbcode.com.tw> Newsgroups: php.general To: <php-general
lists.php.net> Sent: Sunday, September 02, 2001 1:34 AM Subject: Call to undefined function: dbase_open() in
> i want try to open the test.dbf files .. > but have the problem > Call to undefined function: dbase_open() in > >
attached mail follows:
Hi
I wish to learn php, but I was wondering if there is a better resource( something like a guide) besides the php manual on php.net ?
Thanx Nikola
attached mail follows:
> I wish to learn php, but I was wondering if there is a better resource( something > like a guide) besides the php manual on php.net ?
Buy the the book from Sterling Hughes with contributions by Andrei Zmievski "PHP Developer´s Cookbook" from Sams. I have been reading every page the last two weeks and it will published by the German publisher Markt+Technik in about 4 weeks.
Together with Sterling´s book, the PHP manual, and the excelent function tables from Hartmut Holzgraefe (http://www.zugeschaut-und-mitgebaut.de/php/ or http://zend.com/phpfunc) you have the tools to learn PHP. If this is hard to understand, you can try reading Julie Meloni´s book "PHP Essentials" which is written for beginners.
-Egon
attached mail follows:
Hi... I have a php url on wich in some steps through several forms (on the same url) I do some interaction with DB. I have a session variable with the step I am currently doing.
For example
session_start(); if (!session_is_registered("MyVar")) { session_register("MyVar"); $MyVar="Second Time"; //Do some stuff //Show a form with the same url in action } elseif ($MyVar="Second Time) { //Do some stuff with the previous form data //Show a form with the same url in action $MyVar="Third Time"; } elseif ($MyVar="Third Time") { //Do some stuff with previous form data session_unregister("MyVar"); //link to the main page }
The problem appears when the client-user use reload on the browser. The aplication goes on to the next step without the form data. My question are:
Is there any way to go back to the fisrt step when a user makes a reload? Does anybody know another idea to manage this kind of work?
Thank in advance
pekesan
jazzfree.com
attached mail follows:
Hi peke: May be you can try with a hidden "state" field in the form. I think it can be faster and more compatible because you don't need to load the session support.
<input type = "hidden" name="state" value="<?=$MyVar?>">
Pekesan wrote:
> Hi...
> I have a php url on wich in some steps through several forms (on the same
> url) I do some interaction with DB. I have a session variable with the step I
> am currently doing.
>
> For example
>
> session_start();
> if (!session_is_registered("MyVar"))
> {
> session_register("MyVar");
> $MyVar="Second Time";
> //Do some stuff
> //Show a form with the same url in action
> }
> elseif ($MyVar="Second Time)
> {
> //Do some stuff with the previous form data
> //Show a form with the same url in action
> $MyVar="Third Time";
> }
> elseif ($MyVar="Third Time")
> {
> //Do some stuff with previous form data
> session_unregister("MyVar");
> //link to the main page
> }
>
> The problem appears when the client-user use reload on the browser. The
> aplication goes on to the next step without the form data.
> My question are:
>
> Is there any way to go back to the fisrt step when a user makes a reload?
> Does anybody know another idea to manage this kind of work?
>
> Thank in advance
>
> pekesan
jazzfree.com
>
attached mail follows:
I'm using imap_header to get all the headers in a newsgroup on a NNTP-server like this
if($nntp=imap_open("{sunsite.auc.dk/nntp:119}dk.admin","","")) { for($i=1;$i<5;$i++) { $header = imap_header($nntp, $i); echo "MESSAGE ID: " . HTMLSpecialChars($header->message_id) . "<BR>\n"; echo "SUBJECT:<a href='visInd.php'>" . $header->Subject . "<br>\n</a>";
echo "SENDER ADDRESS: " . HTMLSpecialChars($header->senderaddress) . "<BR>\n"; echo "REPLY-TO: " . HTMLSpecialChars($header->reply_toaddress) . "<BR>\n"; print("DATE: $header->date<br>\n"); echo "REFERENCES: " . HTMLSpecialChars($header->references) . "<BR>\n"; print("XREF: " . $header->xref) . "<BR>"; } }
But I can't get it to write the XREF on the screen. Every thing else works.
I hope that you can help me Thanks
Shimon
attached mail follows:
You're missing a closing ) on the final print() statement...
-- WARNING richardzend.com address is an endangered species -- Use ceo
l-i-e.com Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm ----- Original Message ----- From: Shi <shimon
oek.dk> Newsgroups: php.general To: <php-general
lists.php.net> Sent: Sunday, September 02, 2001 11:01 AM Subject: imap?
> I'm using imap_header to get all the headers in a newsgroup on a NNTP-server > like this > > if($nntp=imap_open("{sunsite.auc.dk/nntp:119}dk.admin","","")) > { > for($i=1;$i<5;$i++) > { > $header = imap_header($nntp, $i); > echo "MESSAGE ID: " . > HTMLSpecialChars($header->message_id) . "<BR>\n"; > echo "SUBJECT:<a href='visInd.php'>" . > $header->Subject . "<br>\n</a>"; > > echo "SENDER ADDRESS: " . > HTMLSpecialChars($header->senderaddress) . "<BR>\n"; > echo "REPLY-TO: " . > HTMLSpecialChars($header->reply_toaddress) . "<BR>\n"; > print("DATE: $header->date<br>\n"); > echo "REFERENCES: " . HTMLSpecialChars($header->references) . > "<BR>\n"; > print("XREF: " . $header->xref) . "<BR>"; > } > } > > But I can't get it to write the XREF on the screen. Every thing else works. > > I hope that you can help me > Thanks > > Shimon > >
attached mail follows:
I'm running RedHat Linux 7.0+ and trying to get PHP 4.0.6 working with Apache 1.3.20 as a DSO. These are the most recent stable versions. I'm compiling the sources, the compiles finish with no errors and I get a libphp4.so file. Has anyone been able to compile these versions of Apache and PHP4 and be able to run PHP4 as a DSO? I don't see how it can be done. Has anyone been able to do this successfully?
Apache won't load the PHP module, it complains that its "garbled" and maybe isn't really a DSO module. When I look at the Apache source it appears to be expecting a MODULE_MAGIC_COOKIE field in the "module" structure of a DSO, if it doesn't see this then the load will fail. Searching around through the PHP4 code I don't see anyplace where it is referencing MODULE_MAGIC_COOKIE. Did the Apache module structure change at some point and the PHP code not retain compatibility? Maybe I should try backing up to an earlier revision. Can someone suggest versions of Apache/PHP that do definitely work together?
attached mail follows:
If Apache wasn't detecting the PHP script files your testing with (and 'loading' PHP to parse and execute it), you'd at least just have the 'text' of the script displayed in the browser.
You haven't provide much detail on 'how' you installed the products or the 'config' statements you used...
----- Original Message -----
From: "Bill Carter" <nospam
austin.rr.com>
To: <php-install
lists.php.net>; <php-general
lists.php.net>
Sent: Sunday, September 02, 2001 9:52 AM
Subject: [PHP-INST] PHP4 and Apache 1.3.20 DSO mode not working?
> I'm running RedHat Linux 7.0+ and trying to get PHP 4.0.6 working
> with Apache 1.3.20 as a DSO. These are the most recent stable versions.
> I'm compiling the sources, the compiles finish with no errors and I get
> a libphp4.so file.
>
> Has anyone been able to compile these versions of Apache and PHP4 and
> be able to run PHP4 as a DSO? I don't see how it can be done. Has
> anyone been able to do this successfully?
>
> Apache won't load the PHP module, it complains that its "garbled" and
> maybe isn't really a DSO module. When I look at the Apache source it
> appears to be expecting a MODULE_MAGIC_COOKIE field in the "module"
> structure of a DSO, if it doesn't see this then the load will fail.
> Searching around through the PHP4 code I don't see anyplace where it
> is referencing MODULE_MAGIC_COOKIE. Did the Apache module structure
> change at some point and the PHP code not retain compatibility? Maybe
> I should try backing up to an earlier revision. Can someone suggest
> versions of Apache/PHP that do definitely work together?
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-install-unsubscribe
lists.php.net
> For additional commands, e-mail: php-install-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
Hi Bill,
please tell us how you configured php and apache (e.g. PHP with --with-apxs=/usr/local/apache/bin/apxs) also be sure to have apache enabled for DSO ( --enable-module=so or --enable-modul=most)
Greetings,
Stefan Siefert
----- Original Message -----
From: Bill Carter <nospam
austin.rr.com>
To: <php-install
lists.php.net>; <php-general
lists.php.net>
Sent: Sunday, September 02, 2001 6:52 PM
Subject: [PHP-INST] PHP4 and Apache 1.3.20 DSO mode not working?
> I'm running RedHat Linux 7.0+ and trying to get PHP 4.0.6 working
> with Apache 1.3.20 as a DSO. These are the most recent stable versions.
> I'm compiling the sources, the compiles finish with no errors and I get
> a libphp4.so file.
>
> Has anyone been able to compile these versions of Apache and PHP4 and
> be able to run PHP4 as a DSO? I don't see how it can be done. Has
> anyone been able to do this successfully?
>
> Apache won't load the PHP module, it complains that its "garbled" and
> maybe isn't really a DSO module. When I look at the Apache source it
> appears to be expecting a MODULE_MAGIC_COOKIE field in the "module"
> structure of a DSO, if it doesn't see this then the load will fail.
> Searching around through the PHP4 code I don't see anyplace where it
> is referencing MODULE_MAGIC_COOKIE. Did the Apache module structure
> change at some point and the PHP code not retain compatibility? Maybe
> I should try backing up to an earlier revision. Can someone suggest
> versions of Apache/PHP that do definitely work together?
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-install-unsubscribe
lists.php.net
> For additional commands, e-mail: php-install-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
...at 018D2466
what have I done wrong!
Michael Cronström
mc
zoon.se
attached mail follows:
You are probably using the Windows version, based on the error message.
Only time i've seen this is when trying to use the ISAPI Windows version - it just doesn't work very well, period. Don't use it. use the CGI on Windows, or move to another platform and have it compiled in to the webserver (Apache is the prime example).
Good luck.
Michael Cronström wrote:
> ...at 018D2466
>
> what have I done wrong!
>
> Michael Cronström
> mc
zoon.se
>
>
http://www.tapinternet.com/php/
PHP Training Courses
734-480-9961
attached mail follows:
> > >what have I done wrong!
Answering myself:
Oops! Looping the Loop with no skills always ends with a crash!
...one day there will be an Apache standing in the shadow, I hope!
Thanx
Michael Cronström
mc
zoon.se
attached mail follows:
Hi! I have this file and it doesen´t write my tablerows: $message .= "<table>" $message .= "<tr><td><b>Varunamn</b></td></tr>"; $i = 0; $ii = count($vn); for ($i=0;$i<$ii;$i++) { $message .= "<tr><td>".$vn[i]."</td></tr>"; } $message .= "<tr><td><b>Sum</b></td></tr>"; $message .= "</table>"; I am trying to build a htmlmail but how do I write the for script for all tablerows?
Thanks in advance for any help. Regards Jan
attached mail follows:
So sprach »Jan Grafström« am 2001-09-02 um 22:17:34 +0200 : > $i = 0; > $ii = count($vn);
Sure that $vn contains anything? Add this line after the count() line to see what $vn contains:
var_dump($vn);
Alexander Skwar
-- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 6 hours 16 minutes
attached mail follows:
You need to: echo $message; at the end.
Or, just echo each line as you go.
-- WARNING richardzend.com address is an endangered species -- Use ceo
l-i-e.com Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm ----- Original Message ----- From: Jan GrafströM <jan
grafstrom.net> Newsgroups: php.general To: <php-general
lists.php.net> Sent: Sunday, September 02, 2001 3:17 PM Subject: for and emailmessage
> Hi! > I have this file and it doesen´t write my tablerows: > $message .= "<table>" > $message .= "<tr><td><b>Varunamn</b></td></tr>"; > $i = 0; > $ii = count($vn); > for ($i=0;$i<$ii;$i++) { > $message .= "<tr><td>".$vn[i]."</td></tr>"; > } > $message .= "<tr><td><b>Sum</b></td></tr>"; > $message .= "</table>"; > I am trying to build a htmlmail but how do I write the for script for all > tablerows? > > Thanks in advance for any help. > Regards > Jan > >
attached mail follows:
include your source.
Michael Cronström wrote:
> ...at 018D2466
>
> what have I done wrong!
>
> Michael Cronström
> mc
zoon.se
>
attached mail follows:
Should this work, if not, why not
<?php exec("mysqlimport -u root -ppasword test one.txt") ?>
the import works fine from the command line
TIA Terry
attached mail follows:
> <% virtual ("../../../../headlvl4.shtml"); %> > > This works fine for the header, but makes an error when the include > built in function calls the php script that shows the main panel of the > page:
I don't see how the virtual() is involved here at all:
> Warning: Failed opening './barra.php' for inclusion > (include_path='.:/usr/local/lib/php') in > /www/public/blabla/bla/re-blah/another_blah/blahh/blahblahblah/main.php > on line 44 > > I've tried to put the dot ahead the name but it is no working either.
Either barra.php lives next to (in the same directory as) main.php, or it lives in /usr/local/lib/php, or you're not going to get it to work.
You'll have to change your include_path to have the path of barra.php, or you'll have to change your include './barra.php' to be relative to one of the two paths in include_path.
PS I always used include_path "./:..." rather than just ".:...", but I'm not sure it matters.
-- WARNING richardzend.com address is an endangered species -- Use ceo
l-i-e.com Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm
attached mail follows:
('binary' encoding is not supported, stored as-is) Nick,
3 Things: 1) For a simple for loop, PHP, ASP, JSP, etc will all be able to execute 20000 (2000 x 10) iterations of a loop in less then 1 on decent hardware (my home PC does locally)... <?php for ($i=0; $i < 20000; $i++) { echo "$i <br>\n"; } ?> The numbers you quote are absurd, it entirely depends on WHAT IS INSIDE YOUR LOOP however.
2) I read a report to the effect that: PHP > ASP > Cold Fusion > JSP-tomcat (w/ no mention of .NET) number pages able to be rendered a second on the same Hardware it was some think like 70 to 60 to 30 to 20. Your results will depends who feeds you your propaganda, unless you test it yourself.
3) What does this have to do with the future of anything? Cold Fusion and Perl are not even mentioned here, but do you think they are going away anytime soon?
Cheers,
-Ironstorm
Northern.CA ===-- http://www.northern.ca Canada's Search Engine
On 2 Sep 2001 14:00:00 -0000 php-general-digest-help
lists.php.net wrote:
#################### (Attached Message) ####################----- "nick"
----- php's future
----- Sun, 2 Sep 2001 19:28:27 +0800
Hi all in the list :
I read an news that said jsp/asp.net is better than php..
They made a test that asp/php/jsp/asp.net using "for loops",
Jsp from 1 to 20000 takes only 4 secs
Asp from 1 to 2000 (not 20000) takes 72 secs
Php from 1 to 2000 (not 20000) takes 68 secs
Asp.Net from 1 to 20000 takes only 3.5~3.8 secs...
So is it time to learn jsp/asp+ instead of learning php ..???
I am so confused ~
I have been learning php for a while and now it said jsp/asp+ is better
than it.
attached mail follows:
Works fine, thank you
Youri
> On Sat, 1 Sep 2001 14:01:57 +0200, BRACK (brak
nettaxi.com) wrote: >I
> have query - > >$res = mysql_query("SELECT
> >skits.*,category.cat_id,category.cat_name FROM skits,category WHERE
> >MATCH (title,descr,skits) AGAINST ('%$search_idea%') and skits.lang
> >like 'English' and skits.category like category.cat_id limit
> >$limit,10 "); > >I expect to get results sorted by relevance and it
> actually does BUT >(!) >inside of categories =( I mean it sorts result
> first by category and >second by relevance. How do I make it to be
> sorted by only relevance?
>
> try it like this:
> $res = mysql_query("SELECT
> skits.*,category.cat_id,category.cat_name,MATCH (title,descr,skits)
> AGAINST ('%$search_idea%') as relevance FROM skits,category WHERE
> skits.lang like 'English' and skits.category like category.cat_id
> having relevance>0 order by relevance desc limit $limit,10 ");
>
<>< <>< <>< <>< God is our provider ><> ><> ><> ><> http://www.body-builders.org
attached mail follows:
Richard Lynch wrote (Many thanks Rick for this):
>> <% virtual ("../../../../headlvl4.shtml"); %> >> >>This works fine for the header, but makes an error when the include >>built in function calls the php script that shows the main panel of the >>page: >> > > I don't see how the virtual() is involved here at all:
I don't see it also, but it really happens: when using the virtual(), the include() can't find its way. I've just checked it again: I comment out the virtual() and the include() works.
barra.php DOES lives next to (in the same directory as) main.php
>
>
>>Warning: Failed opening './barra.php' for inclusion
>>(include_path='.:/usr/local/lib/php') in
>>/www/public/blabla/bla/re-blah/another_blah/blahh/blahblahblah/main.php
>>on line 44
>>
>>I've tried to put the dot ahead the name but it is no working either.
>>
>
> Either barra.php lives next to (in the same directory as) main.php, or it
> lives in /usr/local/lib/php, or you're not going to get it to work.
>
> You'll have to change your include_path to have the path of barra.php, or
> you'll have to change your include './barra.php' to be relative to one of
> the two paths in include_path.
>
> PS I always used include_path "./:..." rather than just ".:...", but I'm
> not sure it matters.
>
> --
> WARNING richard
zend.com address is an endangered species -- Use
> ceo
l-i-e.com
> Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
> Volunteer a little time: http://chatmusic.com/volunteer.htm
>
>
>
attached mail follows:
Hallo !
i have some problems when trying to use senfax from halyfax within php. i am using php4 on a redhat 6.2 box with the recent version of hylafax and apache.
well, i am using the following code:
$fd = fopen($tmpPath . $delivery_number, "w"); set_file_buffer($fd, 0); $size = fwrite($fd, $sFax); $result = fclose($fd); $sFax = "/usr/bin/sendfax -n -d 10050732314517 " . $tmpPath . $delivery_number . ""; exec($sFax, $result, $errno);
this returns the $errno 255. I also found the following entry in the http-error-log: /tmp/99472343: Can not determine file type
when i call the sendfax command from the shell (even as user nobody) it works fine....
does anyone know something about this ?
thank you !
otto brandstaetter
ps: please also let me know your answers under otto
liwest.at, as i am
not subscribed to the mailing list and i do not check the newsgroup
regullary..... thank you !
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]