Include Is Not Working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • benoypaul
    New Member
    • May 2007
    • 28

    #1

    Include Is Not Working

    I am using an include file in my php program. This include file is not working with php program file ,but it is working with browser(http://yoga.womans-health.net/Includes/NewsFeed.php?CA T=About+Yoga). Code is given below
    Code:
    include  'http://yoga.womans-halth.net/Includes/NewsFeed.php?CAT=About+Yoga';
    your help is greatly appreciated.. thanks
  • jenkinsloveschicken
    New Member
    • Dec 2006
    • 56

    #2
    benoypaul,

    Have you tried referencing the working directory/relative path? ie.

    Code:
    include('Includes/NewsFeed.php')
    Also, check out php.net. Search for include and check out the documentation. There are many different ways of approaching this type of problem.

    Post back if you are still having problems.

    Regards,
    Jenkins
    Last edited by jenkinsloveschicken; Feb 2 '08, 03:28 PM. Reason: Edit

    Comment

    • Markus
      Recognized Expert Expert
      • Jun 2007
      • 6092

      #3
      It's searching for a file named: NewsFeed.php?CA T=About+Yoga

      and that probably isnt how the file is named. I suspect it is: NewsFeed.php

      I'm not sure if there's a way to add variables to the end of an included file name.

      Comment

      • ifedi
        New Member
        • Jan 2008
        • 60

        #4
        Originally posted by markusn00b
        It's searching for a file named: NewsFeed.php?CA T=About+Yoga

        and that probably isnt how the file is named. I suspect it is: NewsFeed.php

        I'm not sure if there's a way to add variables to the end of an included file name.
        Yeah, of course.
        The query string (ie the '?' and all that comes after it is probably the offender. Donno what its doin in an include statement.

        Ifedi.

        Comment

        Working...