JIYIK CN >

Current Location:Home > Learning > PROGRAM >

All

PHP upload image

Publish Date:2025/04/13 Author:JIYIK Category:PHP

PHP upload image

We can upload images in PHP using simple file upload operation, but first, php.ini file upload should be enabled from Files. This tutorial demonstrates how to upload images in PHP. php.ini Enable file upload from file in PHP to upload image...

Full

Resizing images in PHP

Publish Date:2025/04/13 Author:JIYIK Category:PHP

In this tutorial article, we will discuss about resizing images in PHP. Load the image before resizing Before we can resize an image, we must first load it as an image resource in our script. This is file_get_contents() different from using...

Full

Switching PHP versions on Ubuntu

Publish Date:2025/04/13 Author:JIYIK Category:PHP

Different tasks may require running multiple versions of PHP. You may need to switch PHP versions by running two sites on the same server or testing older versions of code using outdated methods. We can switch PHP versions on Ubuntu using t...

Full

Returns the article tag with ID from the action page

Publish Date:2025/04/13 Author:JIYIK Category:PHP

Returns the article tag with ID from the action page

Let's say you're in a login form and you enter the wrong information; in this case, you probably want to go back to the login page. PHP has a built-in function header() to redirect a page to a specific page. But what if the login page is at...

Full

Store Div Id in PHP variable and pass it to JavaScript

Publish Date:2025/04/13 Author:JIYIK Category:PHP

This article shows you how to div id store a in a PHP variable and pass it to JavaScript code. We will answer the following questions. What is div id ? How to div id store in a PHP variable? How to pass variables to JavaScript code? Let’s...

Full

PHP with Ajax

Publish Date:2025/04/13 Author:JIYIK Category:PHP

We will use PHP and ajax by printing a simple sum of two numbers 2 and . Also, print a php array in JSON. 3 object We will also use PHP with ajax by getting the HTML formatted output from the number division in PHP. Printing simple addition...

Full

Check if a Post exists in PHP

Publish Date:2025/04/13 Author:JIYIK Category:PHP

PHP $_POST is a super global variable that can contain key-value pairs of HTML form data submitted through the post method. We will learn different ways to check $_POST if a and contains some data in this article. These methods will use iss...

Full

Reverting from a multi-index to a single index in Pandas

Publish Date:2025/04/12 Author:JIYIK Category:Python

This tutorial teaches how to restore from a MultiIndex to a single index DataFrame in Pandas using Python. MultiIndex DataFrame, also known as multi-level and hierarchical DataFrame, allows users to have multiple columns that can identify a...

Full

Pandas DataFrame Reindex

Publish Date:2025/04/12 Author:JIYIK Category:Python

This tutorial explains how to pandas.DataFrame.reset_index() reset the index in a Pandas DataFrame using . reset_index() The method sets the index of the DataFrame to the default index, a number ranging from 0 to (DataFrame 中的行数-1)...

Full

Split a string into two lists using str.split in Python Pandas

Publish Date:2025/04/12 Author:JIYIK Category:Python

Pandas has a method to split a string based on a separator/delimiter. We will use the pandas str.split() function. str.split() Split a string into two lists/columns using the function in Python Pandas The string can be saved as a list of Se...

Full

Implementing callback functions in PHP

Publish Date:2025/04/12 Author:JIYIK Category:PHP

This article will show you how to create one or more callback functions and execute them using different built-in methods, user-defined functions, and static classes in PHP. Create a function in PHP callback and call_user_func execute it us...

Full

Sending Emails Using the Mail Form in PHP

Publish Date:2025/04/12 Author:JIYIK Category:PHP

This article will demonstrate installing sendmail the library and sending an email through the PHP mail form. Install sendmail to send email from PHP on local server PHP has a built-in function mail() to send emails. However, this function...

Full

Writing error log files in PHP

Publish Date:2025/04/12 Author:JIYIK Category:PHP

When we have a large web application running in production mode, we need to monitor all errors or potential errors that our users may face. The best way to keep an eye on all possible errors is to log them to a file as they occur. This arti...

Full

Validating phone numbers in PHP

Publish Date:2025/04/12 Author:JIYIK Category:PHP

PHP has two ways to validate phone numbers, one is regular expression regex and the other is filter the method. We can use to regex set a template and validate the phone number based on that template, but filter will only exclude the unwant...

Full

Run Shell Scripts and Open Shell Files in PHP

Publish Date:2025/04/12 Author:JIYIK Category:PHP

Run Shell Scripts and Open Shell Files in PHP

PHP allows us to use shell_exec(); the shell function to process files. However, if your operating system is Windows, you should consider using the popen() and pclose() functions, because pipes are executed in text mode, which usually preve...

Full

Scan to Read All Tech Tutorials

Social Media
  • https://www.github.com/onmpw
  • qq:1244347461

Hottest

Tags

Scan the Code
Easier Access Tutorial