MrFish Posted June 21, 2009 Share Posted June 21, 2009 In php you have to put create cookies before the html tags but could you create a file that makes cookies before the html tags and include it into you actual code somewhere? Link to comment Share on other sites More sharing options...
boen_robot Posted June 21, 2009 Share Posted June 21, 2009 Yes, but the file won't be able to actually make the cookies until it's executed. There's a difference between creating a file and executing it after all. And you can only execute the created file after the current PHP script is over. eval()-ing it isn't going to make any difference. Executing it from the command line (while possible) won't make a difference either, as the new file will need to return the cookie as an HTTP header, which can only happen upon an HTTP request from the user agent that would receive the cookie. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.