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
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
(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
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
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
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
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",
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
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
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
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
* 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
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
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.
>
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 -
- 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
41 matches
Mail list logo