[PHP] php's future

2001-09-02 Thread nick

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 2 takes only 4 secs
Asp from 1 to 2000 (not 2) takes 72 secs
Php from 1 to 2000 (not 2) takes 68 secs
Asp.Net from 1 to 2 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 Digest 2 Sep 2001 14:00:00 -0000 Issue 852

2001-09-02 Thread php-general-digest-help


php-general Digest 2 Sep 2001 14:00:00 - Issue 852

Topics (messages 65620 through 65632):

FREE Internet Business --- Start Immediately...
65620 by: cici429.prontomail.com

ereg question
65621 by: js

Re: chmod and ps ef |grep httpd
65622 by: Richard Lynch

Re: loop?  or conditional problem
65623 by: Richard Lynch

problem with ereg() and ereg_replace()
65624 by: Stonix
65628 by: CC Zona

Really weird problem: cross-server databasing *g*
65625 by: Markus Mayer
65627 by: Markus Mayer

Make Money For Sending E-mail
65626 by: fred.bill.usa.com

virtual nulls include problem
65629 by: Alfredo Yong

Call to undefined function: dbase_open() in
65630 by: yang

Function call introspection: possible or not?
65631 by: Geoff Caplan

php's future
65632 by: nick

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--



--->How To Make It *BIG* on the Net...QUICKLY...with NO Money! 
   
This is NEW and INCREDIBLY EXCITING!! Join Free, WORLD-WIDE!

(Zero investment!) No hassles, no selling, no pressure.
 
Like NOTHING you have ever seen on the net today! No limits...
 
You can join for FREE and MAKE MONEY!!  We will Help YOU!
 
Once your earnings START, they NEVER STOP! 
 
Check out this EXCITING OPPORTUNITY.  Start immediately.

===> I'll email you free details. <=== 

Just send a blank e-mail to:
 
[EMAIL PROTECTED]-->and type "JoinFree" in subject line.
  
(DO NOT HIT REPLY or It will be automatically purged or bounced.)

Hope you don't miss this one.

=

(DO NOT HIT REPLY or It will be automatically purged or bounced.)


--



--
*(REMOVAL INSTRUCTIONS BELOW)**
--
-
If you wish to be removed from future mailings, please send
an email to:  [EMAIL PROTECTED] 
with the subject "Remove" and you will automatically be blocked 
from any future mailings.
 
























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





> i've been told that the files must be owned by the

Which files?  For what?...

> same person that owns the httpd. using ps ef |grep
> httpd, it says "grep httpd USERNAME=
> ENV=/home/police/.bashrc HISTSIZE="
> my unix login is police. so, what does this mean as
> far as trying to get my chmod command to work?

Probably nothing at all.  You need to look in httpd.conf to see what User is
set to.  If you can't look in httpd.conf (at an ISP)  may
tell you.

If all else fails, you can *probably* do:

echo implode("\n", $results);
if ($errorcode){
echo "OSError $errorcode.  Usually path/permissions.  man
errno.\nMaybe don't even have permission to exec whoami... :-(\n";
}

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
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






Your SELECT statement is returning way more rows than you expect, I think,
since it will return the number of users times the number of members minus
however many there are that have the same id...

I don't think you wanted that...

I suspect you want a sub-select where you don't get any users who are
members, or maybe no members who are users...

MySQL *might* let you do:

select ... from members where not id in (select id from users)

OTOH, I don't really understand what you are trying to do in the first
place, but I suspect there's a much easier way to do it...

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
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: Syaggie <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Saturday, September 01, 2001 8:26 AM
Subject: loop? or conditional problem


> Okay the the script is attached below.  i am baffled at the problem.  as
you
> can see the script does a rather simplistic generation of passwords.  it
> then writes them into two files.
>
> the problem is the first time i run (i am running it stand alone)  it
works
> fine and the result is two files with 32 entries (and the mysql entries
are
> also correct).  the second time i run it.  i (there should be 44 new
entries
> make one file with 76 entries and anothe

[PHP] Php4 + Imap with Debian potato 2.2r3

2001-09-02 Thread Fabio Vendramin


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.




-- 
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] php's future

2001-09-02 Thread nick

It's Chinese .

I translated it maybe u cannot understand bcoz my English is not
good 

First: jsp test for loop see below

 
 
<% 
int i=0; 
int j=0; 
int k=0; 
for(i=0;i<2;i++){ 
for(j=0;j<2;j++){ 

} 
} 
%> 
 
 

4 secs taken

Next : php test for loop see below (he didn't mention if it is php3
or php4)
 

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 2 
for j=1 to 2 
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:[EMAIL PROTECTED]] 
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 2 takes only 4 secs
>Asp from 1 to 2000 (not 2) takes 72 secs
>Php from 1 to 2000 (not 2) takes 68 secs
>Asp.Net from 1 to 2 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] php's future

2001-09-02 Thread nick

Haha I tried its code and it only takes 1~2 secs to run it .

Wellgod damn lies

-Original Message-
From: nick [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, September 02, 2001 8:38 PM
To: 'Faisal Nasim'; [EMAIL PROTECTED]
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

 
 
<% 
int i=0; 
int j=0; 
int k=0; 
for(i=0;i<2;i++){ 
for(j=0;j<2;j++){ 

} 
} 
%> 
 
 

4 secs taken

Next : php test for loop see below (he didn't mention if it is php3
or php4)
 

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 2 
for j=1 to 2 
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:[EMAIL PROTECTED]] 
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 2 takes only 4 secs
>Asp from 1 to 2000 (not 2) takes 72 secs
>Php from 1 to 2000 (not 2) takes 68 secs
>Asp.Net from 1 to 2 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
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] Really weird problem: cross-server databasing *g*

2001-09-02 Thread Andrew Brampton

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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
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] php's future

2001-09-02 Thread Jack Dempsey

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 .
>
> Wellgod damn lies
>
> -Original Message-
> From: nick [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, September 02, 2001 8:38 PM
> To: 'Faisal Nasim'; [EMAIL PROTECTED]
> 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
>
>  type="dates.JspCalendar"/>
> 
> <%
> int i=0;
> int j=0;
> int k=0;
> for(i=0;i<2;i++){
> for(j=0;j<2;j++){
>
> }
> }
> %>
>  type="dates.JspCalendar"/>
> 
>
> 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 2
> for j=1 to 2
> 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:[EMAIL PROTECTED]]
> 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 2 takes only 4 secs
> >Asp from 1 to 2000 (not 2) takes 72 secs
> >Php from 1 to 2000 (not 2) takes 68 secs
> >Asp.Net from 1 to 2 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
> --
> 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 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] FREE CELL PHONE, FREE MEMBERSHIP, FREE SOFTWARE

2001-09-02 Thread Alice

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:[EMAIL PROTECTED]?subject=Please_Remove_Bizopp
 

-- 
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: Call to undefined function: dbase_open() in

2001-09-02 Thread Alfredo Yong

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


-- 
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] literature help

2001-09-02 Thread Nikola Veber

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



-- 
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] Problems with RELOAD on browsers

2001-09-02 Thread pekesan

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

[EMAIL PROTECTED]

-- 
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] imap?

2001-09-02 Thread shi

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) . "\n";
echo "SUBJECT:" .
$header->Subject . "\n";

   echo "SENDER ADDRESS: " .
HTMLSpecialChars($header->senderaddress) . "\n";
   echo "REPLY-TO: " .
HTMLSpecialChars($header->reply_toaddress) . "\n";
print("DATE: $header->date\n");
echo "REFERENCES: " . HTMLSpecialChars($header->references) .
"\n";
print("XREF: " . $header->xref) . "";
}
}

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



-- 
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] php's future

2001-09-02 Thread Jack Sasportas

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 2 takes only 4 secs
> Asp from 1 to 2000 (not 2) takes 72 secs
> Php from 1 to 2000 (not 2) takes 68 secs
> Asp.Net from 1 to 2 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



-- 
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] literature help

2001-09-02 Thread Egon Schmid

> 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


-- 
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: Problems with RELOAD on browsers

2001-09-02 Thread Alfredo Yong

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.




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
> 
> [EMAIL PROTECTED]
> 


-- 
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] php's future

2001-09-02 Thread Coconut Ming

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 2 takes only 4 secs
> > Asp from 1 to 2000 (not 2) takes 72 secs
> > Php from 1 to 2000 (not 2) takes 68 secs
> > Asp.Net from 1 to 2 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


-- 
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] Newbie: PHP has encountered an Access Violation..

2001-09-02 Thread Michael Cronström

  ...at 018D2466

what have I done wrong!

Michael Cronström
[EMAIL PROTECTED]


--
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] php's future

2001-09-02 Thread Chris Hobbs

nick wrote:

> Haha I tried its code and it only takes 1~2 secs to run it .
> 
> Wellgod 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.


-- 
___  ____    _
Chris Hobbs   / \ \/ / |  | |/ ___\|  __ \
Head Geek| (___  \ \  / /| |  | | (___ | |  | |
WebMaster \___ \  \ \/ / | |  | |\___ \| |  | |
PostMaster) |  \  /  | |__| |) | |__| |
   \/\/\/ \/|_/
   http://www.silvervalley.k12.ca.us
   [EMAIL PROTECTED]


-- 
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] php's future

2001-09-02 Thread Mark Charette

And, of course, the JSP was running 2 x 2 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.



-- 
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] php's future

2001-09-02 Thread Tim

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 2 x 2 iterations, or 400,000,000
> iterations, in a few seconds.
> 
> Yeah, right.



-- 
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] php's future

2001-09-02 Thread Chris Hobbs

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 2 x 2 iterations, or 400,000,000
>>iterations, in a few seconds.
>>
>>Yeah, right.
>>
> 
> 
> 


-- 
___  ____    _
Chris Hobbs   / \ \/ / |  | |/ ___\|  __ \
Head Geek| (___  \ \  / /| |  | | (___ | |  | |
WebMaster \___ \  \ \/ / | |  | |\___ \| |  | |
PostMaster) |  \  /  | |__| |) | |__| |
   \/\/\/ \/|_/
   http://www.silvervalley.k12.ca.us
   [EMAIL PROTECTED]


-- 
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] php's future

2001-09-02 Thread Alexander Skwar

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

--
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] php's future

2001-09-02 Thread Paul Roberts

me too and as the max execution time is 30 secs and there's no code to
override it.
- Original Message -
From: "nick" <[EMAIL PROTECTED]>
To: "'nick'" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
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 .
|
| Wellgod damn lies
|
| -Original Message-
| From: nick [mailto:[EMAIL PROTECTED]]
| Sent: Sunday, September 02, 2001 8:38 PM
| To: 'Faisal Nasim'; [EMAIL PROTECTED]
| 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
|
| 
| 
| <%
| int i=0;
| int j=0;
| int k=0;
| for(i=0;i<2;i++){
| for(j=0;j<2;j++){
|
| }
| }
| %>
| 
| 
|
| 4 secs taken
|
| Next : php test for loop see below (he didn't mention if it is php3
| or php4)
| 
|
| 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 2
| for j=1 to 2
| 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:[EMAIL PROTECTED]]
| 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 2 takes only 4 secs
| >Asp from 1 to 2000 (not 2) takes 72 secs
| >Php from 1 to 2000 (not 2) takes 68 secs
| >Asp.Net from 1 to 2 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: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
| To contact the list administrators, e-mail: [EMAIL PROTECTED]
|
|
|
|
| --
| 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 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] php's future

2001-09-02 Thread Alexander Skwar

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] for and emailmessage

2001-09-02 Thread Jan Grafström

Hi!
I have this file and it doesen´t write my tablerows:
$message .= ""
$message .= "Varunamn";
$i = 0;
$ii = count($vn);
for ($i=0;$i<$ii;$i++) {
$message .= "".$vn[i]."";
}
$message .= "Sum";
$message .= "";
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



-- 
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] php's future

2001-09-02 Thread Jack Dempsey

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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
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: Newbie: PHP has encountered an Access Violation..More details!

2001-09-02 Thread Alfredo Yong

include your source.

Michael Cronström wrote:

>  ...at 018D2466
> 
> what have I done wrong!
> 
> Michael Cronström
> [EMAIL PROTECTED]
> 


-- 
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] php's future

2001-09-02 Thread Alexander Skwar

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

--
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] for and emailmessage

2001-09-02 Thread Alexander Skwar

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

--
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] probs with exec, pls help

2001-09-02 Thread taz

Should this work, if not, why not



the import works fine from the command line

TIA
Terry



[PHP] Re: Call to undefined function: dbase_open() in

2001-09-02 Thread Richard Lynch

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 [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
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 <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
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
>
>


-- 
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: virtual nulls include problem

2001-09-02 Thread Richard Lynch

>  <% 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 [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
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



-- 
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: for and emailmessage

2001-09-02 Thread Richard Lynch

You need to:
echo $message;
at the end.

Or, just echo each line as you go.

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
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 <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
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 .= ""
> $message .= "Varunamn";
> $i = 0;
> $ii = count($vn);
> for ($i=0;$i<$ii;$i++) {
> $message .= "".$vn[i]."";
> }
> $message .= "Sum";
> $message .= "";
> 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
>
>


-- 
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: imap?

2001-09-02 Thread Richard Lynch

You're missing a closing ) on the final print() statement...

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
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 <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
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) . "\n";
> echo "SUBJECT:" .
> $header->Subject . "\n";
>
>echo "SENDER ADDRESS: " .
> HTMLSpecialChars($header->senderaddress) . "\n";
>echo "REPLY-TO: " .
> HTMLSpecialChars($header->reply_toaddress) . "\n";
> print("DATE: $header->date\n");
> echo "REFERENCES: " . HTMLSpecialChars($header->references) .
> "\n";
> print("XREF: " . $header->xref) . "";
> }
> }
>
> 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
>
>


-- 
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] Newbie: PHP has encountered an Access Violation..

2001-09-02 Thread Michael Kimsal

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
> [EMAIL PROTECTED]
>
>
http://www.tapinternet.com/php/
PHP Training Courses
734-480-9961



-- 
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: php-general Digest 2 Sep 2001 14:00:00 -0000 Issue 852

2001-09-02 Thread Garth Dahlstrom

Nick,

3 Things:
1) For a simple for loop, PHP, ASP, JSP, etc will all be 
able to execute 2 (2000 x 10) iterations of a loop in less 
then 1 on decent hardware (my home PC does locally)...  
\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 - [EMAIL PROTECTED] 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 2 takes only 4 secs
Asp from 1 to 2000 (not 2) takes 72 secs
Php from 1 to 2000 (not 2) takes 68 secs
Asp.Net from 1 to 2 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] php's future

2001-09-02 Thread Michael Kimsal

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 2 takes only 4 secs
>Asp from 1 to 2000 (not 2) takes 72 secs
>Php from 1 to 2000 (not 2) takes 68 secs
>Asp.Net from 1 to 2 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] FULLTEXT search sorting results

2001-09-02 Thread BRACK

Works fine, thank you

Youri
> On Sat, 1 Sep 2001 14:01:57 +0200, BRACK ([EMAIL PROTECTED]) 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

-- 
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: virtual nulls include problem: It really happen

2001-09-02 Thread Alfredo Yong


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 [EMAIL PROTECTED] address is an endangered species -- Use
> [EMAIL PROTECTED]
> 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
> 
> 
> 


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




Fwd: [PHP] Newbie: PHP has encountered an Access Violation..

2001-09-02 Thread Michael Cronström


>
>
>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
[EMAIL PROTECTED]


--
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] Problems with exec and sendfax

2001-09-02 Thread Otto Brandstätter

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 [EMAIL PROTECTED], as i am
not subscribed to the mailing list and i do not check the newsgroup
regullary. thank you !



-- 
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] Is modem compression consistent?

2001-09-02 Thread Seb Frost

Off-topic I know but hey, it's quiet on the list, and you guys are SO
helpful :-)

I have an HTML file that is 82kb in size.  BUT on my 56k dialup it downloads
at 20k/s ~ 4 seconds.  This is obviously due to compression.

Winzip compresses it down to 6kb.

Anyway, my question:

Do all modems compress data as well as mine would appear to, or will this be
an insanely slow download for most?

If you want to try it the page is

http://www.raceshoot.com/photos2.php4?shootID=7

- seb
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/2001


-- 
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] help !

2001-09-02 Thread Valter Santos

Nikola,

put your php files in the public html folder of your xitami configuration...
something like c:\xitami\public_html or c:\xitami\htdocs

cheers


Valter Santos
WEB/WAP Consultant


> -Original Message-
> From: Nikola Veber [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 31, 2001 8:59 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] help !
> Importance: High
>
>
> I'm sorry I have to ask these stuff, but I havent found anything like
> this in the manual.
> I am running win98 with properly insalled xitami web server with php
> support (I ran installshield). Any way, I cant figure out hov to make
> a smple program with echo command, because I don't know where to
> place the code. I am using opera 5.12 as my default browser, and
> Macromedia Dreamweaver as the html editor. Maybe there is an
> option in Dreamweaver , but I couldn't find it in it's documentation
>
> Please help !
>
> Nikola Veber
>
>
>
>
>
> --
> 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 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] Refreshing php.ini without restart...

2001-09-02 Thread Valter Santos



apache graceful command will restart the server altought it will
wait until all web server sessions are finished to restart


Valter Santos
WEB/WAP Consultant


> -Original Message-
> From: Gerard Samuel [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 31, 2001 8:48 AM
> To: Raphael Pirker
> Cc: PHP
> Subject: Re: [PHP] Refreshing php.ini without restart...
> 
> 
> I can only speak for apache...
> 
> ==>  apachectl graceful
> 
> 
> 
> Raphael Pirker wrote:
> > Hi,
> > 
> > i just moved my PHP project from my local PC to the online 
> webserver and I
> > will need to do a few adjustments to the server. since the 
> server is used by
> > all the employees in the company, there is no chance I can 
> reboot it without
> > prior notice... my question: is there any way I can refresh the 
> changes I
> > make in php.ini without doing a reboot?
> > 
> > TIA,
> > 
> > Raphael
> > 
> > 
> > 
> > 
> 
> 
> 
> -- 
> 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 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] The future of PHP

2001-09-02 Thread Valter Santos


> >In this company, they have choose Microsoft stuff because they think it
> >is the right choice for what they do. For some things, PHP could be a
> >better choice, but it would be hard to convince who is in charge above
> >me because PHP does not benefit of a great credibility in the market
> >that would help me to make a good case to switch to PHP.
>
> In the US (and perhaps in the rest of America), that's relatively
> true.  That's not the case in Europe or the far east.  It has a lot to do
> with mentality and corporate culture.


I really disagree with you Zeev. I am from Portugal, Europe, and here the
idea
of "Microsoft is the best" still exist!

Hope this change in the near future!
Cheers




Valter Santos
WEB/WAP Consultant

Email : [EMAIL PROTECTED]
Mobile: +351 93 9650075

WeDo Consulting - http://www.wedo.pt



> -Original Message-
> From: Zeev Suraski [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 31, 2001 1:54 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] The future of PHP
>
>
> At 01:40 31-08-01, Manuel Lemos wrote:
> >Whoever hears you may even believe that Microsoft products and
> >supporting sites are successful because they don't have flaws. Sorry,
> >but honestely this sounds like an excuse for not doing it.
>
> Microsoft chooses which sites it links from microsoft.com *very*
> carefully
> - a very small select number of sites gets connected to it, and usually
> only for specific purposes (e.g., a specific article).  If you draw a
> comparison to the PHP world, you actually proved my point.
>
> >The problem is not PHP-GUI capabilities being able to compete with other
> >languages. The problem is that you seem to be willing to omit them when
> >you present PHP as if it is something you don't want PHP be known for.
>
> I actually mention PHP-GTK in my sessions.  I mention it as an anecdote,
> much like I mention some of the other interesting modules and projects in
> PHP (e.g., PEAR).  I'm really not sure why people think I'm
> trying to bury
> PHP-GTK.  Just because I don't see PHP-GTK as a main course of
> PHP, doesn't
> mean I don't think it's an important and useful project.
>
> >In this company, they have choose Microsoft stuff because they think it
> >is the right choice for what they do. For some things, PHP could be a
> >better choice, but it would be hard to convince who is in charge above
> >me because PHP does not benefit of a great credibility in the market
> >that would help me to make a good case to switch to PHP.
>
> In the US (and perhaps in the rest of America), that's relatively
> true.  That's not the case in Europe or the far east.  It has a lot to do
> with mentality and corporate culture.
>
> >  This is my most
> >important point: to make PHP a credible well known solution in all
> >markets that it could be used with advantage.
>
> I don't think you'd find anybody who would argue with you about that.
>
> Zeev
>
>
> --
> 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 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] Refreshing php.ini without restart...

2001-09-02 Thread Valter Santos


you really do not to have to rebbot your server...
Just restart apache with the graceful action...

apache graceful


Valter Santos
WEB/WAP Consultant


> -Original Message-
> From: B. van Ouwerkerk [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 31, 2001 7:08 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Refreshing php.ini without restart...
>
>
>
> >i just moved my PHP project from my local PC to the online
> webserver and I
> >will need to do a few adjustments to the server. since the
> server is used by
> >all the employees in the company, there is no chance I can
> reboot it without
> >prior notice... my question: is there any way I can refresh the changes I
> >make in php.ini without doing a reboot?
>
> I assume you're running PHP on a Linux box.. You should be able
> to restart
> apache.. even on NT you could stop and restart the service.
>
> Bye,
>
>
> B.
>
>
>  /"\
>  \ /
> ASCII Ribbon CampaignX Against HTML Mail and News
>  / \
>
>
> --
> 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 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] The future of PHP

2001-09-02 Thread Zeev Suraski

At 03:11 03-09-01, Valter Santos wrote:

> > >In this company, they have choose Microsoft stuff because they think it
> > >is the right choice for what they do. For some things, PHP could be a
> > >better choice, but it would be hard to convince who is in charge above
> > >me because PHP does not benefit of a great credibility in the market
> > >that would help me to make a good case to switch to PHP.
> >
> > In the US (and perhaps in the rest of America), that's relatively
> > true.  That's not the case in Europe or the far east.  It has a lot to do
> > with mentality and corporate culture.
>
>
>I really disagree with you Zeev. I am from Portugal, Europe, and here the
>idea
>of "Microsoft is the best" still exist!

It will continue to exist for a long while in the minds of many 
people.  That's just the way things are - you never get anywhere near 100% 
of the people supporting you.  The question is whether in Portugal, you 
feel that going with a non-Microsoft solution means a complete up-hill 
battle or not.

I can tell you that in general, companies in Europe appears to be more open 
to open-source solutions much more than ones in the US.  Of course, Europe 
is comprised of lots of different countries, and each country has lots of 
different companies, so your mileage may vary.

Zeev


-- 
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] The future of PHP

2001-09-02 Thread Valter Santos


Zeev, I agree with you!



Valter Santos
WEB/WAP Consultant


> -Original Message-
> From: Zeev Suraski [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 03, 2001 1:21 AM
> To: Valter Santos
> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: [PHP] The future of PHP
>
>
> At 03:11 03-09-01, Valter Santos wrote:
>
> > > >In this company, they have choose Microsoft stuff because
> they think it
> > > >is the right choice for what they do. For some things, PHP could be a
> > > >better choice, but it would be hard to convince who is in
> charge above
> > > >me because PHP does not benefit of a great credibility in the market
> > > >that would help me to make a good case to switch to PHP.
> > >
> > > In the US (and perhaps in the rest of America), that's relatively
> > > true.  That's not the case in Europe or the far east.  It has
> a lot to do
> > > with mentality and corporate culture.
> >
> >
> >I really disagree with you Zeev. I am from Portugal, Europe, and here the
> >idea
> >of "Microsoft is the best" still exist!
>
> It will continue to exist for a long while in the minds of many
> people.  That's just the way things are - you never get anywhere
> near 100%
> of the people supporting you.  The question is whether in Portugal, you
> feel that going with a non-Microsoft solution means a complete up-hill
> battle or not.
>
> I can tell you that in general, companies in Europe appears to be
> more open
> to open-source solutions much more than ones in the US.  Of
> course, Europe
> is comprised of lots of different countries, and each country has lots of
> different companies, so your mileage may vary.
>
> Zeev
>
>
> --
> 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 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] literature help

2001-09-02 Thread Hugh Danaher

I got the SAMS teach yourself book.  It's a beginners level book and I've
been able to complete a couple of moderate projects based upon the first 12
chapters.  With the book, the online php manual, and the help from the
experienced people on this mailing list you should do alright.  I'm told,
when I get a little more advanced, that the Core PHP book will be more
helpful.

Hope this helps,
Hugh
- Original Message -
From: Nikola Veber <[EMAIL PROTECTED]>
To: php forum <[EMAIL PROTECTED]>
Sent: Sunday, September 02, 2001 8:38 AM
Subject: [PHP] literature help


> Hi
>
> I wish to learn php, but I was wondering if there is a better
esource( something
> like a guide) besides the php manual on php.net ?
>
> Thanx
> Nikola
>
>
>
> --
> 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 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] http get vars missing?? track vars enabled - HELP

2001-09-02 Thread news.fbcc.com

Hi,

I'm about ready to go insane over this one. I have the following link.

http://www.wayneswoodworks.net/test/samples.php3?&key=1

When I get into samples.php3 I do:

$record = $HTTP_GET_VARS["key"];

echo "record=$record";

And the record variable is blank/missing. I have other pages that are
passing variables in the same website and it works fine. "Track vars" is
enabled. I know I must be missing something but I sure can't figure out
what/where. My hosting company has PHP/3.0.13.

Any help would be SINCERELY appreciated! I have been staring at this for 30
minutes.

Thanks in advance!
Andre






-- 
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] PHP+ Curl (on Unix)

2001-09-02 Thread John Monfort


 Hello everyone!

 I'm a little lost.

 As I understand it, PHP 4 has CURL support.
   1) is enabling the curl extension a substitute for installing the curl
  package?
  In other words, if I enable the extension, do I still need to instal
  the CURL package?

  2) Can I install curl without ROOT access? If so, then please tell me
 how. I've search the online manual, but didn't notice the answer.
 I'm still searching.

  3) Does FOPEN()  NOT support HTTPS, or do I need to do something
special.

  4) How else can I innitiate a HTTPS connection on a *NIX system?
 Is Socket the only solution?

 Please help.

 -John





-- 
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] PHP+ Curl (on Unix)

2001-09-02 Thread Jason Murray

>  As I understand it, PHP 4 has CURL support.
>1) is enabling the curl extension a substitute for installing the curl
>   package?
>   In other words, if I enable the extension, do I still need to instal
>   the CURL package?

You need to install CURL, and tell PHP where it is when you compile
it, in order to use the extensions.

>   2) Can I install curl without ROOT access? 

Probably, but I wouldn't know...

>   3) Does FOPEN()  NOT support HTTPS, or do I need to do something
> special.

Probably not. As I understand it, you need to install some kind
of patch to your system to allow you to open URLs with fopen().
That's unlikely to support encrypted transactions (https).

>   4) How else can I innitiate a HTTPS connection on a *NIX system?
>  Is Socket the only solution?

CURL works nicely... I doubt you'd get far with sockets since you
would have to encrypt and decrypt on your own.

Jasoon

-- 
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
"Work now, freak later!"

-- 
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] CSS with PHP?

2001-09-02 Thread Ashlyn

I am using a downloaded PHP sitesearch script and can not get it to read the
page contents past the style sheet..

If I search a text file it will give me the contents exactly as I wish, but
if I search a html document it only gives me the page title and site links..

The page in question is at
http://www.themysticmoon.com/booksfiles/search.php and if you type in conway
it will show you exactly what I mean. First listing is html page, second is
text... I need it to look like second listing..

In the readme file it said to
"When using CSS and Javascript make sure you enclose it in comments or place
it in an external file, otherwise the indexer will index it. "

This is way over the top of my head...I am using a linked stylesheet for the
whole site..
Any ideas gladly welcomed..
Thanks
Ashlyn



-- 
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] newbie : how to access functions in seperate files???

2001-09-02 Thread Aaron Moore

ok i have this at the top of my page:

include("/www/data/vi2/root/layout/functions.php");
include("/www/data/vi2/root/layout/config.php");
require("/www/data/vi2/root/layout/init.php");

but when I call one of the functions included in functions.php i get a
message saying :

Fatal error: Call to undefined function: get_total() in
/www/data//root/test.php on line 7


how do i get it to know that the function exists?

Thanks for your help and time.



-- 
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] newbie : how to access functions in seperate files???

2001-09-02 Thread Don Read

On 03-Sep-2001 Aaron Moore wrote:
> ok i have this at the top of my page:
> 
> include("/www/data/vi2/root/layout/functions.php");
> include("/www/data/vi2/root/layout/config.php");
> require("/www/data/vi2/root/layout/init.php");
> 
> but when I call one of the functions included in functions.php i get a
> message saying :
> 
> Fatal error: Call to undefined function: get_total() in
> /www/data//root/test.php on line 7
> 
> 
> how do i get it to know that the function exists?
> 
 
if (function_exists('get_total'))
   echo 'got'; 
} else {
   echo 'not';
}

Regards,
-- 
Don Read   [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.

-- 
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] newbie : how to access functions in seperate files???

2001-09-02 Thread Aaron Moore

Its obviously not finding it... my question is why the includes don't
work???

Thanks

Aaron Moore


"Don Read" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On 03-Sep-2001 Aaron Moore wrote:
> > ok i have this at the top of my page:
> >
> > include("/www/data/vi2/root/layout/functions.php");
> > include("/www/data/vi2/root/layout/config.php");
> > require("/www/data/vi2/root/layout/init.php");
> >
> > but when I call one of the functions included in functions.php i get a
> > message saying :
> >
> > Fatal error: Call to undefined function: get_total() in
> > /www/data//root/test.php on line 7
> >
> >
> > how do i get it to know that the function exists?
> >
>
> if (function_exists('get_total'))
>echo 'got';
> } else {
>echo 'not';
> }
>
> Regards,
> --
> Don Read   [EMAIL PROTECTED]
> -- It's always darkest before the dawn. So if you are going to
>steal the neighbor's newspaper, that's the time to do it.



-- 
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] newbie : how to access functions in seperate files???

2001-09-02 Thread Chris Aitken

At 10:15 PM 2/09/2001, Aaron Moore wrote:
>Its obviously not finding it... my question is why the includes don't
>work???
>
>Thanks


Are you 100% positive that the get_total() function is defined in your 
functions.php file ?

Check it, make sure there is no typos because this seems synonymous with a 
function not being in an included file anywhere, or having a typo in the 
function name defined.



Chris


--
 Chris Aitken - Administration/Database Designer - IDEAL Internet
  email: [EMAIL PROTECTED]  phone: +61 2 4628   fax: +61 2 4628 8890
  __-__
   *** Big Brother ***
It just shows that the dull will rule the world. And we will be watching it.


-- 
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] PHP+ Curl (on Unix)

2001-09-02 Thread John Monfort



Thanks, Jason!



__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Mon, 3 Sep 2001, Jason Murray wrote:

> >  As I understand it, PHP 4 has CURL support.
> >1) is enabling the curl extension a substitute for installing the curl
> >   package?
> >   In other words, if I enable the extension, do I still need to instal
> >   the CURL package?
>
> You need to install CURL, and tell PHP where it is when you compile
> it, in order to use the extensions.
>
> >   2) Can I install curl without ROOT access?
>
> Probably, but I wouldn't know...
>
> >   3) Does FOPEN()  NOT support HTTPS, or do I need to do something
> > special.
>
> Probably not. As I understand it, you need to install some kind
> of patch to your system to allow you to open URLs with fopen().
> That's unlikely to support encrypted transactions (https).
>
> >   4) How else can I innitiate a HTTPS connection on a *NIX system?
> >  Is Socket the only solution?
>
> CURL works nicely... I doubt you'd get far with sockets since you
> would have to encrypt and decrypt on your own.
>
> Jasoon
>
> --
> Jason Murray
> [EMAIL PROTECTED]
> Web Developer, Melbourne IT
> "Work now, freak later!"
>


-- 
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] newbie : how to access functions in seperate files???

2001-09-02 Thread John Monfort



A few things to consider:

 1) double check the include path.
 2) if you're not the appropriate file is being included, then user
REQUIRE, as that will stop the program.

 3) Variable Scope
Your function variables may be out of scope. Double check them, or
make them global.

 4) If you include a file from within a function, then the scope of that
file is only WITHIN that function.
{something to that line...}

   double check your variable scopes.


hope that helped.

-john



-- 
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] newbie : how to access functions in seperate files???

2001-09-02 Thread CC Zona

In article <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] (Aaron Moore) wrote:

> Its obviously not finding it... my question is why the includes don't
> work???

Make sure you have error_reporting set to E_ALL and display_errors turned 
on, then try running the script again.

-- 
CC

-- 
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: http get vars missing?? track vars enabled - HELP

2001-09-02 Thread CC Zona

In article <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] (News.Fbcc.Com) wrote:

> http://www.wayneswoodworks.net/test/samples.php3?&key=1
> 
> When I get into samples.php3 I do:
> 
> $record = $HTTP_GET_VARS["key"];
> 
> echo "record=$record";
> 
> And the record variable is blank/missing. I have other pages that are
> passing variables in the same website and it works fine. "Track vars" is
> enabled. I know I must be missing something but I sure can't figure out

(Assuming that you're not trying to access global variables from inside a 
function...)  

Huh.  Have you tried calling phpinfo() from that script anyway?  Maybe a 
global configuration setting is getting overridden by a local setting in 
that one script...?

-- 
CC

-- 
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] php's future

2001-09-02 Thread Papp Gyozo

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 <[EMAIL PROTECTED]>
To: 'nick' <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
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 .
>
> Wellgod damn lies
>
> -Original Message-
> From: nick [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, September 02, 2001 8:38 PM
> To: 'Faisal Nasim'; [EMAIL PROTECTED]
> 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
>
>  type="dates.JspCalendar"/>
> 
> <%
> int i=0;
> int j=0;
> int k=0;
>
(i=0;i<2;i++){ 
> for(j=0;j<2;j++){ 
> 
> } 
> } 
> %> 
>  type="dates.JspCalendar"/> 
>  
> 
> 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 2 
> for j=1 to 2 
> 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:[EMAIL PROTECTED]]
> 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 2 takes only 4 secs
> >Asp from 1 to 2000 (not 2) takes 72 secs
> >Php from 1 to 2000 (not 2) takes 68 secs
> >Asp.Net from 1 to 2 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>
>
> --
> 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 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] newbie : how to access functions in seperate files???

2001-09-02 Thread Aaron Moore

Heres what I have so far. I've put all the fiels into one folder, and i know
the paths are correct since they don't give an include error. The error
resides in line 6 of test.php where i try to call a function which is in
function.php

the test.php file :
___

___

function.php file :
___

___

init.php file
___
An Error OccuredphpBB was unable to connect
to the database. Please check $dbhost, $dbuser, and $dbpasswd in
config.php.');
if(!@mysql_select_db("$dbname",$db))
 die("An Error OccuredphpBB was unable to find the
database $dbname on your MySQL server. Please make sure you ran
the phpBB installation script.");

?>
___

config.php file  (info replaced with ### for security sorry):
___


___



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

2001-09-02 Thread Morten Winkler Jørgensen

If you want to make a fixed size of your  in IE you can
do it like this:

   
   a
   b
   c
   d
   

or use 100% to make the box be as wide as the container it is within.



Kind regards,
Morten Winkler



-- 
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] newbie : how to access functions in seperate files???

2001-09-02 Thread CC Zona

In article <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] (Aaron Moore) wrote:

> resides in line 6 of test.php where i try to call a function which is in
> function.php
> 
> the test.php file :
> ___
>  require("functions.php");



> function.php file :

Umm, so is the file called "function.php", or is it "functions.php"?  'Cuz 
it's the latter that you've attempted to include...

-- 
CC

-- 
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] probs with exec, pls pls help

2001-09-02 Thread taz

Should this work, if not, why not?



the import works fine from the command line
exec("ls") works too


TIA
Terry



Re: [PHP] CSS with PHP?

2001-09-02 Thread David Robley

On Mon,  3 Sep 2001 13:18, Ashlyn wrote:
> I am using a downloaded PHP sitesearch script and can not get it to
> read the page contents past the style sheet..
>
> If I search a text file it will give me the contents exactly as I wish,
> but if I search a html document it only gives me the page title and
> site links..
>
> The page in question is at
> http://www.themysticmoon.com/booksfiles/search.php and if you type in
> conway it will show you exactly what I mean. First listing is html
> page, second is text... I need it to look like second listing..
>
> In the readme file it said to
> "When using CSS and Javascript make sure you enclose it in comments or
> place it in an external file, otherwise the indexer will index it. "
>
> This is way over the top of my head...I am using a linked stylesheet
> for the whole site..
> Any ideas gladly welcomed..
> Thanks
> Ashlyn


Well, without knowing more about your search engine, in your page
 http://www.themysticmoon.com/booksfiles/celtic.html

try referencing your stylesheet without a full URL. That is, use



Oh, and I think your stylesheet has a specific font referenced which 
doesn't exist on my machine. Somehow I don't think the results are as you 
would like them to be :-)

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   Closed Hearing for the Caption Impaired...

-- 
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: imap?

2001-09-02 Thread Shi

it still dosen't work

Help

Shimon
"Richard Lynch" <[EMAIL PROTECTED]> wrote in message
00f701c133ef$b52b5200$6401a8c0@Lynchux100">news:00f701c133ef$b52b5200$6401a8c0@Lynchux100...
> You're missing a closing ) on the final print() statement...
>
> --
> WARNING [EMAIL PROTECTED] address is an endangered species -- Use
> [EMAIL PROTECTED]
> 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 <[EMAIL PROTECTED]>
> Newsgroups: php.general
> To: <[EMAIL PROTECTED]>
> 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) . "\n";
> > echo "SUBJECT:" .
> > $header->Subject . "\n";
> >
> >echo "SENDER ADDRESS: " .
> > HTMLSpecialChars($header->senderaddress) . "\n";
> >echo "REPLY-TO: " .
> > HTMLSpecialChars($header->reply_toaddress) . "\n";
> > print("DATE: $header->date\n");
> > echo "REFERENCES: " . HTMLSpecialChars($header->references)
.
> > "\n";
> > print("XREF: " . $header->xref) . "";
> > }
> > }
> >
> > 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
> >
> >
>



-- 
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] probs with exec, pls pls help

2001-09-02 Thread David Robley

On Mon,  3 Sep 2001 17:00, taz wrote:
> Should this work, if not, why not?
>
> 
>
> the import works fine from the command line
> exec("ls") works too
>
>
> TIA
> Terry

Probably the user that your webserver, and hence your php script, runs as 
does not have permissions to execute mysqlimport.

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   Self-made man: A horrible example of unskilled labor.

-- 
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] Function call introspection: possible or not?

2001-09-02 Thread Geoff Caplan

Hi folks

Just in case I am missing something -

Is there any way for a function to determine the name of the calling
function?

I want my database abstraction layer to be able to log query errors against
the name of the calling function, but I would rather not have to pass the
name in the query request every time. Any suggestions?

Thanks

Geoff Caplan
Advantae Ltd


-- 
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: Database Function

2001-09-02 Thread Hugh Bothwell


"Georgie" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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.



-- 
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: Database Function

2001-09-02 Thread Alfredo Yong

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


-- 
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: Really weird problem: cross-server databasing *g*

2001-09-02 Thread Manuel Lemos

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

-- 
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] ereg question

2001-09-02 Thread Papp Gyozo

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 <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
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] Can PHP and Java work together?

2001-09-02 Thread Valter Santos

Of course you can do that!

PHP is server side and javascript is client side...

you can work with javascript within PHP like you work with HTML!



Valter Santos
WEB/WAP Consultant



> -Original Message-
> From: Jack [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 31, 2001 9:13 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: [PHP] Can PHP and Java work together?
>
>
> Dear all
> I want to ask if i want to perform two task after the user had click a
> button,
> 1 is the task perform by PHP
> 2 is the task perform by JavaScript
> is it possible to do so?
>
> I'm actually fresh on JavaScript, before i would call the JavaScript, what
> should i do first or what should i set before though?
>
> Thx
> Jack
> [EMAIL PROTECTED]
>
>
>
> --
> 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 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] Database Function

2001-09-02 Thread Georgie

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



-- 
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: [PHP-INST] PHP4 and Apache 1.3.20 DSO mode not working?

2001-09-02 Thread Bill Carter



Stefan Siefert wrote:
> 
> 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)

Sorry but I post email from Win98 and I don't have my compile line
for apache and php available to paste in here but I followed the
sketchy instructions in the README docs and my compiles completed
without errors.

I did compile apache with apxs and did --enable-modul=most. When
I do "httpd -l" I see a ton of modules listed, I do have shared
modules enabled. And I do have a libphp4.so file which I have
configured apache to attempt to load. My problem is that the module
does not load. I don't see how it can now that I have looked at 
the sources, there is no magic cookie. Maybe I'm wrong.

My question is simple. Have you downloaded, compiled, and integrated
the most recent versions of Apache and PHP and made them work? Not
previous versions. I've seen several people have problems with doing
this in the newsgroups dating from late 2000. Someone please wipe
out your apache/php installation and attempt to reinstall the most
recent versions according to the instructions. I'm starting to think
nobody has actually tested this...

-- 
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] PHP4 and Apache 1.3.20 DSO mode not working?

2001-09-02 Thread Bill Carter

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 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-INST] PHP4 and Apache 1.3.20 DSO mode not working?

2001-09-02 Thread Steve Brazill

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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP Install 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]