See the new scripts recently added to Dynamic Drive. Click here.
Original, practical CSS codes and examples such as CSS menus for your site.
-->
    Search code samples  
 
  Keyword
 
 
 
   
 
 
  Code Samples
 
ASP
CSS
Dhtml
Html
Javascript
PHP
 
   
     LOGIN HERE  
 
Username
Password
Forgot Password
Verify Signup
 
 
 

PHP >> General

How do I include virtual paths in PHP?

Visitor Ratings (0) :

Description
To include a page in php use the require() or include() statements

Example:
<? require("myscript.php");

//rest of your code etc

?>

Above would include the file "myscript.php" within your script. If the
file "myscript.php" was not found you would receive a fatal error. If
you wished to have the script continue regardless of whether the file
could be found and included, use the function include(); (identical
functionality, different error handling)

See: http://us3.php.net/manual/en/function.require.php
and: http://us3.php.net/manual/en/function.include.php
Code
Select All
 Rate this Resource
Related Links:
PageRank




Earn revenue from 
your website's traffic.






Reliable hosting for $6.95!

FreeLance Jobs from ODesk!



 
Home    Blog    Ajax    CSS    Hot scripts    Tips & Tricks    Webmaster Resources     Freelance jobs    Articles    Sitemap    Website builder and Cheap domain names    Lotus Notes FAQ    Our partners