PHP Suit - Useful scripts
https://www.php-suit.com/taxonomy/term/1/0
enPHP scripts minifier
https://www.php-suit.com/php-scripts-minifier
<p>Nothing special. Just a little online tool for <a href="http://tools.php-suit.com/mini/">compressing PHP scripts</a>. This tool strips whitespace and comments from your PHP script, exactly in the same way as the PHP interpreter does.</p>
https://www.php-suit.com/php-scripts-minifier#commentscompressminifyPHPToolsUseful scriptsSun, 12 Jul 2009 14:31:55 +0000admin55 at https://www.php-suit.comPHP functions in JavaScript
https://www.php-suit.com/php-functions-javascript
<p>If you're frustrated with JavaScript and its "higher-level function support", remembering the rich PHP library, try this. <a href="http://phpjs.org/">PHP.JS</a> is an open source project in which we try to port PHP functions to JavaScript. By including the PHP.JS library in your own projects, you can use your favorite PHP functions on the client-side.</p>
https://www.php-suit.com/php-functions-javascript#commentsHow To...JavaScriptJSPHPUseful scriptsSun, 12 Apr 2009 22:03:51 +0000admin53 at https://www.php-suit.comPaypal Direct Payment Component Using cURL
https://www.php-suit.com/paypal-direct-payment-component-using-curl
<p>Another PayPal component for your pages.</p>
<p><cite>Looking for a lightweight, easy to use, Paypal credit card processing script? You have found it! This is for Cake 1.2. All you need is cURL and a Paypal API account! Pre-requisites: cURL and Paypal Account with API keys and such</cite></p>
<p><a href="http://bakery.cakephp.org/articles/view/paypal-direct-payment-component-using-curl">Paypal Direct Payment Component Using cURL</a>.</p>
<p>See also <a href="https://www.php-suit.com/paypal">my PayPal implementation</a>.</p>
https://www.php-suit.com/paypal-direct-payment-component-using-curl#commentsBlogHow To...PayPalUseful scriptsTue, 17 Feb 2009 09:23:51 +0000admin50 at https://www.php-suit.comBlog: Tips and tricks from other pages VIII
https://www.php-suit.com/blog-tips-and-tricks-other-pages-viii
<p>How to validate a credit card number and how to use SSL with cURL?</p>
<p>Here is the simple <a href="http://www.softwareprojects.com/resources/programming/t-validate-a-credit-card-1682.html">credit card validating routine</a> - just only helps validating a given credit card number is legit.</p>
<p><cite>Using cURL (in PHP) to access https url is often not as simple as using the proper url. Using it for authentication is also not very clearly documented. This is a mini tutorial for both accessing https url's as well as for http authentication.</cite></p>
<p><a href="http://blog.taragana.com/index.php/archive/how-to-use-curl-in-php-for-authentication-and-ssl-communication/">How To Use cURL (in PHP) For Authentication And SSL Communication</a></p>
https://www.php-suit.com/blog-tips-and-tricks-other-pages-viii#commentsBlogCardsCredit CardCURLhttpsMasterCardSSLUseful scriptsVISAWed, 14 Jan 2009 19:10:38 +0000admin48 at https://www.php-suit.comBlogAPI Drupal filter
https://www.php-suit.com/blogapi-drupal-filter
<p>Using blog clients such as <a href="http://www.codingrobots.com/blogjet/">BlogJet</a> or Windows Live Writer with Drupal can produce some unwanted things, such as ignoring the perex/article break or curious formatting. There is very simple module to solve.</p>
<p>Someone says at <a href="http://drupal.org/">Drupal pages</a>:<br />
<cite>(…) WLW's "split post" feature, which is available when using the Movable Type API but not with the Metaweblog API, does not produce the <!--break--> tags that Drupal expects. Instead it produces <!--pagebreak--> sometimes and <!--extended--> other times, despite the fact that before posting, the HTML source within WLW shows <!--more-->. Supporting all of these possible page-breaking tags in Drupal would require hacking the core.</cite><br />
<a href="http://drupal.org/node/295">BlogApi: post from blog tools | drupal.org</a><br />
I’ve extended the module from this discussion and rewrite it for Drupal 5 too. Updated module can convert P and BR tags to NL.<br />
You can download it here:</p>
<div class="tablewrapper"><table class="webfm-attach-list" class="tableclass">
<thead><tr><th>Attachment</th><th>Date</th><th>Size</th> </tr></thead>
<tbody>
<tr class="odd"><td class="att-title"><a href="/webfm_send/8/1" title="Download blogapi_break_converter_5.zip" target="_blank"><img src="https://www.php-suit.com/modules/webfm/image/icon/zip.gif" alt="[file]" title="Download blogapi_break_converter_5.zip"/> </a><a href="/webfm_send/8" title="Open blogapi_break_converter_5.zip" target="_blank">blogapi_break_converter_5.zip</a></td><td class="att-time">14/12/08 9:20 am</td><td class="att-size">884 bytes</td> </tr>
<tr class="even"><td class="att-title"><a href="/webfm_send/9/1" title="Download blogapi_break_converter.zip" target="_blank"><img src="https://www.php-suit.com/modules/webfm/image/icon/zip.gif" alt="[file]" title="Download blogapi_break_converter.zip"/> </a><a href="/webfm_send/9" title="Open blogapi_break_converter.zip" target="_blank">blogapi_break_converter.zip</a></td><td class="att-time">14/12/08 9:18 am</td><td class="att-size">892 bytes</td> </tr>
</tbody></table>
</div>
https://www.php-suit.com/blogapi-drupal-filter#commentsBlogBlogJetDrupalHow To...Useful scriptsSun, 14 Dec 2008 16:18:03 +0000admin45 at https://www.php-suit.com Harmony Framework
https://www.php-suit.com/harmony-framework
<p>The PHP framework which can convert PHP code into JavaScript.</p>
<p>Features:</p>
<ul>
<li>Converts PHP 5 code into Javascript</li>
<li>Nearly all PHP features are supported</li>
<li>Object oriented programming using Mootools</li>
<li>Uses php.js for php functions</li>
<li>Harmony XML: Flex MXML-like language</li>
<li>Harmony Toolkit: ready to use components</li>
<li>Open Source, MIT license</li>
</ul>
<p><a href="http://www.harmony-framework.com/">Harmony framework</a></p>
https://www.php-suit.com/harmony-framework#commentsBlogcompilerFrameworkHarmonyJavaScriptphpjsUseful scriptsThu, 04 Dec 2008 17:28:38 +0000admin42 at https://www.php-suit.comPHP Interactive
https://www.php-suit.com/php-interactive
<p>A web based interactive shell for PHP</p>
<p><cite>Playing with languages like Python, Tcl or Scheme, one of the first nice things the programmer discovers is a powerful interactive shell where you can try in little time some line of code, and see the result printed on the standard output. Unfortunately PHP does not have support for such a nice feature, there is the command line option -a, but it's very basic, and not that useful. Also what makes php -a not so useful is the fact that PHP is a language for web applications: often the program output is html code, so, doesn't it make sense that a PHP shell will run on the web?. This is the simple idea that PHP Interactive tries to develop.</cite></p>
<p><a href="http://www.hping.org/phpinteractive/">PHP interactive</a></p>
https://www.php-suit.com/php-interactive#commentsBloginterpreterintreractiveOthershellUseful scriptsWebThu, 27 Nov 2008 09:51:32 +0000admin41 at https://www.php-suit.comBlog: Tips and tricks from other pages VII
https://www.php-suit.com/blog-tips-and-tricks-other-pages-vii
<p>PHP under control, LINQ and cURL examples...</p>
<p><cite>phpUnderControl is an addon application for the continuous integration tool CruiseControl, which integrates some of the best PHP development tools. This project aims to make your first steps with CruiseControl and PHP as easy as possible. Therefore phpUnderControl comes with a command line tool that performs all modifications to an existing CruiseControl installation.</cite></p>
<p><a href="http://www.phpundercontrol.org/about.html">phpUnderControl</a></p>
<p><cite>A set of PHP classes mimicing C#3.0's LINQ (Language Integrated Query) extension methods. </cite></p>
<p><a href="http://www.codeplex.com/PHPLinq">PHPLinq</a></p>
<p>(Con: <cite>I read about the PHP Implementation of LINQ called PHPLinq. Frankly, I was sceptical about it. Finally, I gave it a try. I still remain sceptical... </cite> - <a href="http://www.mikeborozdin.com/post/Is-PHPLinq-As-Cool-As-Real-LINQ.aspx">Is PHPLinq As Cool As Real LINQ?</a>)</p>
<p><cite>We try to collect examples on how to program the PHP/CURL interface here. If you have any source snippests you want to share with the rest of the world, please let us know!</cite></p>
<p><a href="http://curl.haxx.se/libcurl/php/examples/resizejpg.html">PHP / cURL examples collection</a></p>
https://www.php-suit.com/blog-tips-and-tricks-other-pages-vii#commentsBlogCURLHow To...LINQPHPLinqtestingUseful scriptsWed, 19 Nov 2008 16:28:34 +0000admin40 at https://www.php-suit.comTip: Create a zip file from folders
https://www.php-suit.com/tip-create-zip-file-folders
<p>How to compress files from some folder into one ZIP file in PHP?</p>
<p><cite>For a future project I needed these days some easy to use zip or gzip class to create a zip file from files / folders inside a specified directory. A short search on Google has lead me to the Create ZIP File PHP class from Rochak Chauhan. I tested two other scripts before and must say that this script works great for single files if you add them manually. To compress a whole directory with an unknown number of files into one zip file I created some class extension to get this job done.</cite></p>
<p><a href="http://www.web-development-blog.com/archives/tutorial-create-a-zip-file-from-folders-on-the-fly/">Create a zip file from folders on the fly</a></p>
https://www.php-suit.com/tip-create-zip-file-folders#commentsBlogcompressionHow To...Useful scriptsZIPTue, 18 Nov 2008 15:24:54 +0000admin39 at https://www.php-suit.comBlog: Tips and tricks from other pages VI
https://www.php-suit.com/blog-tips-and-tricks-other-pages-vi
<p>Some PHP snippets, the cURL-based HTTP class, session starter that works across the browsers and a little tip for your .htaccess to lowering load and save the bandwith. Go on!</p>
<!--break--><!--break--><p><cite>A small list of some useful code snippets which might help you when writing your PHP scripts - mail check, password generator, check IP, XSLT transform, sending mail etc.</cite></p>
<p><a href="http://htmlblog.net/10-code-snippets-for-php-developers/">10 code snippets for PHP developers</a></p>
<p><cite>I expanded the previous sample of Basic cUrl and PHP Usage. I added the headers processing which can be useful to handle cookies. It is now easier to use but basic PHP knowledge is required.</cite></p>
<p><a href="http://www.tellinya.com/read/2007/08/03/39.html">eHTTP client class</a></p>
<p><cite>If a session based web application is used by a visitor using Internet Explorer it's possible that this user get some trouble. This will happen if parts of the application are accessed for example via a shortcut on the desktop and the application opens then in a new Explorer window. At this moment a second session is started with a different ID, if the used web application has some session based authentication system the user has to login again. At the same time the user has to logout twice! In browsers like Mozilla Firefox new windows are treated the same way then tabs where the problem doesn't exists.</cite></p>
<p><a href="http://www.finalwebsites.com/snippets.php?id=42">Cross-browser session starter</a></p>
<p><cite>The number one turn off for a website has to be loading times. If your server supports mod_expires you can improve your loading times by 66%, as well as saving your self bandwidth.</cite></p>
<p><a href="http://myphpdigest.com/news.php?title=Save_Bandwidth_and_Loading_Times">Save Bandwidth and Loading Times</a></p>
BlogcacheCURLHow To...htaccesssessionssnippetstipsUseful scriptsTue, 04 Nov 2008 16:35:56 +0000admin37 at https://www.php-suit.com