Jump to content
xisto Community
Sign in to follow this  
dogtag

Session2

Recommended Posts

in php we can save our strings in a place, i means:

 

<?php$a = "hello world";?>

it means that we have a place to save hello world and use it in other places. now we can have:

 

<?phpprint $a;?>

it will show us hello world

 

ask me if you have any questions

Share this post


Link to post
Share on other sites

This are not sessions. Sessions are something completely different. If you want to make this variable available with sessions, you need to use session_start() construct.If you want to make this variable you posted available to other PHP files you need to include them.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.