Ask a Question related to PHP Development, Design and Development.
-
paul13 #1
can't include 'http...foo.php', but can include 'http...foo.txt'
This seems weird, but when I use the following code,
include 'http://www.foo.com/includes.php';
includedfunction();
I am told that it is a call to an undefined function, but
'includedfunction' is on the server.
the following includes work fine, and the run the called function with
no trouble:
include 'http://www.foo.com/includes.phtml';
include 'http://www.foo.com/includes.txt';
all three include.php,.phtml & .txt are on the server and are exactly
identical. I am running php version 4.1.1. Anyone have any ideas?
paul13 Guest
-
Strange Include problems: Repeat regions will Not workwith include file
I have a strange problem. I have an Index.asp page and on that page I have a poll that is displays. This poll is located in a sub folder, so to call... -
proper way to include constants; as module or include file?
I am developing a new perl module that uses constants with regular expressions. What is the proper way to offer this file? For example, my perl... -
Every time i try to display records on an include page i get repeats of the whole include
hi guys and ladies, here is my problem and i would be most grateful if any one could shed some light on this please: i have a default.asp page... -
#26259 [Opn->Bgs]: relative include path not working with include() from shell command line execut
ID: 26259 Updated by: iliaa@php.net Reported By: orsaini at allainet dot com -Status: Open +Status: ... -
#26259 [NEW]: relative include path not working with include() from shell command line execut
From: orsaini at allainet dot com Operating system: Lunux Apache 2.0.47 PHP version: 4.3.2 PHP Bug Type: ... -
paul13 #2
can't include 'http...foo.php', but can include 'http...foo.txt'
This seems weird, but when I use the following code,
include 'http://www.foo.com/includes.php';
includedfunction();
I am told that it is a call to an undefined function, but
'includedfunction' is on the server.
the following includes work fine, and the run the called function with
no trouble:
include 'http://www.foo.com/includes.phtml';
include 'http://www.foo.com/includes.txt';
all three include.php,.phtml & .txt are on the server and are exactly
identical. I am running php version 4.1.1. Anyone have any ideas?
paul13 Guest
-
paul13 #3
can't include 'http...foo.php', but can include 'http...foo.txt'
This seems weird, but when I use the following code,
include 'http://www.foo.com/includes.php';
includedfunction();
I am told that it is a call to an undefined function, but
'includedfunction' is on the server.
the following includes work fine, and the run the called function with
no trouble:
include 'http://www.foo.com/includes.phtml';
include 'http://www.foo.com/includes.txt';
all three include.php,.phtml & .txt are on the server and are exactly
identical. I am running php version 4.1.1. Anyone have any ideas?
paul13 Guest
-
Senator Jay Billington Bulworth #4
Re: can't include 'http...foo.php', but can include 'http...foo.txt'
In article <768682d0.0308190004.dd35f7c@posting.google.com> ,
[email]googlegroups@paul13.com[/email] (paul13) wrote:
The include statement is include()'ing the _output_ of> This seems weird, but when I use the following code,
>
> include 'http://www.foo.com/includes.php';
>
> includedfunction();
>
> I am told that it is a call to an undefined function, but
> 'includedfunction' is on the server.
[url]http://www.foo.com/includes.php[/url], not the contents of the file.
To demonstrate thist point, load [url]http://www.foo.com/includes.php[/url] in your
browser and look for your function definitions. Then load
[url]http://www.foo.com/includes.txt[/url]. You'll see the difference.
hth
--
Bulworth : [email]funha@fung.arg[/email] | My email address is ROT13 encoded, decode to mail
--------------------------|--------------------------------------------------
<http://www.phplabs.com/> | PHP scripts and thousands of webmaster resources!
Senator Jay Billington Bulworth Guest
-
Senator Jay Billington Bulworth #5
Re: can't include 'http...foo.php', but can include 'http...foo.txt'
In article <768682d0.0308190004.dd35f7c@posting.google.com> ,
[email]googlegroups@paul13.com[/email] (paul13) wrote:
The include statement is include()'ing the _output_ of> This seems weird, but when I use the following code,
>
> include 'http://www.foo.com/includes.php';
>
> includedfunction();
>
> I am told that it is a call to an undefined function, but
> 'includedfunction' is on the server.
[url]http://www.foo.com/includes.php[/url], not the contents of the file.
To demonstrate thist point, load [url]http://www.foo.com/includes.php[/url] in your
browser and look for your function definitions. Then load
[url]http://www.foo.com/includes.txt[/url]. You'll see the difference.
hth
--
Bulworth : [email]funha@fung.arg[/email] | My email address is ROT13 encoded, decode to mail
--------------------------|--------------------------------------------------
<http://www.phplabs.com/> | PHP scripts and thousands of webmaster resources!
Senator Jay Billington Bulworth Guest
-
Senator Jay Billington Bulworth #6
Re: can't include 'http...foo.php', but can include 'http...foo.txt'
In article <768682d0.0308190004.dd35f7c@posting.google.com> ,
[email]googlegroups@paul13.com[/email] (paul13) wrote:
The include statement is include()'ing the _output_ of> This seems weird, but when I use the following code,
>
> include 'http://www.foo.com/includes.php';
>
> includedfunction();
>
> I am told that it is a call to an undefined function, but
> 'includedfunction' is on the server.
[url]http://www.foo.com/includes.php[/url], not the contents of the file.
To demonstrate thist point, load [url]http://www.foo.com/includes.php[/url] in your
browser and look for your function definitions. Then load
[url]http://www.foo.com/includes.txt[/url]. You'll see the difference.
hth
--
Bulworth : [email]funha@fung.arg[/email] | My email address is ROT13 encoded, decode to mail
--------------------------|--------------------------------------------------
<http://www.phplabs.com/> | PHP scripts and thousands of webmaster resources!
Senator Jay Billington Bulworth Guest
-
EMS #7
Re: can't include 'http...foo.php', but can include 'http...foo.txt'
On 19 Aug 2003 01:04:29 -0700, [email]googlegroups@paul13.com[/email] (paul13) wrote:
When you include it using a URL as above, the file is served from the>This seems weird, but when I use the following code,
>
>include 'http://www.foo.com/includes.php';
>
>includedfunction();
>
>I am told that it is a call to an undefined function, but
>'includedfunction' is on the server.
>
>the following includes work fine, and the run the called function with
>no trouble:
>
>include 'http://www.foo.com/includes.phtml';
>include 'http://www.foo.com/includes.txt';
>
webserver which parses the php script as it has a php extension. With
the other extensions, the php code isn't parsed. Try looking at the
URL with a browser and you'll see what I mean.
Your include path should be a physical path to the file e.g:
include ('/usr/local/htdocs/includes/includes.php');
That way you can use a .php extension and nobody will see your source
code.
EMS
EMS Guest
-
EMS #8
Re: can't include 'http...foo.php', but can include 'http...foo.txt'
On 19 Aug 2003 01:04:29 -0700, [email]googlegroups@paul13.com[/email] (paul13) wrote:
When you include it using a URL as above, the file is served from the>This seems weird, but when I use the following code,
>
>include 'http://www.foo.com/includes.php';
>
>includedfunction();
>
>I am told that it is a call to an undefined function, but
>'includedfunction' is on the server.
>
>the following includes work fine, and the run the called function with
>no trouble:
>
>include 'http://www.foo.com/includes.phtml';
>include 'http://www.foo.com/includes.txt';
>
webserver which parses the php script as it has a php extension. With
the other extensions, the php code isn't parsed. Try looking at the
URL with a browser and you'll see what I mean.
Your include path should be a physical path to the file e.g:
include ('/usr/local/htdocs/includes/includes.php');
That way you can use a .php extension and nobody will see your source
code.
EMS
EMS Guest
-
paul13 #9
Re: can't include 'http...foo.php', but can include 'http...foo.txt'
why does include(includes/includers.php) work fine for pages stored on
the same server?
Paul
Senator Jay Billington Bulworth <funha@fung.arg> wrote in message news:<funha-B7D472.04360919082003@clmboh1-nws4-ge0.columbus.rr.com>...> In article <768682d0.0308190004.dd35f7c@posting.google.com> ,
> [email]googlegroups@paul13.com[/email] (paul13) wrote:
>>> > This seems weird, but when I use the following code,
> >
> > include 'http://www.foo.com/includes.php';
> >
> > includedfunction();
> >
> > I am told that it is a call to an undefined function, but
> > 'includedfunction' is on the server.
> The include statement is include()'ing the _output_ of
> [url]http://www.foo.com/includes.php[/url], not the contents of the file.
>
> To demonstrate thist point, load [url]http://www.foo.com/includes.php[/url] in your
> browser and look for your function definitions. Then load
> [url]http://www.foo.com/includes.txt[/url]. You'll see the difference.
>
> hthpaul13 Guest
-
paul13 #10
Re: can't include 'http...foo.php', but can include 'http...foo.txt'
>
How do I use the physical location for a page on another machine?> Your include path should be a physical path to the file e.g:
> include ('/usr/local/htdocs/includes/includes.php');
> That way you can use a .php extension and nobody will see your source
> code.
>
> EMS
'http://www.foo.com/usr/local/htdocs/includes/includes.php'
with whatever is the acurate physical location following the .com?
Paul
paul13 Guest
-
paul13 #11
Re: can't include 'http...foo.php', but can include 'http...foo.txt'
>
How do I use the physical location for a page on another machine?> Your include path should be a physical path to the file e.g:
> include ('/usr/local/htdocs/includes/includes.php');
> That way you can use a .php extension and nobody will see your source
> code.
>
> EMS
'http://www.foo.com/usr/local/htdocs/includes/includes.php'
with whatever is the acurate physical location following the .com?
Paul
paul13 Guest
-
BKDotCom #12
Re: can't include 'http...foo.php', but can include 'http...foo.txt'
[email]googlegroups@paul13.com[/email] (paul13) wrote in message news:<768682d0.0309011426.b832fec@posting.google.c om>...
I sure hope that URL is 404.>
> How do I use the physical location for a page on another machine?
>
> 'http://www.foo.com/usr/local/htdocs/includes/includes.php'
>
> with whatever is the acurate physical location following the .com?
>
> Paul
When you include a valid external URL you're including what that URL
outputs (should be obvious)? So pull up
'http://www.foo.com/includes.php' in your browser. View the source.
That's what you're including.
surely this is covered here:
[url]http://us3.php.net/manual/en/function.include.php[/url] ?
BKDotCom Guest
-
BKDotCom #13
Re: can't include 'http...foo.php', but can include 'http...foo.txt'
[email]googlegroups@paul13.com[/email] (paul13) wrote in message news:<768682d0.0309011426.b832fec@posting.google.c om>...
I sure hope that URL is 404.>
> How do I use the physical location for a page on another machine?
>
> 'http://www.foo.com/usr/local/htdocs/includes/includes.php'
>
> with whatever is the acurate physical location following the .com?
>
> Paul
When you include a valid external URL you're including what that URL
outputs (should be obvious)? So pull up
'http://www.foo.com/includes.php' in your browser. View the source.
That's what you're including.
surely this is covered here:
[url]http://us3.php.net/manual/en/function.include.php[/url] ?
BKDotCom Guest



Reply With Quote

