RE: [PHP] Include Problem

2008-06-24 Thread Jay Blanchard
[snip] foreach ($lines2 as $line_num = $line2) { echo pLine #b{$line_num}/b : . htmlspecialchars($line2) . /p; } include ('http://www.mysite.com/calculate.php'); My problem is that when I use a blank file that only has ?php include 'http://www.mysite.com/calculate.php'; ? The code

RE: [PHP] Include Problem

2008-06-24 Thread Wei, Alice J.
From: Jay Blanchard [EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 1:10 PM To: Wei, Alice J.; php-general@lists.php.net Subject: RE: [PHP] Include Problem [snip] foreach ($lines2 as $line_num = $line2) { echo pLine #b{$line_num}/b : . htmlspecialchars

Re: [PHP] Include Problem

2008-06-24 Thread Jim Lucas
Wei, Alice J. wrote: From: Jay Blanchard [EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 1:10 PM To: Wei, Alice J.; php-general@lists.php.net Subject: RE: [PHP] Include Problem [snip] foreach ($lines2 as $line_num = $line2) { echo pLine #b{$line_num}/b

RE: [PHP] Include Problem

2008-06-24 Thread Wei, Alice J.
From: Jim Lucas [EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 1:32 PM To: Wei, Alice J. Cc: Jay Blanchard; php-general@lists.php.net Subject: Re: [PHP] Include Problem Wei, Alice J. wrote: From: Jay Blanchard

Re: [PHP] Include Problem

2008-06-24 Thread Daniel Brown
On Tue, Jun 24, 2008 at 1:32 PM, Jim Lucas [EMAIL PROTECTED] wrote: Make sure you have these enabled allow_url_fopen = On allow_url_include = On In addition to what Jay and Jim already correctly suggested, you may also want to try this at the top of your files to see if there are any

RE: [PHP] Include Problem

2008-06-24 Thread Wei, Alice J.
School of Library and Information Science Indiana University Bloomington [EMAIL PROTECTED] From: Daniel Brown [EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 1:51 PM To: Jim Lucas Cc: Wei, Alice J.; Jay Blanchard; php-general@lists.php.net Subject: Re: [PHP

Re: [PHP] Include Problem

2008-06-24 Thread Daniel Brown
On Tue, Jun 24, 2008 at 1:55 PM, Wei, Alice J. [EMAIL PROTECTED] wrote: Hi, This is the error I got: Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\wwwroot\read.php on line 29 Warning:

RE: [PHP] Include Problem

2008-06-24 Thread Wei, Alice J.
From: Daniel Brown [EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 1:59 PM To: Wei, Alice J. Cc: Jim Lucas; Jay Blanchard; php-general@lists.php.net Subject: Re: [PHP] Include Problem On Tue, Jun 24, 2008 at 1:55 PM, Wei, Alice J. [EMAIL PROTECTED] wrote

RE: [PHP] Include Problem

2008-06-24 Thread Boyd, Todd M.
-Original Message- From: Wei, Alice J. [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 1:04 PM To: Daniel Brown Cc: Jim Lucas; Jay Blanchard; php-general@lists.php.net Subject: RE: [PHP] Include Problem From: Daniel Brown [EMAIL

RE: [PHP] Include Problem

2008-06-24 Thread Wei, Alice J.
: php-general@lists.php.net Subject: RE: [PHP] Include Problem -Original Message- From: Wei, Alice J. [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 1:04 PM To: Daniel Brown Cc: Jim Lucas; Jay Blanchard; php-general@lists.php.net Subject: RE: [PHP] Include Problem

RE: [PHP] Include Problem

2008-06-24 Thread Boyd, Todd M.
-Original Message- From: Wei, Alice J. [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 1:39 PM To: Boyd, Todd M. Cc: php-general@lists.php.net Subject: RE: [PHP] Include Problem Hi, Thanks for the clarifcations. I have two more questions regarding this issue

RE: [PHP] Include Problem

2008-06-24 Thread Boyd, Todd M.
-Original Message- From: Boyd, Todd M. [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 1:48 PM To: Wei, Alice J. Cc: php-general@lists.php.net Subject: RE: [PHP] Include Problem -Original Message- From: Wei, Alice J. [mailto:[EMAIL PROTECTED] Sent: Tuesday

RE: [PHP] Include Problem

2008-06-24 Thread Wei, Alice J.
From: Boyd, Todd M. [EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 2:53 PM To: php-general@lists.php.net; Wei, Alice J. Subject: RE: [PHP] Include Problem If you are trying to include() a remote file via HTTP, the remote server will (most likely

RE: [PHP] Include Problem

2008-06-24 Thread Boyd, Todd M.
-Original Message- From: Wei, Alice J. [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 3:11 PM To: Boyd, Todd M.; php-general@lists.php.net Subject: RE: [PHP] Include Problem From: Boyd, Todd M. [EMAIL PROTECTED] Sent: Tuesday, June

RE: [PHP] Include Problem

2008-06-24 Thread Wei, Alice J.
Alice, If you simply need to execute a remote PHP script and pass variables, you could do it behind-the-scenes with cURL or AJAX, and pass the variables in the url (i.e., http://www.mysite.com/script.php?param=value). cURL is capable of retrieving the page (read: the results of the executed

RE: [PHP] Include Problem

2008-06-24 Thread Boyd, Todd M.
-Original Message- From: Wei, Alice J. [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 3:51 PM To: Boyd, Todd M.; php-general@lists.php.net Subject: RE: [PHP] Include Problem Alice, If you simply need to execute a remote PHP script and pass variables, you could do

RE: [PHP] Include Problem

2008-06-24 Thread Wei, Alice J.
.; php-general@lists.php.net Subject: RE: [PHP] Include Problem -Original Message- From: Wei, Alice J. [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 3:51 PM To: Boyd, Todd M.; php-general@lists.php.net Subject: RE: [PHP] Include Problem Alice, If you simply need to execute

RE: [PHP] Include Problem

2008-06-24 Thread Boyd, Todd M.
-Original Message- From: Wei, Alice J. [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 4:07 PM To: Boyd, Todd M.; php-general@lists.php.net Subject: RE: [PHP] Include Problem ---8--- snip I think that the variables passed to will be used by that code to do perform

Re: [PHP] Include problem

2006-12-09 Thread Richard Lynch
There is also a set_include_path function, I do believe. On Wed, December 6, 2006 4:26 am, Ashley Hales wrote: I am trying to use includes on a free php server but I cannot set the includes_path myself. Consequently when I try to include common elements or library files I run into trouble as

Re: [PHP] Include problem

2006-12-06 Thread Dave Goodchild
Use ini_set or an .htaccess file - try the first, and if that doesn't work use an .htaccess file if you have them enabled in the server (and it's Apache of course!). On 12/6/06, Ashley Hales [EMAIL PROTECTED] wrote: I am trying to use includes on a free php server but I cannot set the

Re: [PHP] include problem

2006-05-04 Thread Richard Lynch
On Thu, May 4, 2006 1:46 pm, Jef Sullivan wrote: I have set a variable and building a string that will be used later in my php file. The string is a table. Within this table I want to call another php file using include for a pulldown menu. The problem is the included file is not showing

RE: [PHP] Include Problem

2006-04-15 Thread Chrome
Try include($_SERVER['DOCUMENT_ROOT'] . /cms/templates/footer.php); maybe? Dan --- http://chrome.me.uk -Original Message- From: Shaun [mailto:[EMAIL PROTECTED] Sent: 15 April 2006 20:05 To: php-general@lists.php.net Subject: [PHP] Include Problem Hi, I am having

Re: [PHP] Include Problem

2006-04-15 Thread Mark Charette
Shaun wrote: Warning: main(/cms/templates/footer.php): failed to open stream: No such file or directory in /home/m/y/mysite/public_html/cms/news/index.php on line 38 Most assuredly the file isn't there (do you have the include path set?) or the permissions are not sufficient to open the

Re: [PHP] Include Problem

2006-04-15 Thread Shaun
Mark Charette [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Shaun wrote: Warning: main(/cms/templates/footer.php): failed to open stream: No such file or directory in /home/m/y/mysite/public_html/cms/news/index.php on line 38 Most assuredly the file isn't there (do you have

Re: [PHP] Include Problem

2006-04-15 Thread Shaun
$_SERVER['DOCUMENT_ROOT'] = /home this isnt the correct path for the file! Chrome [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Try include($_SERVER['DOCUMENT_ROOT'] . /cms/templates/footer.php); maybe? Dan --- http://chrome.me.uk -Original

Re: [PHP] Include Problem

2006-04-15 Thread tedd
At 8:03 PM +0100 4/15/06, Shaun wrote: Hi, I am having problems with an include statement, i am using the following statement in an effort to include a footer file on my page: include(/cms/templates/footer.php); However I get the following error: Warning: main(/cms/templates/footer.php):

Re: [PHP] include() problem

2006-01-09 Thread David Grant
Nuno, Have you considered $_SERVER['DOCUMENT_ROOT']? David Nuno Trancoso wrote: This may sound dumb, but i have been up all night going through php/apache docs, and still have not found an answer.. Throughout a site i need to include files that are scattered in subdirs, sometimes up in

RE: [PHP] include() problem

2006-01-09 Thread Dan Parry
Check this out http://uk2.php.net/reserved.variables DOCUMENT_ROOT will give you the root of your site -Original Message- From: Nuno Trancoso [mailto:[EMAIL PROTECTED] Sent: 09 January 2006 14:56 To: php-general@lists.php.net Subject: [PHP] include() problem This may sound dumb, but i

Re: [PHP] include() problem

2006-01-09 Thread Gerry Danen
Here's a snippet of what's at the start of most of my php files: $pagetitle = Lily Articles; $pagefname = __FILE__; // for later logging $pagedocroot = $_SERVER['DOCUMENT_ROOT']; require_once ($pagedocroot/include_db/db_connect.php); require_once ($pagedocroot/include/funcs.php); Hope that

RE: [PHP] include-problem

2003-12-02 Thread Wouter van Vliet
On maandag 1 december 2003 15:23 Rasmus Lerdorf told the butterflies: On Mon, 1 Dec 2003, Wouter van Vliet wrote: ?php print !!!; ob_start(); include 'http://server.com/test/echo.php'; $XML = ob_get_clean(); // or use ob_get_contents(); and ob_end_clean() for PHP 4.3 print ???;

Re: [PHP] include-problem

2003-12-01 Thread Sophie Mattoug
Victor Spng Arthursson wrote: Hi! I'm having a problem with including files. What I want to achieve is to execute a PHP-script on another server, and then to include the result (which will be XML-output) in another PHP-script (currently on my local computer). On the server I have the file

Re: [PHP] include-problem

2003-12-01 Thread Rasmus Lerdorf
On Mon, 1 Dec 2003, Sophie Mattoug wrote: Victor Spng Arthursson wrote: Hi! I'm having a problem with including files. What I want to achieve is to execute a PHP-script on another server, and then to include the result (which will be XML-output) in another PHP-script (currently on

RE: [PHP] include-problem

2003-12-01 Thread Wouter van Vliet
Rasmus Lerdorf wrote: On Mon, 1 Dec 2003, Sophie Mattoug wrote: Victor SpÄng Arthursson wrote: Hi! I'm having a problem with including files. What I want to achieve is to execute a PHP-script on another server, and then to include the result (which will be XML-output) in another

RE: [PHP] include-problem

2003-12-01 Thread Rasmus Lerdorf
On Mon, 1 Dec 2003, Wouter van Vliet wrote: ?php print !!!; ob_start(); include 'http://server.com/test/echo.php'; $XML = ob_get_clean(); // or use ob_get_contents(); and ob_end_clean() for PHP 4.3 print ???; print '[Between this you'll get your XYZ]'; print $XML; print '[Between this

Re: [PHP] include problem

2003-10-29 Thread Allex
Few days ago I asked the same question and got several excellent answers that helped me to solve the same problem - check the mailing list for 'including files from different sub directories' on 24-10-2003. Nevertheless all those suggestions helped me to solve the problem from a normal browser

RE: [PHP] include problem -- how to use an external 'template' file and still use PHP variables?

2002-12-30 Thread Daevid Vincent
I have a similar question/problem. However, I want to use an external email template as it were, so that the sales guys can edit it as they like and simply shuffle the three variables around that they need $username, $password, $code (either with or without the ?php ? tags). I don't want them

Re: [PHP] include problem

2002-12-26 Thread Rasmus Lerdorf
Use a here-doc: echo EOB br[$data] br $titulo br($user)br $intro br $texto brbr (comentarios=$contador)brbrhr size=1 width=90%br EOB; -Rasmus On Fri, 27 Dec 2002, Pag wrote: Hi, i am trying to make my work a little easier when editing the appearance of a news site i am

Re: [PHP] include() problem.

2001-10-23 Thread David Robley
On Wed, 24 Oct 2001 08:03, brendan wrote: Hi, I have an issue with including a file accross my web server from a separate site on that server served on another port. - explanation my php website runs off IIS port :80 (unfortunately IIS is employers decision not mine ) - I

Re: [PHP] include() problem.

2001-10-23 Thread brendan
Uni runs solaris/unix faculty runs iis world of political pain and anguish.. view source brings up a blank screen .. ta brendan David Robley wrote: On Wed, 24 Oct 2001 08:03, brendan wrote: Hi, I have an issue with including a file accross my web server from a separate site on

Re: [PHP] include() problem.

2001-10-23 Thread David Robley
On Wed, 24 Oct 2001 10:02, brendan wrote: Uni runs solaris/unix faculty runs iis world of political pain and anguish.. view source brings up a blank screen .. ta brendan OK - bit of straw grasping; you do have URL-fopen-wrappers enabled; try assigning the result of the include to a

RE: [PHP] include() problem...

2001-09-20 Thread Jeb Anderson Scarbrough
If you put the file into the include directory specified in the php.ini (.:/usr/lib/php) then I believe you should do: include(mysql.php); NOT include(DB/mysql.php); Someone please correct me if I'm wrong. I've got a very odd problem. I'm trying to include 'DB/mysql.php', from the

RE: [PHP] include() problem...

2001-09-20 Thread Matthew Walker
[mailto:[EMAIL PROTECTED]] Sent: Thursday, September 20, 2001 12:04 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [PHP] include() problem... If you put the file into the include directory specified in the php.ini (.:/usr/lib/php) then I believe you should do: include(mysql.php

RE: [PHP] include() problem...

2001-09-20 Thread Johnson, Kirk
Check the permissions on both the directory and the file, so that they are accessible to 'nobody' (or whomever PHP is running as). I'm not sure what to make of the empty include path in the error message. Kirk I've tried including just a file that was in the /usr/lib/php directory. No

RE: [PHP] include() problem...

2001-09-20 Thread Matthew Walker
Checked that. Plenty of permissions. Anyone else have any idea? -Original Message- From: Johnson, Kirk [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 20, 2001 1:48 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] include() problem... Check the permissions on both the directory

RE: [PHP] include() problem...

2001-09-20 Thread Matthew Walker
PROTECTED]] Sent: Thursday, September 20, 2001 2:52 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] include() problem... Checked that. Plenty of permissions. Anyone else have any idea? -Original Message- From: Johnson, Kirk [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 20, 2001 1:48 PM