[PHP] strtotime() strangeness

2006-09-04 Thread Paul Scott
I am trying to convert a date and time (from the apache2 server logs) in the format of 27/Aug/2006:19:02:20 +0200 to a UNIX timestamp and then reformat it as a RFC compliant date by using date('r', $thedate); My problem is as such. In PHP-5.1.2 it works perfectly and returns the correct date. In

[PHP] PDF: Join more pdf files into one

2006-09-04 Thread cajbecu
Hello, I have to join more pdf files into single one (that will be available for download) and i must to that from PHP. I have read the documentation from php.net/pdf adn php.net/clibpdf but no ring. How can I do that? Thanks in advance, cheers. -- PHP General Mailing List

[PHP] Video uploading with PHP - convert to flash on the fly?

2006-09-04 Thread Merlin
Hi there, looks like video uploading goes mainstream. Loads of sites are adding video upload capabilities. That is what I would like to add to my webapp as well. Currently only picture upload is available via PHP and image functions. Can somebody please point me to a start on how to convert

Re: [PHP] Video uploading with PHP - convert to flash on the fly?

2006-09-04 Thread Paul Scott
On Mon, 2006-09-04 at 10:59 +0200, Merlin wrote: Can somebody please point me to a start on how to convert the video files on the fly during upload into flash video? Similar to the image If you are using *NIX you can use ffmpeg and something like system() or passthrough(); to achieve some

Re: [PHP] Video uploading with PHP - convert to flash on the fly?

2006-09-04 Thread Merlin
Paul Scott schrieb: On Mon, 2006-09-04 at 10:59 +0200, Merlin wrote: Can somebody please point me to a start on how to convert the video files on the fly during upload into flash video? Similar to the image If you are using *NIX you can use ffmpeg and something like system() or

Re: [PHP] Video uploading with PHP - convert to flash on the fly?

2006-09-04 Thread Paul Scott
On Mon, 2006-09-04 at 11:50 +0200, Merlin wrote: thank you for the hint. ffmpeg seams to be a good way to create thumbnails out of the video, but how to convert it on the fly to flash video? PHP extension called ming. Look for it somewhere on opaque.net I am not sure if ming is still

Re: [PHP] Video uploading with PHP - convert to flash on the fly?

2006-09-04 Thread André Medeiros
ffmpeg _DOES_ convert to flash video (FLV). On 9/4/06, Paul Scott [EMAIL PROTECTED] wrote: On Mon, 2006-09-04 at 11:50 +0200, Merlin wrote: thank you for the hint. ffmpeg seams to be a good way to create thumbnails out of the video, but how to convert it on the fly to flash video? PHP

[PHP] Re: Video uploading with PHP - convert to flash on the fly?

2006-09-04 Thread Alex Turner
Merlin wrote: Hi there, looks like video uploading goes mainstream. Loads of sites are adding video upload capabilities. That is what I would like to add to my webapp as well. Currently only picture upload is available via PHP and image functions. Can somebody please point me to a start on

Re: [PHP] PDF: Join more pdf files into one

2006-09-04 Thread tedd
At 11:42 AM +0300 9/4/06, cajbecu wrote: Hello, I have to join more pdf files into single one (that will be available for download) and i must to that from PHP. I have read the documentation from php.net/pdf adn php.net/clibpdf but no ring. How can I do that? Thanks in advance, cheers.

Re: [PHP] local php.ini not recognized in php 5.1.x?

2006-09-04 Thread Marten Lehmann
Hi, I have also been trying to figure this out. Have you came to any conclusions? I have done some searching and so far haven't found any answers. Is there anyone else on the list that can shed some light on this? noone seems to know but the problem still exists, so I filed a bug report:

Re: [PHP] Crazy behavior...

2006-09-04 Thread Jochem Maas
Alex Turner wrote: Peter, When it arrives at the browser, via ajax, I am guessing that you then put it into the page view .innerHTML or some other method. I suspect your problem revolves around asking the browser to do stuff it should not really have to do. There are two issues I

[PHP] How to add user to linux using php

2006-09-04 Thread eqla3.com eqla3.com
i tried to add user to by exeuting shell_exe command so it add user but if the user added still problem is how to apply the password by command passwd in linux by php script because it's an interactive command required to input the password twice in linux shell. is there any way to add user

Re: [PHP] How to add user to linux using php

2006-09-04 Thread Jon Anderson
eqla3.com eqla3.com wrote: is there any way to add user and apply password by executing shell command through php? Depending on the distribution, you should have a user addition command that takes a password argument. In my case, useradd other args -p 'password' user. Check the manual page

Re: [PHP] How to add user to linux using php

2006-09-04 Thread J R
you have to understand that the adduser is a previledge command and a root only command (unless you allowed other users) and normally php will and should be running in a restricted access. normally it is running as user apache/user/nobody (depends on your settings) now there are two ways you can