Results 1 to 2 of 2

Thread: How To Set Up Cookies!!

  1. #1
    Join Date
    May 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How To Set Up Cookies!!

    Hi there - I have a question about cookies. I have a website www.accordspeedway.com (which is being redone in css, etc.) but right now I have advertisements in the top of each page. Only a few pages "don't" share the same ad - the rest of the pages refer to /images/home/mainflash_ad.swf This FLASH file is updated weekly for new sponsors, etc. PROBLEM is the ad is saved and all I want to do is replace the (one) file called mainflash_ad.swf so all the pages update - I don't want to reload each page with new code each week - JUST the one file. I know I can tell the page or site Not to cach, etc. but I would like the site to remember somethings - such as not reloading ALL the images each time. Is their a way I can set a cookie to a specific image or flash file or table or cell??? OR how could I set the "cookie code" to auto change each week? So I don't have to update the indvidual pages each week??? Any more info needed just ask. Any help would be appreciated. Thank you!

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    I'm not sure I understand what you want to do. You say that you replace mainflash_ad.swf each week. So if all of your pages are have mainflash_ad.swf embedded, why are you having to change all of your files? Are you renaming mainflash_ad.swf as well?

    Cookies wouldn't be the solution here. What you want to do is use PHP (or another sever-side language) to "include" the .swf on each page. This way you only need to change one file and all of the instances of that file are updated.

    Confirm that you have PHP installed on your server and I'll show you how to use PHP to do this.

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
  •