Re: [PHP] Problem with Include

2010-12-21 Thread Bastien Koert
On Tue, Dec 21, 2010 at 1:28 PM, a...@ashleysheridan.co.uk wrote: > (Apologies for top posting; on my mobile just now.) > > Not true. Refactoring code is one of the main tasks of a developer. None of > us produce perfect code, and some code is less perfect than other code. It's > instinct to wan

Re: [PHP] Problem with Include

2010-12-21 Thread Ravi Gehlot
Hello, Good points. If you are getting paid to do that then fine. There is a difference between enhancing code and wasting time. I do my best to come up with the best I can. I always take notes to perform better in upcoming projects. It is imperative to make good use of time. Unless it is a securi

Re: [PHP] Problem with Include

2010-12-21 Thread a...@ashleysheridan.co.uk
(Apologies for top posting; on my mobile just now.) Not true. Refactoring code is one of the main tasks of a developer. None of us produce perfect code, and some code is less perfect than other code. It's instinct to want to fix bad code when we're maintaining it or having to add new features t

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

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: [PHP] Problem w

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

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

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

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
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("Location: tiny_edit.php"); Exit; When tiny_edit is entered

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

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

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

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
hmm. It should have nothing to do with cookies unless you are using cookies in the scripts. Try using require rather than include to see if that makes any difference Cheers John Wards SportNetwork.net p.s. your english is as good as mine and i am scottish.. - Original Message -

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