• 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

Warning file_get_contents () failed to open stream: HTTP request failed! HTTP/1.0 402 Payment Required

Using Associative arrays

(Cache::lock()) -> get() -- Under what conditions does it return false?

How to create a cookie to store the timestamp of when a page is first loaded with php

Get sql.h error on MacOS 12 (Monterey) sqsrv and pdo_sqsrv drive installation

PHP: How to quickly split a key=value file into associative array

I need to link Google Sheet with my Laravel

Laravel Delete and Update

What is PHP's equivalent of JavaScript's "array.every()"?

Docker & Laravel : configure: error: Package requirements (oniguruma) were not met

How to set time with DateTime modify?

How can I make good efficent AJAX live forms with just jQuery and

laravel controller function parameters

Converting array to string and then back in PHP

401 Unauthorized only occurring on some pages in Laravel 8

About Contact Privacy policy Terms and conditions