Skip to main content

Posts

Difference between php5 and php7

Recent posts

Squareup API Integration PHP. List squareup customers using php

  Step 1: Download Composer and dependencies This application requires the PHP Square SDK as well as DotEnv for reading environment variables, which you install via Composer. First, download Composer in this directory with the instructions on  this page . After you've downloaded Composer, install the dependencies with the following command from this directory: php composer.phar install Step 2: Get your credentials and set the redirect URL: Open the  Developer Dashboard . Choose  Open  on the card for an application. At the top of the page, set the dashboard mode to  Sandbox . Choose  OAuth  in the left navigation pane. The OAuth page is shown. In the  Sandbox Redirect URL  box, enter the URL for the callback you will implement to complete the OAuth flow:  http://localhost:8000/sandbox_callback.php This example uses localhost in the Square Sandbox. You can use HTTP for localhost but an actual web server implementation must use HTTPS....

How to create wordpress plugin manually

  Create your first plugin in five simple steps I'm not kidding. You can create a WordPress plugin in five simple steps. Let me show you how… 1. FTP into your site The first thing you'll need to do is  access your site via FTP  using the FTP program of your choice (mine is Coda). If you're not familiar with FTP, I recommend you read up on that before moving forward. 2. Navigate to the WordPress plugins folder Once you've accessed your site via FTP, you'll need to navigate to the WordPress plugins folder. That folder is almost always located at /wp-content/plugins. 3. Create a new folder for your plugin Now that you're in the plugins folder it's time to create a folder for yours! Go ahead and create a new folder, giving it a unique name using lowercase letters and dashes such as my-first-plugin. Once you've done that, enter your new folder and move on to the next step. 4. Create the main PHP file for your plugin Next, you'll need to create the main fi...

How to install WordPress Manually

  Download and unzip the WordPress package if you haven’t already. Create a database for WordPress on your web server, as well as a  MySQL  (or MariaDB) user who has all privileges for accessing and modifying it. (Optional) Find and rename  wp-config-sample.php  to  wp-config.php , then edit the file (see  Editing wp-config.php ) and add your database information. Note : If you are not comfortable with renaming files, step 3 is optional and you can skip it as the install program will create the  wp-config.php  file for you. Upload the WordPress files to the desired location on your web server: If you want to integrate WordPress into the root of your domain (e.g.  http://example.com/ ), move or upload all contents of the unzipped WordPress directory (excluding the WordPress directory itself) into the root directory of your web server. If you want to have your WordPress installation in its own subdirectory on your website (e.g.  http:...

Rich Text Editor

Implementing jQuery Text Editor in Textarea You might have seen text editor in many comment form ex.Wordpress.org. It is having a rich text editor in their review comment form. The rich text editor helps to create the content where, you can easily bold the text or make it  italics, adjust the font size. You can format your text in one click.you can insert an images and smilies also. In this tutorial, we are going to share a file that creates Text Editor using jQuery/JavaScript/HTML. Clik the following link to view the Text editor http://www.formget.com/implementing-jquery-text-editor-in-textarea/
AJAX stands for A synchronous Ja vaScript and X ML. AJAX is a new technique for creating better, faster, and more interactive web applications with the help of XML, HTML, CSS and Java Script. Ajax uses XHTML for content and CSS for presentation, as well as the Document Object Model and JavaScript for dynamic content display. Conventional web application trasmit information to and from the sever using synchronous requests. This means you fill out a form, hit submit, and get directed to a new page with new information from the server. With AJAX when submit is pressed, JavaScript will make a request to the server, interpret the results and update the current screen. In the purest sense, the user would never know that anything was even transmitted to the server. XML is commonly used as the format for receiving server data, although any format, including plain text, can be used. AJAX is a web browser technology independent of web server software. A user...

My PHP

PHP is a server scripting language, and is a powerful tool for making dynamic and interactive Web pages quickly. PHP is a widely-used, free, and efficient alternative to competitors such as Microsoft's ASP.