Jump to content

bhakti

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Everything posted by bhakti

  1. It was the short PHP tags! Thank you! It needed <?php as you said. The class file did indeed have the full <?php, but not the inline php tags. Thank you all and Happy New Year! Rgds B
  2. OK guys! Through elimination, I removed a function containing open HTML spread over lines eg ?> <table border="1" cellspacing="2" cellpadding="2"> <tr> <td><? ...and I can imagine that CLI does not like what PHP is good at in a browser environment Im interested as to *why* this causes a problem though? Thank you for the suggestions. Rgds B
  3. When I include a class in a file called from WinXP command line, I get this: Parse error: parse error in C:\Documents and Settings\Office\My Documents\xxx_system_files\apache\htdocs\php2010\gd_lib \col_proj_OO\Col_Magic.php on line 889 Line 889 is EOF I have read somewhere that single quotes cause a problem, but this is a big class with many uses of single quotes (strings assigned to vars and indices of arrays). The class works ok in web environment. Any suggestions how to debug this? Rgds B
  4. Should anyone be interested in optimization of PHP and perhaps more importantly the speed bottlenecks created by typically server technologies that surround PHP, then you might be interested in this: http://phplens.com/lens/php-book/optimizing-debugging-php.php Rgds B
  5. That's opened up some reading for me. I use Sony Vegas to break film up into image sequences and then to stick em together again after manipulation using GD Lib in PHP. Is there documentation anywhere on how to optimize performance of PHP scripts. I guess PHP CLI is one improvement, a faster CPU another. When writing code I am now asking myself, "Well this is neet and tidy but is it fast!?". I guess bench testing with microtime() can tell me through trial and error which is best way to go, but like everybody else, Im painfully aware of inventing yet another wheel Rgds B
  6. I am writing an OO PHP app to parse thousands of frames from a film, which will then each be manipulated and spat out using GD library funcs. Speed is of the essence. To improve speed, I have considered: - Another language!? - Use of PHP Command Line Interface? ( Working with web browser is surely a slow affair?) If PHP was a standard R6 Yamaha available to Joe Public, what would I have to do to win a GP race - you know - change gearing, alter timing, change exhaust system, rip out the air filter What does the panel suggest? Thanks B
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.