Help - Search - Members - Calendar
Full Version: template include?
Pixel2Life Forum > Help Section > PHP, ASP, MySQL, JavaScript and other Web/Database Programming Help
Dekkon
Yes, the file exist.





Thanks for helping too, learning at this and can't find the error but maybe I haven't stared at it long enough. bigwink.gif
Neil
Hi,

Because your register page is inside the include folder you're doing the include wrong.

If you're in /includes/register.php and you include "includes/templates/x.php" you're actually including "/includes/includes/templates/x.php".

Change the include to:
include('templates/template_register.php');

cheers
Neil
Also a pro tip. Don't use dreamweaver unless you absolutely have to use it smile.gif If you can handcode your html I would recommend using Zend Studio or Zend for Eclipse. Zend would have actually told you that this file didn't exist as the code completion is far more superior.

I'm sure you'll know how to get your hands on it bigwink.gif
rc69
Actually, Dreamweaver is an extremely nice HTML/PHP editor. It does lack the advanced features an IDE (such as Eclipse) could give, but that is one reason i would recommend it to beginners (it's not as complex, so the learning curve is a bit smoother).

Outside of that, i want to thank you Dekkon for providing the pic with the directory structure. If you hadn't, i would have suggested making sure you had your paths correct (as Neil noted).
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.