Posts in Category: php

Laravel 5.1 Packages

Laravel 5.1 Packages

  • 2nd Feb 2016
  • PHP

Laravel 5.1 Packages


Here are the most packages that I use for a typical fresh build of Laravel 5.1 :

Laravel Generators [documentation]

"pingpong/generators": "~2.0",

Laravel Collective: HTML and Form builders [documentation]

"laravelcollective/html": "5.2.*",

Laravel Debugbar: integrate PHP Debug Bar with Laravel [documentation]

"barryvdh/laravel-debugbar": "^2.0",

Whoops: error handler

Read More

Linux: 25 PHP Security Best Practices For Sys Admins

  • 3rd Feb 2015
  • PHP

PHP is an open-source server-side scripting language and it is a widely used. The Apache web server provides access to files and content via the HTTP OR HTTPS protocol. A misconfigured server-side scripting language can create all sorts of problems. So, PHP should be used with caution. Here are

Read More

How to check if a Request is an AJAX call with PHP

  • 30th Jan 2015
  • Ajax

It is useful to prevent direct access of AJAX calls (from browser address bar).


function check_is_ajax($script) {
  $isAjax = isset($_SERVER['HTTP_X_REQUESTED_WITH']) AND
  strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) === 'xmlhttprequest';
  if(!$isAjax) {
    trigger_error('Access denied - not an AJAX request...' . ' (' . $script . ')', E_USER_ERROR);
  }
}

Read More

MySQL

Splitting large MySQL dump files

One of the depressed things with operating with MySQL is of importing giant sql dump files.
Either you get a “max execution time exceeded” error from PHP or a”Max_allowed_packet_size” from MySQL.

The goal is separate the large “INSERT” statements into smaller size files.
Every statement has to be in single

Read More

eAccelerator: A PHP opcode cache / optimizer / accelerator

eAccelerator is a free open-source PHP accelerator & optimizer. It increases the performance of PHP scripts by caching them in their compiled state, so that the overhead of compiling is almost completely eliminated. It also optimizes scripts to speed up their execution. eAccelerator typically reduces server load and increases the

Read More

PHP Trader

Trader PHP extension

Trader PHP extension

The Trader extension is a free open source stock library, based on TA-Lib. It’s dedicated to trading software developers requiring to perform technical analysis of financial market data. Alongside many indicators like ADX, MACD, RSI, Stochastic, TRIX the candlestick pattern recognition and several vector arithmetic, and algebraic functions

Read More

GZIP working in XAMPP? Where do I configure this?

If you see the message about output buffering off during installation, you can ignore it for the time being and proceed with the installation as that information is more for reference. Thus, you may not need to make any changes to your XAMPP setting.

However, if you want to enable it

Read More

MAMP PRO: My Apache & MySQL & PHP

MAMP PRO

is the commercial, professional grade version of the classic local server environment: MAMP. Designed for professional web developers and programmers, MAMP PRO allows easy installation and administration of their development environment.

Read More