Welcome To Snipplr


Everyone's Recent Snippets Tagged php



« Prev 1 2 3 4 5 ... 66
  1. FAV

    How To Use Update Query In Laravel ?

    Updating a record in Laravel using Eloquent.
    PHP 17 views posted 5 days ago by devquora
  2. FAV

    How to add validation in Laravel

    Laravel provides several different ways to validate your application incoming data.By default Laravel’s base controller class uses a ValidatesRequests trait which provides a convenient method to validate all incoming HTTP requests coming from client....
    PHP 16 views posted 5 days ago by devquora
  3. FAV

    How To Use Delete Query In Laravel

    Learn how to use delete query in Laravel Framework.
    PHP 17 views posted 5 days ago by devquora
  4. FAV

    How to clear laravel cache on Shared Hosting

    Clear Laravel Cache on shared hosting
    PHP 19 views posted 6 days ago by devquora
  5. FAV

    PHP Random Spin

    A quick snippet to rotate a series of words on page load using PHP.
    PHP 11 views posted 3 months ago by danparks
  6. FAV

    What is default session time and path in PHP. How to change it ?

    Default session time in PHP is 1440 seconds (24 minutes) and the Default session storage path is temporary folder/tmp on server.
    PHP 13 views posted 5 months ago by interviewqueries
  7. FAV

    Code to upload a file in PHP

    Code to upload a file in PHP
    PHP 3 views posted 1 year ago by devquora
  8. FAV

    Working with Sessions in PHP

    As HTTP is state protocol.To maintain states on server and share data across multiple pages PHP session are used.PHP sessions are simple way to store data for individual users/client against a unique session ID.Session IDs are normally sent to the br...
    PHP 3 views posted 1 year ago by devquora
  9. FAV

    Auto Complete City Search Sample Code

    This tutorial will demonstrate how to implement the autocomplete search function by using php and ajax. You can obtain free IPV6 database at http://www.ip2location.com/free/ipv6
    PHP 5 views posted 1 year ago by Hexasoft
  10. FAV

    Example of PHP Sample SMS code - Messaging API

    BroadNet Technologies furnishes you with a variety of PHP Sample SMS code examples and programming objects, and assist you in connecting to our gateway via the PHP script. Sending your messages via our designed PHP SMS Sample Code is easier than you...
    PHP 12 views posted 2 years ago by Broadnet
  11. FAV

    Calculate Full Size of Directory in PHP

    This code allows to calculate the full size of a directory using PHP.
    PHP 4 views posted 2 years ago by apphp-snippets
  12. FAV

    WhoIs Query in PHP

    This code allows to perform a query to WhoIs service in PHP.
    PHP 5 views posted 2 years ago by apphp-snippets
  13. FAV

    PHP website accelerator - Cloudflare-style full page caching with page rules in 1 PHP file

    # Slick.php PHP full page cache with Cloudflare-style page rules. No DNS changes required, just upload the PHP file, configure and then include from your main application controller (e.g. index.php
    PHP 1 views posted 3 years ago by mattnicholson
  14. FAV

    Credit card Year dropdown

    This snippet adds credit card select box dropdown values 10 years in future from current year.
    PHP 2 views posted 3 years ago by acosonic
  15. FAV

    Php File Upload Script

    General file upload script in php. Error set using SESSIONS.
    PHP 9 views posted 3 years ago by aravindnair93
  16. FAV

    Batch Zip Download

    Code for downloading multiple files as Zip file
    PHP saved by 1 person 5 views posted 3 years ago by aravindnair93
  17. FAV

    PHP Country Code to Continent with switch error html remove

    This is editing of code http://snipplr.com/view/36870/ because that use if which will slow performance this snippet use switch
    PHP saved by 1 person 5 views posted 3 years ago by ah72king
  18. FAV

    PHP Country Code to Continent with switch

    This is editing of code http://snipplr.com/view/36870/ because that use if which will slow performance this snippet use switch
    PHP saved by 1 person 3 views posted 3 years ago by ah72king
  19. FAV

    Select Wordpress posts by number of revisions

    Too many revisions taking up space in your database? Use this script to find which posts have more than 10 - and then you can figure out what to do with them.
    PHP 3 views posted 3 years ago by JoshChris
  20. FAV

    Removing extensions and trailing slashes in web urls:

    Removing extensions and trailing slashes in web urls: "If you want to remove the .html extension from a html file for example yoursite.com/wallpaper.html to yoursite.com/wallpaper you simply have to alter the last line from the code above to match...
    Apache 4 views posted 4 years ago by jefferis
  21. FAV

    Force Rewrite for https and .html to .php in htaccess

    This rewrite will not work on WordPress. It forces .htm and .html files that no longer exist to go to the new .php versions of the pages.
    Apache 2 views posted 4 years ago by jefferis
  22. FAV

    Yii2 dropwdown list filter in GridView

    Put it in the columns array
    PHP 2 views posted 4 years ago by guimarca
  23. FAV

    Yii2 signup captcha

    First, for SignUp Model. Second, for signup view.
    PHP 6 views posted 4 years ago by guimarca
  24. FAV

    Yii2 Gridview Foreign Key

    The 1stline in the function that generates the Foreign key relation in the model, 2nd is the name of the attribute in the gridview
    PHP 4 views posted 4 years ago by guimarca
  25. FAV

    Yii2 timestamp behavior

    In the model
    PHP 3 views posted 4 years ago by guimarca
  26. FAV

    Convert XML to Array in PHP

    Convert easily XML File or String to Associative Array in PHP
    PHP 6 views posted 4 years ago by kavikms
  27. FAV

    Insert HTML code in PHP

    Se puede escribir código HTML sin problema insertando además las variables php que se necesiten dentro del propio "relleno"
    PHP 11 views posted 4 years ago by tionazo
  28. FAV

    WordPress Video Modal Widget

    A plugin that adds widget functionality to a third-party video modal plugin. The widget accepts a YouTube video ID and a thumbnail URL of the user's choice. It then generates a thumbnail link that launches a video modal via the third-party plugin. Op...
    PHP 5 views posted 4 years ago by julian90
  29. FAV

    feeds with memcache

    feed class with baseUrl and endpoint curling the target and caching on memcache
    PHP 4 views posted 4 years ago by ramirog89
  30. FAV

    Creating an RSS Feed From Your Site

    If you syndicate your content with an RSS feed it can help to drive additional traffic to the content pages.
    PHP 3 views posted 4 years ago by COBOLdinosaur
« Prev 1 2 3 4 5 ... 66