Re: [PHP] Source Code Analysis

2009-06-07 Thread Dee Ayy
On Wed, Oct 22, 2008 at 4:30 PM, Dee Ayy wrote: > Thanks regarding the error_reporting.  I may have to go this route for > this specific issue. > ... > ...  And not only for this specific issue. I have another need for a SCA tool. Is there an existing tool similar to a broken link checker, but ins

[PHP] Re: List files in a directory using filters and exclusions

2009-06-07 Thread Clancy
On Sat, 6 Jun 2009 21:39:15 -0400 (CDT), rsantama...@hab.uci.cu ("Rolando Santamaria Maso") wrote: >Hi PHP community, here I bring a very simple and interesting function that >I made for a project, it's objetive is "to list path files in a directory >with the possibility of using filters and excl

Re: [PHP] Time limit on recursive procedure?

2009-06-07 Thread Clancy
On Sun, 07 Jun 2009 13:04:20 +0200, p...@computer.org (Per Jessen) wrote: >Clancy wrote: > >> I have a recursive procedure, and I set the time limit each time I >> enter it: >> >> function rec_scan($directory, ..) >> { >> set_time_limit (1); >> >> if (is_dir($new_file)) >> { >> rec_scan ($ne

Re: [PHP] Converting MP3 to FLV On-The-Fly

2009-06-07 Thread Michael Shadle
On Sun, Jun 7, 2009 at 11:23 AM, wrote: > These is a PHP binding for FFMPEG here: > http://ffmpeg-php.sourceforge.net/, though most of the tutorials you will > find are for the C API, for example http://www.dranger.com/ffmpeg/, which > demonstrates how to implement a media player. > Personally I

Re: [PHP] Converting MP3 to FLV On-The-Fly

2009-06-07 Thread hessiess
These is a PHP binding for FFMPEG here: http://ffmpeg-php.sourceforge.net/, though most of the tutorials you will find are for the C API, for example http://www.dranger.com/ffmpeg/, which demonstrates how to implement a media player. Personally I would just skip using the API and use the CLI progr

Re: [PHP] Converting MP3 to FLV On-The-Fly

2009-06-07 Thread Nitsan Bin-Nun
I don't have to let the user wait. The conversions will be done once 3 hours using a cron job, they all will be listed in a mysql database. On Sun, Jun 7, 2009 at 8:09 PM, Michael Shadle wrote: > I would also batch it. Keeping a user waiting (unless you have a > "please wait..." screen, which st

Re: [PHP] Converting MP3 to FLV On-The-Fly

2009-06-07 Thread Michael Shadle
I would also batch it. Keeping a user waiting (unless you have a "please wait..." screen, which still can take some time and be a bad user experience) in my experience hasn't been ideal and won't scale very well. On Sun, Jun 7, 2009 at 11:04 AM, Nitsan Bin-Nun wrote: > I thought of using FFMPEG bu

Re: [PHP] PHP Graphing Libraries...?

2009-06-07 Thread Richard Heyes
Hi, > Correct, but do you notice how although you're plotting multiple lines, they > all share X values? They all change direction nicely and neatly at the same > X value.  Mine don't do that.  I need to plot different X values for each > data set.  So if I'm logging values for time, I won't neces

Re: [PHP] Converting MP3 to FLV On-The-Fly

2009-06-07 Thread Nitsan Bin-Nun
I thought of using FFMPEG but I have a bit of experience with it. Any links or more specific directions would be great. On Sun, Jun 7, 2009 at 7:48 PM, wrote: > > Hi Lista > > > > I'm trying to figure how I can turn MP3 files into FLV files on the fly > > using PHP. > > I'm having a server and I

[PHP] smallA framework, over 140 characters for twitter ;)

2009-06-07 Thread Rolando Santamaria Maso
This is a very small framework for PHP inspired by the framework of Fabien Potencier (http://twitto.org/). $a(); //invoking the action else die("A !f");//controller not found } else die("C !f"); //action not found ?> $c=$_GET['c'];$

Re: [PHP] Converting MP3 to FLV On-The-Fly

2009-06-07 Thread hessiess
> Hi Lista > > I'm trying to figure how I can turn MP3 files into FLV files on the fly > using PHP. > I'm having a server and I can install 3rd party software in order to > accomplish this conversion. > > I have never dealt before with music file comression or anything similar > so > I don't know w

[PHP] Converting MP3 to FLV On-The-Fly

2009-06-07 Thread Nitsan Bin-Nun
Hi Lista I'm trying to figure how I can turn MP3 files into FLV files on the fly using PHP. I'm having a server and I can install 3rd party software in order to accomplish this conversion. I have never dealt before with music file comression or anything similar so I don't know what I should look

Re: [PHP] PHP Graphing Libraries...?

2009-06-07 Thread Richard Heyes
Hi, > Reasonable, no? Could be, but I don't follow. A point has an X coord and a Y coord, and with a line chart you simply connect the dots (much like a dot-to-dot). Like the charts here: http://dev.rgraph.net/examples/line.html Or perhaps I'm not quite following (entirely likely) ? -- Richar

Re: [PHP] -less layouts; Ideas welcome

2009-06-07 Thread dbrooke
Jim Lucas wrote: Jim Lucas wrote: Since this has been a topic of dicussion, I figured I would add my thoughts. Like I said Jim, that is what you get with CSS... a more versatile design. Don't listen to naysayers. ;-) Keep it up! Donovan -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o

Re: [PHP] PHP Graphing Libraries...?

2009-06-07 Thread li...@mgreg.com
On Jun 7, 2009, at 5:37 AM, Richard Heyes wrote: Hi, Can I still link the scatter points with lines for readability? I'm not sure why an API would require a "y" for every "x". I've rarely worked with data sets that follow an exact set of X coords. Then

Re: [PHP] alpha/beta/gamma TO $var['alpha']['beta'] = 'gamma'

2009-06-07 Thread Nitsan Bin-Nun
The final code: > echo ''; > echo var_dump(nitsanush("alpha/beta")); > echo "\n"; > echo var_dump(nitsanush("alpha/beta/gamma")); > echo "\n"; > echo var_dump(nitsanush("alpha/beta/gamma/delta")); > echo "\n"; > echo var_dump(nitsanush("alpha/beta/gamma/delta/nitsan")); > echo "\n"; > echo var_du

Re: [PHP] alpha/beta/gamma TO $var['alpha']['beta'] = 'gamma'

2009-06-07 Thread דניאל דנון
$v['alpha']['beta']['gamma'] = 'delta'; (or) array( "alpha" => array("beta" => array("gamma" => "delta"))) ); (sorry, here is a copy to the nice list) On Sun, Jun 7, 2009 at 3:00 PM, Nitsan Bin-Nun wrote: > Can you give me an example of the output in case that the input is > "alpha/beta/gamma/

Re: [PHP] Outputting File To The Browser Failed And Kill Apache

2009-06-07 Thread Nitsan Bin-Nun
Whenever I will delete the symlink the file will be no more accessible? If so then what will happen if the user still downloading the file during the deletion of it? I'm pretty sure it will cause a stop of the downloading process at the client. I'm also not that much sure whether this is the right

Re: [PHP] alpha/beta/gamma TO $var['alpha']['beta'] = 'gamma'

2009-06-07 Thread Nitsan Bin-Nun
Can you give me an example of the output in case that the input is "alpha/beta/gamma/delta" please? On Sun, Jun 7, 2009 at 2:56 PM, דניאל דנון wrote: > problem is number of "/" is unknown. > It can be alpha/beta > alpha/beta/gamma > alpha/beta/gamma/delta > ... > > On Sun, Jun 7, 2009 at 2:53 PM

Re: [PHP] alpha/beta/gamma TO $var['alpha']['beta'] = 'gamma'

2009-06-07 Thread דניאל דנון
problem is number of "/" is unknown. It can be alpha/beta alpha/beta/gamma alpha/beta/gamma/delta ... (here's a copy to the nice list =] ) On Sun, Jun 7, 2009 at 2:53 PM, Nitsan Bin-Nun wrote: > Don't forget to send a copy to the list ;) > > Regarding your function, I'm writing it right now, it w

Re: [PHP] alpha/beta/gamma TO $var['alpha']['beta'] = 'gamma'

2009-06-07 Thread Nitsan Bin-Nun
Don't forget to send a copy to the list ;) Regarding your function, I'm writing it right now, it would probably have some issues but I think that it would work: function somefunction($v) { preg_match("#^([^/]+)/([^/]+)/(.+)$#", $v, $m); return array($m[1] => array($m[2] => $m[3])); } HT

Re: [PHP] alpha/beta/gamma TO $var['alpha']['beta'] = 'gamma'

2009-06-07 Thread דניאל דנון
if I send half messages tell me, since gmail is slow so sometimes I click 10 times on the "send"... On Sun, Jun 7, 2009 at 2:33 PM, Nitsan Bin-Nun wrote: > I think that he is talking about uri rewriting :O > > On Sun, Jun 7, 2009 at 2:04 PM, Angus Mann wrote: > >> ??? Huh  ??? >> >> >> - Origi

Re: [PHP] alpha/beta/gamma TO $var['alpha']['beta'] = 'gamma'

2009-06-07 Thread shahrzad khorrami
:D

Re: [PHP] alpha/beta/gamma TO $var['alpha']['beta'] = 'gamma'

2009-06-07 Thread Nitsan Bin-Nun
I think that he is talking about uri rewriting :O On Sun, Jun 7, 2009 at 2:04 PM, Angus Mann wrote: > ??? Huh ??? > > > - Original Message - From: "דניאל דנון" > To: "PHP General List" > Sent: Sunday, June 07, 2009 8:11 PM > Subject: [PHP] alpha/beta/gamma TO $var['alpha']['beta'] = '

Re: [PHP] best solution to ecommerce web pages

2009-06-07 Thread mrfroasty
Alain Roger wrote: > Hi, > > i'm currently investigating what would be the best solution to develop an > e-commerce web site. > should i use some PHP template engine like smarty or CMS like Joomla, Drupal > ? > > thanks a lot, > > Joomla +++ -- Extra details: OSS:Gentoo Linux profile:x86 Hard

[PHP] best solution to ecommerce web pages

2009-06-07 Thread Alain Roger
Hi, i'm currently investigating what would be the best solution to develop an e-commerce web site. should i use some PHP template engine like smarty or CMS like Joomla, Drupal ? thanks a lot, -- Alain --- Windows XP x64 SP2 / Fedora 10 KDE

Re: [PHP] alpha/beta/gamma TO $var['alpha']['beta'] = 'gamma'

2009-06-07 Thread Angus Mann
??? Huh ??? - Original Message - From: "דניאל דנון" To: "PHP General List" Sent: Sunday, June 07, 2009 8:11 PM Subject: [PHP] alpha/beta/gamma TO $var['alpha']['beta'] = 'gamma' I have encountered a problem when trying to turn -- Use ROT26 for best security -- PHP General Ma

Re: [PHP] Time limit on recursive procedure?

2009-06-07 Thread Per Jessen
Clancy wrote: > I have a recursive procedure, and I set the time limit each time I > enter it: > > function rec_scan($directory, ..) > { > set_time_limit (1); > > if (is_dir($new_file)) > { > rec_scan ($new_file, ) > } > > } > > > The way I read the manual, the timer should be reset e

[PHP] Time limit on recursive procedure?

2009-06-07 Thread Clancy
I have a recursive procedure, and I set the time limit each time I enter it: function rec_scan($directory, ..) { set_time_limit (1); if (is_dir($new_file)) { rec_scan ($new_file, ) } } The w

[PHP] alpha/beta/gamma TO $var['alpha']['beta'] = 'gamma'

2009-06-07 Thread דניאל דנון
I have encountered a problem when trying to turn -- Use ROT26 for best security