RE: [PHP] Small LAMP install/distro

2007-06-22 Thread Warren Vail
I can recommend Fedora Core 6, it has more uptodate Apache, PHP and MySQL, than does Red Hat Enterprise 4, which is what the company I consult for installed on their VM-ware environment. We spent a lot of time upgrading everything on the VM Host because the RH Enterprise was so far behind. I run

Re: [PHP] open a file in a folder without knowing the filename

2007-06-22 Thread Zoltán Németh
2007. 06. 21, csütörtök keltezéssel 20.07-kor Tijnema ezt írta: On 6/21/07, Dan [EMAIL PROTECTED] wrote: Seconded :D Cool, please go to the following url and clickthe button: http://gpcc.tijnema.info/ I clicked, although I don't use gmail - but I might register an account for use with

[PHP] Encoding of PHP files

2007-06-22 Thread Guus Ellenkamp
What encoding should a PHP file itself have (so not it's output setting). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Encoding of PHP files

2007-06-22 Thread Guus Ellenkamp
What encoding should a PHP file itself have (so not it's output setting). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] open a file in a folder without knowing the filename

2007-06-22 Thread Tijnema
On 6/22/07, Zoltán Németh [EMAIL PROTECTED] wrote: 2007. 06. 21, csütörtök keltezéssel 20.07-kor Tijnema ezt írta: On 6/21/07, Dan [EMAIL PROTECTED] wrote: Seconded :D Cool, please go to the following url and clickthe button: http://gpcc.tijnema.info/ I clicked, although I don't use

Re: [PHP] Small LAMP install/distro

2007-06-22 Thread Tijnema
On 6/22/07, Warren Vail [EMAIL PROTECTED] wrote: I can recommend Fedora Core 6, it has more uptodate Apache, PHP and MySQL, than does Red Hat Enterprise 4, which is what the company I consult for installed on their VM-ware environment. We spent a lot of time upgrading everything on the VM Host

Re: [PHP] PHP Color Coding in Gmail (was: open a file in a folder without knowing the filename)

2007-06-22 Thread Tijnema
On 6/22/07, Greg Donald [EMAIL PROTECTED] wrote: On 6/21/07, Tijnema [EMAIL PROTECTED] wrote: Cool, please go to the following url and clickthe button: http://gpcc.tijnema.info/ Where's the 'no' option ? I call shenanigans. -- Greg Donald Close the window ;) Tijnema -- Vote for PHP

Re: [PHP] open a file in a folder without knowing the filename

2007-06-22 Thread Tijnema
On 6/22/07, Christian Hänsel [EMAIL PROTECTED] wrote: Tijnema [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] On 6/22/07, Zoltán Németh [EMAIL PROTECTED] wrote: 2007. 06. 21, csütörtök keltezéssel 20.07-kor Tijnema ezt írta: On 6/21/07, Dan [EMAIL PROTECTED] wrote: Seconded

Re: [PHP] open a file in a folder without knowing the filename

2007-06-22 Thread Christian Hänsel
Tijnema [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] On 6/22/07, Zoltán Németh [EMAIL PROTECTED] wrote: 2007. 06. 21, csütörtök keltezéssel 20.07-kor Tijnema ezt írta: On 6/21/07, Dan [EMAIL PROTECTED] wrote: Seconded :D Cool, please go to the following url and clickthe

Re: [PHP] Encoding of PHP files

2007-06-22 Thread Richard Heyes
Guus Ellenkamp wrote: What encoding should a PHP file itself have (so not it's output setting). Plain ASCII AFAIK. -- Richard Heyes 0844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] func_$var() in PHP4?

2007-06-22 Thread Tijnema
Hi all, How can I get this in PHP4? I used this in PHP5: ?php class ABC { function func_a() { return a; } function func_b() { return b; } } $abc = new ABC(); $var = a; $result = $abc-func_$var(); // Line 17 ? In PHP5 $result contains a here, but in PHP4 I get this error: Parse error: syntax

Re: [PHP] func_$var() in PHP4?

2007-06-22 Thread Stut
Tijnema wrote: Hi all, How can I get this in PHP4? I used this in PHP5: ?php class ABC { function func_a() { return a; } function func_b() { return b; } } $abc = new ABC(); $var = a; $result = $abc-func_$var(); // Line 17 ? In PHP5 $result contains a here, but in PHP4 I get this error: Parse

Re: [PHP] PHP calling an ISAPI Extension

2007-06-22 Thread Tijnema
On 6/20/07, Tijnema [EMAIL PROTECTED] wrote: On 6/19/07, Dan [EMAIL PROTECTED] wrote: Whoops, it turned out just to be a line wrapping problem, it was putting an extra space in. I have it working now, but after every request I get back the returning header in my result to it looks like

Re: [PHP] func_$var() in PHP4?

2007-06-22 Thread Tijnema
On 6/22/07, Stut [EMAIL PROTECTED] wrote: Tijnema wrote: Hi all, How can I get this in PHP4? I used this in PHP5: ?php class ABC { function func_a() { return a; } function func_b() { return b; } } $abc = new ABC(); $var = a; $result = $abc-func_$var(); // Line 17 ? In

Re: [PHP] Encoding of PHP files

2007-06-22 Thread Jochem Maas
Richard Heyes wrote: Guus Ellenkamp wrote: What encoding should a PHP file itself have (so not it's output setting). Plain ASCII AFAIK. huh? I generally save my files in the same encoding as the output encoding of the site, this is so that literal strings are output correctly. -- PHP

Re: [PHP] Small LAMP install/distro

2007-06-22 Thread tg-php
First, funny that you say that from a Gmail account, where top-posting is encouraged by the mail system. Second, and not to get into a big discussion about top vs bottom posting, but I top-post because typically if I'm involved in a conversation, I know what's been said already and don't want

Re: [PHP] Small LAMP install/distro

2007-06-22 Thread Jim Lucas
[EMAIL PROTECTED] wrote: Thanks for the suggestions.. but again, the question wasn't what distro of linux to use. And I don't mind upgrading things. The question is what would someone recommend for a really small distro of linux preferably with the bare essentials + apache, mysql, php and

Re: [PHP] Small LAMP install/distro

2007-06-22 Thread Daniel Brown
My thoughts exactly, TG. I was just thinking about that this morning, in fact --- exactly the stuff you said. That aside, I started using a DSL/Knoppix distro to modify to automatically install a server environment as opposed to the desktop environment. As such, without the need for a

Re: [PHP] Small LAMP install/distro

2007-06-22 Thread tg-php
Excellent information Jim! Thanks a ton! I really wish I knew linux more intimately so I knew what was a vital organ and what was an appendix :) Your suggestions sound like exactly what I'm looking for. Greatly appreciated! Actually.. one question. Won't it try to set up a swap partition?

Re: [PHP] Small LAMP install/distro

2007-06-22 Thread Jim Lucas
[EMAIL PROTECTED] wrote: Excellent information Jim! Thanks a ton! I really wish I knew linux more intimately so I knew what was a vital organ and what was an appendix :) Your suggestions sound like exactly what I'm looking for. Greatly appreciated! Actually.. one question. Won't it try

Re: [PHP] Encoding of PHP files

2007-06-22 Thread Richard Heyes
Jochem Maas wrote: Richard Heyes wrote: Guus Ellenkamp wrote: What encoding should a PHP file itself have (so not it's output setting). Plain ASCII AFAIK. huh? I generally save my files in the same encoding as the output encoding of the site, this is so that literal strings are output

Re: [PHP] Small LAMP install/distro

2007-06-22 Thread Robert Cummings
Don't you punks read the archives?? http://marc.info/?l=php-generalm=106579709910174w=2 http://marc.info/?l=php-generalm=107902806617669w=2 http://marc.info/?l=php-generalm=109556769132522w=2 There's always someone who gets their nickers all bunched up with respect to top posting :B

RE: [PHP] Small LAMP install/distro

2007-06-22 Thread tg-php
Thanks for the suggestions.. but again, the question wasn't what distro of linux to use. And I don't mind upgrading things. The question is what would someone recommend for a really small distro of linux preferably with the bare essentials + apache, mysql, php and samba. Failing that, I'll

Re: [PHP] Small LAMP install/distro

2007-06-22 Thread Jim Lucas
Jim Lucas wrote: [EMAIL PROTECTED] wrote: Excellent information Jim! Thanks a ton! I really wish I knew linux more intimately so I knew what was a vital organ and what was an appendix :) one other thing. fedore + yum will do all the work for you with regards to decencies and system

Re: [PHP] Small LAMP install/distro

2007-06-22 Thread Tijnema
A: Because it breaks the logical sequence of discussion. Q: Why is top posting bad? This explains everything ^^^ On 6/22/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: First, funny that you say that from a Gmail account, where top-posting is encouraged by the mail system. All email clients

Re: [PHP] Problems with matrix

2007-06-22 Thread Tijnema
On 6/22/07, Andres Rojas [EMAIL PROTECTED] wrote: Hi all, I'm new in PHP programming and I have a problem with this script. I need to read a large file around 2Mb and several lines (28000). All start Ok, but suddenly the script stop without message error. ?php $fichero=62007lg.txt;

Re: [PHP] Small LAMP install/distro

2007-06-22 Thread Jim Lucas
[EMAIL PROTECTED] wrote: Excellent information Jim! Thanks a ton! I really wish I knew linux more intimately so I knew what was a vital organ and what was an appendix :) Your suggestions sound like exactly what I'm looking for. Greatly appreciated! Actually.. one question. Won't it try

Re: [PHP] fsockopen problems

2007-06-22 Thread Tijnema
On 6/22/07, Ray [EMAIL PROTECTED] wrote: hello, I'm having some problems with fsockopen and was hopping for some help. I try to connect to a host via fsockopen and I get getaddrinfo failed errors, but if I try fsockopen with google, everything works. sample test code

[PHP] working with a pdf file and a mysql query

2007-06-22 Thread Mike Ryan
I have created a pdf form with php that prints out one record using php_show_xy statements but when I try to print out a query with multiple lines of data I get an error that reads Fatal error: Uncaught exception 'PDFlibException' with message 'Function must not be called in 'object' scope' in

[PHP] Problems with matrix

2007-06-22 Thread Andres Rojas
Hi all, I'm new in PHP programming and I have a problem with this script. I need to read a large file around 2Mb and several lines (28000). All start Ok, but suddenly the script stop without message error. ?php $fichero=62007lg.txt; $buffer = file($fichero); $lineas =

[PHP] ftp_get() problem

2007-06-22 Thread Phil Curry
New to php and this list. Googled a lot and scoured newsgroups to no avail. So now I'm here looking for an answer. Here's my offending line: $gotFile = ftp_get( $connection, $destination, $source, FTP_BINARY ); Just prior to execution all parameters have valid values. The following

Re: [PHP] ftp_get() problem

2007-06-22 Thread Tijnema
On 6/22/07, Phil Curry [EMAIL PROTECTED] wrote: New to php and this list. Googled a lot and scoured newsgroups to no avail. So now I'm here looking for an answer. Here's my offending line: $gotFile = ftp_get( $connection, $destination, $source, FTP_BINARY ); Just prior to execution all

Re: [PHP] Strange Fatal Error Possibly Memory

2007-06-22 Thread Dan
Tijnema [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 6/21/07, Dan [EMAIL PROTECTED] wrote: I'm using Delphi4PHP so a lot of the code is prewritten components, libraries, etc. Here's some code that I can post without giving away too much. As you can see it's not your typical

Re: [PHP] working with a pdf file and a mysql query

2007-06-22 Thread Tijnema
On 6/22/07, Mike Ryan [EMAIL PROTECTED] wrote: I have created a pdf form with php that prints out one record using php_show_xy statements but when I try to print out a query with multiple lines of data I get an error that reads Fatal error: Uncaught exception 'PDFlibException' with message

Re: [PHP] Strange Fatal Error Possibly Memory

2007-06-22 Thread Tijnema
On 6/22/07, Dan [EMAIL PROTECTED] wrote: Tijnema [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 6/21/07, Dan [EMAIL PROTECTED] wrote: I'm using Delphi4PHP so a lot of the code is prewritten components, libraries, etc. Here's some code that I can post without giving away too

Re: [PHP] ftp_get() problem

2007-06-22 Thread Tijnema
On 6/22/07, Phil Curry [EMAIL PROTECTED] wrote: Oops forgot that part. Yes If I use an ftp client or just command line ftp I can get the file. That's why I thought it must be my code. -Phil Curry And what about the local file? Does PHP has the rights to create the local file? Does this work:

Re: [PHP] fsockopen problems

2007-06-22 Thread Ray
On Friday 22 June 2007 10:59 am, Tijnema wrote: On 6/22/07, Ray [EMAIL PROTECTED] wrote: hello, I'm having some problems with fsockopen and was hopping for some help. I try to connect to a host via fsockopen and I get getaddrinfo failed errors, but if I try fsockopen with google,

Re: [PHP] Problems with matrix

2007-06-22 Thread Andres Rojas
On Fri, 22 Jun 2007 18:09:02 +0100 Tijnema wrote: On 6/22/07, Andres Rojas [EMAIL PROTECTED] wrote: Hi all, I'm new in PHP programming and I have a problem with this script. I need to read a large file around 2Mb and several lines (28000). All start Ok, but suddenly the script stop without

[PHP] ftp_get() Pt2

2007-06-22 Thread Phil Curry
Oops. Forgot to mention If I use an ftp client of ftp from the command line, I can 'get' the file. This is why I thought it was my code. Thanks. -Phil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Small LAMP install/distro

2007-06-22 Thread tg-php
Thanks again for the info, Jim. will look into the 'install to flash drive' information. Technically that's not what I'm doing, just want to store the virtual machine on the flash drive, but the installation instructions should be tight enough to be pertinent still. I think you got close

Re: [PHP] Small LAMP install/distro

2007-06-22 Thread tg-php
logic is subjective. When I read Because it breaks the logical sequence of discussion., I already knew what you were talking about without having to read the question.. because I knew what was being discussed in this thread. If it wasn't an answer to my original question, then it was about

[PHP] fsockopen problems

2007-06-22 Thread Ray
hello, I'm having some problems with fsockopen and was hopping for some help. I try to connect to a host via fsockopen and I get getaddrinfo failed errors, but if I try fsockopen with google, everything works. sample test code

Re: [PHP] Strange Fatal Error Possibly Memory

2007-06-22 Thread Dan
Actually I went through and commented out all my code, releasing functions from the huge comment as I ran the code and didn't see the error. I came down to two functions which has function names that apparently were STILL bad, I don't know what names are reserved in D4PHP so I guess I'll have

Re: [PHP] Small LAMP install/distro

2007-06-22 Thread Stut
[EMAIL PROTECTED] wrote: logic is subjective. When I read Because it breaks the logical sequence of discussion., I already knew what you were talking about without having to read the question.. because I knew what was being discussed in this thread. If it wasn't an answer to my original

[PHP] generate an etag header that apache can subsequently use, how?

2007-06-22 Thread Jochem Maas
I have an image.php script that generates images on the fly, way back when this didn't even cache it's result! over time it's got better and better so that now it caches resampled images and outputs Last-Modified headers so that it can send subsequent requests and send out a 304 if appropriate.

Re: [PHP] PHP Color Coding in Gmail (was: open a file in a folder without knowing the filename)

2007-06-22 Thread Justin P. Goldberg
On 6/21/07, Tijnema [EMAIL PROTECTED] wrote: On 6/21/07, Justin P. Goldberg [EMAIL PROTECTED] wrote: Matt Cutts blogged about color-coding messages in his inbox like Mutt does, http://www.mattcutts.com/blog/keep-it-coming-gmail/ and the solution he found,

[PHP] Re: generate an etag header that apache can subsequently use, how?

2007-06-22 Thread M. Sokolewicz
hey Jochem, as far as I can see, this should work for you: ?php $stats = stat('/dev/shm/file'); $etag = sprintf('%x-%x-%x', $stats['ino'], $stats['size'], $stats['mtime']); // lowercase hexadecimal numbers separated by dashes header('Etag: '.$etag); ? Assuming your apache is configured to use

Re: [PHP] PHP Color Coding in Gmail (was: open a file in a folder without knowing the filename)

2007-06-22 Thread Tijnema
On 6/22/07, Justin P. Goldberg [EMAIL PROTECTED] wrote: On 6/21/07, Tijnema [EMAIL PROTECTED] wrote: On 6/21/07, Justin P. Goldberg [EMAIL PROTECTED] wrote: Matt Cutts blogged about color-coding messages in his inbox like Mutt does, http://www.mattcutts.com/blog/keep-it-coming-gmail/

Re: [PHP] PHP calling an ISAPI Extension

2007-06-22 Thread Tijnema
On 6/22/07, FrozenDice [EMAIL PROTECTED] wrote: I came up with a what I presume to be quicker way of doing this by knowing the format. Since the headers always have \r\n after each line, then a blank line before the content I made this little bit of code. $explodedResult =

Re: [PHP] Small LAMP install/distro

2007-06-22 Thread Tijnema
On 6/22/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: logic is subjective. When I read Because it breaks the logical sequence of discussion., I already knew what you were talking about without having to read the question.. because I knew what was being discussed in this thread. If it wasn't

Re: [PHP] Small LAMP install/distro

2007-06-22 Thread Tijnema
On 6/22/07, Stut [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: logic is subjective. When I read Because it breaks the logical sequence of discussion., I already knew what you were talking about without having to read the question.. because I knew what was being discussed in this thread.

Re: [PHP] PHP calling an ISAPI Extension

2007-06-22 Thread Tijnema
On 6/22/07, FrozenDice [EMAIL PROTECTED] wrote: What do you mean not all the data is sent at once? I'm doing a http request, the browser responds sending back the code for the page. I've never heard of it sending back multiple responses. Plus I'm controling what the server sends from the ISAPI

Re: [PHP] PHP calling an ISAPI Extension

2007-06-22 Thread FrozenDice
On 6/22/07, Tijnema [EMAIL PROTECTED] wrote: On 6/22/07, FrozenDice [EMAIL PROTECTED] wrote: What do you mean not all the data is sent at once? I'm doing a http request, the browser responds sending back the code for the page. I've never heard of it sending back multiple responses. Plus I'm

Re: [PHP] PHP Color Coding in Gmail (was: open a file in a folder without knowing the filename)

2007-06-22 Thread Jim Lucas
To all Has http://pastebin.com/ already been forgotten about? Just think about the amount of space that would be saved it people would post code there first and then link it in there email. It might hurt some that are not running on the net when they check their email, but it does have code

Re: [PHP] PHP Color Coding in Gmail (was: open a file in a folder without knowing the filename)

2007-06-22 Thread Tijnema
On 6/23/07, Jim Lucas [EMAIL PROTECTED] wrote: To all Has http://pastebin.com/ already been forgotten about? Just think about the amount of space that would be saved it people would post code there first and then link it in there email. It might hurt some that are not running on the net when

Re: [PHP] Re: generate an etag header that apache can subsequently use, how?

2007-06-22 Thread Jochem Maas
hi Tul, thanks for the feedback ... can I borrow your brain for a little longer? M. Sokolewicz wrote: hey Jochem, as far as I can see, this should work for you: ?php $stats = stat('/dev/shm/file'); $etag = sprintf('%x-%x-%x', $stats['ino'], $stats['size'], $stats['mtime']); //

[PHP] waxy ramblings [was:] Re: [PHP] Re: php framework, large site

2007-06-22 Thread Jochem Maas
Daniel Brown wrote: My Spam filter got sick from over-eating. didn't your mother ever tell not to eat the crayons? :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Man Lebt nur einmal - probiers aus !

2007-06-22 Thread Tijnema
On 6/23/07, Fernando Cosso [EMAIL PROTECTED] wrote: SPAAM And under which category falls above message? SPAM?? -- Vote for PHP Color Coding in Gmail! - http://gpcc.tijnema.info -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] HTML tags in MySQL

2007-06-22 Thread tedd
Hi gang: I have a client who over the years thought it was great to enter html tags directly into his database via his CMS for display in his web site. Now, he has a mess with some data being shown one way, when he wants it shown another. Plus, not all the tags are well formed and some are

Re: [PHP] HTML tags in MySQL

2007-06-22 Thread Robert Cummings
On Sat, 2007-06-23 at 00:16 -0400, tedd wrote: Hi gang: I have a client who over the years thought it was great to enter html tags directly into his database via his CMS for display in his web site. Now, he has a mess with some data being shown one way, when he wants it shown another.

Re: [PHP] HTML tags in MySQL

2007-06-22 Thread Larry Garfield
You can use something like html_tidy to make the code sane, and strip_tags() to remove tags you don't want him using for whatever reason. As for changing b to i because the style guide changed, well, you're on your own there without some really trippy regexing that is well beyond my