Changing 3 lines of code to php from c# -


Can someone give me some information about the following code on PHP because the code below is in C #

  var response = html console Present. response; Response.Clear (); Response.AppendCookie ("File download download token", downloadTokenValue); response.AddHeader ("content-displacement", string.format ("attachment; file name = {0}", desired filename)); flush ( );   

Thank you in advance

You get it like this

  & lt ;? php $ downloadTokenValue = 'youre value'; $ desired filename = 'desired file name value'; setcookie ("filedownloadtoken", $ downloadTokenValue, time () + 3600); Header ("Content if you want to read that cookie You can  echo $ _COOKIE ["fileDownloadToken"]    ;   

Comments

Popular posts from this blog

java - NullPointerException for a 2d Array -

python - Assemble mpeg file unable to play in mediaplayer -

c# - NameSpace Manager or XsltContent to parse aspx page -