Board index   FAQ   Search  
Register  Login
Board index PHP PHP General

When would you use load() instead of header() ?

General discussions related to php

Moderators: macek, egami, gesf

When would you use load() instead of header() ?

Postby iamandywarren » Fri May 02, 2014 4:56 am

I've been amending a script and I came across load('pagename.php') but I've not come across this nor can I find a reference to it.

Why would you use this instead of header('pagename.php').

Many thanks
Andy

To put it into context:
# On success set session data and display logged in page.
if ( $success )
{
# Access session.
session_start();
$_SESSION[ 'user_id' ] = $data[ 'user_id' ] ;
$_SESSION[ 'first_name' ] = $data[ 'first_name' ] ;
$_SESSION[ 'last_name' ] = $data[ 'last_name' ] ;
load ( 'home.php' ) ;
}
iamandywarren
New php-forum User
New php-forum User
 
Posts: 2
Joined: Fri May 02, 2014 4:53 am

Return to PHP General

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.