No. That would be to access the code. Include grabs an entire file.
Perhaps you should look into Ajax techniques.
-Micah
On 04/02/2007 04:06 PM, ioannes wrote:
I have a particular business application so just returning html is OK,
the output is the useful bit in this case. I understand from t
ioannes wrote:
I have a particular business application so just returning html is OK,
the output is the useful bit in this case. I understand from the
discussion that I can still run my code on my server in response to a
remote server requesting the result of a function in that file and that
use cURL to execute the remote code
Bastien
From: ioannes <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: php-db@lists.php.net
Subject: Re: [PHP-DB] Include function across servers
Date: Tue, 03 Apr 2007 00:06:25 +0100
I have a particular business application so just returning html
I have a particular business application so just returning html is OK,
the output is the useful bit in this case. I understand from the
discussion that I can still run my code on my server in response to a
remote server requesting the result of a function in that file and that
result gets back
- Original Message -
From: "Chris" <[EMAIL PROTECTED]>
To: "Tony Miceli" <[EMAIL PROTECTED]>
Cc:
Sent: Monday, April 02, 2007 6:24 PM
Subject: Re: [PHP-DB] Include function across servers
Tony Miceli wrote:
wouldn't that be very dangerous if someone could
Tony Miceli wrote:
wouldn't that be very dangerous if someone could grab my code and run it
on their server?
Yeh, pretty dangerous. That's how c99shell and a bunch of other scripts
work.
i'm an intermediate php guy at best. for many reasons i would not want
someone including my files and ru
riginal Message -
From: "Micah Stevens" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc:
Sent: Monday, April 02, 2007 4:20 PM
Subject: Re: [PHP-DB] Include function across servers
I'm not totally clear on what you're asking, so here's two options:
If you
I'm not totally clear on what you're asking, so here's two options:
If you use the include() function, you're pulling the code from the
external server and running on the local server. If you're running an
HTTP call, say via an Ajax routine for example, the code runs on the
external server.
I ask this as I do not have two web sites on different servers to test
at the moment.
Does it work to use an include function in the php code on one site that
calls a function on the other site? If you include a file on a remote
server that runs a function, where does the function run - on t
Here's the solution I came up with that works for the site:
$display_block .= "";
I am only using the PHP parser once instead of twice, the \n makes the
whole thing nicely readable in the HTML source files that are generated,
and the paths were modified (and the navigation templates were as
Ok, I figured it out. I am using jpgraph and I need to place the
include statement next to the start of PHP.
v: (847) 644 - 8914
f: (847) 866 - 1946
e: [EMAIL PROTECTED]
w: www.eclimb.net
_
On Apr 6, 2004, at 10:24 PM, Craig Hoffman wrote:
Someone tell me why thi
did you make sure the previous line had a ; at the end? Check that first.
- Original message -
From: "Craig Hoffman" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Date: Tue, 6 Apr 2004 22:24:27 -0500
Subject: [PHP-DB] include function
Someone tell me why this isn't work
Someone tell me why this isn't working? I keep getting a parser error
on line 36 (the last include). I'm running PHP 4.3.5 if that helps.
include ("include/dbadmin.php");
include ("jpgraph/src/jpgraph.php");
include ("jpgraph/src/jpgraph_bar.ph
Hy everybody,
I´m a new php user and I looking for a
solution to receive the following information from my site:
1) I want to received a form with text fields + a file (up to 100 k)
I need to know wich is the easy way to place this servi
It's good coding habit, and it sometimes will save you from some
"constant"
> headaches (pun intended for everyone who has run into this problem
before).
>
> - Jonathan
>
>
>
> -Original Message-
> From: Brad Melendy [mailto:[EMAIL PROTECTED]]
> Sent: Thur
No problem. I wonder if there's a web-based syntax checker for PHP...
- Jonathan
-Original Message-
From: Brad Melendy [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 12:23 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] include() statement hell!
Man, this means I ha
ot; <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> This might be your problem:
>
> Try:
>
> :)
>
> - Jonathan
>
> -Original Message-
> From: Brad Melendy [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, Mar
who has run into this problem before).
- Jonathan
-Original Message-
From: Brad Melendy [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 12:06 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] include() statement hell!
Thanks Jonathan,
Your suggestions were very helpful, especiall
This might be your problem:
mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 12:06 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] include() statement hell!
Thanks Jonathan,
Your suggestions were very helpful, especially turning on the error logging.
Here is where I'm at now:
Fil
ld definitely try to solve this the normal way by finding the problem
> with the paths rather than trying to screw with your php.ini or httpd.conf
> file - otherwise you'll have a script that might not work if you ever have
> to move your scripts or copy them to a development server
ay, March 28, 2002 10:10 AM
To: 'Brad Melendy'; [EMAIL PROTECTED]
Subject: RE: [PHP-DB] include() statement hell!
> So, maybe this is the question. Can you include a file from
> /main/page.php by using a path of /includes/dblib.inc?
Probably not. PHP can "see" the whole
: Wednesday, March 27, 2002 7:27 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] include() statement hell!
Thanks Jonathan,
I'm trying to include a file /includes/dblib.inc from /main/page.php. In
/main/page.php I use include("includes/dblib.inc");. When that didn't work,
I
On Thursday 28 March 2002 14:58, Brad Melendy wrote:
> How is this different than using the php.ini file?
>
> "Photocon" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> > At 22:41 3/27/2002 -0600, Dan Brunner wrote:
> > >Has anybody told him to check his PHP
How is this different than using the php.ini file?
"Photocon" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> At 22:41 3/27/2002 -0600, Dan Brunner wrote:
> >Has anybody told him to check his PHP.INI???
>
> How about adding the following to httpd.conf:
>
> php_
t: Wednesday, March 27, 2002 6:28 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: [PHP-DB] include() statement hell!
>
> #1. You may want to double-check the path where you're calling it from
> in
> case you're working with subdirectories.
>
> Let's s
At 22:41 3/27/2002 -0600, Dan Brunner wrote:
>Has anybody told him to check his PHP.INI???
How about adding the following to httpd.conf:
php_value include_path .:/usr/share/php:/path/to/webpages
--Photocon
Conrad Hunziker III
www.nightskyent.com
--
PHP Database Mailing List (http://www.php.
Has anybody told him to check his PHP.INI???
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 27, 2002 6:28 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP-DB] include() statement hell!
#1. You may want to double-check the path
quest correctly.
>
> #3. Please give us a little more detail on the errors you're getting (any
> specific messages would be nice).
>
> - Jonathan
>
> -Original Message-
> From: Rick Emery [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 27, 2002 3:42 PM
treats the code within as straight text
>
> -Original Message-
> From: Brad Melendy [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 27, 2002 5:03 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-DB] include() statement hell!
>
>
> Ok, I've spent some time reading the docs
il on the errors you're getting (any
specific messages would be nice).
- Jonathan
-Original Message-
From: Rick Emery [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 27, 2002 3:42 PM
To: 'Brad Melendy'; [EMAIL PROTECTED]
Subject: RE: [PHP-DB] include() statement hell!
di
did you start each include file with:
If not, PHP treats the code within as straight text
-Original Message-
From: Brad Melendy [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 27, 2002 5:03 PM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] include() statement hell!
Ok, I've spent
Hi All,
This is strange. I've got some functions I want to include in my PHP
documents. Well, I can never get anything to work if I include the file
that holds the functions, but, if I insert the functions into the PHP
document in question, everything works??
Now, I've checked to ensure that th
Ok, I've spent some time reading the docs at php.net and I'm still confused.
After a couple hours, I have an include file working with a statement like:
include ("dblib.inc");
However, to add to my confusion, I've got a second include file statement on
the next line:
include ("userlib.inc");
I m making a web based config tool in which i require to configure a package
via browser but whats happening in that if i give the command in system() call
then the packege is being tried to install as nobody user (default apache user)
.Pls give me the link about how to go about it (other than CGI
> >
> > > then just put
> > >
> > > > > require("var.php");
> > > ?>
> > >
> > > - seb
> > >
> > > -Original Message-
> > > From: CrossWalkCentral [mailto:[EMAIL PROTECTED]]
> >
ECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > chuck all the common variables in var.php
> >
> > then just put
> >
> > > require("var.php");
> > ?>
> >
> > - seb
> >
> > -Original
rote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> chuck all the common variables in var.php
>
> then just put
>
> require("var.php");
> ?>
>
> - seb
>
> -Original Message-
> From: CrossWalkCentral [mailto:[EMAIL PROTECTED]]
&
chuck all the common variables in var.php
then just put
- seb
-Original Message-
From: CrossWalkCentral [mailto:[EMAIL PROTECTED]]
Sent: 19 August 2001 03:18
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Include
OK here is one for you folks that know what you are doing.
I am making a
OK here is one for you folks that know what you are doing.
I am making a script and I have about 5 php files in it. That have alot of
the same system variables can I create one file with these settings in it
and if so any one want to give me some hints on this
thanks again.
--
Cross Walk Centra
Hi,
This is a small example to connect the Database.
and save as "dedb.inc"
And Then, in your php. file Before you start any statement or query. put
this on first.
OK...
Kelvin.
""James McLaughlin"" <[EMAIL PROTECTED]> wrote in message
000801c0ce20$9ab1e900$[EMAIL PROTECTED]">news:000801c
Hi
Format of included files is the same as original .php file.:)
When you include .php file it is the same as you copy that file in your main
.php file in that place.
> This is my first time programming with PHP. I have seen include files in
> the beginning of a php block and wonder is there a s
the pages that are included are as secure as your scripts.
Steve
> -Original Message-
> From: James McLaughlin [mailto:[EMAIL PROTECTED]]
> Sent: 26 April 2001 08:15
> To: [EMAIL PROTECTED]
> Subject: [PHP-DB] Include File Syntax
>
>
> This is my first time
This is my first time programming with PHP. I have seen include files in
the beginning of a php block and wonder is there a specific syntax used in
these files and how secure this is vs code in my .php page?
Can someone show me a small example of what the include file might look like
that would
I am running PHP3.017(cgi) + Apache + MySQL on Windows98 SE.
The include() and the getenv() functions are asking for a dial-up
connection. Can somebody give me a hand ?
Jayme.
http://www.conex.com.br/jjeffman
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAI
44 matches
Mail list logo