6 Comments to “The biggest blunder I ever made with PHP”

  1. TheAnand

    Jul 12th, 2008

    Hehe….I really thank you for not using my blog as a test url….which would had got me a ton of hits and impressions on adsense!!!!! That is a really expensive mistake in php

  2. Sajith M.R

    Jul 12th, 2008

    Hey anand,
    Calling an url from file_get_contents never affect your adsense and analytics. Because they are javascript. This call never execute those scripts. Only browsers visit can be counted using your analytics etc stuffs

    Regards
    Sajith. M.R

  3. TheAnand

    Jul 12th, 2008

    Oh, I think that explains why my hosts analytics like webalizer and webstats are showing a higher count than that of analytics. Am I right in taking this as the reason for the problem?

  4. Binny V A

    Jul 12th, 2008

    I cannot see any code – all I see is…

    file: index.php >>

    215185bfd4f7d85644ac3f87b850f03a000

  5. Sajith M.R

    Jul 14th, 2008

    Hello Binny, Check now… There was some error

  6. Asti

    Aug 27th, 2009

    I don’t know how i came across this page, but its not as much of a blunder as your understanding of basic programming paradigms.

    There are synchronous calls and asynchronous calls.
    file_get_contents is a synchronous call, while a RESTful request, like http://localhost/ is an asynchronous one.

    Getting http://localhost/ requires that the synchronous call be completed, but since it won’t be completed nothing will happen. The server will simply wait it out. What does recursion even have to do with this?

    Even, won’t do a thing. Don’t confuse the n00bs. :P


Leave a Reply