Various index pages: want a different index page to show each time

Dear Experts,
Thanks for reading this..
Does anyone know how you can have a different index page each time a viewer comes to the site. Say for example there are two different index pages. How can I get the browser to chose one, then the other?
Thanks so much.
Warmly,
Hope

Dear IPHP,
I see why you have this name...Thanks for the 'clear post' compliment.
Will read this over carefully and see ... have never done php or database anything.....
Thanks for all this input, very appreciated....warmly, Hope
1. This is simple to do with database driven content.
2. Simply create primary id's for each database entry (index page content)
then create a script to randomly display the content.
3. Also add a line in the script to prevent the browser from catching the page or else the same page might be displayed.
php example below easily found by googling the term php random page script.
<?php
    //from http://php.net/header
    header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
    header("Expires: Sun, 10 Oct 2010 10:00:00 GMT"); // Date in the past
    srand ((double) microtime( )*1000000);
    $random_number = rand(1,100);
    header( "Location: http://example.com/?page=$random_number" ) ;
?>
This will randomly load the index page with a URL variable between 1 and 100 to randomly display the dynamic content of the database table based on the primary ID of the recordset.

Similar Messages

  • Every time I try to downlaod update to itunes. I receive an error message. any ideas? I want to update my iphone 4 and each time it requires the installation of newest itunes version?

    Every time I try to downlaod update to itunes. I receive an error message. any ideas? I want to update my iphone 4 and each time it requires the installation of newest itunes version?

    i am having the same problem, my error message is that basically it (connection) has timed out! i have tried all day to get it to go thur

  • How do I get Firefox/mozilla to stop "not allowing a page to change" I don't want to keep having to hit allow each time Thanks john

    On going to a new item on say news page a bar opens like in windows and reads Firefox has prevented this page from opening. then farther along the bar there is an allow button. I don't want to have to click each time. Thanks. john

    See:
    *Firefox/Tools > Options/Preferences > Advanced > General : Accessibility : [ ] "Warn me when web sites try to redirect or reload the page"
    The setting in "Tools > Options > Advanced > General" is meant as an accessibility feature, as you can see by the label of that section, so that people with disabilities or people who use screen readers do not get confused and is not meant as a safety protection to stop redirecting.
    See also:
    *https://support.mozilla.org/kb/settings-network-updates-and-encryption#w_general-tab
    *http://kb.mozillazine.org/accessibility.blockautorefresh
    *http://kb.mozillazine.org/Accessibility_features_of_Firefox

  • Printing the same page or range each time ctrl-P is selected

    Has anyone figured out how to set Indesign to leave the page number or current pages each time the print dialog box is opened. Pagemaker used to do this and each time we have purchased Indesign the sales people tell us that this was fixed. After downloading and installing 3 diffrerent versions, I come to believe that all sales people are liars or they don't know their own product.

    See this -
    https://support.mozilla.com/en-US/kb/Firefox+crashes

  • How do i stop the plug in update page from showing every time i start firefox? all are green and updated...

    plugin update page appears every time I open firefox. All of the plugin updates are green.

    i downloaded and restarted version 18 and still get the plug in page loading it is driving me crazy if i don't find a solution fast i am getting rid of what used to be a great browser hope some one can help me

  • Pages - application quits each time I try to save document as a PDF

    When I complete a document I select "Print" then "Save as PDF" the application - Pages - quits immediately ..... this is a new phenomanon as I have had no problems doing this in the past ..... any ideas on how to correct?
    Many thanks?
    Joe

    Hello Joe
    Could this be your problem?
    http://discussions.apple.com/thread.jspa?threadID=768661&tstart=25

  • FF prevents pages from reloading each time & I have to click allow. How do I adjust this to allow pages to load .

    whenever I have on facebook & switch from page to page (tab to tab) when it refreshes & tries to reload the page it has a pop up that states FF prevents this page from reloading....allow? I have to click allow repeatedly or close out the window to get the page to load. I need this pop up block to stop & have looked under options for a place to stop it & cannot locate the area to prevent it.

    Options > Advanced > General, '''''un-check''''' "Warn me when web sites try to redirect or reload the page"
    *See --> [https://support.mozilla.com/en-US/kb/Options%20window%20-%20Advanced%20panel Options window-Advanced panel]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • I want Firefox to open a new session each time I use it rather than to try to recover my previous one; how do I go about this?

    What more details do you need? I want to open a new session when I use your product rather than have the product go through the slow tedious process of trying to recreate the previous session.

    Please see this support article on [[Session Restore]]. Follow the instructions under the "Configuring session restore" header. When you get to the step where it says "Show my windows and tabs from last time" you can choose from showing your homepage or showing a blank page instead.

  • Itunes fails to recognize my phone and wants me to load as 'new phone' each time I hook up. I have disabled firewalls and it will recognize one out of five times. It also attempts to sync but just runs forever,  then gives error message 0xE8004006

    Itunes does not recognize Iphone. It asks me to restore or add as new phone each time I sign on. It then attempts to sync, just runs forever. After five tries, it allowed me to upgrade OS, but still refused to complete a sync. I have disabled firewalls. Error message 0xE8004006
    Thanks

    https://discussions.apple.com/thread/2482232?start=0&tstart=0

  • How can I REMOVE the Yahoo! tab from the menu bar? Each time I open Firefox, I get the gialogue box asking if I want to make yahoo the default and each time I respond no and check the do not ask this question again.

    I am tempted to remove Ff4 and revert to 3.X if I cannot fix this problem. The question (statement) has all pertinent details already included

    '''Hello peacefultrev,'''
    I believe from your question you wish to remove the window title-bar, while keeping the menu bar available.
    I have two solutions for you to try. One requires no plugin and the other requires the installation of a plugin.
    '''No plugin option:'''
    This option hides the the window title while also removing the menu bar. The menu bar can then be reactivated and viewed simply by pressing "Alt" which shows the menu bar until you click away from it. To do this:
    # Right click on the tab bar and disable "Menu Bar".
    # Whenever you which to use the menu bar, tap "Alt" on your keyboard.
    # When you click away from the menu bar the windows title will disappear until you tap "Alt" again.
    '''Plugin Option:'''
    You can download this plugin called [https://addons.mozilla.org/en-US/firefox/addon/hide-caption-titlebar-plus-sma/ Hide Caption Titlebar Plus] which can be customized to suit your needs. I cannot provide support on this plugin as I have not used it myself.
    I hope one of these solutions will suit your needs.
    Mattlem

  • Each time I open my Firefox browser, the following web page opens. Has my browser been hijacked? http:former/v18/?v=18&cid=4151&clickid=0066992567558218278&a=

    Please help me get rid of the following web page that appears each time I open the Firefox browser. It appears as a separate page behind the browser window, and each time I close it. Very annoying -- has my version of Firefox been hacked? I have run Norton complete scan, etc. -- no problem detected. Here is the web page -- http://www.appround.biz/lp/videoperformer/v18/?v=18&cid=4151&clickid=0066992567558218278&a=1 == and this is the message on that page --
    There is a new Video Player version. Install new version now for better performance

    You should never install software or a Firefox extension when a website asks you to do this as this is likely an effort to install malware.
    You can check the target line in the Firefox desktop shortcut (right-click: Properties) to make sure that nothing is appended after the path to the Firefox program.
    Your System Details List shows the Default Tab 2.3.1 and the SafeSearch 2.1 extensions.
    Do a malware check with some malware scanning programs on the Windows computer.<br>
    Please scan with all programs because each program detects different malware.<br>
    All these programs have free versions.
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *Malwarebytes' Anti-Malware:<br>http://www.malwarebytes.org/mbam.php
    *AdwCleaner:<br>http://www.bleepingcomputer.com/download/adwcleaner/<br>http://www.softpedia.com/get/Antivirus/Removal-Tools/AdwCleaner.shtml
    *SuperAntispyware:<br>http://www.superantispyware.com/
    *Microsoft Safety Scanner:<br>http://www.microsoft.com/security/scanner/en-us/default.aspx
    *Windows Defender: Home Page:<br>http://www.microsoft.com/windows/products/winfamily/defender/default.mspx
    *Spybot Search & Destroy:<br>http://www.safer-networking.org/en/index.html
    *Kasperky Free Security Scan:<br>http://www.kaspersky.com/security-scan
    You can also do a check for a rootkit infection with TDSSKiller.
    *Anti-rootkit utility TDSSKiller:<br>http://support.kaspersky.com/5350?el=88446
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • The first run page keeps opening every time I open my home page, how do I turn it off?

    When I first downloaded FF 4 on my netbook I got the first run, welcome to FF 4 screen. As usual. But it keeps coming back. Every time I open FF it opens the welcome screen in the first tab and in the second tab is my home screen.
    If FF is already open and I want to open my home screen in another tab, it simultaneously the welcome screen in one tab and my home screen in another.
    I will not upgrade the rest of my machines to either FF4 or 5 until this is fixed.

    A couple of possible causes, you have multiple home pages set, or the preferences file can not be updated. For details on both of those, see [[Firefox has just updated tab shows each time you start Firefox]].

  • How do I stop the "Better Privacy" help page coming up every time I open Firefox and while browsing?

    The "Better Privacy" help page opens as a separate tab every time I open Firefox. I close it, but it keeps coming back, usually when I go to another site (by clicking a link or using a bookmark) and at seemingly random intervals while I'm browsing.
    chrome://bprivacy/content/BetterPrivacy.html
    I'm sure it's not malware, but it's driving me mad. Is there no way to block this annoyance?
    I don't want to disable Better Privacy, but I'm often tempted to do so.
    I'm using (Linux) Ubuntu 12.04, which comes with Firefox 18.0.2.

    Check the Home page setting:
    *Edit > Preferences > General > Startup: Home page
    *https://support.mozilla.org/kb/How+to+set+the+home+page - Firefox supports multiple home pages separated by '|' symbols
    *https://support.mozilla.org/kb/Firefox+has+just+updated+tab+shows+each+time+you+start+Firefox
    If you do not keep changes after a restart then see:
    *http://kb.mozillazine.org/Preferences_not_saved

  • I can't stop the Firefox Start page from opening - in addition to my default page - each time I open Firefox

    # Question
    I can't stop the Firefox Start page from opening - in addition to my default page - each time I open Firefox

    Is this the Firefox branded Google page? If it is, Firefox can store multiple home pages and you may have 2 home pages set. Follow the instructions to set a single home page in this link - https://support.mozilla.com/kb/How+to+set+the+home+page
    If it is the Firefox has just updated page that keeps on appearing, there may be a different problem, for details on fixing that see https://support.mozilla.com/kb/Firefox+has+just+updated+tab+shows+each+time+you+start+Firefox

  • How do I get a home page that shows recent highlights and the news in lieu of Meet Mozilla Foxfire (this comes up each time I open foxfire)

    ''dupe of https://support.mozilla.org/en-US/questions/919154''
    When I downloaded Foxfire the home page came up with "Meet Mozilla Foxfire" then below that it shows "Become a Firefox Expert in 8 Easy Steps". I would like to delete this and in lieu of that show recent highlights and the news. I have no problem with the tool bars they are fine just the home page.

    See these articles for some suggestions:
    *https://support.mozilla.org/kb/Firefox+has+just+updated+tab+shows+each+time+you+start+Firefox
    *https://support.mozilla.org/kb/How+to+set+the+home+page - Firefox supports multiple home pages separated by '|' symbols
    *http://kb.mozillazine.org/Preferences_not_saved

Maybe you are looking for