Results 1 to 5 of 5

Thread: News Update script with PHP

  1. #1
    Join Date
    Apr 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default News Update script with PHP

    I had the News Updater working fine in my .html page, but then I decided I wanted to switch to a .php in order to use the Include function for the page layout. Despite keeping everything present and correct inside the .php file for the script, when I view it uploaded to the web, instead of rotating through the separate messages, all are shown concurrently over the top of each other.

    Have I done something wrong, or does this script not work in a .php file?

  2. #2
    Join Date
    Apr 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    http://www.dynamicdrive.com/dynamicindex2/scroller1.htm

    Here is the link to the particular script.

  3. #3
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by crafty bison
    Have I done something wrong, or does this script not work in a .php file?
    Why on Earth wouldn't it? PHP just outputs data - usually just HTML. A user agent doesn't care where that output comes from, whether it be a static file or a dynamic one, as either way the process is transparent.

    Here is the link to the particular script.
    It would be far more useful to see the page in question.

    Mike

  4. #4
    Join Date
    Apr 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Sorry for my ignorance regarding this; I'm new to coding websites.

    http://awc.supremepixels.net/index2.php is the webpage.

  5. #5
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Hmmm just by looking at the source code I don't see where the problem is occuring. Are you certain the script works if you do not include it via PHP? Like Mwinter says, it shouldn't matter if done correctly though.

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
  •