Your IP Address: 216.73.216.40

Menu

Skip to content
  • Server Administration
    • Ubuntu
    • CentOS
    • OS X
    • Windows
  • PHP
  • MySQL
  • Amazon Web Services
  • PHP Development
  • iOS
    • Swift 5
  • Software Testing
  • Home

Category: PHP

23Oct/23

Debug PHP API function using output to a file

October 23, 2023PHP, PHP Developmentadmin

Add ob_start(); function from where you want to put output to a file Use following function to get output of code execution : $contents = ob_get_contents(); Put the content to a file:

Read More...
Leave a comment
05Sep/23

Install Apache2, PHP, MySql ubuntu 20.04

September 5, 2023MySQL, PHP, Server Administration, Ubuntuadmin

Step 1 – Installing Apache Update the package list for upgrades and new packages: sudo apt-get update Now Apache can be installed. sudo apt-get install apache2 Step 2 – Installing MySql Install

Read More...
Leave a comment
02Jun/23

Show All PHP Errors

June 2, 2023PHP, PHP Developmentadmin

Add following lines in PHP file: ini_set(‘display_errors’, 1); ini_set(‘display_startup_errors’, 1); error_reporting(E_ALL);

Read More...
Leave a comment
16Sep/20

Add IP Address condition in PHP

September 16, 2020PHPadmin

If you want to run some PHP code on live website and don’t want to show it’s effect to others if($_SERVER[“REMOTE_ADDR”]==’122.123.123.12′){ // Your PHP code } Eg. : if($_SERVER[“REMOTE_ADDR”]==’122.180.87.84′){ die(“Just for testing”);

Read More...
Leave a comment

CONTACT US

F-174, Phase 8B, Industrial Area, Sector 74, Sahibzada Ajit Singh Nagar, Punjab 160055
 0172-4783846
 info@rudraitnetworks.com
Copyright © Rudra IT Networks
Powered by WordPress , Theme i-design by TemplatesNext.
MENU
  • Server Administration
    • Ubuntu
    • CentOS
    • OS X
    • Windows
  • PHP
  • MySQL
  • Amazon Web Services
  • PHP Development
  • iOS
    • Swift 5
  • Software Testing
  • Home