Re: [PHP-WIN] php include problem

2007-03-31 Thread trystano
probs best off using the variables that fall under $_SERVER for determining your application root. Tryst -Original Message- From: [EMAIL PROTECTED] To: php-windows@lists.php.net Sent: Thu, 29 Mar 2007 12.38PM Subject: RE: [PHP-WIN] php include problem I do this little tr

RE: [PHP-WIN] php include problem

2007-03-29 Thread Styve Couture
DEFINE("SERVER_SQL_CLASS_PATH", SERVER_CLASS_PATH."sqlWrapper/"); } // Fonctions générales nécessaires à certaines classes. include_once(SERVER_INCLUDEFILE_PATH.'module_fonction_generale.php'); -Message d'origin

Re: [PHP-WIN] php include problem

2007-03-28 Thread Hartleigh Burton
My bad ;) On 29/03/2007, at 11:32 AM, Niel Archer wrote: Hi When including try using ./new/images instead of /new/images the . should tell it to start at root level. No. the '.' tells it to start at current directory. '../' would tell it to start at the parent directory (one level high

Re: [PHP-WIN] php include problem

2007-03-28 Thread Niel Archer
Hi > When including try using ./new/images instead of /new/images > > the . should tell it to start at root level. No. the '.' tells it to start at current directory. '../' would tell it to start at the parent directory (one level higher) so: "../images/" would work in this example. bob's ad

Re: [PHP-WIN] php include problem

2007-03-28 Thread Hartleigh Burton
When including try using ./new/images instead of /new/images the . should tell it to start at root level. On 29/03/2007, at 7:42 AM, Pivi wrote: Hi! I have this files in my root folder index.php header.php footer.php "images" folder then i made one new folder "new" and i copied index.php,

Re: [PHP-WIN] php include problem

2007-03-28 Thread bob plano
just use absolute URL's when you have the script include the pictures On 3/28/07, Pivi <[EMAIL PROTECTED]> wrote: Hi! I have this files in my root folder index.php header.php footer.php "images" folder then i made one new folder "new" and i copied index.php, header.php and footer.php in this

[PHP-WIN] php include problem

2007-03-28 Thread Pivi
Hi! I have this files in my root folder index.php header.php footer.php "images" folder then i made one new folder "new" and i copied index.php, header.php and footer.php in this new folder (also leaving this files in root folder, too). Now header.php and footer.php files in folder "new" are s

Re: [PHP-WIN] PHP include problem

2006-01-02 Thread gued steph
Have you verified the include path to news.php ? Steph --- uros marolt <[EMAIL PROTECTED]> a écrit : > What if you do it like this > > if ($_GET["page"] == "") >{ >include("news.php"); >} >else >{ >include($arp . ".php"); >} > ?> > > How

Re: [PHP-WIN] PHP include problem

2005-12-24 Thread uros marolt
What if you do it like this How do you pass your $page variable anyway? -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-WIN] PHP include problem

2005-12-24 Thread David Collard
its not supposed to be 'include "$page.php";' is it? what is the code that sets the '$arp' variable? Ken Yarbrough wrote: I recently allowed one of my friends to host their site on my server, and we realized that when you click a link, it doesn't include the content into the main page. I'm n

[PHP-WIN] PHP include problem

2005-12-22 Thread Ken Yarbrough
I recently allowed one of my friends to host their site on my server, and we realized that when you click a link, it doesn't include the content into the main page. I'm not sure what would cause this, but the include code is the following: The function is to by default, include "news.php" an