Re: [PHP] strange bug(?) when opening lots of files
Well, yes many issues about that we were fixed on the 4.2.3 and you should have anyway the latest version of PHP, if your ISP doesn't want to update it, change. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Shane Wright" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi my ISP keeps a little behind the curve - sometimes thats a good thing, but sometimes not. :( We could install our own PHP, but unless this is a known issue that has been fixed since I'd rather not risk any others by installing a new version (and having to deal with the update issues that causes with my ISPs updates) Thanks Shane On Wednesday 18 September 2002 1:20 am, [EMAIL PROTECTED] wrote: > Can't you upgrade to 4.2.3 many bugs were fixed. - -- Shane http://www.shanewright.co.uk/ Public key: http://www.shanewright.co.uk/files/public_key.asc -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9h8gz5DXg6dCMBrQRArHKAJ4w3TjYJpI4ZaRSIi1cXWqOj7DzdwCgu1et ofTLnvU/I9C4RQMNnpvwXIY= =JLHf -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] strange bug(?) when opening lots of files
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi my ISP keeps a little behind the curve - sometimes thats a good thing, but sometimes not. :( We could install our own PHP, but unless this is a known issue that has been fixed since I'd rather not risk any others by installing a new version (and having to deal with the update issues that causes with my ISPs updates) Thanks Shane On Wednesday 18 September 2002 1:20 am, [EMAIL PROTECTED] wrote: > Can't you upgrade to 4.2.3 many bugs were fixed. - -- Shane http://www.shanewright.co.uk/ Public key: http://www.shanewright.co.uk/files/public_key.asc -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9h8gz5DXg6dCMBrQRArHKAJ4w3TjYJpI4ZaRSIi1cXWqOj7DzdwCgu1et ofTLnvU/I9C4RQMNnpvwXIY= =JLHf -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] strange bug(?) when opening lots of files
Can't you upgrade to 4.2.3 many bugs were fixed. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Shane Wright" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thanks for the input - but its definately not that; time limit is set to 600 seconds and it dies inside 1 second :( (i should have added this to the original mail, but it seems to supply the page but keep the connection open, strange...) S On Wednesday 18 September 2002 12:01 am, Tyler Longren wrote: > How long does the script tend to run before it just "quits"? Perhaps > a timeout is set too low in php.ini. > > Take a look at max_execution_time in php.ini > > tyler > > On Tue, 17 Sep 2002 23:14:46 +0100 > > Shane Wright <[EMAIL PROTECTED]> wrote: > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > Hi > > > > One of my pages opens ~100 files, reads from them, and closes them, > > (only one file open at a time). > > > > The problem is that the page just dies mid-way through execution - no > > errors, no segfault, it just dies and returns a blank page to the > > user. the problem goes away if I reduce the number of files accessed. > > > > its a build of PHP 4.1.2 on Linux running as an Apache module, (if it > > makes any odds, the configure line is below). > > > > I can't see anything on bugs.php.net about this - has anyone seen this > > before (and, of course, the crucial question; what can I do to fix > > it?) > > > > Any help appreciated, > > > > Thanks > > > > - -- > > Shane > > http://www.shanewright.co.uk/ > > Public key: http://www.shanewright.co.uk/files/public_key.asc > > > > > > './configure' '--with-gd' '--enable-gd-native-ttf' > > '--enable-track-vars' > > '--enable-sysvsem' '--enable-sysvshm' '--enable-calendar' > > '--with-zlib' '--prefix=/opt/php-4.1' > > '--with-config-file-path=/usr/local/etc/httpd/conf' > > '--enable-memory-limit' '--with-db2=/usr' '--with-db3=/usr' > > '--with-gdbm=/usr' '--with-ndbm=/usr' '--with-dbase' '--with-xml' > > '--with-expat-dir=/usr' '--enable-debugger' '--enable-ftp' > > '--with-ttf' '--with-jpeg-dir=/usr' '--enable-bcmath' '--with-openssl' > > > > '--enable-trans-sid' '--with-mysql=/usr' '--with-xpm-dir=/usr/X11R6' > > '--with-png' '--with-png-dir=/usr' '--with-imap' '--with-dom=/usr' > > '--with-bz2' '--with-curl' '--with-mhash=/usr' '--with-mcrypt=/usr' > > '--with-pgsql' '--with-gmp' '--with-gettext' '--with-iconv' > > '--with-kerberos' '--enable-xslt' '--with-xslt-sablot' > > '--with-freetype-dir=/usr' '--with-apxs=/usr/sbin/apxs' > > -BEGIN PGP SIGNATURE- > > Version: GnuPG v1.0.7 (GNU/Linux) > > > > iD8DBQE9h6lW5DXg6dCMBrQRAhhiAKCIo1xdyyDtx7fT8SO8Xz4bfWOg7QCfdjE3 > > STUVeNEID6bzu4+hq+PqCI4= > > =zZqL > > -END PGP SIGNATURE- > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php - -- Shane http://www.shanewright.co.uk/ Public key: http://www.shanewright.co.uk/files/public_key.asc -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9h8Q85DXg6dCMBrQRApEbAKCIewL9fgwPT1ey3byL2t2pg1BPRACfWJwN rUT+B2yFqGn6e2IO3XAGqeM= =qz1m -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] strange bug(?) when opening lots of files
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thanks for the input - but its definately not that; time limit is set to 600 seconds and it dies inside 1 second :( (i should have added this to the original mail, but it seems to supply the page but keep the connection open, strange...) S On Wednesday 18 September 2002 12:01 am, Tyler Longren wrote: > How long does the script tend to run before it just "quits"? Perhaps > a timeout is set too low in php.ini. > > Take a look at max_execution_time in php.ini > > tyler > > On Tue, 17 Sep 2002 23:14:46 +0100 > > Shane Wright <[EMAIL PROTECTED]> wrote: > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > Hi > > > > One of my pages opens ~100 files, reads from them, and closes them, > > (only one file open at a time). > > > > The problem is that the page just dies mid-way through execution - no > > errors, no segfault, it just dies and returns a blank page to the > > user. the problem goes away if I reduce the number of files accessed. > > > > its a build of PHP 4.1.2 on Linux running as an Apache module, (if it > > makes any odds, the configure line is below). > > > > I can't see anything on bugs.php.net about this - has anyone seen this > > before (and, of course, the crucial question; what can I do to fix > > it?) > > > > Any help appreciated, > > > > Thanks > > > > - -- > > Shane > > http://www.shanewright.co.uk/ > > Public key: http://www.shanewright.co.uk/files/public_key.asc > > > > > > './configure' '--with-gd' '--enable-gd-native-ttf' > > '--enable-track-vars' > > '--enable-sysvsem' '--enable-sysvshm' '--enable-calendar' > > '--with-zlib' '--prefix=/opt/php-4.1' > > '--with-config-file-path=/usr/local/etc/httpd/conf' > > '--enable-memory-limit' '--with-db2=/usr' '--with-db3=/usr' > > '--with-gdbm=/usr' '--with-ndbm=/usr' '--with-dbase' '--with-xml' > > '--with-expat-dir=/usr' '--enable-debugger' '--enable-ftp' > > '--with-ttf' '--with-jpeg-dir=/usr' '--enable-bcmath' '--with-openssl' > > > > '--enable-trans-sid' '--with-mysql=/usr' '--with-xpm-dir=/usr/X11R6' > > '--with-png' '--with-png-dir=/usr' '--with-imap' '--with-dom=/usr' > > '--with-bz2' '--with-curl' '--with-mhash=/usr' '--with-mcrypt=/usr' > > '--with-pgsql' '--with-gmp' '--with-gettext' '--with-iconv' > > '--with-kerberos' '--enable-xslt' '--with-xslt-sablot' > > '--with-freetype-dir=/usr' '--with-apxs=/usr/sbin/apxs' > > -BEGIN PGP SIGNATURE- > > Version: GnuPG v1.0.7 (GNU/Linux) > > > > iD8DBQE9h6lW5DXg6dCMBrQRAhhiAKCIo1xdyyDtx7fT8SO8Xz4bfWOg7QCfdjE3 > > STUVeNEID6bzu4+hq+PqCI4= > > =zZqL > > -END PGP SIGNATURE- > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php - -- Shane http://www.shanewright.co.uk/ Public key: http://www.shanewright.co.uk/files/public_key.asc -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9h8Q85DXg6dCMBrQRApEbAKCIewL9fgwPT1ey3byL2t2pg1BPRACfWJwN rUT+B2yFqGn6e2IO3XAGqeM= =qz1m -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] strange bug(?) when opening lots of files
How long does the script tend to run before it just "quits"? Perhaps a timeout is set too low in php.ini. Take a look at max_execution_time in php.ini tyler On Tue, 17 Sep 2002 23:14:46 +0100 Shane Wright <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi > > One of my pages opens ~100 files, reads from them, and closes them, > (only one file open at a time). > > The problem is that the page just dies mid-way through execution - no > errors, no segfault, it just dies and returns a blank page to the > user. the problem goes away if I reduce the number of files accessed. > > its a build of PHP 4.1.2 on Linux running as an Apache module, (if it > makes any odds, the configure line is below). > > I can't see anything on bugs.php.net about this - has anyone seen this > before (and, of course, the crucial question; what can I do to fix > it?) > > Any help appreciated, > > Thanks > > - -- > Shane > http://www.shanewright.co.uk/ > Public key: http://www.shanewright.co.uk/files/public_key.asc > > > './configure' '--with-gd' '--enable-gd-native-ttf' > '--enable-track-vars' > '--enable-sysvsem' '--enable-sysvshm' '--enable-calendar' > '--with-zlib' '--prefix=/opt/php-4.1' > '--with-config-file-path=/usr/local/etc/httpd/conf' > '--enable-memory-limit' '--with-db2=/usr' '--with-db3=/usr' > '--with-gdbm=/usr' '--with-ndbm=/usr' '--with-dbase' '--with-xml' > '--with-expat-dir=/usr' '--enable-debugger' '--enable-ftp' > '--with-ttf' '--with-jpeg-dir=/usr' '--enable-bcmath' '--with-openssl' > > '--enable-trans-sid' '--with-mysql=/usr' '--with-xpm-dir=/usr/X11R6' > '--with-png' '--with-png-dir=/usr' '--with-imap' '--with-dom=/usr' > '--with-bz2' '--with-curl' '--with-mhash=/usr' '--with-mcrypt=/usr' > '--with-pgsql' '--with-gmp' '--with-gettext' '--with-iconv' > '--with-kerberos' '--enable-xslt' '--with-xslt-sablot' > '--with-freetype-dir=/usr' '--with-apxs=/usr/sbin/apxs' > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.0.7 (GNU/Linux) > > iD8DBQE9h6lW5DXg6dCMBrQRAhhiAKCIo1xdyyDtx7fT8SO8Xz4bfWOg7QCfdjE3 > STUVeNEID6bzu4+hq+PqCI4= > =zZqL > -END PGP SIGNATURE- > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] strange bug(?) when opening lots of files
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi One of my pages opens ~100 files, reads from them, and closes them, (only one file open at a time). The problem is that the page just dies mid-way through execution - no errors, no segfault, it just dies and returns a blank page to the user. the problem goes away if I reduce the number of files accessed. its a build of PHP 4.1.2 on Linux running as an Apache module, (if it makes any odds, the configure line is below). I can't see anything on bugs.php.net about this - has anyone seen this before (and, of course, the crucial question; what can I do to fix it?) Any help appreciated, Thanks - -- Shane http://www.shanewright.co.uk/ Public key: http://www.shanewright.co.uk/files/public_key.asc './configure' '--with-gd' '--enable-gd-native-ttf' '--enable-track-vars' '--enable-sysvsem' '--enable-sysvshm' '--enable-calendar' '--with-zlib' '--prefix=/opt/php-4.1' '--with-config-file-path=/usr/local/etc/httpd/conf' '--enable-memory-limit' '--with-db2=/usr' '--with-db3=/usr' '--with-gdbm=/usr' '--with-ndbm=/usr' '--with-dbase' '--with-xml' '--with-expat-dir=/usr' '--enable-debugger' '--enable-ftp' '--with-ttf' '--with-jpeg-dir=/usr' '--enable-bcmath' '--with-openssl' '--enable-trans-sid' '--with-mysql=/usr' '--with-xpm-dir=/usr/X11R6' '--with-png' '--with-png-dir=/usr' '--with-imap' '--with-dom=/usr' '--with-bz2' '--with-curl' '--with-mhash=/usr' '--with-mcrypt=/usr' '--with-pgsql' '--with-gmp' '--with-gettext' '--with-iconv' '--with-kerberos' '--enable-xslt' '--with-xslt-sablot' '--with-freetype-dir=/usr' '--with-apxs=/usr/sbin/apxs' -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9h6lW5DXg6dCMBrQRAhhiAKCIo1xdyyDtx7fT8SO8Xz4bfWOg7QCfdjE3 STUVeNEID6bzu4+hq+PqCI4= =zZqL -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Strange bug
Hi, I was having some problems with my PHP files (the first 3 HTML lines missing and Netscape trying to save the page to disk instead of showing it). So, I telnet'd my web server and manually issued a GET as follows: GET /anglers/index.php HTTP/1.1 And this was the response: HTTP/1.0 200 OK Date: Tue, 04 Dec 2001 21:09:57 GMT Server: WebSitePro/2.4.9 Accept-ranges: bytes Anglers Aventuras \ Inicio etc. etc... Note the CRLFs missing after the headers :-/ So the browser -naturally- understand those HTML remarks as being part of the header, and the HTML starting after those two CRLF I have in my HTML file. I know I can "fix" this just typing two CRLFs at the very beggining of my PHP file, but I'm not supposed to do that. And even if I do that, the header is still incomplete (i.e. mime type missing). This happens with 2 different servers, both running WebSite Pro 2.4 and PHP 4.0.6 (one Windows 2000 Advanced Server and the other Windows XP Pro). Is this a PHP bug, a WebSite bug or my code? I don't think I screwed something up because I'm not playing with the headers here. Any ideas? Regards, Ernesto -- 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]