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 it reads

[PHP] Include problems

2008-04-12 Thread GoWtHaM NaRiSiPaLli
Hi PHP Experts, I am writing a wrapper over some existing code and when I hoped that I almost successfully completed it, I ran into the wall. The wrapper file is in /var/www/sites/project/ as xyz.php and the file includes some of the files from various paths. Starting with == //

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); } else

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:

[PHP] include() problems

2003-10-02 Thread Gustave Bernier
Hi everyone, 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=active The

RE: [PHP] include() problems

2003-10-02 Thread Chris W. Parker
Gustave Bernier mailto:[EMAIL PROTECTED] 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 the

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 -- especially if the

Re: [PHP] include () problems

2003-08-26 Thread Jim Lucas
: Monday, August 25, 2003 12:56 AM Subject: [PHP] include () problems Hi, When I run the line: include (fnord.php); with the file looking like: ?php define (fnord_included, true); function fnord ($arg = true) { // 450 lines return $msg; } ? it prints out

[PHP] include () problems

2003-08-25 Thread Mjec
Hi, When I run the line: include (fnord.php); with the file looking like: ?php define (fnord_included, true); function fnord ($arg = true) { // 450 lines return $msg; } ? it prints out the return of fnord() (i.e. $msg). I've checked, and there's no echo or print

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.

[PHP] Include Problems

2003-07-24 Thread Eric Fleming
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? ?php $subnav = home; include(incHeader.php); ? !--- CONTENT AREA --- The content would go here. !--- END CONTENT AREA --- ?php

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

RE: [PHP] Include Problems

2003-07-24 Thread Jay Blanchard
[snip] ?php $subnav = home; include(incHeader.php); ? !--- CONTENT AREA --- The content would go here. !--- END CONTENT AREA --- ?php include (incFooter.php); ? Now, when I try to reference the subnav variable in the inHeader.php or incFooter.php files, it comes up blank. I am basically

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. ?php $subnav = home; include(incHeader.php); ? !--- CONTENT AREA --- The content would go here. !--- END CONTENT AREA --- ?php include (incFooter.php); ? Now, when I try to

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 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

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 subnav

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 use ==

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

RE: [PHP] Include Problems

2003-07-24 Thread Jay Blanchard
[snip] -incHeader.php-- html head title[Site Name]/title /head body table cellpadding=0 cellspacing=0 border=0 align=left tr td ? if($subnav == home){ ?b? }?a href=index.phphome/a? if($subnav == home){ ?b? }? /td /tr /table -incHeader.php--

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-- html head title[Site Name]/title /head body table cellpadding=0 cellspacing=0 border=0

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. ?php instead of ?) since I have short tags disabled. Here's the header as I ran it.

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 ?php instaed of ? Jason Giangrande [EMAIL PROTECTED] 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

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:

RE: [PHP] Include Problems

2003-07-24 Thread Chris W. Parker
Jay Blanchard mailto:[EMAIL PROTECTED] 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 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 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:

[PHP] Include() problems

2003-02-13 Thread Leo Spalteholz
I just ran into a somewhat strange problem with an include failing. I have the following in my script: include(dirname(__FILE__)./LNScreens/LNScrMain.php); include(dirname(__FILE__)./LNDataBase/LNDataBase.php); The first file is included just fine, but the LNDataBase file fails (Failed opening

[PHP] Include Problems

2002-12-26 Thread Mike Bowers
Title: Message 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 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: Inside includes

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 Problems I

Re: [PHP] Include Problems

2002-12-26 Thread John Nichel
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 mailto:[EMAIL

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'

RE: [PHP] Include Problems

2002-12-26 Thread Mike Bowers
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 header file I get these errors

Re: [PHP] Include Problems

2002-12-26 Thread John Nichel
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 wrote: Isnt this supposed to be a friendly place where

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 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

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

[PHP] Include problems

2002-08-03 Thread Scott
I have PHP4 on both a windows IIS server and a windows apache server. The include function only works in the same directory of the file I wish to access. ex. www.include.com/default.php all files in same directory (i guess the root)? ?php include 'test.inc' ? everything works fine. Here's

RE: [PHP] Include problems

2002-08-03 Thread Daniel Kushner
03, 2002 3:11 PM To: [EMAIL PROTECTED] Subject: [PHP] Include problems I have PHP4 on both a windows IIS server and a windows apache server. The include function only works in the same directory of the file I wish to access. ex. www.include.com/default.php all files in same directory (i

Re: [PHP] Include problems

2002-08-03 Thread Scott
Kushner [EMAIL PROTECTED] Need hosting? http://www.TheHostingCompany.us/ -Original Message- From: Scott [mailto:[EMAIL PROTECTED]] Sent: Saturday, August 03, 2002 3:11 PM To: [EMAIL PROTECTED] Subject: [PHP] Include problems I have PHP4 on both a windows IIS server and a window

Re: [PHP] Include problems

2002-08-03 Thread ::: Flavio Bastos Amiel::::::
ostingCompany.us/ -Original Message- From: Scott [mailto:[EMAIL PROTECTED]] Sent: Saturday, August 03, 2002 3:11 PM To: [EMAIL PROTECTED] Subject: [PHP] Include problems I have PHP4 on both a windows IIS server and a windows apache server. The include fun

RE: [PHP] Include problems

2002-08-03 Thread Maxim Maletsky
: 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 Thanks, Flavio Bastos Amiel Scott [EMAIL PROTECTED] wrote in message [EMAIL

Re: [PHP] Include problems

2002-08-03 Thread ::: Flavio Bastos Amiel::::::
ner [EMAIL PROTECTED] Need hosting? http://www.TheHostingCompany.us/ -Original Message- From: Scott [mailto:[EMAIL PROTECTED]] Sent: Saturday, August 03, 2002 3:11 PM To: [EMAIL PROTECTED] Subject: [PHP] Include problems I have PH