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
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
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:
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
-- 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
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
?
?
type break in
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.
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
[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
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
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
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
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
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 ==
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
[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--
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
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.
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
[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:
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
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
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
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
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
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
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'
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
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
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
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
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
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, August
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 Kushner
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???
Daniel Kushner
: 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
() halts permanently ending execution of the script.
Sincerely,
Maxim Maletsky
PHP Beginner
www.phpbeginner.com
-Original Message-
From: ::: Flavio Bastos Amiel:: [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 04, 2002 12:53 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP]
37 matches
Mail list logo