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.

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

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
Hi Rick, Yes, this is the first thing I checked. Thanks for your suggestion. ...Brad "Rick Emery" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > did you start each include file with: > ?> > > If not, PHP treats the code within as straight text > > -Orig

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 some time

Re: [PHP-DB] Include

2001-08-19 Thread CrossWalkCentral
Thank you I got it working good deal -- Cross Walk Central www.crosswalkcentral.net Support Center Your Web Hosting Community! "Tom Carter" <[EMAIL PROTECTED]> wrote in message 001201c12888$bb8a9790$0a00a8c0@bjorn">news:001201c12888$bb8a9790$0a00a8c0@bjorn... >Yes that is correct. On a secur

Re: [PHP-DB] Include

2001-08-19 Thread Tom Carter
Yes that is correct. On a security point of view therer is something extra you can do.. when using require you can require files that are outside the web tree...by this I mean are not accessible thru the internet. So if you site was in /home/web then you could setup a directory, say /home/web_v

Re: [PHP-DB] Include

2001-08-18 Thread CrossWalkCentral
so in var.php i will put something like this $db="mydatabse"; $username="myusername"; $password="mypassword"; and so on? -- Cross Walk Central www.crosswalkcentral.net Support Center Your Web Hosting Community! "Seb Frost" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL P

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 sc

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
hi kat, the include files are simply a way for repetitive code (like a connection to a db) to be inserted into your pages. the syntax for the files is the same as any php script and it is added to the page at the point that you include it. the format is include ("page_name.php"); the pages t