how to add file in php?

Answer Posted / phpdev

By using include() and require() functions we can add a file
in php..
include() and require() functions takes a file name and
simply inserts that file's contents into the script..

SYNTAX:include("filename");

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is __ construct in php?

543


What is csrf token and why it is required?

542


Is php easier than javascript?

512


Do you know when sessions ends?

562


What is the importance of parser in php?

614






How to create database connection and query in php?

578


Which function parses an English textual date or time into Unix timestamp in PHP.

580


How can we increase execution time of a php script?

492


What is the default session time in php?

537


Write a program in php to reverse a number?

548


What is the use of count() function in php?

534


What are the advantages of triggers?

538


Does php use html?

488


What is isset function in php?

573


What is the purpose of a query?

511