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

[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

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.

Re: [PHP-DB] Include function across servers

2007-04-02 Thread Tony Miceli
- From: Micah Stevens [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: php-db@lists.php.net 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 use the include() function, you're

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

Re: [PHP-DB] Include function across servers

2007-04-02 Thread Tony Miceli
Message - From: Chris [EMAIL PROTECTED] To: Tony Miceli [EMAIL PROTECTED] Cc: php-db@lists.php.net 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 grab my code and run

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

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 is OK

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

[PHP-DB] Include Files Solution

2004-04-22 Thread Robert Sossomon
Here's the solution I came up with that works for the site: code snippet $display_block .= ?php\n; $display_block .= \n include(\../nav/top_nav.html\);; $display_block .= \n; $display_block .= include(\../nav/side_nav.html\);; $display_block .= \n?; end code snippet I am only

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. ? included statement __ Craig Hoffman - eClimb Media v: (847) 644 - 8914 f: (847) 866 - 1946 e: [EMAIL PROTECTED] w: www.eclimb.net

[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.php);

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 working? I keep getting

[PHP-DB] Include a file into a database table !!!!

2003-09-21 Thread Ignacio Echegoyen
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

RE: [PHP-DB] include() statement hell!

2002-03-28 Thread Jonathan Hilgeman
: [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 tried copying the file to /main/ and including it there and that didn't work either. Finally

RE: [PHP-DB] include() statement hell!

2002-03-28 Thread JD Daniels
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 filesystem, not just the area that is limited to your account. So, when you try

Re: [PHP-DB] include() statement hell!

2002-03-28 Thread Brad Melendy
om: Brad Melendy [mailto:[EMAIL PROTECTED]] Sent: 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)

RE: [PHP-DB] include() statement hell!

2002-03-28 Thread Jonathan Hilgeman
This might be your problem: php? Try: ?php :) - 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

RE: [PHP-DB] include() statement hell!

2002-03-28 Thread Jonathan Hilgeman
). - 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, especially turning on the error logging. Here

Re: [PHP-DB] include() statement hell!

2002-03-28 Thread Brad Melendy
in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... This might be your problem: php? Try: ?php :) - 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() s

RE: [PHP-DB] include() statement hell!

2002-03-28 Thread Jonathan Hilgeman
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 have

Re: [PHP-DB] include() statement hell!

2002-03-28 Thread Brad Melendy
hes (pun intended for everyone 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 sug

[PHP-DB] include() statement hell!

2002-03-27 Thread Brad Melendy
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); And

[PHP-DB] include files don't work???

2002-03-27 Thread Brad Melendy
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

RE: [PHP-DB] include() statement hell!

2002-03-27 Thread Rick Emery
did you start each include file with: ?php ? 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

RE: [PHP-DB] include() statement hell!

2002-03-27 Thread Jonathan Hilgeman
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! did you start each include file with: ?php ? If not, PHP treats

Re: [PHP-DB] include() statement hell!

2002-03-27 Thread Brad Melendy
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 at php.net and I'm still confused. After a couple hours, I have an incl

Re: [PHP-DB] include() statement hell!

2002-03-27 Thread Brad Melendy
; [EMAIL PROTECTED] Subject: RE: [PHP-DB] include() statement hell! did you start each include file with: ?php ? 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 P

RE: [PHP-DB] include() statement hell!

2002-03-27 Thread Dan Brunner
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

RE: [PHP-DB] include() statement hell!

2002-03-27 Thread Photocon
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

Re: [PHP-DB] include() statement hell!

2002-03-27 Thread Brad Melendy
; [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 saying you access a page at www.domain.com/page.php which calls www.domain.com/includes/he

Re: [PHP-DB] include() statement hell!

2002-03-27 Thread Brad Melendy
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_value

Re: [PHP-DB] include() statement hell!

2002-03-27 Thread Jason Wong
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.INI???

[PHP-DB] include shell scripts

2001-11-03 Thread sharmad
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

Re: [PHP-DB] Include

2001-08-19 Thread Tom Carter
?php require(var.php); ? - 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 script an

Re: [PHP-DB] Include

2001-08-19 Thread CrossWalkCentral
t put ?php require(var.php); ? - 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

[PHP-DB] Include

2001-08-18 Thread CrossWalkCentral
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

RE: [PHP-DB] Include

2001-08-18 Thread Seb Frost
chuck all the common variables in var.php then just put ?php require(var.php); ? - 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

Re: [PHP-DB] Include

2001-08-18 Thread CrossWalkCentral
ROTECTED]... chuck all the common variables in var.php then just put ?php require(var.php); ? - 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 t

Re: [PHP-DB] Include File Syntax

2001-04-27 Thread Vlad
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

[PHP-DB] Include File Syntax

2001-04-26 Thread James McLaughlin
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

RE: [PHP-DB] Include File Syntax

2001-04-26 Thread Steve Brett
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 programming with PHP. I have seen include files

[PHP-DB] Include problem.

2001-01-23 Thread JJeffman
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: