SitePoint Sponsor

User Tag List

Results 1 to 10 of 10

Thread: php problem.

  1. #1
    SitePoint Wizard nofel's Avatar
    Join Date
    Aug 2007
    Location
    Earth
    Posts
    1,766
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Angry php problem.

    Hey all mi m working on a website in which some guy had makde keywords taken from variable now i have deleted his dynamic keywords and made a file of my own called keywords.php and including it but its not getting included whereas the files above n below it r being processed i have pasted the code
    Code PHP:
    <?
    require_once("conn.php");
    require_once("includes.php");
    require_once("templates/HeaderTemplate.php");
    [B]include("keywords.php");[/B]
    ?>

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Is there any output? Are there any error messages? Is anything being printed in apache's error_log? What's in keywords.php?

  3. #3
    SitePoint Wizard nofel's Avatar
    Join Date
    Aug 2007
    Location
    Earth
    Posts
    1,766
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    No errors. the output is normal. everything is being loaded expect the file keywords.php. in keywords.php i have set meta tags

  4. #4
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Does HeaderTemplate turn on output buffering?

  5. #5
    SitePoint Wizard nofel's Avatar
    Join Date
    Aug 2007
    Location
    Earth
    Posts
    1,766
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    yes

  6. #6
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    That would consume the output below it then...

    I feel like I'm playing 20 questions

  7. #7
    SitePoint Wizard nofel's Avatar
    Join Date
    Aug 2007
    Location
    Earth
    Posts
    1,766
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    i didn't got wht u mean

  8. #8
    SitePoint Member
    Join Date
    Apr 2009
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    put something in keywords php to test if really included

  9. #9
    Theoretical Physics Student bronze trophy Jake Arkinstall's Avatar
    Join Date
    May 2006
    Location
    Lancaster University, UK
    Posts
    7,062
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Dan Grossman View Post
    I feel like I'm playing 20 questions
    Quote Originally Posted by ammark View Post
    i didn't got wht u mean
    You're giving us very little in terms of information.

    What's inside keywords.php?
    Jake Arkinstall
    "Sometimes you don't need to reinvent the wheel;
    Sometimes its enough to make that wheel more rounded"-Molona

  10. #10
    SitePoint Addict
    Join Date
    Oct 2003
    Location
    United States
    Posts
    281
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    My guess is that if

    PHP Code:
    require_once("templates/HeaderTemplate.php"); 
    Contains your header template, that is where your variables are supposed to be outputted. If so, you need to include your keywords.php before that line.

    PHP Code:
    require_once("conn.php");
    require_once(
    "includes.php");
    include(
    "keywords.php");
    require_once(
    "templates/HeaderTemplate.php"); 
    If that doesn't work, echo something from keywords.php to make sure it is including and check how you are printing the variables.

    Without much code, we can only help so much.


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
  •