Re: [PHP-DB] Include function across servers

2007-04-03 Thread Micah Stevens
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

Re: [PHP-DB] Include function across servers

2007-04-02 Thread Chris
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

Re: [PHP-DB] Include function across servers

2007-04-02 Thread Bastien Koert
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

Re: [PHP-DB] Include function across servers

2007-04-02 Thread ioannes
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

Re: [PHP-DB] Include function across servers

2007-04-02 Thread Tony Miceli
- 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

Re: [PHP-DB] Include function across servers

2007-04-02 Thread Chris
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

Re: [PHP-DB] Include function across servers

2007-04-02 Thread Tony Miceli
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

Re: [PHP-DB] Include function across servers

2007-04-02 Thread Micah Stevens
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.

[PHP-DB] Include function across servers

2007-04-02 Thread ioannes
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

Re: [PHP-DB] include function

2004-04-07 Thread Craig Hoffman
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

Re: [PHP-DB] include function

2004-04-06 Thread Marcjon Louwersheimer
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

[PHP-DB] include function

2004-04-06 Thread Craig Hoffman
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