Re: [PHP] Size Limit for PHP scripts

2001-03-30 Thread Yasuo Ohgaki

Typo in my post

""Yasuo Ohgaki"" <[EMAIL PROTECTED]> wrote in message
9a3hpe$n1m$[EMAIL PROTECTED]">news:9a3hpe$n1m$[EMAIL PROTECTED]...
SNIP
>
> BTW, do you use multi-type char codeset?

BTW, do you use multi-byte char codeset?

> Regards,
>
> --
> Yasuo Ohgaki



-- 
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] Size Limit for PHP scripts

2001-03-30 Thread Yasuo Ohgaki

If you don't have errata in your script.
I think you got similar experience as I did. I use PHP4.0.4pl1/Apache DSO/Linux

I had a script that will not include files more than 20. PHP silently fails to
include statement like and no output on browser what so ever.
Note: PHP can include files more than 20 files.

I changed
require_once('file_to_include');

to

require('file_to_include');

then it starts working.

It also starts working when I edit few lines in those files for some reason.
After that, I could never reproduce problem, since I didn't save the script
causes this problem.

My suggestion:
1) Try require/include/require_once/include_once, see if it helps.
2) Change your script a bit, see if it helps.

I didn't report this as bug, since I don't have script that causes this problem
now.
I suggest you to report this as a bug and keep scripts that causes this.

BTW, do you use multi-type char codeset?

Regards,

--
Yasuo Ohgaki


""Wally Hartshorn"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
The script I'm calling (member.php) is 41K bytes (1,200 lines)
It includes() global.php, which is 8K bytes (300 lines).
That in turn requires() sessions.php, which is 13K bytes (370 lines).

That makes a total code size at execution of about 62K bytes (1,870 lines).

If I just remove some unused code from member.php, reducing its size to 32K
bytes (940 lines), it works fine. (It isn't that particular code. I could remove
any large section of unused code and it would work.)

Note that global.php is also included by several other scripts, each of which
are much smaller than member.php, and in each of those cases it works fine.

Any ideas? If there isn't a limit within PHP on script size, is there perhaps
some limit within the iPlanet web server on the PHP script size?

Wally

>>> "Cal Evans" <[EMAIL PROTECTED]> 03/30/01 01:53PM >>>
If there is, I've not found it.  I have many pages that include files that
contain class definitions.  My average page includes 8 classes and my
average class is 250-400 lines of code.

Have you debugged your individual scripts first before including them in
other pages?


Cal
http://www.calevans.com


-Original Message-
From: Wally Hartshorn [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 30, 2001 1:53 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Size Limit for PHP scripts


Is there a limit to the size of PHP scripts? I'm having a problem in which
scriptA.php is including() scriptB.php, which then requires() scriptC.php.
The result is that PHP itself dies. If I remove some code from scriptA.php
to reduce the size of the script, it works fine. (The code that I'm removing
wasn't being executed during this testing, so the code itself wasn't the
problem.)

If there is some limit, is there a parameter I can set to change it?

Here's my setup:
  PHP 4.0.4 pl1
  iPlanet 4.1 sp5
  Solaris 2.7
  Sun ES 250, 1GB RAM

Thanks,
Wally Hartshorn


--
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] Size Limit for PHP scripts

2001-03-30 Thread Greg Donald

You might check to see if there is some kind of endless loop, it's not like
PHP to just die without a reason.  Looks like you got plenty of hardware
there, so it must be your code... ;)

> -Original Message-
> From: Wally Hartshorn [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 30, 2001 1:53 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Size Limit for PHP scripts
>
>
> Is there a limit to the size of PHP scripts? I'm having a problem
> in which scriptA.php is including() scriptB.php, which then
> requires() scriptC.php. The result is that PHP itself dies. If I
> remove some code from scriptA.php to reduce the size of the
> script, it works fine. (The code that I'm removing wasn't being
> executed during this testing, so the code itself wasn't the problem.)
>
> If there is some limit, is there a parameter I can set to change it?
>
> Here's my setup:
>   PHP 4.0.4 pl1
>   iPlanet 4.1 sp5
>   Solaris 2.7
>   Sun ES 250, 1GB RAM
>
> Thanks,
> Wally Hartshorn
>
>
> --
> 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] Size Limit for PHP scripts

2001-03-30 Thread Jon Rosenberg

I have scripts over 150KB running just fine.  Maybe it's your execution time
that is too long, try raising it in php.ini and up it from 30 seconds.


- Original Message -
From: "Wally Hartshorn" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, March 30, 2001 4:33 PM
Subject: RE: [PHP] Size Limit for PHP scripts


> The script I'm calling (member.php) is 41K bytes (1,200 lines)
> It includes() global.php, which is 8K bytes (300 lines).
> That in turn requires() sessions.php, which is 13K bytes (370 lines).
>
> That makes a total code size at execution of about 62K bytes (1,870
lines).
>
> If I just remove some unused code from member.php, reducing its size to
32K bytes (940 lines), it works fine. (It isn't that particular code. I
could remove any large section of unused code and it would work.)
>
> Note that global.php is also included by several other scripts, each of
which are much smaller than member.php, and in each of those cases it works
fine.
>
> Any ideas? If there isn't a limit within PHP on script size, is there
perhaps some limit within the iPlanet web server on the PHP script size?
>
> Wally
>
> >>> "Cal Evans" <[EMAIL PROTECTED]> 03/30/01 01:53PM >>>
> If there is, I've not found it.  I have many pages that include files that
> contain class definitions.  My average page includes 8 classes and my
> average class is 250-400 lines of code.
>
> Have you debugged your individual scripts first before including them in
> other pages?
>
>
> Cal
> http://www.calevans.com
>
>
> -Original Message-
> From: Wally Hartshorn [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 30, 2001 1:53 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Size Limit for PHP scripts
>
>
> Is there a limit to the size of PHP scripts? I'm having a problem in which
> scriptA.php is including() scriptB.php, which then requires() scriptC.php.
> The result is that PHP itself dies. If I remove some code from scriptA.php
> to reduce the size of the script, it works fine. (The code that I'm
removing
> wasn't being executed during this testing, so the code itself wasn't the
> problem.)
>
> If there is some limit, is there a parameter I can set to change it?
>
> Here's my setup:
>   PHP 4.0.4 pl1
>   iPlanet 4.1 sp5
>   Solaris 2.7
>   Sun ES 250, 1GB RAM
>
> Thanks,
> Wally Hartshorn
>
>
> --
> 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] Size Limit for PHP scripts

2001-03-30 Thread Michael Kimsal

To reiterate Cal's statement, we've not had issues with PHP size, other than speed.
HUGE scripts take longer to compile and parse, but overall we've been fine.  I've
got scripts that are in excess of 1500 lines, which also include templates and other
classes, which would often put the combined files >100k.  Runs fine on a
128Meg P300.  (ok, not FINE, but adequately, with no crashes).



Wally Hartshorn wrote:

> Is there a limit to the size of PHP scripts? I'm having a problem in which 
>scriptA.php is including() scriptB.php, which then requires() scriptC.php. The result 
>is that PHP itself dies. If I remove some code from scriptA.php to reduce the size of 
>the script, it works fine. (The code that I'm removing wasn't being executed during 
>this testing, so the code itself wasn't the problem.)
>
> If there is some limit, is there a parameter I can set to change it?
>
> Here's my setup:
>   PHP 4.0.4 pl1
>   iPlanet 4.1 sp5
>   Solaris 2.7
>   Sun ES 250, 1GB RAM
>
> Thanks,
> Wally Hartshorn


-- 
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] Size Limit for PHP scripts

2001-03-30 Thread Wally Hartshorn

The script I'm calling (member.php) is 41K bytes (1,200 lines)
It includes() global.php, which is 8K bytes (300 lines).
That in turn requires() sessions.php, which is 13K bytes (370 lines).

That makes a total code size at execution of about 62K bytes (1,870 lines).

If I just remove some unused code from member.php, reducing its size to 32K bytes (940 
lines), it works fine. (It isn't that particular code. I could remove any large 
section of unused code and it would work.)

Note that global.php is also included by several other scripts, each of which are much 
smaller than member.php, and in each of those cases it works fine.

Any ideas? If there isn't a limit within PHP on script size, is there perhaps some 
limit within the iPlanet web server on the PHP script size?

Wally

>>> "Cal Evans" <[EMAIL PROTECTED]> 03/30/01 01:53PM >>>
If there is, I've not found it.  I have many pages that include files that
contain class definitions.  My average page includes 8 classes and my
average class is 250-400 lines of code.

Have you debugged your individual scripts first before including them in
other pages?


Cal
http://www.calevans.com 


-Original Message-
From: Wally Hartshorn [mailto:[EMAIL PROTECTED]] 
Sent: Friday, March 30, 2001 1:53 PM
To: [EMAIL PROTECTED] 
Subject: [PHP] Size Limit for PHP scripts


Is there a limit to the size of PHP scripts? I'm having a problem in which
scriptA.php is including() scriptB.php, which then requires() scriptC.php.
The result is that PHP itself dies. If I remove some code from scriptA.php
to reduce the size of the script, it works fine. (The code that I'm removing
wasn't being executed during this testing, so the code itself wasn't the
problem.)

If there is some limit, is there a parameter I can set to change it?

Here's my setup:
  PHP 4.0.4 pl1
  iPlanet 4.1 sp5
  Solaris 2.7
  Sun ES 250, 1GB RAM

Thanks,
Wally Hartshorn


--
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] Size Limit for PHP scripts

2001-03-30 Thread Cal Evans

If there is, I've not found it.  I have many pages that include files that
contain class definitions.  My average page includes 8 classes and my
average class is 250-400 lines of code.

Have you debugged your individual scripts first before including them in
other pages?


Cal
http://www.calevans.com


-Original Message-
From: Wally Hartshorn [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 30, 2001 1:53 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Size Limit for PHP scripts


Is there a limit to the size of PHP scripts? I'm having a problem in which
scriptA.php is including() scriptB.php, which then requires() scriptC.php.
The result is that PHP itself dies. If I remove some code from scriptA.php
to reduce the size of the script, it works fine. (The code that I'm removing
wasn't being executed during this testing, so the code itself wasn't the
problem.)

If there is some limit, is there a parameter I can set to change it?

Here's my setup:
  PHP 4.0.4 pl1
  iPlanet 4.1 sp5
  Solaris 2.7
  Sun ES 250, 1GB RAM

Thanks,
Wally Hartshorn


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