nclude files or other ways. To not do so seems to me to avoid
> ones nature really!
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
> - Reply message -
> From: "Ravi Gehlot"
> Date: Tue, Dec 21, 2010 18:12
> Subject: [PHP] Problem with Includ
o not do so seems to me to
> avoid ones nature really!
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
> - Reply message -
> From: "Ravi Gehlot"
> Date: Tue, Dec 21, 2010 18:12
> Subject: [PHP] Problem with Include
> To: "Paul M Foster"
,
Ash
http://www.ashleysheridan.co.uk
- Reply message -
From: "Ravi Gehlot"
Date: Tue, Dec 21, 2010 18:12
Subject: [PHP] Problem with Include
To: "Paul M Foster"
Cc:
If something is working and you don't know exactly whats under the hood then
you are wasting your time in trying to re-i
If something is working and you don't know exactly whats under the hood then
you are wasting your time in trying to re-invent your own wheel and waste
your time and resources to modify something that isn't needed to be touched.
Good programmers make good use of their time as well. We need to keep i
On Tue, Dec 21, 2010 at 02:35:33AM -0500, David Hutto wrote:
> On Tue, Dec 21, 2010 at 2:29 AM, Ravi Gehlot wrote:
> > Why mess with something that is already working? If you are trying to make
> > it pretty then you are not solving a problem. You are creating one.
>
>
> Define working. I've ha
On Tue, Dec 21, 2010 at 9:54 AM, David Hutto wrote:
> On Tue, Dec 21, 2010 at 9:50 AM, Daniel P. Brown
> wrote:
>> On Tue, Dec 21, 2010 at 02:48, Ravi Gehlot wrote:
>>> My point is that you tried to take code from one page and put it all
>>> "organized" in another page and the include that page
On Tue, Dec 21, 2010 at 9:50 AM, Daniel P. Brown
wrote:
> On Tue, Dec 21, 2010 at 02:48, Ravi Gehlot wrote:
>> My point is that you tried to take code from one page and put it all
>> "organized" in another page and the include that page of includes back into
>> the pages that you want it to feed
On Tue, Dec 21, 2010 at 02:48, Ravi Gehlot wrote:
> My point is that you tried to take code from one page and put it all
> "organized" in another page and the include that page of includes back into
> the pages that you want it to feed off from. If stuff works the way that it
> does then there a r
On Tue, Dec 21, 2010 at 2:48 AM, Ravi Gehlot wrote:
> My point is that you tried to
Not me personally.
take code from one page and put it all
> "organized" in another page and the include that page of includes back into
> the pages that you want it to feed off from. If stuff works the way that
My point is that you tried to take code from one page and put it all
"organized" in another page and the include that page of includes back into
the pages that you want it to feed off from. If stuff works the way that it
does then there a reason for it to have been done that way. That's why
documen
On Tue, Dec 21, 2010 at 2:29 AM, Ravi Gehlot wrote:
> Why mess with something that is already working? If you are trying to make
> it pretty then you are not solving a problem. You are creating one.
Define working. I've had programs 'work', but more experienced would
say it's flawed in some resp
Why mess with something that is already working? If you are trying to make
it pretty then you are not solving a problem. You are creating one.
Ravi.
On Mon, Dec 20, 2010 at 7:40 AM, Daniel P. Brown
wrote:
> On Mon, Dec 20, 2010 at 02:49, Simcha Younger wrote:
> >
> > Since it is being included
On Mon, Dec 20, 2010 at 02:49, Simcha Younger wrote:
>
> Since it is being included by PHP, and not served by Apache, the extension is
> not important.
Correct, but keep in mind that it will likely be served as plain
text if accessed directly, if the web server is not properly
configured (wh
On Sun, 19 Dec 2010 17:41:20 +
"a...@ashleysheridan.co.uk" wrote:
> Is your server even set up to recognise .inc files as php? You can't just put
> any old extension on and expect the server to know what to do with it.
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
Since it is being i
Many, many thanks to Tamara, Govinda, and Ashley. Adding the php tags
to the include file solved the problem.
-= Bill =-
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Is your server even set up to recognise .inc files as php? You can't just put
any old extension on and expect the server to know what to do with it.
Thanks,
Ash
http://www.ashleysheridan.co.uk
- Reply message -
From: "Tamara Temple"
Date: Sun, Dec 19, 2010 17:07
Subject
On Dec 19, 2010, at 10:43 AM, Bill Guion wrote:
In an effort to clean up some code, I tried taking four lines out of
6 or 7 programs and putting them into an include file. The file
structure is
Root
data
clubs.php
include
fmt.inc
Originally, clubs.php had the following code:
Th
$file_name= basename($_SERVER['PHP_SELF']);
$last_modified = filemtime($file_name);
print("This page last modified ");
print(date("m/j/y", $last_modified));
you need to wrap the contents ^^^ of the include file with php ?>
Govinda
--
PHP General Mailing List (http://www.p
In an effort to clean up some code, I tried taking four lines out of
6 or 7 programs and putting them into an include file. The file
structure is
Root
data
clubs.php
include
fmt.inc
Originally, clubs.php had the following code:
This code works - on the web page I get
This page
Uh, guys? Nevermind.
To quote someone's .sig: "The truth was out there, but the lies
were in my mind." I cleared out a couple of mis-conceptions, and
the problem went away.
Sorry for the noise.
Robert Huff
--
PHP General Mai
I've had this problem. It's because of the that surrounds your
XML. Your php configuration probably has short tags enabled. I have had to
use php to output this
' ; ?>
On Tue, Jun 3, 2008 at 7:25 AM, Robert Huff <[EMAIL PROTECTED]> wrote:
>
>I'm working on a project that involves co
What is the error message you are getting?
On Tue, Jun 3, 2008 at 11:37 AM, Robert Huff <[EMAIL PROTECTED]> wrote:
> Robbert van Andel writes:
>
> > I've had this problem. It's because of the that
> > surrounds your XML. Your php configuration probably has short
> > tags enabled.
>
>
Robbert van Andel writes:
> I've had this problem. It's because of the that
> surrounds your XML. Your php configuration probably has short
> tags enabled.
Negative, Prior research found this problem, and the short
tags setting, which was promptly set to "OFF",
I'm working on a project that involves converting HTML to
XHTML. Not strictly sure this is a PHP issue, but testing (so far)
has eliminated other possibilities.
Can someone offer suggestions why, on the same server (Apache
2.2.8), this works:
Testing html
Richard,
Thanks for the feedback. The reference to the file location was the problem.
My include statement was
include("/includes/menu.inc");
I changed it to
include ($_SERVER["DOCUMENT_ROOT"]."/includes/menu.inc");
This solved the problem.
David
"Richard Lynch" <[EMAIL PROTECTED]> wrote
Dave Adler wrote:
> I am new to PHP and Apache. I am trying to use the include function to
> include a file that has my web page header and menu, similar to what I
> used
> to do with SSI.
>
> The content of the include file doesn't display. Instead, I get a link
> that
> says function.main and bel
I am new to PHP and Apache. I am trying to use the include function to
include a file that has my web page header and menu, similar to what I used
to do with SSI.
The content of the include file doesn't display. Instead, I get a link that
says function.main and below that I get a link that says
On Mon, 2004-11-01 at 16:26, Brad Dameron wrote:
> On Mon, 2004-11-01 at 15:17, Jason Davis wrote:
> > sc.php
> > > setCookie('data' , 'blah');
> > include 'gc.php';
> > ?>
> >
> > gc.php
> > > print $_COOKIE['data'] . " <-here";
> > ?>
> >
> >
> > this is the out put of running sc.php
> >
>
On Mon, 2004-11-01 at 16:10, Vail, Warren wrote:
> How did you go to the page that included the login page, if you
included it
> in the tiny_edit.php (which is the routine that sets the cookie in the
> browser, you need to cause the browser to send it back to you by doing
a
> redirect;
>
> Header(
On Mon, 2004-11-01 at 16:08, Richard Davey wrote:
> Hello Jason,
>
> Monday, November 1, 2004, 10:34:16 PM, you wrote:
>
> JD> the login page is included ... the login page does not see the auth
> JD> cookie until the user refreshes their browser ... why is this happening?
>
> Cookies (set via s
ject: [PHP] problem with include()
Hello,
I have a login page .. the user types in user and pass then the form
gets posted to tiny_edit.php
tiny_edit.php checks user and pass then sets a cookie if auth is successful.
Then the original login page is included. The login page has logic at
Hello Jason,
Monday, November 1, 2004, 10:34:16 PM, you wrote:
JD> the login page is included ... the login page does not see the auth
JD> cookie until the user refreshes their browser ... why is this happening?
Cookies (set via setcookie) are not available to you on the same page
as you set the
Hello,
I have a login page .. the user types in user and pass
then the form gets posted to tiny_edit.php
tiny_edit.php checks user and pass then sets a cookie if auth is
successful. Then the original login page is included. The login page has
logic at the top to check for the auth cookie ..
* Thus wrote Ty Lamb ([EMAIL PROTECTED]):
> /index.php
> has
> include("/code/includes/page_header.php");
>
> /docs/aaryn/dmb/dave.php
> has
> include("/code/includes/page_header.php");
>
> Both are identical lines of code. Index.php works but dave.php returns the
> following:
>
> Warning:
Hello,
It's often said that includes should have relative paths instead of
absolute paths. This ensures that your script still works when you move
it to a different server. So if an error has forced you to use rel paths
consider it a blessing in disguise :-)
Ty Lamb wrote:
/index.php
has
incl
/index.php
has
include("/code/includes/page_header.php");
/docs/aaryn/dmb/dave.php
has
include("/code/includes/page_header.php");
Both are identical lines of code. Index.php works but dave.php returns the
following:
Warning: Failed opening '/code/includes/page_header.php' for inclusion
(inc
Hi,
I have problems with relative paths and 4.3.0. Include() do not seem to
work the same way in 4.3.0 and 4.2.1. Consider this test:
test/
|- testinclude.php
|- inc/
|- inc1.php
|- inc2.php OK
With PHP 4.2.1, works OK.
With 4.3.0, I get:
Failed opening '/inc/inc2.
4ever" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Tom Ray" <[EMAIL PROTECTED]>
Sent: Tuesday, December 24, 2002 8:04 AM
Subject: Re: [PHP] Problem with Include
> It's PHP problem because I can include any number of files with other
> extensions. only
I've heard that RH8 decided to disable short tags
in their default php.ini If this is true, the people
at RedHat deserve a good spanking. Talk about being
irresponsible!
Regards,
Philip
On Tue, 24 Dec 2002, Tom Woody wrote:
> I have found this to be very true with RedHat 8 (includes Apache2.
I have found this to be very true with RedHat 8 (includes Apache2.0.40,
and php 4.2.2). While RedHat 8.0 isn't really ready for a production
server, apache2 and php definitly are not. You have to bend over
backwards to get some things working correctly if at all. Plus there
are still some stabil
At 08:04 AM 12/24/02 +0300, sport4ever wrote:
maybe there is something wrong with php.ini
notice that I faced with this problem just after I upgraded to (PHP 4.2.1),
(Apache2), everything was great before!
The last I heard PHP + Apache2 is pretty much experimental, and not
recommended for prod
g was great before!
- Original Message -
From: "Tom Ray" <[EMAIL PROTECTED]>
To: "sport4ever" <[EMAIL PROTECTED]>
Sent: Tuesday, December 24, 2002 6:03 AM
Subject: Re: [PHP] Problem with Include
> You need to post your code that you are usingthis is
Hello,
my problem is that I can't use more than one SSI INCLUDE in a page
Please access this test page to check the problem yourself:
http://www.sport4ever.com/test/hello.shtml
The first INCLUDE will appear correctly and prints "HELLO World, include #1" which is
the output of "hello.php"
Wh
day, August 30, 2002 12:06 PM
Subject: Re: [PHP] problem with include
> The same problem with require
>
> - Original Message -
> From: "John Wards" <[EMAIL PROTECTED]>
> To: "skitum" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
The same problem with require
- Original Message -
From: "John Wards" <[EMAIL PROTECTED]>
To: "skitum" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, August 30, 2002 1:02 PM
Subject: Re: [PHP] problem with include
> hmm.
>
-
From: "skitum" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 30, 2002 11:53 AM
Subject: [PHP] problem with include
Hi all,
Look at this code:
// one.php
--- html code ---
// end file one.php
// two.php
--- html code ---
//end two.php
well, wh
Hi all,
Look at this code:
// one.php
--- html code ---
// end file one.php
// two.php
--- html code ---
//end two.php
well, when I see in my browser www.myweb.com/two.php this shows two.php plus the
include file in it "three.php", so this works ok, but when i see in my browser (IE
6.0) ww
- Original Message -
From: "Erick Papadakis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, March 11, 2001 9:05 PM
Subject: Re: [PHP] problem with include/require
> Hi Yasuo,
>
> Thanks for the reply, but yes I do know that the include_path in ph
Hi Yasuo,
Thanks for the reply, but yes I do know that the include_path in php.ini
should have the entries. But is this something new? I want to know how to
allow including and requiring files just like we used to do in PHP3!
For instance, let us say that we have two software programs on the ser
""Erick Papadakis"" <[EMAIL PROTECTED]> wrote in message
98einl$rpl$[EMAIL PROTECTED]">news:98einl$rpl$[EMAIL PROTECTED]...
> i installed my php on my windows machine using the "php triad" software
> which i downloaded from www.sourceforge.net. however, now i have a problem
> with "include" command
i installed my php on my windows machine using the "php triad" software
which i downloaded from www.sourceforge.net. however, now i have a problem
with "include" command. for everything i wish to include into my programs, i
need to speficy this folder in the "include_path" inside my php.ini. can i
51 matches
Mail list logo