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

[PHP-DB] Include Files Solution

2004-04-22 Thread Robert Sossomon
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

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

[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 servi

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

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

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 ha

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

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

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

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

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

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

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

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

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

2002-03-28 Thread JD Daniels
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

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

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

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

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_

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

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

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 (http://www.php.

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 Brad Melendy
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

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

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

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

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

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

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

[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 th

[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");

[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 CGI

Re: [PHP-DB] Include

2001-08-19 Thread CrossWalkCentral
> > > > > then just put > > > > > > > > require("var.php"); > > > ?> > > > > > > - seb > > > > > > -Original Message- > > > From: CrossWalkCentral [mailto:[EMAIL PROTECTED]] > >

Re: [PHP-DB] Include

2001-08-19 Thread Tom Carter
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

Re: [PHP-DB] Include

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

RE: [PHP-DB] Include

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

[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 Centra

Re: [PHP-DB] Include File Syntax

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

Re: [PHP-DB] Include File Syntax

2001-04-26 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 s

RE: [PHP-DB] Include File Syntax

2001-04-26 Thread Steve Brett
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

[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

[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: [EMAI