Added: 3 years ago
From: phpacademy
Views: 13,261
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (21)

Sign In or Sign Up now to post a comment!
  • another cool function that you've taught me fantastic! by chance are you on facebook alex?

  • Briliant tutorials, Alex! Keep the good work!

  • On the line $useragent = $_server

    it says there is a fatal error, function must be a string. Help?

  • so what if you have been crawled? will you earn millions or dollars?! lmao jk

  • @elvisniperx Well as a mather of fact, the beginners will learn how to separate functions for each browser by this helpful piece of code.

  • Great tutorials alex,

    Im trying to work out this tutorial i have used this code:

    im using the code to create the file: $file = fopen("test.txt","a"); and it doesnt create the file in my directory.

    any ideas?

  • @SlamTubeYou Make sure the directory is writeable by others (look into changing permissions). If it still isn't working, add the following code on the very top of your page (before any other code): ini_set("display_errors", 1) ;

    Good luck!

  • Good video. Theres only one thing I can't figure out. I've been searching around all night for a way to add more then one search into this script but came up with nothing

  • what about bing

  • Hey Alex - always great videos, when i use the Googlebot script it works great however the txt file that is saved an written to for some reason i cant get the text to write on separate lines, In your video you added \n to the end of the text and it created a line break. Im using Windows 7 and have copied your script to a T and still no lone breaks, any ideas?

  • That's awesome, never knew you could do that!

  • this is what you got .htaccess and robots.txt for :D

  • Great tutorial!

    To expand on it for anyone who's interested, it might be a good idea to append the date to each of the "You've been crawled" lines so you know when the site was crawled.

  • I believe that you misspelled the "stripos()" function. The correct spelling should be "strpos()".

    Thank you for the great tutorials btw.

  • stripos() is just the case-insensitive version of strpos(). Both should work fine for this example

  • Good thinking and nicely made video!

    Thanks Alex!

    For some reason, the code here does not work with IE7 but it perfectly works with Firefox

  • whats does it accualy mean when your site has been crawled.?

  • if it has been updated or indexed into google or Yahoo etc.

    if you have been crawled, you have been updated on a search engine.

  • pastebin com / f597e4411

  • Woops, forgot to put what it is.. :)

    That is my 'advanced' log script. Have fun :D

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more