Re: [PHP] Include problems

2008-04-14 Thread Daniel Brown
On Sat, Apr 12, 2008 at 11:06 PM, Bojan Tesanovic <[EMAIL PROTECTED]> wrote: > > On Apr 12, 2008, at 8:28 AM, GoWtHaM NaRiSiPaLli wrote: > > > > if(file_exists("../common/config.ini")) { > > $configData = parse_ini_file("../common/config.ini"); > > } else { > > > > > Try changing above code so i

Re: [PHP] Include problems

2008-04-12 Thread Bojan Tesanovic
On Apr 12, 2008, at 8:28 AM, GoWtHaM NaRiSiPaLli wrote: if(file_exists("../common/config.ini")) { $configData = parse_ini_file("../common/config.ini"); } else { Try changing above code so it reads if(file_exists("common/config.ini")) { $configData = parse_ini_file("common/config.ini");

Re: [PHP] include() problems

2003-10-06 Thread Burhan Khalid
Gustave Bernier wrote: I'm new to PHP and I'm trying to use the include function but with no success... My server's ini file is set as (allow_url_fopen, 0) so I'm having some trouble to pass different values for the php file I'm calling. The address is: http://mydomain.com/forums/ssi.php?a=act

Re: [PHP] include() problems

2003-10-02 Thread Chris Sherwood
<-- snip --> From: "Chris W. Parker" <[EMAIL PROTECTED]> > The address is: http://mydomain.com/forums/ssi.php?a=active > > The code I'm trying now is: > $_GET['a'] = 'active'; > include('forums/ssi.php'); You're including the parent file in itself. This could be the problem. <--SNIP --> espec

RE: [PHP] include() problems

2003-10-02 Thread Chris W. Parker
Gustave Bernier on Thursday, October 02, 2003 6:20 AM said: > The address is: http://mydomain.com/forums/ssi.php?a=active > > The code I'm trying now is: > $_GET['a'] = 'active'; > include('forums/ssi.php'); You're including the parent file in itself. This could be

Re: [PHP] include () problems

2003-08-25 Thread Jim Lucas
If you are having a problem that tells you that output was displayed on a given line in a given file. And you found this because after the output you tried sending headers, then look in that file on that given line, and you will see the problem. It could be a simple as a ?> To: <[EMAIL PROTECT

Re: [PHP] Include Problems

2003-07-25 Thread sven
hi eric, as far as i can see, there is no definition for your '$subnav' in your 'incHeader.php'. if you call your main script like this: 'http://example.com/index.php?subnav="home";', this should work with your inclusion. ciao SVEN Eric Fleming wrote: > Here is a snippet from the header file.

Re: [PHP] Include Problems

2003-07-24 Thread Eric Fleming
I figured out what was wrong with it, thanks for all your help. I hate syntax errors. I needed to echo the variable when trying to display it and the double "=" helped resolve the other problem. Thanks everyone. "Chris W. Parker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Jay

RE: [PHP] Include Problems

2003-07-24 Thread Chris W. Parker
Jay Blanchard on Thursday, July 24, 2003 1:12 PM said: > I just cleaned it up some, used non deprecated formatting tags and sis > it all in one shot. Yeah but Jay, you didn't allow for an else. Your code should have an else in there so that even if he's not at home

RE: [PHP] Include Problems

2003-07-24 Thread Jay Blanchard
[snip] What is different about the code that you wrote except that you have the html being output by php? [/snip] I just cleaned it up some, used non deprecated formatting tags and sis it all in one shot. HTH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

Re: [PHP] Include Problems

2003-07-24 Thread Eric Fleming
I have ran it on my local machine and at my hosting company and it doesn't work for me. I even tried using wrote in message news:[EMAIL PROTECTED] > Eric, I tried your code on my machine and it seems to print the name of > the variable just fine. The only change I had to make to your code was >

Re: [PHP] Include Problems

2003-07-24 Thread Jason Giangrande
Eric, I tried your code on my machine and it seems to print the name of the variable just fine. The only change I had to make to your code was add the long PHP tags (i.e. [Site Name] home It printed home twice once

Re: [PHP] Include Problems

2003-07-24 Thread Eric Fleming
What is different about the code that you wrote except that you have the html being output by php? "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] <-incHeader.php--> [Site Name] home <-incHeader.php

RE: [PHP] Include Problems

2003-07-24 Thread Jay Blanchard
[snip] <-incHeader.php--> [Site Name] home <-incHeader.php--> [/snip] home"); } ?> HTH! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Include Problems

2003-07-24 Thread Eric Fleming
Here is a snippet from the header file. You can see that I am just trying to determine what the value of the subnav variable is set to in order to determine which navigational link is bold. There are other places the variable is used, but you can get an idea based on what is below. Thanks for an

Re: [PHP] Include Problems

2003-07-24 Thread Eric Fleming
Yeah, that is a problem, but I can't even print out the value of the subnav variable. It prints nothing when I try to print the variable. "Jason Giangrande" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Eric, If you want to check to see if $subnav is equal to "home" you want > to

Re: [PHP] Include Problems

2003-07-24 Thread Jason Giangrande
Eric, If you want to check to see if $subnav is equal to "home" you want to use == and not =. Perhaps this is your problem. Jason On Thu, 2003-07-24 at 15:35, Eric Fleming wrote: > Here is a snippet from the header file. You can see that I am just trying > to determine what the value of the sub

Re: [PHP] Include Problems

2003-07-24 Thread Eric Fleming
Here is a snippet from the header file. You can see that I am just trying to determine what the value of the subnav variable is set to in order to determine which navigational link is bold. There are other places the variable is used, but you can get an idea based on what is below. Thanks for an

Re: [PHP] Include Problems

2003-07-24 Thread Jason Giangrande
Is the code you are trying to call $subnav from inside a function? If so you will need to tell the function that by using the global keyword (i.e. global $subnav;). Other than that the code you've shown looks right to me. Jason On Thu, 2003-07-24 at 13:55, Eric Fleming wrote: > I am having some

RE: [PHP] Include Problems

2003-07-24 Thread Jennifer Goodie
Without seeing what you have in your includes, it will be hard to determine where your scope is messed up. > $subnav = "home"; > include("incHeader.php"); > ?> > > > > The content would go here. > > > > > > Now, when I try to reference the subnav variable in the inHeader.php or > incFooter.p

RE: [PHP] Include Problems

2003-07-24 Thread Jay Blanchard
[snip] The content would go here. Now, when I try to reference the subnav variable in the inHeader.php or incFooter.php files, it comes up blank. I am basically trying to adjust the navigation on each page depending on the page I am on. I am just learning PHP, have programmed in ColdFusi

Re: [PHP] Include Problems

2003-07-24 Thread Jeff Harris
On Jul 24, 2003, "Eric Fleming" claimed that: |I am having some problems using variables in included files. Can someone |please look at my code below and see how I might accomplish what I am trying |to do? [snip] |Now, when I try to reference the subnav variable in the inHeader.php or |incFooter.

Re: [PHP] Include() problems IGNORE PARENT

2003-02-14 Thread Leo Spalteholz
Never mind. Apparently I can't tell the difference between a capital and a lowercase B. time to crash methinks. leo On February 13, 2003 11:59 pm, Leo Spalteholz wrote: > I just ran into a somewhat strange problem with an include failing. > I have the following in my script: > include(dirname(

Re: [PHP] Include Problems

2002-12-26 Thread Gerald Timothy Quimpo
On Thursday 26 December 2002 12:06 pm, Mike Bowers wrote: > It's not permissions. The files to be read as well as folders are all > CHMOD 777 as I thought it was this originally. don't use 777. that makes the scripts writeable for everyone. any other user who can run scripts on that server can d

RE: [PHP] Include Problems

2002-12-26 Thread Mike Bowers
This has worked. Thanks for your inout and help everybody. -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 1:13 PM To: Mike Bowers; [EMAIL PROTECTED] Subject: Re: [PHP] Include Problems You can try setting your include path in a

Re: [PHP] Include Problems

2002-12-26 Thread Chris Wesley
On Thu, 26 Dec 2002, Mike Bowers wrote: > I have a file named header.php stored in the includes folder: > Inside includes is anohter folder called editable. > When I open my page for the first time (before it is cached) or after I > edit my header file I get these errors: > Warning: Failed opening

Re: [PHP] Include Problems

2002-12-26 Thread John Nichel
nclude("editable/my_header.php"); -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 12:58 PM To: Mike Bowers Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Include Problems Post the include statements from your header.php file. Mike Bowers wro

RE: [PHP] Include Problems

2002-12-26 Thread Mike Bowers
EMAIL PROTECTED] Subject: Re: [PHP] Include Problems Mike Bowers wrote: > I have a file named header.php stored in the includes folder: > > Inside includes is anohter folder called editable. > > When I open my page for the first time (before it is cached) or after > I edit my

Re: [PHP] Include Problems

2002-12-26 Thread Chris Hewitt
Mike Bowers wrote: I have a file named header.php stored in the includes folder: Inside includes is anohter folder called editable. When I open my page for the first time (before it is cached) or after I edit my header file I get these errors: *Warning*: Failed opening 'editable/meta.php' for

Re: [PHP] Include Problems

2002-12-26 Thread John Nichel
questions without people like u throwing insults? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 12:47 PM To: Mike Bowers Subject: Re: [PHP] Include Problems Learn to quote GAMER - Original Message - From: Mike Bowers <

Re: [PHP] Include Problems

2002-12-26 Thread John Nichel
PROTECTED]] Sent: Thursday, December 26, 2002 12:47 PM To: Mike Bowers Subject: Re: [PHP] Include Problems Learn to quote GAMER - Original Message - From: Mike Bowers <mailto:[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Sent: Thursday, December 26, 2002 8:42 PM Subject: [PHP] Include Pr

RE: [PHP] Include Problems

2002-12-26 Thread Mike Bowers
: [PHP] Include Problems Learn to quote GAMER - Original Message - From: Mike Bowers <mailto:[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Sent: Thursday, December 26, 2002 8:42 PM Subject: [PHP] Include Problems I have a file named header.php stored in the includes folder:

Re: [PHP] Include problems

2002-08-03 Thread ::: Flavio Bastos Amiel::::::>
] > > Sent: Wednesday, September 04, 2002 12:53 AM > > To: [EMAIL PROTECTED] > > Subject: Re: [PHP] Include problems > > > > does the "require" has something to be with "include" ? > > Cause instead of using "include" im always usin &quo

RE: [PHP] Include problems

2002-08-03 Thread Maxim Maletsky
]] > Sent: Wednesday, September 04, 2002 12:53 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Include problems > > does the "require" has something to be with "include" ? > Cause instead of using "include" im always usin "require" >

Re: [PHP] Include problems

2002-08-03 Thread ::: Flavio Bastos Amiel::::::>
does the "require" has something to be with "include" ? Cause instead of using "include" im always usin "require" Thanks, Flavio Bastos Amiel "Scott" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Does this mean i have to do this to each site??? > > > > > >

Re: [PHP] Include problems

2002-08-03 Thread Scott
Does this mean i have to do this to each site??? "Daniel Kushner" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > include 'inc/test.inc' will work fine if you add your root directory to your > include_path (in the c:\winnt\php.ini file). > > > Daniel Kushne

RE: [PHP] Include problems

2002-08-03 Thread Daniel Kushner
include 'inc/test.inc' will work fine if you add your root directory to your include_path (in the c:\winnt\php.ini file). Daniel Kushner [EMAIL PROTECTED] Need hosting? http://www.TheHostingCompany.us/ > -Original Message- > From: Scott [mailto:[EMAIL PROTECTED]] > Sent: Saturday, Augu