php-general Digest 19 Dec 2006 17:27:13 -0000 Issue 4523

2006-12-19 Thread php-general-digest-help
php-general Digest 19 Dec 2006 17:27:13 - Issue 4523 Topics (messages 245996 through 246030): Re: ECHO 245996 by: Casey Chu 245997 by: Fahad Pervaiz 245998 by: Casey Chu 245999 by: Fahad Pervaiz 246003 by: Chris 246006 by: Paul Novitski

php-general Digest 20 Dec 2006 07:02:11 -0000 Issue 4524

2006-12-19 Thread php-general-digest-help
php-general Digest 20 Dec 2006 07:02:11 - Issue 4524 Topics (messages 246031 through 246057): Re: Video question 246031 by: IG 246034 by: bruce 246052 by: tedd 246054 by: tg-php.gryffyndevelopment.com 246056 by: Casey Chu Re: Recomended host

Re: [PHP] ECHO

2006-12-19 Thread Jochem Maas
Fahad Pervaiz wrote: ECHO is a language construct but still is there any work around to override it or change its functionality??? if your willing to hack the php source then you can pretty much do whatever you want; that said there is no mechanism for overriding echo or any other language

Re: [PHP] heredoc

2006-12-19 Thread Jochem Maas
clr wrote: Please can someone advise me on heredoc and its shortcommings, I am designing a complex site and elected to use DIV's as opposed to frames. Heredoc seems to be ideal in that I can do all processing first and then layout with relative ease. I would say go right ahead and use

Re: [PHP] How php works?

2006-12-19 Thread Robert Cummings
On Mon, 2006-12-18 at 19:42 -0600, Larry Garfield wrote: On Monday 18 December 2006 15:20, Richard Lynch wrote: Put it this way: In 2000, if somebody wanted to embed the ZE in a commercial product, Zend was planning on charging for it. I dunno what their license for the ZE reads like

Re: [PHP] DOMDocument Size limit

2006-12-19 Thread Bernhard Zwischenbrugger
Hi When calling |-createElement($name, $value) My content is truncated to around 4k. If what is in $value is less than 4000 bytes then it works fine but if it is more, the data is truncated. Is there a setting I don't know about that will change that limit? I need it to be more like

Re: [PHP] Re: ECHO

2006-12-19 Thread Satyam
You could use the PHP Compiler: http://phpcompiler.org/ and do a preprocessor as I did: http://www.satyam.com.ar/pht/. PHC is capable of compiling a PHP source and return a modified PHP source. It is easy to make a plugin for any such modifications, there is a class which gets instantiated

[PHP] Re: ECHO

2006-12-19 Thread Fahad Pervaiz
Thank you Satyam for you help! i think this is the rite solution On 12/19/06, Satyam [EMAIL PROTECTED] wrote: You could use the PHP Compiler: http://phpcompiler.org/ and do a preprocessor as I did: http://www.satyam.com.ar/pht/. PHC is capable of compiling a PHP source and return a modified

[PHP] Which PHP-script crashes my server?

2006-12-19 Thread Philipp Schwarz
Hi guys, I have a problem with my webserver. It is a server for me and some web projekts of my friends. And there is one PHP script which kills the whole server, but I do not know which one it is. When the server is going down one apache process uses 99% CPU and memory. In this case I can

RE: [PHP] Which PHP-script crashes my server?

2006-12-19 Thread Vincent DUPONT
hello, could you tell us more about our webserver? Linux or windows? vincent -Original Message- From: Philipp Schwarz [mailto:[EMAIL PROTECTED] Sent: Tue 19/12/2006 14:05 To: php-general@lists.php.net Subject: [PHP] Which PHP-script crashes my server? Hi guys, I have a problem with

Re: [PHP] Which PHP-script crashes my server?

2006-12-19 Thread Philipp Schwarz
Linux, of course. :-) It is a Gentoo server with Confixx Pro on it. The PHP safe mode is disabled for some accounts, so it is clear that problems like this happen. But I can not enable it because of several scripts. Thats all I know. I dit not setup the server. If you need some special

Re: [PHP] Which PHP-script crashes my server?

2006-12-19 Thread Jochem Maas
Philipp Schwarz wrote: Linux, of course. :-) It is a Gentoo server with Confixx Pro on it. The PHP safe mode is disabled for some accounts, so it is clear that problems like this happen. But I can not enable it because of several scripts. what has safe_mode (which fails miserably in being

Re: [PHP] Which PHP-script crashes my server?

2006-12-19 Thread Patrik Jansson
Hi, You could enable server-status in Apache configuration then you should be able to wget server status each minute (30 seconds?) by a cron-job. When the server is going down, check that particular file. You might want the cron-job to store each result in a new file so the cron job doesn't

Re: [PHP] Which PHP-script crashes my server?

2006-12-19 Thread dave
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi, you should check your php script for infinite loops, this is a common problem in this cases. Patrik Jansson wrote: Hi, You could enable server-status in Apache configuration then you should be able to wget server status each minute (30

[PHP] R: Re: [PHP] Which PHP-script crashes my server?

2006-12-19 Thread David Restall - System Administrator
Hi Phil, Linux, of course. :-) It is a Gentoo server with Confixx Pro on it. The PHP safe mode is disabled for some accounts, so it is clear that problems like this happen. But I can not enable it because of several scripts. Thats all I know. I dit not setup the server. If you need some

Re: [PHP] How php works?

2006-12-19 Thread Larry Garfield
On Tuesday 19 December 2006 02:12, Robert Cummings wrote: Is that why the PHP License is non-GPL compatible, or is there a different reason for that? (That's always bugged me, personally.) PHP and license has less restrictions... it is not viral. You can for the most part do as you please

Re: [PHP] How php works?

2006-12-19 Thread Rory Browne
That's nice. It's also not what I asked. I asked what it was that made it GPL-incompatible. 6. Redistributions of any form whatsoever must retain the following acknowledgment: This product includes PHP software, freely available from http://www.php.net/software/. I don't

RE: [PHP] How php works?

2006-12-19 Thread Kristen G. Thorson
-Original Message- From: Larry Garfield [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 19, 2006 10:26 AM To: php-general@lists.php.net Subject: Re: [PHP] How php works? On Tuesday 19 December 2006 02:12, Robert Cummings wrote: Is that why the PHP License is non-GPL

Re: [PHP] How php works?

2006-12-19 Thread Robert Cummings
On Tue, 2006-12-19 at 09:25 -0600, Larry Garfield wrote: On Tuesday 19 December 2006 02:12, Robert Cummings wrote: Is that why the PHP License is non-GPL compatible, or is there a different reason for that? (That's always bugged me, personally.) PHP and license has less

[PHP] Video question

2006-12-19 Thread John Messam
How do I display video on my php page and prevent the video from being downloaded. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Video question

2006-12-19 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-12-19 11:08:26 -0500: How do I display video on my php page and prevent the video from being downloaded. You cannot. -- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW. Cause you weren't THERE.

Re: [PHP] Video question

2006-12-19 Thread Jochem Maas
John Messam wrote: How do I display video on my php page and prevent the video from being downloaded. if you want to display something/anything it needs to be downloaded to the client (browser) ... this is rather fundamental. if your actually looking for some kind of DRM solution then your

Re: [PHP] Video question

2006-12-19 Thread IG
John Messam wrote: How do I display video on my php page and prevent the video from being downloaded. You'll need to be more specific than this. What video format are you using? The only way to stop it from being downloaded is by streaming the video, and even then it is possible if you have

Re: [PHP] Recomended host

2006-12-19 Thread tedd
At 3:50 PM -0500 12/18/06, [EMAIL PROTECTED] wrote: I'm going to be controversial here and take issue with both of you. 2. Pointing out someone's signature as being off topic is even further off topic for this list. Please take personal issues into private email. I bring it up publicly as a

[PHP] Are PHP5 features worth it?

2006-12-19 Thread Niels
Hi list, I'm writing a PHP program and I've got a number of concerns. The program is about 20 KLOC at the moment, but will probably grow quite a lot. I'm using OOP throughout, and I don't really have a lot of problems with what PHP4 can do with OOP. PHP5 does have a nice feature or two,

RE: [PHP] Video question

2006-12-19 Thread bruce
hi ig... in actuallity, there's really nothing (technical) preventing me from capturing the streamed content and saving it on my box... preventing someone from capturing content that you want them to see is pretty much impossible. -Original Message- From: IG [mailto:[EMAIL PROTECTED]

Re: [PHP] Are PHP5 features worth it?

2006-12-19 Thread Robert Cummings
On Tue, 2006-12-19 at 19:05 +0100, Niels wrote: Hi list, I'm writing a PHP program and I've got a number of concerns. The program is about 20 KLOC at the moment, but will probably grow quite a lot. I'm using OOP throughout, and I don't really have a lot of problems with what PHP4 can do

Re: [PHP] heredoc

2006-12-19 Thread Micky Hulse
I think I have come across situations where heredoc is the most useful/best solution... although, I can not remember any specific examples... I would hate to see it deprecated... I find it very useful from time to time. :) -- Wishlist: http://snipurl.com/vrs9 Switch:

[PHP] [an attempt to inject a bit of humor back into the situation] Re: [PHP] Recomended host

2006-12-19 Thread Jochem Maas
tedd wrote: At 3:50 PM -0500 12/18/06, [EMAIL PROTECTED] wrote: I'm going to be controversial here and take issue with both of you. 2. Pointing out someone's signature as being off topic is even further off topic for this list. Please take personal issues into private email. I bring it up

[PHP] Re: [an attempt to inject a bit of humor back into the situation] Re: [PHP] Recomended host

2006-12-19 Thread tg-php
I hate you all. Screw PHP. I'm switching to Cold Fusion. :) PS. Puppies are good with ketchup. = = = Original message = = = tedd wrote: At 3:50 PM -0500 12/18/06, [EMAIL PROTECTED] wrote: I'm going to be controversial here and take issue with both of you. 2. Pointing out someone's

Re: [PHP] Re: [an attempt to inject a bit of humor back into the situation] Re: [PHP] Recomended host

2006-12-19 Thread Jochem Maas
[EMAIL PROTECTED] wrote: I hate you all. Screw PHP. I'm switching to Cold Fusion. spoken like a true masochist :-) :) PS. Puppies are good with ketchup. I have 2 totally unrelated rebounds to that (no. 2 being for real sicko's :-P). 1. try bearnaise for a sophisticated twist. 2.

Re: [PHP] problem loading phpinfo

2006-12-19 Thread Richard Lynch
On Tue, December 19, 2006 2:42 am, [EMAIL PROTECTED] wrote: I am very grateful that you had the time to reply also your reply was very quick, this is the kind support you don't get from most other open source. In regard to the problem with phpinfo, I had same problem, but it is not because

Re: [PHP] Re: [an attempt to inject a bit of humor back into the situation] Re: [PHP] Recomended host

2006-12-19 Thread Robert Cummings
On Tue, 2006-12-19 at 16:01 -0500, [EMAIL PROTECTED] wrote: Merry Christmas Everyone! and I mean everyone (even Eight-of-Nine ;-) INSENSITIVE CLOD!!! I practice animism! Rob. -- .. | InterJinn Application Framework -

Re: [PHP] Re: [an attempt to inject a bit of humor back into the situation] Re: [PHP] Recomended host

2006-12-19 Thread Jochem Maas
Robert Cummings wrote: On Tue, 2006-12-19 at 16:01 -0500, [EMAIL PROTECTED] wrote: Merry Christmas Everyone! and I mean everyone (even Eight-of-Nine ;-) INSENSITIVE CLOD!!! I practice animism! your catching on ... about the insensitivity that is ;-) Rob. -- PHP General Mailing List

Re: [PHP] Are PHP5 features worth it?

2006-12-19 Thread Frank M. Kromann
PHP5 is more than just OO features, SimpleXML, SPL, Filter and the newly added Date/Time functions just to mention a few. If you need any of those PHP5 is the way to go. The first version of PHP5 was released in 2004, so it's been arround for a while now. In most cases you can still use the old

[PHP] Payflow and Php5 on FreeBSD

2006-12-19 Thread Dave
Hello, I'm trying to get payflow working with php5 as a loadable extension. My configure line has: '--with-pfpro=shared,/usr/local' and php5 installed fine via FreeBSD ports. I then installed Payflow pro also via FreeBSd ports. I'm getting an error with payflow_init which tells me

[PHP] Re: Are PHP5 features worth it?

2006-12-19 Thread Tony Marston
Niels [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi list, I'm writing a PHP program and I've got a number of concerns. The program is about 20 KLOC at the moment, but will probably grow quite a lot. I'm using OOP throughout, and I don't really have a lot of problems with

Re: [PHP] Re: [an attempt to inject a bit of humor back into the situation] Re: [PHP] Recomended host

2006-12-19 Thread Ólafur Waage
Jochem Maas wrote: Robert Cummings wrote: On Tue, 2006-12-19 at 16:01 -0500, [EMAIL PROTECTED] wrote: Merry Christmas Everyone! and I mean everyone (even Eight-of-Nine ;-) INSENSITIVE CLOD!!! I practice animism! your catching on ... about the insensitivity that is ;-)

[PHP] For those who havent seen this

2006-12-19 Thread Ólafur Waage
http://dbug.ospinto.com/ Turns arrays into a table for visual debugging. I've been using this for a few things here and there, it itsnt so often here that we link nifty little gadgets so here is one. - Olafur -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Clearing POST variable on page refresh

2006-12-19 Thread tedd
At 5:37 PM -0500 12/18/06, Beauford wrote: -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] -snip- most excellent code and advice from Richard (Thanks Richard). Hmm. I was thinking more of a one liner that would just clear the memory buffer of these variables, but

FW: FW: [PHP] Re: Please hack my app

2006-12-19 Thread Jordan Forssman
Hi Ivo, Jordan forwarded me your mail to provide some technical explanation. First of all, sorry for the delay, due to recent business travels and out-of-office events, I haven't had a lot of time to go through my mailbox. The product version that you were using is a trial version, which does

Re: [PHP] DOMDocument Size limit

2006-12-19 Thread tedd
At 9:59 AM +0100 12/19/06, Bernhard Zwischenbrugger wrote: Hi When calling |-createElement($name, $value) My content is truncated to around 4k. If what is in $value is less than 4000 bytes then it works fine but if it is more, the data is truncated. Is there a setting I don't know about

Re: [PHP] Re: Are PHP5 features worth it?

2006-12-19 Thread Larry Garfield
On Tuesday 19 December 2006 19:24, Tony Marston wrote: I have written a large application which uses the OO features of PHP 4, and the same code runs untouched with PHP 5. There is no advantage in making use of some of these fancy new features in PHP 5, so I just don't bother. I couldn't

Re: [PHP] Video question

2006-12-19 Thread tedd
At 11:08 AM -0500 12/19/06, John Messam wrote: How do I display video on my php page and prevent the video from being downloaded. This is a common misconception. If a user see's anything on (actually from) your web page then that means that the user's browser has already downloaded it. If

[PHP] [an attempt to inject a bit of humor back into the situation] Re: [PHP] Recomended host

2006-12-19 Thread tedd
At 9:52 PM +0100 12/19/06, Jochem Maas wrote: I guess if I start baiting all 3 of you (Roman, tedd, tg) that would not be constructive? no probably not :-) from my stance, I don't give 2 hoots about Roman's sig, Roman's reply style sometimes leaves a little to be desired... From my stance,

Re: [PHP] Video question

2006-12-19 Thread tg-php
To view a video, you do have to download it. But you don't have to download all of it at once. If a user did have to download the whole video and you still wanted to protect it, you'd want to look into some kind of DRM (digital rights management) solution probably. YouTube and similar

Re: [PHP] [an attempt to inject a bit of humor back into the situation] Re: [PHP] Recomended host

2006-12-19 Thread tg-php
Cheers tedd! Thanks for coming around. Life's too short to stress about stuff like this. There's always going to be people who don't understand (after all.. HE WASNT THERE MAN! sorry.. I couldn't help it :) I wasn't there either so my turn to be village idiot for a moment.. forgive the

Re: [PHP] Video question

2006-12-19 Thread Casey Chu
Maybe you could try some complicated file splitting thing? Like [dynamically] split the video into 10 pieces and send them in a jumbled mess, and decode them using something like flash? On 12/19/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: To view a video, you do have to download it. But you

[PHP] Database Question

2006-12-19 Thread Ashley M. Kirchner
Someone's going to tell me to go buy a book, I just know it. I'll ask anyway: I'm starting to log weather data to a database and I'm trying to figure out what's the best way to create the tables. The reports are coming in every minute, of every hour, 24 hours a day. Eventually, I'd

Re: [PHP] Database Question

2006-12-19 Thread Jochem Maas
Ashley M. Kirchner wrote: Someone's going to tell me to go buy a book, I just know it. I'll go buy a book? (can't argue with you intuition now can I ;-) ask anyway: I'm starting to log weather data to a database and I'm trying to figure out what's the best way to create the

Re: [PHP] Database Question

2006-12-19 Thread Paul Novitski
At 12/19/2006 11:01 PM, Ashley M. Kirchner wrote: I'm starting to log weather data to a database and I'm trying to figure out what's the best way to create the tables. The reports are coming in every minute, of every hour, 24 hours a day. Eventually, I'd like to do some calculations on