Hello readers, today we discuss about ""
Q. What is Standalone script?
Ans. Standalone is also consider a new software program, it does not involve almost any computer software in addition to this OS to operate. Consequently nearly all software programs are usually separate software programs. Software program for instance plug-ins and extension delivers intended for game titles will not be separate software programs because they're not going to run except a particular software is installed.
In other words, Standalone script are those which developers add separately. It work individually.
The below code helps you. In this code wp-config.php, wp-load.php, wp-includes/wp-db.php and wp-includes/pluggable.php are included once. $path is the base path or base URL of the document.
<?php
$path = $_SERVER['DOCUMENT_ROOT'];
include_once $path . '/wp-config.php';
include_once $path . '/wp-load.php';
include_once $path . '/wp-includes/wp-db.php';
include_once $path . '/wp-includes/pluggable.php';
?>
global $wpdb defines inside the above files, like config.php
0 Comment(s)