Re: [PHP] Problem with Include

2010-12-21 Thread Bastien Koert
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

Re: [PHP] Problem with Include

2010-12-21 Thread Ravi Gehlot
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"

Re: [PHP] Problem with Include

2010-12-21 Thread a...@ashleysheridan.co.uk
, 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

Re: [PHP] Problem with Include

2010-12-21 Thread Ravi Gehlot
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

Re: [PHP] Problem with Include

2010-12-21 Thread Paul M Foster
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

Re: [PHP] Problem with Include

2010-12-21 Thread David Hutto
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

Re: [PHP] Problem with Include

2010-12-21 Thread David Hutto
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

Re: [PHP] Problem with Include

2010-12-21 Thread Daniel P. Brown
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

Re: [PHP] Problem with Include

2010-12-21 Thread David Hutto
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

Re: [PHP] Problem with Include

2010-12-20 Thread Ravi Gehlot
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

Re: [PHP] Problem with Include

2010-12-20 Thread David Hutto
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

Re: [PHP] Problem with Include

2010-12-20 Thread Ravi Gehlot
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

Re: [PHP] Problem with Include

2010-12-20 Thread Daniel P. Brown
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

Re: [PHP] Problem with Include

2010-12-19 Thread Simcha Younger
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

[PHP] Problem with Include

2010-12-19 Thread Bill Guion
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

Re: [PHP] Problem with Include

2010-12-19 Thread a...@ashleysheridan.co.uk
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

Re: [PHP] Problem with Include

2010-12-19 Thread Tamara Temple
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

Re: [PHP] Problem with Include

2010-12-19 Thread Govinda
$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

[PHP] Problem with Include

2010-12-19 Thread Bill Guion
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

Re: [PHP] problem with "include" directive under XHTML

2008-06-04 Thread Robert Huff
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

Re: [PHP] problem with "include" directive under XHTML

2008-06-03 Thread Robbert van Andel
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

Re: [PHP] problem with "include" directive under XHTML

2008-06-03 Thread Robbert van Andel
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. > >

Re: [PHP] problem with "include" directive under XHTML

2008-06-03 Thread Robert Huff
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",

[PHP] problem with "include" directive under XHTML

2008-06-03 Thread Robert Huff
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

Re: [PHP] Problem with Include function using Apache 2.0 and PHP 5 on W2K3 Server

2005-02-16 Thread Dave Adler
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

Re: [PHP] Problem with Include function using Apache 2.0 and PHP 5 on W2K3 Server

2005-02-16 Thread Richard Lynch
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

[PHP] Problem with Include function using Apache 2.0 and PHP 5 on W2K3 Server

2005-02-16 Thread Dave Adler
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

Re: [PHP] problem with include()

2004-11-01 Thread Jason Davis
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 > > >

Re: [PHP] problem with include()

2004-11-01 Thread Jason Davis
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(

Re: [PHP] problem with include()

2004-11-01 Thread Jason Davis
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

RE: [PHP] problem with include()

2004-11-01 Thread Vail, Warren
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

Re: [PHP] problem with include()

2004-11-01 Thread Richard Davey
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

[PHP] problem with include()

2004-11-01 Thread Jason Davis
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 ..

Re: [PHP] Problem with include();

2003-09-07 Thread Curt Zirzow
* 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:

Re: [PHP] Problem with include();

2003-09-06 Thread Raditha Dissanayake
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

[PHP] Problem with include();

2003-09-06 Thread Ty Lamb
/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

[PHP] Problem with include PHP 4.3.0

2003-02-04 Thread Jean-Pierre Gallou
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.

Re: [PHP] Problem with Include

2002-12-25 Thread sport4ever
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

Re: [PHP] Problem with Include

2002-12-24 Thread Philip Olson
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.

Re: [PHP] Problem with Include

2002-12-24 Thread Tom Woody
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

Re: [PHP] Problem with Include

2002-12-24 Thread Rick Widmer
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

Re: [PHP] Problem with Include

2002-12-23 Thread sport4ever
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

[PHP] Problem with Include

2002-12-23 Thread sport4ever
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

Re: [PHP] problem with include

2002-08-30 Thread John Wards
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]>

Re: [PHP] problem with include

2002-08-30 Thread skitum
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. >

Re: [PHP] problem with include

2002-08-30 Thread John Wards
- 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

[PHP] problem with include

2002-08-30 Thread skitum
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

Re: [PHP] problem with include/require

2001-03-11 Thread Yasuo Ohgaki
- 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

Re: [PHP] problem with include/require

2001-03-11 Thread Erick Papadakis
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

Re: [PHP] problem with include/require

2001-03-10 Thread Yasuo Ohgaki
""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

[PHP] problem with include/require

2001-03-10 Thread Erick Papadakis
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