• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Tutsplanet

Tutsplanet

Free Technical and Blogging Resources

  • Home
  • Web Hosting
  • Programming
  • Plugins
  • Twitter Trends
  • Tools
  • About Us

PHP

Programming TagsPHP

What is the difference between shuffle() and array_rand() in PHP?

Sep 20, 2022 Editorial Staff Leave a Comment

What exactly is the difference between shuffle and array_rand functions in PHP? void shuffle ( array input) mixed array_rand ( array input [, int num_req]) takes an array and completely randomizes the array. You may have noticed that uses its parameter by reference and returns true. The downside of this function is it changes the…Continue Reading

Programming TagsPHP

How to Create PDF File From HTML Form Using Fpdf?

Aug 22, 2021 Editorial Staff 1 Comment

In today’s tutorial, we illustrate how to convert HTML to pdf with PHP.  As you know already, PDF stands for “portable document format”, a format that is used when we need to save a file that cannot modify but can be printed easily. In today’s article, we will show you have to post a form…Continue Reading

Programming TagsPHP

How to Move all zeroes to end of array in PHP with example

Aug 22, 2021 Editorial Staff

In today’s post, we will explain how to move all zeros to the end of the array in PHP. So in this example, we have created a function move_zero_to_end with a parameter $arr. The first part of the function iterates through the array elements and pushes non-zero elements to the array. So the zeros are…Continue Reading

Programming Tagsjavascript, PHP

How to Calculate Whether an Image Is Landscape or Portrait in PHP & Javascript?

Jun 16, 2021 Editorial Staff Leave a Comment

When I was creating an image gallery for a webiste, needed to show whether the image is portrait or landscape. So today’s tutorial, we will have answer for this question.

Programming TagsPHP

PHP array_column() Function Example

Jun 14, 2021 Editorial Staff Leave a Comment

PHP function is built in PHP function, that returns the values from a single column in the input array. Basically, return the single column of the array based on the provided by the program.

Programming TagsPHP

How to Remove Multiple Elements by Key in PHP Array?

Feb 11, 2021 Editorial Staff

Today’s article, we will remove multiple elements by key in a PHP array. Using PHP we can delete multiple keys from an Array. In PHP there is no built in method to achieve this, but we can combine several PHP functions to achieve this. In this article we will be demonstrating two methods to remove…Continue Reading

Programming TagsPHP

Basic PHP File Handling — Create, Open, Read, Write, Append, Close, and Delete

Mar 15, 2018 Editorial Staff Leave a Comment

how to import .sql file in mysql database using php

In this tutorial you will learn basic PHP File Handling — Create, Open, Read, Write, Append, Close, and Delete

Programming TagsPHP

Converting
into a new line for use in a text area

Mar 4, 2018 Editorial Staff Leave a Comment

into a new line for use in a text area

Often times we have deal with br tags in the text area HTML element. Most of the time this occur when we print the database stored values in textarea.

General TagsPHP

PHP Fatal error: Call to undefined function mssql_connect() while connecting in PHP

Apr 10, 2017 Editorial Staff Leave a Comment

PHP Fatal error: Call to undefined function mssql_connect() error popping out when connecting through MSSQL functions in Ubuntu server Answer In Ubuntu Just you need to install php5-sybase That’s it. Test with mssql_connect.You can verify this in PHP info file

Programming TagsMySql, PHP

Create Simple Complete Login Script in PHP and MySql

Apr 1, 2017 Editorial Staff 4 Comments

This is a simple and complete login system in PHP and MySql. Most of the web applications it is necessary to have an authentication system. Latest frameworks such as Laravel, Symfony have bundles(modules) to do this job with the most advanced secure method. But this tutorial is intended for a beginners who wants to understand an…Continue Reading

Programming TagsPHP

How to check if a string contains a specific word in PHP?

Mar 30, 2017 Editorial Staff Leave a Comment

If we want to check a specific word contains in another string. It’s common this kind of requirement while developing projects in PHP. We can use strpos function which is used to find the occurrence of one string inside another: $str = ‘How are you buddy?’; if (strpos($str, ‘are’) !== false) { echo ‘true’; }…Continue Reading

Programming TagsPHP

how to check a variable is an array in php

Mar 28, 2017 Editorial Staff Leave a Comment

When you want to check a variable is an array or not in PHP. Please follow the following snippet.

Programming TagsPHP

Call to undefined function add_action() in hello.php

Mar 27, 2017 Editorial Staff Leave a Comment

PHP Fatal error: Call to undefined function add_action() in p-content/plugins/hello.php, I was getting the above error in the error logs. Assuming someone calling this URL directly. To avoid these I’ve added the WordPress good practice line on top of the script.

Programming TagsPHP

Export to CSV in PHP

Mar 27, 2017 Editorial Staff Leave a Comment

Export to CSV and saving to file, this is the topic I am explaining here. First of all, you will have a database which saved the data sets for you. I am using MySQL for saving the data. Opening the file in write mode and save the database records to CSV by using fwrite.

Programming TagsPHP

Show SOAP web service’s available functions

Mar 26, 2017 Editorial Staff Leave a Comment

This will be help for other who are working in the web services. Add below code in your client page, can see the available functions  in the service

Programming TagsPHP

TimThumb – PHP Image Resizer

Mar 25, 2017 Editorial Staff 2 Comments

TimThumb is a simple, flexible, PHP script that resizes images. You give it a bunch of parameters, and it spits out a thumbnail image that you can display on your site. TimThumb has seen a massive amount of use across the WordPress world, and a few months after we released it, I took over development…Continue Reading

Primary Sidebar

Quick Links

  • Top 21 Website Ideas To Make Money Online in 2021
  • A Simple YouTube Video Downloader Script in PHP
  • The 50 Most Useful jQuery Plugins for Frontend Development
  • Replace “\n” with new line characters, using Notepad++
  • Using Third-Party Libraries in Codeigniter
  • Upload Multiple Images and Store in Database using PHP and MySQL.
  • Hierarchical Tree view Category Example in Laravel
  • Laravel Image Intervention Tutorial With Example
  • How to import sql file in MySQL database using PHP?
  • Free VAT Calculator Online

Subscribe

* indicates required



Search Here

Share

   



Hot topics

  • Replace “\n” with new line characters, using Notepad++ 41 views
  • How to enter new line in Microsoft Teams? 35 views
  • Simple PHP Shopping Cart 18 views
  • Open a URL in a new tab using JavaScript 16 views
  • Add FTP/SFTP in Visual Studio Code 15 views
  • How to Create PDF File From HTML Form Using Fpdf? 14 views
  • Laravel: Download files to storage from SFTP 12 views
  • Solution: windows photo viewer opens each time save a pic file 11 views
  • Laravel Eloquent Select Column as Alias 11 views
  • A Simple YouTube Video Downloader Script in PHP 11 views

Categories

  • Design & Development
  • Drupal
  • Facebook
  • General
  • How To
  • ios
  • Javascript
  • Linux
  • Magento
  • Marketing
  • News
  • PHP
  • Plugins
  • Programming
  • Snippets List
  • Social Media
  • Softwares
  • Themes
  • Tips
  • Wordpress
  • YouTube























Copyright © 2023 · Planet on Genesis Framework · Powered By BunnyCDN . Network wallpapernoon.com