• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

Require a class from another class - php

phprequire


PHP Snippet 1:

require dirname(__FILE__, 2) . '/Task.php';

PHP Snippet 2:

require '../Task.php';

Related Snippets

Passing PHP JSON to Javascript: echo json_encode vs echo json declaration

str_replace or preg_replace random number from string

SilverStripe unable to populate multiple member Childs

Use Python plotly chart in PHP

I want to use codeigniter foreign character library in my custom PHP project how i can use it?

Search for array row with specific column value and return another value from qualifying row

How can I format this number correctly using PHP?

Laravel multi auth - Authentication user provider [] is not defined

PHP: Telegram Bot: Insert line break to text message

How to use $this->session->set_userdata in codeigniter

How to retrieve Active Directory group policy maximum password age using LDAP

How can I remove the "Advanced" panel of all blocks in WordPress block editor?

Appending data to an anchor tag

Remove "estimated for {country}" text after tax amount in Woocommerce checkout page

insert multiple rows in a saveall in cakephp

About Contact Privacy policy Terms and conditions