php-general Digest 7 Jun 2009 15:54:05 -0000 Issue 6163
php-general Digest 7 Jun 2009 15:54:05 - Issue 6163 Topics (messages 293688 through 293706): Re: table-less layouts; Ideas welcome 293688 by: Jim Lucas 293705 by: dbrooke alpha/beta/gamma TO $var['alpha']['beta'] = 'gamma' 293689 by: ×× ××× ×× ×× 293692 by: Angus Mann 293695 by: Nitsan Bin-Nun 293696 by: shahrzad khorrami 293697 by: ×× ××× ×× ×× 293698 by: Nitsan Bin-Nun 293699 by: ×× ××× ×× ×× 293700 by: Nitsan Bin-Nun 293702 by: ×× ××× ×× ×× 293703 by: Nitsan Bin-Nun Time limit on recursive procedure? 293690 by: Clancy 293691 by: Per Jessen best solution to ecommerce web pages 293693 by: Alain Roger 293694 by: mrfroasty Re: Outputting File To The Browser Failed And Kill Apache 293701 by: Nitsan Bin-Nun Re: PHP Graphing Libraries...? 293704 by: lists.mgreg.com 293706 by: Richard Heyes Administrivia: To subscribe to the digest, e-mail: php-general-digest-subscr...@lists.php.net To unsubscribe from the digest, e-mail: php-general-digest-unsubscr...@lists.php.net To post to the list, e-mail: php-gene...@lists.php.net -- ---BeginMessage--- Jim Lucas wrote: Since this has been a topic of dicussion, I figured I would add my thoughts. I have been toying with the idea of doing a table-less layouts involving tabular data, calendars, etc... Recent threads have finally made me do it. Let me know what you think. http://www.cmsws.com/examples/templates/div_tables.php http://www.cmsws.com/examples/templates/div_tables.phps (source for above) http://www.cmsws.com/examples/templates/div_cal.php When you turn off the styles, the calendar becomes pretty rough on the eyes, but still accessible. Same thing with the tabular data structure. But, not knowing how the various types of accessibility applications work, I am guessing that the layout to an application trying to read it should work fairly well. Let me know if I am way off the mark with my thoughts. If you want to respond off list, that if fine by me. TIA Sorry all, been a way from the list for a few weeks. Here is another try at it. Ok, revision #2 http://www.cmsws.com/examples/templates/div_cal_normal.php http://www.cmsws.com/examples/templates/div_cal_daily.php http://www.cmsws.com/examples/templates/div_cal_fancy.php Truly their isn't much fancy about that last one. Just a name... Anyways, you will see that the div code is exactly the same between pages, but the layout is radically different because of the style in play... I think this would be more useful then the others. With the first rendition, you had to break things on weeks/rows with the tables. I think this method is much simpler. Input welcome. Thanks. ---End Message--- ---BeginMessage--- 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=o=o=o DONOVAN D. BROOKE EUCA Design Center - Web Development, DTP, Consulting, and Labels - PH: (608) 770-3822| WEB: http://www.euca.ushttp://www.egg.bz =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o ---End Message--- ---BeginMessage--- I have encountered a problem when trying to turn -- Use ROT26 for best security ---End Message--- ---BeginMessage--- ??? Huh ??? - Original Message - From: דניאל דנון danondan...@gmail.com To: PHP General List php-gene...@lists.php.net 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 ---End Message--- ---BeginMessage--- I think that he is talking about uri rewriting :O On Sun, Jun 7, 2009 at 2:04 PM, Angus Mann angusm...@pobox.com wrote: ??? Huh ??? - Original Message - From: דניאל דנון danondan...@gmail.com To: PHP General List php-gene...@lists.php.net 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 Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ---End Message--- ---BeginMessage--- :D ---End Message--- ---BeginMessage--- 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-Nunnitsa...@gmail.com wrote: I think that he is talking about uri rewriting :O On Sun, Jun 7, 2009 at 2:04 PM, Angus Mann angusm...@pobox.com wrote: ??? Huh ??? - Original Message -
[PHP] alpha/beta/gamma TO $var['alpha']['beta'] = 'gamma'
I have encountered a problem when trying to turn -- Use ROT26 for best security
[PHP] Time limit on recursive procedure?
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 each time I call rec_scanl, but I seem to have to set a longer time limit than I would have anticipated, and I wonder if in fact the original time limit still applies to the original invocation? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Time limit on recursive procedure?
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 each time I call rec_scanl, You keep calling it so as long as the execution time between each call is 1 second, your script will keep going. /Per -- Per Jessen, Zürich (15.4°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] alpha/beta/gamma TO $var['alpha']['beta'] = 'gamma'
??? Huh ??? - Original Message - From: דניאל דנון danondan...@gmail.com To: PHP General List php-general@lists.php.net 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 Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] best solution to ecommerce web pages
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 4.2 PostgreSQL 8.3.5 / MS SQL server 2005 Apache 2.2.10 PHP 5.2.6 C# 2005-2008
Re: [PHP] best solution to ecommerce web pages
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 Hardware:msi geforce 8600GT asus p5k-se location:/home/muhsin language(s):C/C++,VB,VHDL,bash,PHP,SQL,HTML,CSS Typo:40WPM url:http://mambo-tech.net url:http://blog.mambo-tech.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] alpha/beta/gamma TO $var['alpha']['beta'] = 'gamma'
I think that he is talking about uri rewriting :O On Sun, Jun 7, 2009 at 2:04 PM, Angus Mann angusm...@pobox.com wrote: ??? Huh ??? - Original Message - From: דניאל דנון danondan...@gmail.com To: PHP General List php-general@lists.php.net 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 Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] alpha/beta/gamma TO $var['alpha']['beta'] = 'gamma'
:D
Re: [PHP] alpha/beta/gamma TO $var['alpha']['beta'] = 'gamma'
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-Nunnitsa...@gmail.com wrote: I think that he is talking about uri rewriting :O On Sun, Jun 7, 2009 at 2:04 PM, Angus Mann angusm...@pobox.com wrote: ??? Huh ??? - Original Message - From: דניאל דנון danondan...@gmail.com To: PHP General List php-general@lists.php.net 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 Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Use ROT26 for best security -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] alpha/beta/gamma TO $var['alpha']['beta'] = 'gamma'
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])); } HTH, Nitsan On Sun, Jun 7, 2009 at 2:36 PM, דניאל דנון danondan...@gmail.com wrote: its related to that but I'm building a kind of supposed urls for certain things... Its complicated to explain, But I need to turn print_r($var); // alpha/beta/gamma $var = somefunction($var); print_r($var); // array(alpha = array(beta = gamma)) On Sun, Jun 7, 2009 at 2:33 PM, Nitsan Bin-Nunnitsa...@gmail.com wrote: I think that he is talking about uri rewriting :O On Sun, Jun 7, 2009 at 2:04 PM, Angus Mann angusm...@pobox.com wrote: ??? Huh ??? - Original Message - From: דניאל דנון danondan...@gmail.com To: PHP General List php-general@lists.php.net 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 Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Use ROT26 for best security
Re: [PHP] alpha/beta/gamma TO $var['alpha']['beta'] = 'gamma'
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-Nunnitsa...@gmail.com wrote: 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])); } HTH, Nitsan On Sun, Jun 7, 2009 at 2:36 PM, דניאל דנון danondan...@gmail.com wrote: its related to that but I'm building a kind of supposed urls for certain things... Its complicated to explain, But I need to turn print_r($var); // alpha/beta/gamma $var = somefunction($var); print_r($var); // array(alpha = array(beta = gamma)) On Sun, Jun 7, 2009 at 2:33 PM, Nitsan Bin-Nunnitsa...@gmail.com wrote: I think that he is talking about uri rewriting :O On Sun, Jun 7, 2009 at 2:04 PM, Angus Mann angusm...@pobox.com wrote: ??? Huh ??? - Original Message - From: דניאל דנון danondan...@gmail.com To: PHP General List php-general@lists.php.net 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 Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Use ROT26 for best security -- Use ROT26 for best security -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] alpha/beta/gamma TO $var['alpha']['beta'] = 'gamma'
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, דניאל דנון danondan...@gmail.com 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, Nitsan Bin-Nunnitsa...@gmail.com wrote: 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])); } HTH, Nitsan On Sun, Jun 7, 2009 at 2:36 PM, דניאל דנון danondan...@gmail.com wrote: its related to that but I'm building a kind of supposed urls for certain things... Its complicated to explain, But I need to turn print_r($var); // alpha/beta/gamma $var = somefunction($var); print_r($var); // array(alpha = array(beta = gamma)) On Sun, Jun 7, 2009 at 2:33 PM, Nitsan Bin-Nunnitsa...@gmail.com wrote: I think that he is talking about uri rewriting :O On Sun, Jun 7, 2009 at 2:04 PM, Angus Mann angusm...@pobox.com wrote: ??? Huh ??? - Original Message - From: דניאל דנון danondan...@gmail.com To: PHP General List php-general@lists.php.net 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 Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Use ROT26 for best security -- Use ROT26 for best security
Re: [PHP] Outputting File To The Browser Failed And Kill Apache
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 solution for that. I'm also not really sure that the apache problem is due to memory issue (I honestly have no idea regarding it's meaning :X ). Any further ideas will be highly appreciated! Thank you Tom for your ideas :) Regards, Nitsan On Sun, Jun 7, 2009 at 1:37 AM, Tom Worster f...@thefsb.org wrote: On 6/6/09 7:28 AM, Nitsan Bin-Nun nit...@binnun.co.il wrote: The files are one directory up from the www root, because that I don't want straight access to them, only by validation which will be done in this php file. I'm not an apache expret, do you have any idea how I can run this php validation file and then output the file, which is placed in one up directory from the www root to the user browser?? when you say validation, do you mean that you perform certain checks on a given client request in php in order to decide whether or not to allow the client to download the file? i can only think of one thing offhand and it's not high security but it would make unauthorized access a lot harder. after validating the client request, create a temporary symlink to the file that the client wants in a directory under the http root using a random filename. redirect the client to the symlink and delete it x minutes later. the entropy of the symlink filename determines how hard it is to guess and its ephemeral existence makes it hard to discover or reuse. i don't know if apache has a way to restrict access by referrer but that would add an additional level of security, i.e. if apache could be configured to reject the request to the symlink unless the referrer points to the server that sent the redirect. sorry i can't be of more help. on the other hand, it's not easy to implement the flow control between the flie and apache and thus to the client's tcp connection in php so that nothing gets stuck and no buffers overflow. i'm not really convinced that's a function that belongs in a php script.
Re: [PHP] alpha/beta/gamma TO $var['alpha']['beta'] = 'gamma'
$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-Nunnitsa...@gmail.com wrote: 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, דניאל דנון danondan...@gmail.com 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, Nitsan Bin-Nunnitsa...@gmail.com wrote: 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])); } HTH, Nitsan On Sun, Jun 7, 2009 at 2:36 PM, דניאל דנון danondan...@gmail.com wrote: its related to that but I'm building a kind of supposed urls for certain things... Its complicated to explain, But I need to turn print_r($var); // alpha/beta/gamma $var = somefunction($var); print_r($var); // array(alpha = array(beta = gamma)) On Sun, Jun 7, 2009 at 2:33 PM, Nitsan Bin-Nunnitsa...@gmail.com wrote: I think that he is talking about uri rewriting :O On Sun, Jun 7, 2009 at 2:04 PM, Angus Mann angusm...@pobox.com wrote: ??? Huh ??? - Original Message - From: דניאל דנון danondan...@gmail.com To: PHP General List php-general@lists.php.net 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 Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Use ROT26 for best security -- Use ROT26 for best security -- Use ROT26 for best security -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] alpha/beta/gamma TO $var['alpha']['beta'] = 'gamma'
The final code: ?php echo 'pre'; 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_dump(nitsanush(alpha/beta/gamma/delta/nitsan/daniel)); echo \n; echo '/pre'; function nitsanush($v) { $a = explode(/, $v); if (sizeof($a) 2) { $b = $a; unset($b[0]); return array($a[0] = nitsanush(implode(/, $b))); } else { return array($a[0] = $a[1]); } } // eof -- Nitsan On Sun, Jun 7, 2009 at 3:17 PM, דניאל דנון danondan...@gmail.com wrote: $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-Nunnitsa...@gmail.com wrote: 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, דניאל דנון danondan...@gmail.com 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, Nitsan Bin-Nunnitsa...@gmail.com wrote: 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])); } HTH, Nitsan On Sun, Jun 7, 2009 at 2:36 PM, דניאל דנון danondan...@gmail.com wrote: its related to that but I'm building a kind of supposed urls for certain things... Its complicated to explain, But I need to turn print_r($var); // alpha/beta/gamma $var = somefunction($var); print_r($var); // array(alpha = array(beta = gamma)) On Sun, Jun 7, 2009 at 2:33 PM, Nitsan Bin-Nunnitsa...@gmail.com wrote: I think that he is talking about uri rewriting :O On Sun, Jun 7, 2009 at 2:04 PM, Angus Mann angusm...@pobox.com wrote: ??? Huh ??? - Original Message - From: דניאל דנון danondan...@gmail.com To: PHP General List php-general@lists.php.net 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 Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Use ROT26 for best security -- Use ROT26 for best security -- Use ROT26 for best security
Re: [PHP] PHP Graphing Libraries...?
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 where would the point go if you had no y value? -- Richard Heyes It should simply plot the points (and connecting lines) independently. It should also consider the min/max values of all data sets and create those automatically if you don't set the min/max manually. I wasn't saying that I lacked X values -- rather, I don't have a Y for every X of every other item. For instance, say I logged information at 10 o'clock AM for some events, while I didn't log until 10:30 for other events. I don't want to be forced to place something in 10:00 AM just to make the event spacing work. Perhaps I'm simply asking the wrong question. I find that's often the case with me. Creating it with GD would be simple enough, as the idea isn't rocket science. I simply lack time after my current phase to do so, which is why I was hoping something intuitive existed so I could jump right to it. To restate, the following does *NOT* apply to any data I have: X-TIMES(8, 9, 10, 11) DATA-Y1(200,100,400,600) DATA-Y2(40,23,12,84) ...as DATA-Y2 didn't log data at 8 and 10, but rather at 8:30 and 10:30. Therefore, while I certainly can use an X axis labeled from 8 am to 11 am, I need different X values for some DATA sets. I need to be able to plot completely independent X,Y values -- and still connect them with lines to see trends. Reasonable, no? Michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] table-less layouts; Ideas welcome
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=o=o=o DONOVAN D. BROOKE EUCA Design Center - Web Development, DTP, Consulting, and Labels - PH: (608) 770-3822| WEB: http://www.euca.ushttp://www.egg.bz =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Graphing Libraries...?
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) ? -- Richard Heyes HTML5 graphing: RGraph (www.rgraph.net - updated 6th June) PHP mail: RMail (www.phpguru.org/rmail) PHP datagrid: RGrid (www.phpguru.org/rgrid) PHP Template: RTemplate (www.phpguru.org/rtemplate) PHP SMTP: http://www.phpguru.org/smtp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Converting MP3 to FLV On-The-Fly
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 after or where I should look. Any idea would be very appreciated! Thanks! Nitsan
Re: [PHP] Converting MP3 to FLV On-The-Fly
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 after or where I should look. Any idea would be very appreciated! Thanks! Nitsan You may want to use some sort of caching, converting media formats is very computationally demanding. You could use FFMPEG to do the conversion. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] smallA framework, over 140 characters for twitter ;)
This is a very small framework for PHP inspired by the framework of Fabien Potencier (http://twitto.org/). ?php $c = $_GET['c'];//getting controller name $a = $_GET['a'];//getting action name if (@include_once('c/'.$c.'.php')) { $c = new $c;//controller instance if (method_exists($c,$a)) $c-$a(); //invoking the action else die(A !f);//controller not found } else die(C !f); //action not found ? $c=$_GET['c'];$a=$_GET['a'];if(@include_once('c/'.$c.'.php')){$c=new$c;if(method_exists($c,$a))$c-$a();else die(A !f);}else die(C !f); http://twitter.com/kyberneees Greetings!!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Converting MP3 to FLV On-The-Fly
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, hessi...@hessiess.com 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 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 after or where I should look. Any idea would be very appreciated! Thanks! Nitsan You may want to use some sort of caching, converting media formats is very computationally demanding. You could use FFMPEG to do the conversion.
Re: [PHP] Converting MP3 to FLV On-The-Fly
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-Nunnit...@binnun.co.il wrote: 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, hessi...@hessiess.com 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 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 after or where I should look. Any idea would be very appreciated! Thanks! Nitsan You may want to use some sort of caching, converting media formats is very computationally demanding. You could use FFMPEG to do the conversion. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Time limit on recursive procedure?
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 ($new_file, ) } } The way I read the manual, the timer should be reset each time I call rec_scanl, You keep calling it so as long as the execution time between each call is 1 second, your script will keep going. /Per Thanks. That's what I thought. I'm using it to back up my working directory to another drive, and a 3 second limit wasn't long enough, so one of the directories must take longer than I expected to copy. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php