SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Guru afridy's Avatar
    Join Date
    Mar 2007
    Posts
    960
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    php and search engine indexing

    Hello folks

    i have one doubt

    file name : sms.php
    PHP Code:
    <?php
    //check all employee ids for expiry
    //send sms to the once who's id has expired today.
    ?>
    now i have above file in ftp. this file has no any links from other pages.
    we have added this file to the crone job. so in the mid night it will run this script and send sms to ppl.
    my question is:

    while this script is in ftp, if a search engine / bot try to read this file (will it happend?), i am afraid it will send sms every time a search engine or bot is accessing. so do i need to ad 'meta=robots' tag to the php file header as shown below ?

    PHP Code:
    echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
    <html xmlns=\"http://www.w3.org/1999/xhtml\">
    <head>
    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />
    <title>Untitled Document</title>
    <META NAME=\"ROBOTS\" CONTENT=\"NOINDEX, NOFOLLOW\">
    </head>"
    ;

    //check all employee ids for expiry
    //send sms to the once who's id has expired today.
    .....
    echo 
    "</html>"

  2. #2
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    How will the bots know the file exists?

  3. #3
    SitePoint Guru afridy's Avatar
    Join Date
    Mar 2007
    Posts
    960
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Cups View Post
    How will the bots know the file exists?


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
  •