Jump to content

Page Parsing


S Murder
 Share

Recommended Posts

So, if at the top of the page I redirect the user with Javascript, will PHP output the whole file and send it to the client, or will the page be sent as its written, meaning only the part up to the point where it's redirected is written out and sent?

Link to comment
Share on other sites

PHP will send the whole file, unless you tell it not to...Use exit(); after you output the javascript (in php) and it will stop executing.

Link to comment
Share on other sites

PHP will send the whole file, unless you tell it not to...Use exit(); after you output the javascript (in php) and it will stop executing.
Will it cause everything after exit() to not be sent at all?
Link to comment
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
 Share

×
×
  • Create New...