include function not working URGENT!

Reply

Join Date: Jun 2006
Posts: 4
Reputation: inxs310 is an unknown quantity at this point 
Solved Threads: 0
inxs310 inxs310 is offline Offline
Newbie Poster

include function not working URGENT!

 
0
  #1
Jun 19th, 2006
[PHP] <?

include("$include_path/FastTemplate.php3");
$tpl = new FastTemplate("templates");
$tpl->no_strict();


[/PHP]

can someone help me!! plz
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 4
Reputation: inxs310 is an unknown quantity at this point 
Solved Threads: 0
inxs310 inxs310 is offline Offline
Newbie Poster

Re: include function not working URGENT!

 
0
  #2
Jun 19th, 2006
there was no given error, it just said something that one of my coders typed in....so i got it to work and then i was trying to get the thumbnails to work and then next thing i know blank page....

www.photoblinger.com/old/index1.php and www.photoblinger.com/old/index2.php

  1. <?php
  2. ini_set("session.auto_start","1");
  3. //echo("Working???");
  4. require("./admin/config.php");
  5. //echo("After config.php");
  6. include("./include/common.php");
  7. include("./include/blue.php");
  8. include("./include/doc_head.php");
  9. include("./include/styles.php");

thats just an example of what i saw
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 494
Reputation: Puckdropper is an unknown quantity at this point 
Solved Threads: 21
Puckdropper Puckdropper is offline Offline
Posting Pro in Training

Re: include function not working URGENT!

 
0
  #3
Jun 20th, 2006
Isn't the syntax of include?
include "filename"
www.uncreativelabs.net

Old computers are getting to be a lost art. Here at Uncreative Labs, we still enjoy using the old computers. Sometimes we want to see how far a particular system can go, other times we use a stock system to remind ourselves of what we once had.
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 1
Reputation: brent635 is an unknown quantity at this point 
Solved Threads: 0
brent635 brent635 is offline Offline
Newbie Poster

Re: include function not working URGENT!

 
0
  #4
Jan 17th, 2009
Either syntax is fine.

I included a function file and got a blank page as a result. Turns out I'd declared the same function twice which caused the blank page, with no error or warning messages.

Just a thought...
Last edited by brent635; Jan 17th, 2009 at 9:04 am.
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 11
Reputation: Yayo_SK is an unknown quantity at this point 
Solved Threads: 1
Yayo_SK Yayo_SK is offline Offline
Newbie Poster

Re: include function not working URGENT!

 
0
  #5
Jan 17th, 2009
Maybe problem is here:
at first line: start tag should be full: <?PHP or at second line.

<?PHP
include($include_path . "/FastTemplate.php3");
$tpl = new FastTemplate("templates");
$tpl->no_strict();
?>
Last edited by peter_budo; Jan 18th, 2009 at 2:06 pm. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC