Welcome to TalkGraphics.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2009
    Posts
    10

    Unhappy session_start for php in Web Designer page

    I am using a number of pages designed with Web Designer for all the good reasons in that it allows fantastic, quick design. I am also using a considerable amount of PHP code in the Placeholders in the pages. All works fine except that I have to hand edit the pages where I am using session variables because the php code 'session_start()' (and 'ob_start()' where output buffering is used) has to be absolutely the first lines in the page, before any html code.

    Is there any way I can put this code into Web Designer so it places it at the very beginning and not have to hand edit every file once Web Designer has generated it?

  2. #2
    Join Date
    Nov 2000
    Location
    Red Boiling Springs TN USA
    Posts
    19,208

    Default Re: session_start for php in Web Designer page

    Soquili
    a.k.a. Bill Taylor
    Bill is no longer with us. He died on 10 Dec 2012. We remember him always.
    My TG Album
    Last XaReg update

  3. #3
    Join Date
    Nov 2009
    Posts
    10

    Default Re: session_start for php in Web Designer page

    Thanks Soquili, but those threads refer to putting html code in a <head> block and the answer is clear for that problem. I need to put PHP code right at the beginning of the file, before any html code.

    I have since discovered a very knowledgable thread on this very subject:

    http://www.talkgraphics.com/showthread.php?t=42293

 

 

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •