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

To put it into context:
# On success set session data and display logged in page.
if ( $success )
# Access session.
$_SESSION[ 'user_id' ] = $data[ 'user_id' ] ;
$_SESSION[ 'first_name' ] = $data[ 'first_name' ] ;
$_SESSION[ 'last_name' ] = $data[ 'last_name' ] ;
load ( 'home.php' ) ;
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 1 guest

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