RE: [PHP] Fw: include() statement goofing me up - help

2002-06-11 Thread Jay Blanchard

No, I created this file as a test file and it works for me. Perhaps you need
to do something on your server for include files. Have you checked your
php.ini to make sure that includes are allowed? In my setup
(/etc/apache/php.ini) there is a line that says "include_path ="

If I can think of anything else I will let you know. Also make sure to
reply-to-all so  that the list can keep up and maybe offer more suggestions.

Jay



-Original Message-
From: Doug DeVries [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 12:57 PM
To: Jay Blanchard
Subject: Re: [PHP] Fw: include() statement goofing me up - help


still no joy. i pasted exactly as you had written with a semi-colon, but
still not working. Is there nothing else I need to include in the header or
prior to the PHP statement?

-Doug

- Original Message -
From: "Jay Blanchard" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 11, 2002 10:48 AM
Subject: RE: [PHP] Fw: include() statement goofing me up - help


> [snip]
>  include
> ("http://www.gospelcom.net/mnn/includes/pubNewsTease.php?li=yes&limit=4";)
> ?>
> [/snip]
>
> Where is your semi-colon?
> 
include("http://www.gospelcom.net/mnn/includes/pubNewsTease.php?li=yes&limit
> =4");
> ?>
>
> Jay
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Fw: include() statement goofing me up - help

2002-06-11 Thread Kevin Stone

Doh! Sorry, Natalie not Doug, and I'm glad to see you got it working.
-Kevin

- Original Message -
From: "Kevin Stone" <[EMAIL PROTECTED]>
To: "Doug DeVries" <[EMAIL PROTECTED]>; "Leotta, Natalie (NCI/IMS)"
<[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, June 11, 2002 11:59 AM
Subject: Re: [PHP] Fw: include() statement goofing me up - help


> Doug, it seems to work fine here.  So long as the remote server has PHP
> installed (which it looks like they do) then include() should work the
same
> as a local file.  Could it be a configuration issue perhaps?
>
> Test: http://www.helpelf.com/test/test.php
> Code: http://www.helpelf.com/test/test.phps
>
> -Kevin
>
> - Original Message -
> From: "Doug DeVries" <[EMAIL PROTECTED]>
> To: "Leotta, Natalie (NCI/IMS)" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 11, 2002 11:36 AM
> Subject: Re: [PHP] Fw: include() statement goofing me up - help
>
>
> > I've changed the source file on this issue. Slightly different error,
but
> > still no joy. Thanks for taking the time with this.
> >
> > 
> > 
> > 
> > 
> > test area should show 4 lines of news
> >
> >
> >  > include
> >
("http://www.gospelcom.net/mnn/includes/pubNewsTease.php?li=yes&limit=4";)
> > ?>
> >
> >
> > 
> >
> > 
> >
> > - Original Message -
> > From: "Leotta, Natalie (NCI/IMS)" <[EMAIL PROTECTED]>
> > To: "'Jay Blanchard'" <[EMAIL PROTECTED]>;
> > <[EMAIL PROTECTED]>
> > Sent: Tuesday, June 11, 2002 10:30 AM
> > Subject: RE: [PHP] Fw: include() statement goofing me up - help
> >
> >
> > > That may be the case, but I had assumed the show() was a function in
the
> > > file that should be included.
> > >
> > > When I include files and it doesn't work (I've only started trying
today
> > and
> > > discovered the beauties of the include_path) it says:
> > > Fatal error: Failed opening required 'includeFile.inc'
> > > (include_path='.:/opt/net/utils/lib/php') in /prj/web/.../file.php on
> line
> > 4
> > >
> > > So I would guess that his include() is working and there either is no
> > show()
> > > in the file or he isn't actually including it, which goes back to your
> > idea.
> > > Hopefully he'll give us more info :-)
> > >
> > > -Natalie
> > >
> > > -Original Message-
> > > From: Jay Blanchard [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, June 11, 2002 1:27 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: RE: [PHP] Fw: include() statement goofing me up - help
> > >
> > >
> > > you are getting the error
> > >
> > > Fatal error: Call to undefined function: show() in
> > > e:\solomonsporch.org\test.php on line 9
> > >
> > > show() is not a function, try include()
> > >
> > >
> > > Jay
> > >
> > > "Wouldn't it be great if lists were like the Magic 8 Ball or a Quija
> > board?"
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Fw: include() statement goofing me up - help

2002-06-11 Thread Kevin Stone

Doug, it seems to work fine here.  So long as the remote server has PHP
installed (which it looks like they do) then include() should work the same
as a local file.  Could it be a configuration issue perhaps?

Test: http://www.helpelf.com/test/test.php
Code: http://www.helpelf.com/test/test.phps

-Kevin

- Original Message -
From: "Doug DeVries" <[EMAIL PROTECTED]>
To: "Leotta, Natalie (NCI/IMS)" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, June 11, 2002 11:36 AM
Subject: Re: [PHP] Fw: include() statement goofing me up - help


> I've changed the source file on this issue. Slightly different error, but
> still no joy. Thanks for taking the time with this.
>
> 
> 
> 
> 
> test area should show 4 lines of news
>
>
>  include
> ("http://www.gospelcom.net/mnn/includes/pubNewsTease.php?li=yes&limit=4";)
> ?>
>
>
> 
>
> 
>
> - Original Message -
> From: "Leotta, Natalie (NCI/IMS)" <[EMAIL PROTECTED]>
> To: "'Jay Blanchard'" <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>
> Sent: Tuesday, June 11, 2002 10:30 AM
> Subject: RE: [PHP] Fw: include() statement goofing me up - help
>
>
> > That may be the case, but I had assumed the show() was a function in the
> > file that should be included.
> >
> > When I include files and it doesn't work (I've only started trying today
> and
> > discovered the beauties of the include_path) it says:
> > Fatal error: Failed opening required 'includeFile.inc'
> > (include_path='.:/opt/net/utils/lib/php') in /prj/web/.../file.php on
line
> 4
> >
> > So I would guess that his include() is working and there either is no
> show()
> > in the file or he isn't actually including it, which goes back to your
> idea.
> > Hopefully he'll give us more info :-)
> >
> > -Natalie
> >
> > -Original Message-
> > From: Jay Blanchard [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, June 11, 2002 1:27 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: [PHP] Fw: include() statement goofing me up - help
> >
> >
> > you are getting the error
> >
> > Fatal error: Call to undefined function: show() in
> > e:\solomonsporch.org\test.php on line 9
> >
> > show() is not a function, try include()
> >
> >
> > Jay
> >
> > "Wouldn't it be great if lists were like the Magic 8 Ball or a Quija
> board?"
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Fw: include() statement goofing me up - help

2002-06-11 Thread Leotta, Natalie (NCI/IMS)

Thanks, but I just figured it out - I stupidly saved the file to be included
up a folder from the one I was working with (my mind must still be reeling
from the horrible defeat of the Canes last night...).  I don't quite
understand why it's not looking at /opt/net/... but it's working so I'm not
going to ask question :-)

Thanks!

-Natalie

-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, June 11, 2002 1:54 PM
To: Leotta, Natalie (NCI/IMS); [EMAIL PROTECTED]
Subject: RE: [PHP] Fw: include() statement goofing me up - help


[snip]
When I include files and it doesn't work (I've only started trying today and
discovered the beauties of the include_path) it says: Fatal error: Failed
opening required 'includeFile.inc'
(include_path='.:/opt/net/utils/lib/php') in /prj/web/.../file.php on line 4
[/snip]

Send some of your code and I'll have a look...

Jay


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Fw: include() statement goofing me up - help

2002-06-11 Thread Jay Blanchard

[snip]
When I include files and it doesn't work (I've only started trying today and
discovered the beauties of the include_path) it says:
Fatal error: Failed opening required 'includeFile.inc'
(include_path='.:/opt/net/utils/lib/php') in /prj/web/.../file.php on line 4
[/snip]

Send some of your code and I'll have a look...

Jay



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Fw: include() statement goofing me up - help

2002-06-11 Thread Jay Blanchard

[snip]
http://www.gospelcom.net/mnn/includes/pubNewsTease.php?li=yes&limit=4";)
?>
[/snip]

Where is your semi-colon?
http://www.gospelcom.net/mnn/includes/pubNewsTease.php?li=yes&limit
=4");
?>

Jay



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Fw: include() statement goofing me up - help

2002-06-11 Thread Leotta, Natalie (NCI/IMS)

At least it makes more sense now that you're getting the failed to open
error.  I'd try putting a small file in the php4/pear directory and see if
you can include that.  If so, then it's still a path problem - like maybe
it's looking to php4/pear/http://

Since I don't have anything including successfully, this is all the help I
can be :-)

Good luck!

-Natalie

-Original Message-
From: Doug DeVries [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, June 11, 2002 1:36 PM
To: Leotta, Natalie (NCI/IMS)
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Fw: include() statement goofing me up - help


I've changed the source file on this issue. Slightly different error, but
still no joy. Thanks for taking the time with this.





test area should show 4 lines of news


http://www.gospelcom.net/mnn/includes/pubNewsTease.php?li=yes&limit=4";)
?>






- Original Message -
From: "Leotta, Natalie (NCI/IMS)" <[EMAIL PROTECTED]>
To: "'Jay Blanchard'" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Tuesday, June 11, 2002 10:30 AM
Subject: RE: [PHP] Fw: include() statement goofing me up - help


> That may be the case, but I had assumed the show() was a function in 
> the file that should be included.
>
> When I include files and it doesn't work (I've only started trying 
> today
and
> discovered the beauties of the include_path) it says:
> Fatal error: Failed opening required 'includeFile.inc'
> (include_path='.:/opt/net/utils/lib/php') in /prj/web/.../file.php on 
> line
4
>
> So I would guess that his include() is working and there either is no
show()
> in the file or he isn't actually including it, which goes back to your
idea.
> Hopefully he'll give us more info :-)
>
> -Natalie
>
> -----Original Message-----
> From: Jay Blanchard [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 11, 2002 1:27 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP] Fw: include() statement goofing me up - help
>
>
> you are getting the error
>
> Fatal error: Call to undefined function: show() in 
> e:\solomonsporch.org\test.php on line 9
>
> show() is not a function, try include()
>
>
> Jay
>
> "Wouldn't it be great if lists were like the Magic 8 Ball or a Quija
board?"
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Fw: include() statement goofing me up - help

2002-06-11 Thread Doug DeVries

I've changed the source file on this issue. Slightly different error, but
still no joy. Thanks for taking the time with this.





test area should show 4 lines of news


http://www.gospelcom.net/mnn/includes/pubNewsTease.php?li=yes&limit=4";)
?>






- Original Message -
From: "Leotta, Natalie (NCI/IMS)" <[EMAIL PROTECTED]>
To: "'Jay Blanchard'" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Tuesday, June 11, 2002 10:30 AM
Subject: RE: [PHP] Fw: include() statement goofing me up - help


> That may be the case, but I had assumed the show() was a function in the
> file that should be included.
>
> When I include files and it doesn't work (I've only started trying today
and
> discovered the beauties of the include_path) it says:
> Fatal error: Failed opening required 'includeFile.inc'
> (include_path='.:/opt/net/utils/lib/php') in /prj/web/.../file.php on line
4
>
> So I would guess that his include() is working and there either is no
show()
> in the file or he isn't actually including it, which goes back to your
idea.
> Hopefully he'll give us more info :-)
>
> -Natalie
>
> -----Original Message-----
> From: Jay Blanchard [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 11, 2002 1:27 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP] Fw: include() statement goofing me up - help
>
>
> you are getting the error
>
> Fatal error: Call to undefined function: show() in
> e:\solomonsporch.org\test.php on line 9
>
> show() is not a function, try include()
>
>
> Jay
>
> "Wouldn't it be great if lists were like the Magic 8 Ball or a Quija
board?"
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Fw: include() statement goofing me up - help

2002-06-11 Thread Leotta, Natalie (NCI/IMS)

That may be the case, but I had assumed the show() was a function in the
file that should be included.

When I include files and it doesn't work (I've only started trying today and
discovered the beauties of the include_path) it says:
Fatal error: Failed opening required 'includeFile.inc'
(include_path='.:/opt/net/utils/lib/php') in /prj/web/.../file.php on line 4

So I would guess that his include() is working and there either is no show()
in the file or he isn't actually including it, which goes back to your idea.
Hopefully he'll give us more info :-)

-Natalie

-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, June 11, 2002 1:27 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Fw: include() statement goofing me up - help


you are getting the error

Fatal error: Call to undefined function: show() in
e:\solomonsporch.org\test.php on line 9

show() is not a function, try include()


Jay

"Wouldn't it be great if lists were like the Magic 8 Ball or a Quija board?"



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Fw: include() statement goofing me up - help

2002-06-11 Thread Jay Blanchard

you are getting the error

Fatal error: Call to undefined function: show() in
e:\solomonsporch.org\test.php on line 9

show() is not a function, try include()


Jay

"Wouldn't it be great if lists were like the Magic 8 Ball or a Quija board?"



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Fw: include() statement goofing me up - help

2002-06-11 Thread Jay Blanchard

[snip]
> Can anyone let me know what I am doing incorrectly on the following page:
>
> http://www.solomonsporch.org/test.php
>
> The news clips that should appear are a service from another site and I
> simply want to include them on my page, but I am getting an error.
>
[/snip]

Without the code from the area around line 9 of your test.php we cannot give
you any answers.

Jay

"Wouldn't it be great if lists were like the Magic 8 Ball or a Quija board?"



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php