> -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 b
.; 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,
&
> -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
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 script
> -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.
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
> -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. [
> -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
: 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: [PH
> -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 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]>
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: include(http://www.mysite.com/calc
et
Subject: Re: [PHP] Include Problem
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 wan
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
a
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 Bla
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 "Line #{$
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 "Line #{$line_num} : " . htm
[snip]
foreach ($lines2 as $line_num => $line2) {
echo "Line #{$line_num} : " . htmlspecialchars($line2) .
"";
}
include ('http://www.mysite.com/calculate.php');
My problem is that when I use a blank file that only has
http://www.mysite.com/calculate.php'; ?>
The code works and displays
Hi, Guys:
Here is a strange scenario that I am attempting to do. I am trying to
extract some information from an external source on a different server, and
then include some of the external calculations as I am running scripts on a
local machine.
Below is my script snippet:
// Get
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
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
include
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 I am unable to store or gain acesss to a
central includes folder for the entire of my website to access. Is ther
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 sh
Greetings everyone,
Thanks for the help in advance.
PHP version is 4.3
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 includ
Ups, I forgot to reply to everyone again, sorry.
-- Forwarded message --
From: Martin Alterisio <[EMAIL PROTECTED]>
Date: 16-abr-2006 13:53
Subject: Re: [PHP] Include Problem
To: Shaun <[EMAIL PROTECTED]>
You're using an absolute path to the file, maybe what yo
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): fa
>
> 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 havi
"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
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 file.
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] Includ
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): failed to open stream: No such
file or dire
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): failed to open stream: No such
file or di
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 th
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
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 i
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 the dir tree, sometimes down. Bad design i know but i
have to live w/ it...
Problem i
On maandag 1 december 2003 15:23 Rasmus Lerdorf told the butterflies:
> On Mon, 1 Dec 2003, Wouter van Vliet wrote:
> > > 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 "
On Mon, 1 Dec 2003, Wouter van Vliet wrote:
> 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 '[Bet
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)
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 PHP-script (cu
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 PHP-script (currently on
my local computer).
On the server I have the file ht
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 http://server.com/test/echo.php wi
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
Hi,
I have a weird problem which must be stupid for sure. I'm trying to do
an include in my code run as a cgi. The include works fine in the
form:
include ("directory/file");
even it works as:
include ("directory/../directory/file");
but it doesn't work as:
include ("./directory/file");
nor
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 tags).
I don't want them mucking
Use a here-doc:
echo <<[$data] $titulo ($user) $intro $texto
(comentarios=$contador)
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 building. As it is, everytime i want to chan
Hi,
i am trying to make my work a little easier when editing the appearance of
a news site i am building. As it is, everytime i want to change the looks
of how each news appears, i have to edit inside the print(' '); which is
annoying, because of the backslash with " problem thing(when i ne
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
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
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 )
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 have a web spider running off port :
both w
alker [mailto:[EMAIL 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, Septem
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 and
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 lu
Anderson Scarbrough [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:
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 /us
I've got a very odd problem. I'm trying to include 'DB/mysql.php', from
the /usr/lib/php directory, and it's not working. My include_path is set
properly (.:/usr/lib/php) and when I do
'print_r(ini_get("include_path"));' it prints it properly. But when I
try and do an include, I get the following
Hi
I have a little Problem with include.I want to include a txt file in every php file on
the server but some php files are in other directories and dont include this txt file.
Example :
Url for the txt file : www.domain.com/include/incl.txt
So www.domain.com/index2.php includes the txt file
I've setup apache 1.3.14 with php 4.0.4. I'm getting an error when trying to
include/require files.
Failed opening 'tcalendar2.inc' for inclusion (include_path='./') in
c:/apache/htdocs/caltest2.phtml
I tried changing the include path in php.ini to 'c:/Apache/htdocs' to
'c:\Apache\htdocs' to '
59 matches
Mail list logo