Results 1 to 5 of 5

Thread: Why would this site use PHP

  1. #1
    Join Date
    Apr 2006
    Posts
    584
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Why would this site use PHP

    Hi All,

    Am trying to get my head around PHP and am wondering this site here http://www.dumbofeather.com/df.php what part of the index page would use php? I thought PHP talked to a database?

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Lots of reasons, could be anything really.

    My guess (based on the extra space below the </html> tag is a page/hit counter. I used some that were php based and show no code on page.

    perhaps something like this is the case here, and the owner doesn't use the
    Code:
    AddType application/x-httpd-php .html .htm
    AddHandler application/x-httpd-php .html .php .htm
    to allow php in the html pages??
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  3. #3
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    1. It's valid to replace any .htm extension with .php.... might be habit or for consistancy with the rest of the site.
    2. it's not just for databases... it's also for dynamic content.. perhaps the src for the flash is dynamic, OR even from a datase.
    3. CMS (content management services) use php sometimes.... could be related to something along these lines.
    4. Might use php to track IPs for unique hits.

    Lots and lots of possibilities.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  4. #4
    Join Date
    Mar 2006
    Location
    Cleveland, Ohio
    Posts
    574
    Thanks
    6
    Thanked 5 Times in 5 Posts

    Default

    Sometimes, you can mesh flash and PHP. Maybe the pages in the flash file are added in dynamically. Also, as stated above, it could be for a counter.

    PHP is not always hooked up with a database, as well.

  5. #5
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Yes. Flash can also output POST data and other things that might be php related.

    Mainly, we have no idea, since we can't see the source code, as that's how php works.

    I still would guess that it's more for consistancy than anything else, but there may also be other things going on, like cookies, for examples, perhaps storing a preference, like that you have (or don't have) flash player installed.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

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
  •