On Tue, Dec 21, 2010 at 2:48 AM, Ravi Gehlot r...@ravigehlot.net 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
On Tue, Dec 21, 2010 at 02:48, Ravi Gehlot r...@ravigehlot.net 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
On Tue, Dec 21, 2010 at 9:50 AM, Daniel P. Brown
daniel.br...@parasane.net wrote:
On Tue, Dec 21, 2010 at 02:48, Ravi Gehlot r...@ravigehlot.net 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
On Tue, Dec 21, 2010 at 9:54 AM, David Hutto smokefl...@gmail.com wrote:
On Tue, Dec 21, 2010 at 9:50 AM, Daniel P. Brown
daniel.br...@parasane.net wrote:
On Tue, Dec 21, 2010 at 02:48, Ravi Gehlot r...@ravigehlot.net wrote:
My point is that you tried to take code from one page and put it all
On Tue, Dec 21, 2010 at 02:35:33AM -0500, David Hutto wrote:
On Tue, Dec 21, 2010 at 2:29 AM, Ravi Gehlot r...@ravigehlot.net 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
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
://www.ashleysheridan.co.uk
- Reply message -
From: Ravi Gehlot r...@ravigehlot.net
Date: Tue, Dec 21, 2010 18:12
Subject: [PHP] Problem with Include
To: Paul M Foster pa...@quillandmouse.com
Cc: php-general@lists.php.net
If something is working and you don't know exactly whats under the hood then
you are wasting
,
Ash
http://www.ashleysheridan.co.uk
- Reply message -
From: Ravi Gehlot r...@ravigehlot.net
Date: Tue, Dec 21, 2010 18:12
Subject: [PHP] Problem with Include
To: Paul M Foster pa...@quillandmouse.com
Cc: php-general@lists.php.net
If something is working and you don't know exactly
. To not do so seems to me to avoid
ones nature really!
Thanks,
Ash
http://www.ashleysheridan.co.uk
- Reply message -
From: Ravi Gehlot r...@ravigehlot.net
Date: Tue, Dec 21, 2010 18:12
Subject: [PHP] Problem with Include
To: Paul M Foster pa...@quillandmouse.com
Cc: php-general
On Mon, Dec 20, 2010 at 02:49, Simcha Younger sim...@syounger.com 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
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
daniel.br...@parasane.netwrote:
On Mon, Dec 20, 2010 at 02:49, Simcha Younger
On Tue, Dec 21, 2010 at 2:29 AM, Ravi Gehlot r...@ravigehlot.net 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
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
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:
?PHP
$file_name= basename($_SERVER['PHP_SELF']);
$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
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:
Subject: [PHP] Problem with Include
To: Bill Guion bgu...@comcast.net
Cc: php-general@lists.php.net
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
Many, many thanks to Tamara, Govinda, and Ashley. Adding the php tags
?php ? 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
On Sun, 19 Dec 2010 17:41:20 +
a...@ashleysheridan.co.uk 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
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
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:
!DOCTYPE HTML PUBLIC -//W3C//DTD
Robbert van Andel writes:
I've had this problem. It's because of the ? and ? 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,
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 ? and ? that
surrounds your XML. Your php configuration probably has short
tags enabled.
I've had this problem. It's because of the ? and ? that surrounds your
XML. Your php configuration probably has short tags enabled. I have had to
use php to output this
?PHP echo ' ?xml version=1.0 encoding=utf-8?' ; ?
On Tue, Jun 3, 2008 at 7:25 AM, Robert Huff [EMAIL PROTECTED] 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 below that I get a link that
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 below that
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 in
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
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
] 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 the
top
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 setcookie)
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;
On Mon, 2004-11-01 at 16:26, Brad Dameron wrote:
On Mon, 2004-11-01 at 15:17, Jason Davis wrote:
sc.php
?php
setCookie('data' , 'blah');
include 'gc.php';
?
gc.php
?php
print $_COOKIE['data'] . -here;
?
this is the out put of running sc.php
-here
why is
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
* 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: Failed opening
/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
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 ? include ('inc/inc1.php'); ?
|- inc/
|- inc1.php ? include ('inc/inc2.php'); ?
|- inc2.php OK
With PHP 4.2.1,
[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 PHP which I can not include more than one file at a
page
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
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
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
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
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 isn't really a PHP
problem this is a SSI problem
Hi all,
Look at this code:
// one.php
? include(two.php); ?
--- html code ---
// end file one.php
// two.php
? include(three.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
-
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
? include(two.php); ?
--- html code ---
// end file one.php
// two.php
? include(three.php); ?
--- html code ---
//end two.php
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.
It should have nothing to do with cookies unless you
Message -
From: skitum [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, 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
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
- 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 php.ini
should have t
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
""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.
51 matches
Mail list logo