php-general Digest 3 Aug 2002 17:16:33 -0000 Issue 1503

Topics (messages 110933 through 110972):

Re: My SQL speed.
        110933 by: Manuel Lemos
        110934 by: Maxim Maletsky
        110941 by: Ilia A.

Re: Need Help with register_globals OFF
        110935 by: Monty
        110937 by: Justin French
        110939 by: Monty

Re: string questions
        110936 by: Musone Verdana
        110951 by: Danny Shepherd

Re: variables
        110938 by: Jason Wong

Re: isset($var) && !empty($var) same time!
        110940 by: lallous
        110943 by: Musone Verdana
        110945 by: lallous
        110946 by: Musone Verdana

Re: Protect PHP coding
        110942 by: lallous
        110948 by: Manuel Lemos
        110950 by: Andrey Hristov
        110953 by: Manuel Lemos
        110957 by: Dennis Moore
        110969 by: Acer
        110970 by: Rasmus Lerdorf

Re: PHP Hosting
        110944 by: Liam MacKenzie

Include php code as variable
        110947 by: Alawi
        110949 by: Danny Shepherd
        110963 by: CC Zona

virtual hosting using php as apache module
        110952 by: Ryan

Re: ODBC
        110954 by: John Lim

alternative to phpadsnew?
        110955 by: Andy
        110958 by: Maxim Maletsky
        110959 by: Andy

what is equivalent to Response.End ?
        110956 by: Ing. Rajesh Kumar
        110960 by: Danny Shepherd
        110961 by: Lars Olsson

Install
        110962 by: Nick Niehoff
        110966 by: EdwardSPL.ita.org.mo
        110967 by: Bob Lockie

PHP and multiple page .tiffs
        110964 by: Joseph Szobody

RegEx (back referencing)
        110965 by: Phil Ewington
        110968 by: Danny Shepherd
        110971 by: Danny Shepherd
        110972 by: Phil Ewington

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]


----------------------------------------------------------------------
--- Begin Message ---
Hello,

On 08/03/2002 01:54 AM, Jason Stechschulte wrote:
> On Sat, Aug 03, 2002 at 01:49:10AM -0300, Manuel Lemos wrote:
> 
>>>Google has 1 billion pages and qurys in a few milliseconds...
>>
>>Real search engines do not use SQL databases.
> 
> 
> What do search engines use?  Is there something out there that explains
> how they work?

They usually use read only DBM like databases that do not have the 
overhead or parsing SQL or doing joins to fetch the data.

-- 

Regards,
Manuel Lemos

--- End Message ---
--- Begin Message ---
Lord Loh. writes:
> How on earth does US Social Security dept. maintain so many records ?
> Google has 1 billion pages and qurys in a few milliseconds...
 


Weel, I work as a consultant on development of a similar system for Italian 
Government. (instead of Social Security numbers it handles all territoric 
matters and related payments, ownershipd to it... etc ...). BTW: software is 
interfaced via PHP. 

In this database, we have over a few billions of records in some few 
thousands databases hosted on some few hundreds servers physically located 
in some few dozens of regions of Italy. 

We use Oracle for it. And, neigher Oracle does magic here. The system is 
deeply thought and organized in all its details. Nothing is left for "a 
case" and everything is very well monitored and backed up. (not mentioning 
the synchronization methods). 

In my experience, mySQL has always failed performance-wise (when not crashed 
complitely) while trying to keep on a database consisting of 1.000.000+ 
records. 

For large DBs I would reccomend you PostgreSQL as it has, in my own opinion 
(and not to start a new thread here) a better ralational mechanism, which is 
crucial (as Manuel mentioned) to design the right logic within your 
application. 

TIP: look for repeating data in your DB, and try to "compress" it somehow. 
Try to see if you can split and reuse the records. Add more supporting 
tables and so on.... 


Maxim Maletsky
PHP Beginner (www.phpbeginner.com) 

--- End Message ---
--- Begin Message ---
On August 3, 2002 12:54 am, Jason Stechschulte wrote:
> On Sat, Aug 03, 2002 at 01:49:10AM -0300, Manuel Lemos wrote:
> > >Google has 1 billion pages and qurys in a few milliseconds...
> >
> > Real search engines do not use SQL databases.
>
> What do search engines use?  Is there something out there that explains
> how they work?

Generally search egines use various hash algorithms to store their data, such 
as B-trees, Hash Tables, etc... Even that, is not enough when dealing with an 
extremely large dataset, in which case expensive hardware is used to provide 
the necessary IO capacity to allow for fast look ups. If you are trully 
interested in how search engines do this, there are plenty of articles 
describing Google's setup in terms of hardware.

As far as fetching data from large MySQL databases it is not impossible or 
slow as some people claim. I have a 4 million record database in MySQL that 
is routinely accessed and most queries on that table are completed in 
0.01-0.03 seconds, speed mostly depending on the number of rows retrieved. 
Keep in mind that your system and database configuration will play a very 
large role in regard to performance once you go beyond a certain amount of 
data.


-- 
Ilia Alshanetsky
[EMAIL PROTECTED]
http://fud.prohost.org/forum/
--- End Message ---
--- Begin Message ---
Well, to answer my own question, I found a decent tutorial on using sessions
with the new register_globals off here:

http://www.wdvl.com/Authoring/Languages/PHP/Maintaining_state/session_variab
les.html

Anyone want to share any tips on how to deal with form vars passed to a
script with register_globals turned off? Do you simply refer to them
directly with $_GET['var'] or do you initialize vars locally that contain
all the $_GET vars?

Thanks.


--- End Message ---
--- Begin Message ---
on 03/08/02 3:35 PM, Monty ([EMAIL PROTECTED]) wrote:

> Well, to answer my own question, I found a decent tutorial on using sessions
> with the new register_globals off here:
> 
> http://www.wdvl.com/Authoring/Languages/PHP/Maintaining_state/session_variab
> les.html
> 
> Anyone want to share any tips on how to deal with form vars passed to a
> script with register_globals turned off? Do you simply refer to them
> directly with $_GET['var'] or do you initialize vars locally that contain
> all the $_GET vars?

Well I usually choose to POST forms, not GET them, but yeah, I just deal
with the vars as $_POST['var'].

If I'm referencing the vars a LOT, I make regular $vars out of each element
in the POST array:

$myvar = $_POST['myvar'];


If there's a lot of them, I do it with a foreach loop... something like:

<?
foreach($_POST as $key => $value)
    {
    $$key = $value;
    }
?>

...will do the trick.  It achieves the same as register_globals, but only
from one source, the POST array.


Justin


Justin

--- End Message ---
--- Begin Message ---
Thanks for the tips, Justin. Sounds like a good idea.

Do you, or anyone, know if the $_POST vars stay defined even after moving on
to another page? Do I also need to unset $_POST after passing the vars each
time?


> From: [EMAIL PROTECTED] (Justin French)
> Newsgroups: php.general
> Date: Sat, 03 Aug 2002 15:46:57 +1000
> To: Monty <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
> Subject: Re: [PHP] Re: Need Help with register_globals OFF
>> 
>> Anyone want to share any tips on how to deal with form vars passed to a
>> script with register_globals turned off? Do you simply refer to them
>> directly with $_GET['var'] or do you initialize vars locally that contain
>> all the $_GET vars?
> 
> Well I usually choose to POST forms, not GET them, but yeah, I just deal
> with the vars as $_POST['var'].
> 
> If I'm referencing the vars a LOT, I make regular $vars out of each element
> in the POST array:
> 
> $myvar = $_POST['myvar'];
> 
> 
> If there's a lot of them, I do it with a foreach loop... something like:
> 
> <?
> foreach($_POST as $key => $value)
> {
> $$key = $value;
> }
> ?>
> 
> ...will do the trick.  It achieves the same as register_globals, but only
> from one source, the POST array.

--- End Message ---
--- Begin Message ---
Use function explode, preg_split, split to split the text string.

$pieces = explode(" ", $address);
echo $pieces[0]; // will output 4455


----- Original Message -----
From: Jason Wong
Sent: Saturday, August 03, 2002 1:12 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] string questions

On Saturday 03 August 2002 00:35, webmaster wrote:
> I know there has to be an easy way to do this, but I just can't find the
> answer.  I need to strip out the first part of a text string.  I've
> figured out out to strip out the last part of a string using the
> following:
>
> $address = (4455 N. 45th St.);
>
> $test = strstr($address, " ");
> echo $test;
>
> The variable $test returns N. 45th St. without the 4455.  Is there a way
> to reverse this so I can just return 4455?

Use strpos() to find the position of the first space then substr() to extract  
from beginning to the space.

--  
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
The San Diego Freeway.  Official Parking Lot of the 1984 Olympics!
*/


--  
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.phpGet more from the Web.  FREE MSN 
Explorer download : http://explorer.msn.com
--- End Message ---
--- Begin Message ---
Try, 

list($test)=explode(' ',$address);

HTH

Danny

----- Original Message ----- 
From: "webmaster" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 02, 2002 5:35 PM
Subject: [PHP] string questions


> I know there has to be an easy way to do this, but I just can't find the
> answer.  I need to strip out the first part of a text string.  I've
> figured out out to strip out the last part of a string using the
> following:
> 
> $address = (4455 N. 45th St.);
> 
> $test = strstr($address, " ");
> echo $test;
> 
> The variable $test returns N. 45th St. without the 4455.  Is there a way
> to reverse this so I can just return 4455?

--- End Message ---
--- Begin Message ---
On Saturday 03 August 2002 12:55, Bob Lockie wrote:

> >$_REQUEST holds everything from $_GET, $_POST, and $_COOKIE combined, thus
> > you cannot differentiate where the value came from.
> >
> >If you want to be sure, be specific and use one of $_GET/$_POST/$_COOKIE.
>
> There is no reason other than knowing where it came from to choose one
> method over the other? For *most* applications it would seem that using
> REQUEST is better planning.

Knowing exactly where your variables are coming from ensures the integrity of 
your code and protects it from malicious users feeding it bogus values.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
You feel a whole lot more like you do now than you did when you used to.
*/

--- End Message ---
--- Begin Message ---
Just use empty() ?!

With error_reporting(E_ALL) you'll get a bunch of warnings if you only use
empty() w/o the isset() !

use isset() first and then check wheter empty or not empty!

so there is not one function that tests for empty and isset same time!?

Elias
"Analysis & Solutions" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Fri, Aug 02, 2002 at 04:48:17PM +0200, lallous wrote:
> >
> > function issne($var)
> > {
> >    return isset($var) && !empty($var) ? true : false;
> > }
> >
> > is there is any builtin function that does that? (one function call).
>
> Yes.  Just use empty().  It automatically checks if the variable is:
>    not set
>    null
>    an empty string
>    zero
>
> If any of them are true, the empty() function returns true.  You don't
> need your function at all.
>
> --Dan
>
> --
>                PHP classes that make web design easier
>         SQL Solution  |   Layout Solution   |  Form Solution
>     sqlsolution.info  | layoutsolution.info |  formsolution.info
>  T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
>  4015 7 Av #4AJ, Brooklyn NY     v: 718-854-0335     f: 718-854-0409


--- End Message ---
--- Begin Message ---
I always set error_reporting(E_ALL) oR error_reporting(2047), but i have never got any 
errors when just use empty()  
to determine whether a variable is set.

If the variable is: 0, null, not set or an empty string.
Then the empty() will return true.

It's unnecessary to call isset() first.

----- Original Message -----
From: lallous
Sent: 2002年8月3日 15:01
To: [EMAIL PROTECTED]
Subject: Re: [PHP] isset($var) && !empty($var) same time!

Just use empty() ?!

With error_reporting(E_ALL) you'll get a bunch of warnings if you only use
empty() w/o the isset() !

use isset() first and then check wheter empty or not empty!

so there is not one function that tests for empty and isset same time!?

Elias
"Analysis & Solutions" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Fri, Aug 02, 2002 at 04:48:17PM +0200, lallous wrote:
> >
> > function issne($var)
> > {
> >    return isset($var) && !empty($var) ? true : false;
> > }
> >
> > is there is any builtin function that does that? (one function call).
>
> Yes.  Just use empty().  It automatically checks if the variable is:
>    not set
>    null
>    an empty string
>    zero
>
> If any of them are true, the empty() function returns true.  You don't
> need your function at all.
>
> --Dan
>
> --
>                PHP classes that make web design easier
>         SQL Solution  |   Layout Solution   |  Form Solution
>     sqlsolution.info  | layoutsolution.info |  formsolution.info
>  T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
>  4015 7 Av #4AJ, Brooklyn NY     v: 718-854-0335     f: 718-854-0409



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.phpGet more from the Web.  FREE MSN 
Explorer download : http://explorer.msn.com
--- End Message ---
--- Begin Message ---
because your variable is set already!

try doing this:

echo empty($asdadadadadadasd);
you will get a warning and have a FALSE value.


Elias
"Verdana Musone" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I always set error_reporting(E_ALL) oR error_reporting(2047), but i have
never got any errors when just use empty()
to determine whether a variable is set.

If the variable is: 0, null, not set or an empty string.
Then the empty() will return true.

It's unnecessary to call isset() first.

----- Original Message -----
From: lallous
Sent: 2002年8月3日 15:01
To: [EMAIL PROTECTED]
Subject: Re: [PHP] isset($var) && !empty($var) same time!

Just use empty() ?!

With error_reporting(E_ALL) you'll get a bunch of warnings if you only use
empty() w/o the isset() !

use isset() first and then check wheter empty or not empty!

so there is not one function that tests for empty and isset same time!?

Elias
"Analysis & Solutions" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Fri, Aug 02, 2002 at 04:48:17PM +0200, lallous wrote:
> >
> > function issne($var)
> > {
> >    return isset($var) && !empty($var) ? true : false;
> > }
> >
> > is there is any builtin function that does that? (one function call).
>
> Yes.  Just use empty().  It automatically checks if the variable is:
>    not set
>    null
>    an empty string
>    zero
>
> If any of them are true, the empty() function returns true.  You don't
> need your function at all.
>
> --Dan
>
> --
>                PHP classes that make web design easier
>         SQL Solution  |   Layout Solution   |  Form Solution
>     sqlsolution.info  | layoutsolution.info |  formsolution.info
>  T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
>  4015 7 Av #4AJ, Brooklyn NY     v: 718-854-0335     f: 718-854-0409



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.phpGet more from the Web.
FREE MSN Explorer download : http://explorer.msn.com



--- End Message ---
--- Begin Message ---
I had given a try on your code, But it really output "1", a true value.

I used "PHP 4.2.2+Apache 1.3.26" under Win2K. And u?



----- Original Message -----
From: lallous
Sent: 2002年8月3日 16:19
To: [EMAIL PROTECTED]
Subject: Re: [PHP] isset($var) && !empty($var) same time!

because your variable is set already!

try doing this:

echo empty($asdadadadadadasd);
you will get a warning and have a FALSE value.


Elias
"Verdana Musone" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I always set error_reporting(E_ALL) oR error_reporting(2047), but i have
never got any errors when just use empty()
to determine whether a variable is set.

If the variable is: 0, null, not set or an empty string.
Then the empty() will return true.

It's unnecessary to call isset() first.

----- Original Message -----
From: lallous
Sent: 2002年8月3日 15:01
To: [EMAIL PROTECTED]
Subject: Re: [PHP] isset($var) && !empty($var) same time!

Just use empty() ?!

With error_reporting(E_ALL) you'll get a bunch of warnings if you only use
empty() w/o the isset() !

use isset() first and then check wheter empty or not empty!

so there is not one function that tests for empty and isset same time!?

Elias
"Analysis & Solutions" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Fri, Aug 02, 2002 at 04:48:17PM +0200, lallous wrote:
> >
> > function issne($var)
> > {
> >    return isset($var) && !empty($var) ? true : false;
> > }
> >
> > is there is any builtin function that does that? (one function call).
>
> Yes.  Just use empty().  It automatically checks if the variable is:
>    not set
>    null
>    an empty string
>    zero
>
> If any of them are true, the empty() function returns true.  You don't
> need your function at all.
>
> --Dan
>
> --
>                PHP classes that make web design easier
>         SQL Solution  |   Layout Solution   |  Form Solution
>     sqlsolution.info  | layoutsolution.info |  formsolution.info
>  T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
>  4015 7 Av #4AJ, Brooklyn NY     v: 718-854-0335     f: 718-854-0409



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.phpGet more from the Web.
FREE MSN Explorer download : http://explorer.msn.com




--  
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.phpGet more from the Web.  FREE MSN 
Explorer download : http://explorer.msn.com
--- End Message ---
--- Begin Message ---
any windows version of this product?


"Manuel Lemos" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello,
>
> On 08/02/2002 11:06 AM, Lallous wrote:
> > So...
> > Is this equivalent to Zend Encoder?
>
> Not exactly, but in some aspects it is/will be better like the ability
> to generate executable standalone PHP programs that you can distribute
> independently. There is also the question of the price that for Zend
> Encoder is ridiculously expensive.
>
> Other than that, if you're main concerne is protecting your PHP code,
> you can do very well with bcompiler.
>
>
> > Elias
> > "Manuel Lemos" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >
> >>Hello,
> >>
> >>On 08/01/2002 01:58 PM, Yc Nyon wrote:
> >>
> >>>Is there any method to encrypt PHP files.
> >>
> >>Use bcompiler which is free and is part of PEAR/PECL official PHP
> >>extensions repository:
> >>
> >>http://pear.php.net/package-info.php?pacid=95
> >>
> >>--
> >>
> >>Regards,
> >>Manuel Lemos
> >>
> >
> >
> >
>
>
>
> --
>
> Regards,
> Manuel Lemos
>


--- End Message ---
--- Begin Message ---
Hello,

On 08/03/2002 05:41 AM, Lallous wrote:
> any windows version of this product?

AFAIK, you compile it for Windows. I was also told that is a major headache.

Anyway, don't despair, it seems that some developers are working on 
providing already compiled PECL extensions that can be automatically 
downloaded.


> 
> 
> "Manuel Lemos" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 
>>Hello,
>>
>>On 08/02/2002 11:06 AM, Lallous wrote:
>>
>>>So...
>>>Is this equivalent to Zend Encoder?
>>
>>Not exactly, but in some aspects it is/will be better like the ability
>>to generate executable standalone PHP programs that you can distribute
>>independently. There is also the question of the price that for Zend
>>Encoder is ridiculously expensive.
>>
>>Other than that, if you're main concerne is protecting your PHP code,
>>you can do very well with bcompiler.
>>
>>
>>
>>>Elias
>>>"Manuel Lemos" <[EMAIL PROTECTED]> wrote in message
>>>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>>>
>>>
>>>>Hello,
>>>>
>>>>On 08/01/2002 01:58 PM, Yc Nyon wrote:
>>>>
>>>>
>>>>>Is there any method to encrypt PHP files.
>>>>
>>>>Use bcompiler which is free and is part of PEAR/PECL official PHP
>>>>extensions repository:
>>>>
>>>>http://pear.php.net/package-info.php?pacid=95

-- 

Regards,
Manuel Lemos

--- End Message ---
--- Begin Message ---
> >>>So...
> >>>Is this equivalent to Zend Encoder?
> >>
> >>Not exactly, but in some aspects it is/will be better like the ability
> >>to generate executable standalone PHP programs that you can distribute
> >>independently. There is also the question of the price that for Zend
> >>Encoder is ridiculously expensive.
> >>
 The people for Zend have to eat to live.
People, if there is no Zend there is no core for PHP. This is the same as
with MySQL. MySQL is free under GPL
but has no subselects because the companies that has commercial licenses
didn't wanted that - Monty has
to eat and he codes other features.
IMO Zend must exist and this is only possible by selling its products.
If the company we work for has the money to buy Zend Accelerator licenses
why not do that instead of using
other Open Source accelerators. I just want the people from Zend to continue
their tremendous work and
we will have PHP5 and PHP6 and so on otherwise start learning ASP or JSP.


My 2 cents.

Regards,
Andrey

--- End Message ---
--- Begin Message ---
Hello,

On 08/03/2002 09:16 AM, Andrey Hristov wrote:
>>>>>So...
>>>>>Is this equivalent to Zend Encoder?
>>>>
>>>>Not exactly, but in some aspects it is/will be better like the ability
>>>>to generate executable standalone PHP programs that you can distribute
>>>>independently. There is also the question of the price that for Zend
>>>>Encoder is ridiculously expensive.
>>>>
>>>
>  The people for Zend have to eat to live.

And don't we all? That is the main problem. If we need to pay USD $3,000 
to be able to compile our PHP programs, doesn't that make not viable for 
most of us to sell our PHP programs as closed source?


> People, if there is no Zend there is no core for PHP. This is the same as
> with MySQL. MySQL is free under GPL
> but has no subselects because the companies that has commercial licenses
> didn't wanted that - Monty has
> to eat and he codes other features.

If there is something that Zend people do not have a problem that is to 
be able to eat from their work. Just recently they announced a USD 
$300,000 deal, which where I live lets many eat for many years.



> IMO Zend must exist and this is only possible by selling its products.

I only agree with the first part. It is not true that selling products 
is the only viable way for them to survive. Your MySQL example is good 
because they have been leaving from consulting, training and certification.


> If the company we work for has the money to buy Zend Accelerator licenses
> why not do that instead of using

That is your decision. Zend people have publically declared that they 
are targetting high-end customers. Their pricing obviously rules out the 
majority of us for which their prices are simply unaffordable, 
especially if you have to pay them over and over again if you want to 
use them every year.

Since we are not idiots, if we have Open Source solutions that solve our 
problem, why do you think that paying those fortunes to Zend would be a 
better idea?

I think their business model makes sense to make their company viable, 
but that should be at the expense of those that can't afford their 
prices. Let those that believe that expensive software is a better 
solution from them then Open Source, to make Zend company viable.

Also, Zend uses a subscription based licensing which is what Microsoft 
is shifting their licenses too. I am not saying that is wrong, I just 
say that it is not acceptable for most of us to stay in the dependence 
of Zend to keep our software running every year. If you agree with the 
licensing, it is your problem.


> other Open Source accelerators. I just want the people from Zend to continue
> their tremendous work and
> we will have PHP5 and PHP6 and so on otherwise start learning ASP or JSP.

If you ask me, I see very little point in what you say. You just made it 
sound as if Zend people are the only ones working on the development of PHP.

The way I see it PHP lacks mostly of extensions that address real world 
problems of many people like: interfacing with Web services via SOAP, 
compiling PHP scripts to protect so we can generate closed source 
standalone executables, multi-threading support, generating GUI 
applications, interfacing with the user management and authentication 
system, etc..

Zend people are not working on anything like this as they don't agree it 
is important for PHP or for their business that is all that matters to them.

As a matter of fact the only thing that Zend people have been working on 
PHP itself is Zend engine 2. Last time that I looked, Zend engine 2  is 
mostly a thing that was developed to make PHP more like Java. If I 
wanted that, I would probably be using Java instead. I am afraid that is 
only helping to remember more and more users to switch to Java.



> My 2 cents.

Actually that should be worth many times USD $3,000...  for Zend of 
course. :-)



-- 

Regards,
Manuel Lemos

--- End Message ---
--- Begin Message ---
Everyone understands that Zend has to eat, but so do most of us small
developers.  I have no problem with them charging for their products.  IMO
they would make more money if the pricing for the encoder would be less.
This is a fundamental feature that most of us need.   I would offer a Pro
version of the Zend Studio and bundle the encoder with it for abou $500.
This would enable Zend to capture a significant market share among PHP
developers withoug breaking the bank.

Just a thought...


----- Original Message -----
From: "Andrey Hristov" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 03, 2002 8:16 AM
Subject: Re: [PHP] Re: Protect PHP coding


> > >>>So...
> > >>>Is this equivalent to Zend Encoder?
> > >>
> > >>Not exactly, but in some aspects it is/will be better like the ability
> > >>to generate executable standalone PHP programs that you can distribute
> > >>independently. There is also the question of the price that for Zend
> > >>Encoder is ridiculously expensive.
> > >>
>  The people for Zend have to eat to live.
> People, if there is no Zend there is no core for PHP. This is the same as
> with MySQL. MySQL is free under GPL
> but has no subselects because the companies that has commercial licenses
> didn't wanted that - Monty has
> to eat and he codes other features.
> IMO Zend must exist and this is only possible by selling its products.
> If the company we work for has the money to buy Zend Accelerator licenses
> why not do that instead of using
> other Open Source accelerators. I just want the people from Zend to
continue
> their tremendous work and
> we will have PHP5 and PHP6 and so on otherwise start learning ASP or JSP.
>
>
> My 2 cents.
>
> Regards,
> Andrey
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
There is a free php accelerator so I don't know why you would pay for one.
www.php-accelerator.co.uk

The same guy (Nick) has also just made an encoder.  It is in beta testing
right now and there's no windows version yet but that should be coming soon.
I think it's like $0.50 to encode your program which is much more
affordable.
http://www.php-encoder.com

I think the problem with zend is that they have put up the guise that php is
an opensource project but to actually use it in production you had to pay
several thousands every year for the accelerator and the encoder.  It kinda
feels like a bait and switch to me which is why I personally think zend is
bad for php.  Just do a search for jobs for asp, cf or jsp.  There are a ton
of jobs for these languages and you would be lucky to find one for a php
developer.  So zend rakes in the money and does no real marketing with that
money for php is the way I see it.

You'll never hear anything from the core php group since they are a tight
click so it's business as usual.  Now that Nick has released the free
accelerator and an inexpensive ($0.50 per shot) encoder it might change but
I don't know if it's too late.







-----Original Message-----
From: Dennis Moore [mailto:[EMAIL PROTECTED]]
Sent: August 3, 2002 10:58 AM
To: Andrey Hristov; [EMAIL PROTECTED]
Subject: Re: [PHP] Re: Protect PHP coding


Everyone understands that Zend has to eat, but so do most of us small
developers.  I have no problem with them charging for their products.  IMO
they would make more money if the pricing for the encoder would be less.
This is a fundamental feature that most of us need.   I would offer a Pro
version of the Zend Studio and bundle the encoder with it for abou $500.
This would enable Zend to capture a significant market share among PHP
developers withoug breaking the bank.

Just a thought...


----- Original Message -----
From: "Andrey Hristov" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 03, 2002 8:16 AM
Subject: Re: [PHP] Re: Protect PHP coding


> > >>>So...
> > >>>Is this equivalent to Zend Encoder?
> > >>
> > >>Not exactly, but in some aspects it is/will be better like the ability
> > >>to generate executable standalone PHP programs that you can distribute
> > >>independently. There is also the question of the price that for Zend
> > >>Encoder is ridiculously expensive.
> > >>
>  The people for Zend have to eat to live.
> People, if there is no Zend there is no core for PHP. This is the same as
> with MySQL. MySQL is free under GPL
> but has no subselects because the companies that has commercial licenses
> didn't wanted that - Monty has
> to eat and he codes other features.
> IMO Zend must exist and this is only possible by selling its products.
> If the company we work for has the money to buy Zend Accelerator licenses
> why not do that instead of using
> other Open Source accelerators. I just want the people from Zend to
continue
> their tremendous work and
> we will have PHP5 and PHP6 and so on otherwise start learning ASP or JSP.
>
>
> My 2 cents.
>
> Regards,
> Andrey
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


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



--- End Message ---
--- Begin Message ---
> You'll never hear anything from the core php group since they are a tight
> click so it's business as usual.

That's probably the most uninformed statement I have seen posted to this
list in a very long time.

-Rasmus

--- End Message ---
--- Begin Message ---
File permissions.

Each user has their own username, but all are a member of the group
"hosting"
They can CHMOD their files to whatever they like, so security is really up
to them.

And PHP's Safe mode of course.



----- Original Message -----
From: "Matt Babineau" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 02, 2002 11:04 PM
Subject: [PHP] PHP Hosting


> If any PHP hosts are out there I have a question:
>
> How do you keep users from erasing / altering files out side of their
> web folder with PHP? Doesn't PHP run in the system user context? Is is
> possible to prevent a user from using PHP to alter anything but in their
> Web folder?
>
> Matt Babineau
> MCWD / CCFD
> -----------------------------------------
> e:  <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
> p: 603.943.4237
> w:  <http://www.criticalcode.com/> http://www.criticalcode.com
> PO BOX 601
> Manchester, NH 03105
>
>



--- End Message ---
--- Begin Message ---
How can I Include my php code code as variable and excute it ? 

--- End Message ---
--- Begin Message ---
http://www.php.net/eval

----- Original Message ----- 
From: "Alawi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 03, 2002 11:41 AM
Subject: [PHP] Include php code as variable


> How can I Include my php code code as variable and excute it ? 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

--- End Message ---
--- Begin Message ---
In article <00d501c23ada$87050590$3404a8c0@alawi>,
 [EMAIL PROTECTED] (Alawi) wrote:

> How can I Include my php code code as variable and excute it ? 

include() can return a value, assignable to a variable.  Some other ways to 
get the content of a file (I assume that's why you're saying "include") 
into a variable: file(), fread().

eval() can execute the value of a variable as PHP code.

http://php.net/include
http://php.net/file
http://php.net/fread
http://php.net/eval

-- 
CC
--- End Message ---
--- Begin Message ---
Hi everybody,
       I would like to know how to make the directive user/group in
<virtualhost> working with php. I prefer to use php as modules but not
cgi, as it is more handy and easy for upgrade. How to do that ?
Thx !


Regards,
Ryan

--- End Message ---
--- Begin Message ---
Have a look at http://php.weblogs.com/adodb_csv


"Bob Lockie" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> >    Can PHP be used on an Apache server (linux) to connect to a (remote)
MS
> >Access server (NT) through ODBC?
>
> Yes.
>
>
> > If so, does anyone have examples of how this
> >is done?
>
> Nope, never done it.
> It'll use the same PHP database commands probably.
> Read www.php.net
>
>
>


--- End Message ---
--- Begin Message ---
Hi there,

I am searching for a way to track advertisment, clickrates on my site. So I
tryed out phpadsnew http://sourceforge.net/projects/phpadsnew/

Unfortunatelly the current beta 7 works only with register globals set to
on. I cant install it in this case, because my application requires this to
be off.

Has anybody a good recomendation on another software to track adds?

Thank you for any hint on that.

andy







--- End Message ---
--- Begin Message ---

You can track ads with phpAdsNew also remotely, not necessarily via
view() function.


Maxim Maletsky

PHP Beginner
www.phpbeginner.com



-----Original Message-----
From: Andy [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, August 03, 2002 4:44 PM
To: [EMAIL PROTECTED]
Subject: [PHP] alternative to phpadsnew?

Hi there,

I am searching for a way to track advertisment, clickrates on my site.
So I
tryed out phpadsnew http://sourceforge.net/projects/phpadsnew/

Unfortunatelly the current beta 7 works only with register globals set
to
on. I cant install it in this case, because my application requires this
to
be off.

Has anybody a good recomendation on another software to track adds?

Thank you for any hint on that.

andy








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


--- End Message ---
--- Begin Message ---
what do u mean by that. I would like to install this software on the same
server. I guess you mean installing it on another server - remotly?

Andy


"Maxim Maletsky" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
001601c23afe$8e0df9e0$1113fe17@dominanta">news:001601c23afe$8e0df9e0$1113fe17@dominanta...
>
> You can track ads with phpAdsNew also remotely, not necessarily via
> view() function.
>
>
> Maxim Maletsky
>
> PHP Beginner
> www.phpbeginner.com
>
>
>
> -----Original Message-----
> From: Andy [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, August 03, 2002 4:44 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] alternative to phpadsnew?
>
> Hi there,
>
> I am searching for a way to track advertisment, clickrates on my site.
> So I
> tryed out phpadsnew http://sourceforge.net/projects/phpadsnew/
>
> Unfortunatelly the current beta 7 works only with register globals set
> to
> on. I cant install it in this case, because my application requires this
> to
> be off.
>
> Has anybody a good recomendation on another software to track adds?
>
> Thank you for any hint on that.
>
> andy
>
>
>
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--- End Message ---
--- Begin Message ---
Hi everybody
Can someone tell me what is the PHP equivalent code to ASP's Response.End ?
I want to stop my code at a given position so i need this.

thanks in advance
Raja



--- End Message ---
--- Begin Message ---
http://php.net/die
http://php.net/exit

Both will stop your code. Dead.

Danny.

----- Original Message -----
From: "Ing. Rajesh Kumar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 03, 2002 3:50 PM
Subject: [PHP] what is equivalent to Response.End ?


> Hi everybody
> Can someone tell me what is the PHP equivalent code to ASP's Response.End
?
> I want to stop my code at a given position so i need this.
>
> thanks in advance
> Raja
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
Hi!

try exit() (http://www.php.net/exit) or die() (http://www.php.net/die)

Kindly

/lasso ([EMAIL PROTECTED])



Ing. Rajesh Kumar wrote:
> Hi everybody
> Can someone tell me what is the PHP equivalent code to ASP's Response.End ?
> I want to stop my code at a given position so i need this.
> 
> thanks in advance
> Raja
> 
> 
> 

--- End Message ---
--- Begin Message ---
I have followed the instructions to install php4 on
both apache 1.3.x and 2.0.x, both fail.  I am running
RedHat 7.2, Apache 2.0.39.  I am trying to install
php4.2.2.  When I type 'make install' at the command
it goes through its little thing and then says:
./.libs/libphp4.a(zend_execute.lo): In function
`safe_free_zval_ptr':
/root/php-4.2.2/Zend/zend_execute.h:59: undefined
reference to `ts_resource_ex'
collect2: ld returned 1 exit status
make[1]: *** [php] Error 1
make[1]: Leaving directory `/root/php-4.2.2'
make: *** [install-recursive] Error 1

Can anyone help?
Nick Niehoff

__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
--- End Message ---
--- Begin Message ---
Try this site :
http://www.linuxguruz.org/z.php?id=32&h=php+mysql+apache

Nick Niehoff wrote:

> I have followed the instructions to install php4 on
> both apache 1.3.x and 2.0.x, both fail.  I am running
> RedHat 7.2, Apache 2.0.39.  I am trying to install
> php4.2.2.  When I type 'make install' at the command
> it goes through its little thing and then says:
> ./.libs/libphp4.a(zend_execute.lo): In function
> `safe_free_zval_ptr':
> /root/php-4.2.2/Zend/zend_execute.h:59: undefined
> reference to `ts_resource_ex'
> collect2: ld returned 1 exit status
> make[1]: *** [php] Error 1
> make[1]: Leaving directory `/root/php-4.2.2'
> make: *** [install-recursive] Error 1
>
> Can anyone help?
> Nick Niehoff
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> http://health.yahoo.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---

What is your configure command?

>I have followed the instructions to install php4 on
>both apache 1.3.x and 2.0.x, both fail.  I am running
>RedHat 7.2, Apache 2.0.39.  I am trying to install
>php4.2.2.  When I type 'make install' at the command
>it goes through its little thing and then says:
>./.libs/libphp4.a(zend_execute.lo): In function
>`safe_free_zval_ptr':
>/root/php-4.2.2/Zend/zend_execute.h:59: undefined
>reference to `ts_resource_ex'
>collect2: ld returned 1 exit status
>make[1]: *** [php] Error 1
>make[1]: Leaving directory `/root/php-4.2.2'
>make: *** [install-recursive] Error 1
>
>Can anyone help?
>Nick Niehoff



--- End Message ---
--- Begin Message ---
Is there a way for PHP to look at a local multiple-page .tiff file and find out haw 
many page it has?

Thanks,

Joseph

--- End Message ---
--- Begin Message ---
Hi,

I am am writing a function to color code and indent JavaScript source using
regular expressions and cannot seem to get back referencing working. The
pattern match is successful but the output is a single unrecognised
character (a square).

$string = eregi_replace("<(/?)(scr[^>]*)>", "玣ont color=maroon籠1/font",
$string);

This results in opening and closing <script></script> tags being replaced
with a square being wrapped in font tags. I have this working in Cold Fusion
but cannot seem to convert my scripts to PHP. Can anyone help?

TIA

Phil Ewington.

--- End Message ---
--- Begin Message ---
try

\\1

----- Original Message -----
From: "Phil Ewington" <[EMAIL PROTECTED]>
To: "PHP General" <[EMAIL PROTECTED]>
Sent: Saturday, August 03, 2002 5:03 PM
Subject: [PHP] RegEx (back referencing)


> Hi,
>
> I am am writing a function to color code and indent JavaScript source
using
> regular expressions and cannot seem to get back referencing working. The
> pattern match is successful but the output is a single unrecognised
> character (a square).
>
> $string = eregi_replace("<(/?)(scr[^>]*)>", "玣ont
color=maroon籠1/font",
> $string);
>
> This results in opening and closing <script></script> tags being replaced
> with a square being wrapped in font tags. I have this working in Cold
Fusion
> but cannot seem to convert my scripts to PHP. Can anyone help?
>
> TIA
>
> Phil Ewington.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
If you're trying to get <script>Lots of javascript</script> to look like
<font color="maroon">Lots of javascript</font> then this will be a start

$string = eregi_replace('<(/?)(scr[^>]*)>', '<\\1font
color="maroon">',$string);

This will produce -  <font color="maroon">Lots of javascript</font
color="maroon"> - not perfect, but a start.

Danny.

----- Original Message -----
From: "Phil Ewington" <[EMAIL PROTECTED]>
To: "Danny Shepherd" <[EMAIL PROTECTED]>
Sent: Saturday, August 03, 2002 5:52 PM
Subject: RE: [PHP] RegEx (back referencing)


> \\1 outputs nothing at all wrapped in font tags and closing tags \ wrapped
> in font tags :o(
>
>
>
> > -----Original Message-----
> > From: Danny Shepherd [mailto:[EMAIL PROTECTED]]
> > Sent: 03 August 2002 17:47
> > To: [EMAIL PROTECTED]; PHP General
> > Subject: Re: [PHP] RegEx (back referencing)
> >
> >
> > try
> >
> > \\1
> >
> > ----- Original Message -----
> > From: "Phil Ewington" <[EMAIL PROTECTED]>
> > To: "PHP General" <[EMAIL PROTECTED]>
> > Sent: Saturday, August 03, 2002 5:03 PM
> > Subject: [PHP] RegEx (back referencing)
> >
> >
> > > Hi,
> > >
> > > I am am writing a function to color code and indent JavaScript source
> > using
> > > regular expressions and cannot seem to get back referencing working.
The
> > > pattern match is successful but the output is a single unrecognised
> > > character (a square).
> > >
> > > $string = eregi_replace("<(/?)(scr[^>]*)>", "玣ont
> > color=maroon籠1/font",
> > > $string);
> > >
> > > This results in opening and closing <script></script> tags
> > being replaced
> > > with a square being wrapped in font tags. I have this working in Cold
> > Fusion
> > > but cannot seem to convert my scripts to PHP. Can anyone help?
> > >
> > > TIA
> > >
> > > Phil Ewington.
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>

--- End Message ---
--- Begin Message ---
What's strange is that doing an ord($string) returns 171, which is a '1/2'
char. So why does PHP convert the pattern match??


> -----Original Message-----
> From: Phil Ewington [mailto:[EMAIL PROTECTED]]
> Sent: 03 August 2002 17:04
> To: PHP General
> Subject: [PHP] RegEx (back referencing)
>
>
> Hi,
>
> I am am writing a function to color code and indent JavaScript
> source using
> regular expressions and cannot seem to get back referencing working. The
> pattern match is successful but the output is a single unrecognised
> character (a square).
>
> $string = eregi_replace("<(/?)(scr[^>]*)>", "玣ont
> color=maroon籠1/font",
> $string);
>
> This results in opening and closing <script></script> tags being replaced
> with a square being wrapped in font tags. I have this working in
> Cold Fusion
> but cannot seem to convert my scripts to PHP. Can anyone help?
>
> TIA
>
> Phil Ewington.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---

Reply via email to