RE: [PHP] Include problems

2002-08-03 Thread Daniel Kushner
include 'inc/test.inc' will work fine if you add your root directory to your include_path (in the c:\winnt\php.ini file). Daniel Kushner [EMAIL PROTECTED] Need hosting? http://www.TheHostingCompany.us/ > -Original Message- > From: Scott [mailto:[EMAIL PROTECTED]] > Sent: Saturday, Augu

Re: [PHP] Include php code as variable

2002-08-03 Thread Danny Shepherd
http://www.php.net/eval - Original Message - From: "Alawi" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, August 03, 2002 11:41 AM Subject: [PHP] Include php code as variable > How can I Include my php code code as variable and excute it ? > > > -- > PHP General Mailin

Re: [PHP] include()

2002-08-02 Thread Chris Knipe
> If you run your own server, you can set it up so that each webmaster is > locked into a private environment, but it's messy. According to me, you > would need a separate copy of apache for each site, each running under a > different user, and they would need to run on separate ports, which is a

Re: [PHP] include hassle

2002-08-02 Thread Reuben D. Budiardja
On Friday 02 August 2002 10:41 am, lallous wrote: > I mean this: > > i have this tree: > > ./libs/*.php > ./user/file1.php > > now i'm in ./user/ directory > i run file1.php > it includes ../libs/lib1.php which in turn will include helper.php > (./users/helper.php) <-- will fail! > > how can i pro

Re: [PHP] include hassle

2002-08-02 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Lallous) wrote: > how can i programmatically set the include path? http://php.net/ini-set -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] include hassle

2002-08-02 Thread lallous
I mean this: i have this tree: ./libs/*.php ./user/file1.php now i'm in ./user/ directory i run file1.php it includes ../libs/lib1.php which in turn will include helper.php (./users/helper.php) <-- will fail! how can i programmatically set the include path? Elias "Reuben D. Budiardja" <[EMAI

Re: [PHP] include hassle

2002-08-02 Thread Reuben D. Budiardja
On Friday 02 August 2002 10:02 am, lallous wrote: > I have this: > //file1.php > include('../libs/lib1.php'); > ?> > now lib1.php: > include ('helper.php'); > ?> > If i run file1.php ->includes lib1.php -> fails to include helper.php ! ! > how can i solve that? We need more information that thi

Re: [PHP] include()

2002-08-01 Thread Lee
to the extract resources (e.g. memory & CPU time) required to run the muliple instances. Cheers Lee - Original Message - From: "Simon Ritchie" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 01, 2002 11:30 AM Subject: RE: [PHP] include() &

RE: [PHP] include()

2002-08-01 Thread Simon Ritchie
> "Other users on the same server *shouldn't* be able to include() in this way" > > How? > > Would their $_SERVER['HTTP_HOST'] not be the same? You did not specify your circumstances in your original posting, so there is some confusion. One web server can handle many domains. An ISP offering s

Re: [PHP] include()

2002-08-01 Thread Andrey Hristov
> > I suppose include() can be used to include files from remote > > systems(not on > > WINDOWS). > > Only if the sysadmin running your web server allows it, which they should > not. > > > > A webmaster on the same server can always use a path like > > "/home/htdocs/.../config.php" and include my

RE: [PHP] include()

2002-08-01 Thread Simon Ritchie
> I suppose include() can be used to include files from remote > systems(not on > WINDOWS). Only if the sysadmin running your web server allows it, which they should not. > A webmaster on the same server can always use a path like > "/home/htdocs/.../config.php" and include my config .php which

Re: [PHP] include()

2002-07-31 Thread Lord Loh.
"Other users on the same server *shouldn't* be able to include() in this way" How? Would their $_SERVER['HTTP_HOST'] not be the same? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] include()

2002-07-31 Thread Justin French
All included scripts inherit the variables of the parent script, so you could test for numerous server variables like the name of the parent script (PHP_SELF), or the domain name being used, etc etc. If it's not what you expected, spit out an error. something like $_SERVER['HTTP_HOST'] might

RE: [PHP] include()

2002-07-31 Thread Martin Towell
, August 01, 2002 3:38 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] include() On Thursday 01 August 2002 15:28, Lord Loh. wrote: > I suppose include() can be used to include files from remote systems(not on > WINDOWS). > > So, How can I protect my script from unauthorised inclusions ? >

Re: [PHP] include()

2002-07-31 Thread Jason Wong
On Thursday 01 August 2002 15:28, Lord Loh. wrote: > I suppose include() can be used to include files from remote systems(not on > WINDOWS). > > So, How can I protect my script from unauthorised inclusions ? > > A webmaster on the same server can always use a path like > "/home/htdocs/.../config.p

Re: [PHP] include() limits

2002-07-25 Thread Jason Wong
On Thursday 25 July 2002 18:41, lallous wrote: > Hello, > > I wonder how much I can include files? > > does it matter if the size sum of the source code included are above 1MB ? Instead of testing the mailing list, why not try the above for yourself? -- Jason Wong -> Gremlins Associates -> www.

RE: [PHP] include() and div align="top"

2002-07-22 Thread Jay Blanchard
[snip] > When i use on an include inside of a table > cell it dosen't work. Any reason? Almost certainly there'll be a reason. Browse the page in question in your web browser and then view the source - see if you've ended up with your page source as you'd intended. Most of these sorts of pr

Re: [PHP] include files and global variables

2002-07-21 Thread Michael Hall
I think that you need to call the checkMaster() function AFTER you declare it, not before. Try moving "checkMaster();" beneath the function definition. Mick On Sun, 21 Jul 2002, Jon Wyatt wrote: > > I have some pages which include a number of files. > In one of the include files I have a fun

RE: [PHP] include files or fopen

2002-06-30 Thread David Freeman
> I am trying to write a program that is very modular in > nature & one of the > features I need the user to be able to do is install/uninstall or > enable/disable the module though the interface. I have, in the past, stored such information in a database. In projects that have need of suc

RE: [PHP] INCLUDE vs Functions

2002-06-27 Thread Fifield, Mike
I cannot answer this for sure but my guess would be that having separately included files would be faster. There are two reasons for this. First functions are almost always slower then regular php code. Second you will be loading the entire "Routines.php" on every page even if you only require one

RE: [PHP] include() question...

2002-06-20 Thread David Freeman
> Okay, let's say I want to send a user to a certain webpage... > > usually I would use... > > include("website.php"); > > but, if i want to send a user to a website along with a > variable like... > > $temp = "website.php?var=".$var; > include($temp); > > ...this doesn't work.

Re: [PHP] include() question...

2002-06-20 Thread Philip Olson
> but, if i want to send a user to a website along > with a variable like... > > $temp = "website.php?var=".$var; > include($temp); > > ...this doesn't work. Example: somefile.php now has access to $var. This is talked about in the manual too: http://www.php.net/include In your cas

Re: [PHP] include() question...

2002-06-20 Thread Purushotham Komaravolu
use header ob_start() $temp = "website.php?var=".$var; header ("Location: $temp"); Puru - Original Message - From: "Phil Schwarzmann" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 20, 2002 4:31 PM Subject: [PHP] include() question... > Okay, let's say I want to send

RE: [PHP] Include/require

2002-06-20 Thread Michael Sweeney
Be careful not to get confused between a chrooted environment like the web server or ftp server and php include paths. PHP handles the include and require parameters either as absolute (eg /inc/filename is an absolute path from / - it is not relative to the web docroot.) or relative to the directo

Re: [PHP] include statement errors -- something missing

2002-06-18 Thread Doug DeVries
I've tried a hundred different things -- YOURS WORKED! Thank you very much! -Doug - Original Message - From: "Niklas Lampén" <[EMAIL PROTECTED]> To: "Php-General" <[EMAIL PROTECTED]> Sent: Monday, June 17, 2002 10:45 PM Subject: RE: [PHP] include

RE: [PHP] Include question

2002-06-11 Thread David Freeman
> somefile.php > $apple = 'green'; > $pear = 'yellow'; > ?> > > callfile.php > include 'somefile.php'; > echo "Apples are $apple and Pears are $pear"; \\ which would > return the > line with green and yellow in the correct spots. > ?> > > But when I just do > > include 'som

Re: [PHP] Include question

2002-06-11 Thread Tom Ray
Well I got it solved. It would help if I formatted my files correctly. Sorry about that, i've been messing with PHP for about a year now, but am now really diving into it so I may have stupid questions here and there :) TIA to all for help. John Holmes wrote: >Umm...that's what it's supposed

RE: [PHP] Include question

2002-06-11 Thread Peter
: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Include question Yes, but according to http://www.php.net/manual/en/function.include.php I should be able to delcare the include and then pull the information out normally. So by what the manual says I can do this somefile.php

Re: [PHP] Include question

2002-06-11 Thread Justin French
Check that you actually have wrapped around the PHP code in somefile.php that you include. Justin French on 12/06/02 11:36 AM, Tom Ray ([EMAIL PROTECTED]) wrote: > Yes, but according to http://www.php.net/manual/en/function.include.php > I should be able to delcare the include and then pull t

Re: [PHP] Include question

2002-06-11 Thread Tom Ray
Yes, but according to http://www.php.net/manual/en/function.include.php I should be able to delcare the include and then pull the information out normally. So by what the manual says I can do this somefile.php callfile.php But when I just do It prints: $apple = 'green'; $pear = 'yellow':

RE: [PHP] Include question

2002-06-11 Thread John Holmes
Umm...that's what it's supposed to do...it's "including" it... ---John Holmes... > -Original Message- > From: Tom Ray [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 11, 2002 9:29 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Include question > > I'm trying to use the include function in

Re: [PHP] Include + $Variables Help

2002-06-08 Thread Olexandr Vynnychenko
Hello Steven, Saturday, June 08, 2002, 5:40:40 PM, you wrote: S> Here's my problem: S> I'm trying to make a simple publication of 30+ articles, using PHP but not S> MySQL. S> There are basically three components: S> - a table of contents (contents.html) S> - an article template (arti

Re: [PHP] Include + $Variables Help

2002-06-08 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Steven declared > # Is that enough? > > # I then assume this would result in it trying to include 'name.txt', > # but instead there is always a nasty error about the .txt part. > # I should probably ask, is passing variables inside an

Re: [PHP] Include and memory

2002-06-03 Thread Kevin Stone
No offense but what you just said made absolutely no sense. There is no way to perform an operation on a computer without allocating memory for that operation. Unlike other lower level prgramming languages (ie. C/C++) PHP automatically allocates the necessary amount of memory for whatever operat

Re: [PHP] Include and memory

2002-06-03 Thread Analysis & Solutions
On Mon, Jun 03, 2002 at 01:49:03PM -0300, Paulo Cesar wrote: > I'd like to know if the include function alocates the variables that are in the included file in the memory... and, if it happens, if do I have a way to access a file with some variables without alocating it in memory. Dude, turn li

Re: [PHP] Include question

2002-06-02 Thread Analysis & Solutions
Hey John: On Sun, Jun 02, 2002 at 12:10:27AM -0400, John Holmes wrote: > > What I'm looking at is if each include .html file is 50K, am I loading > 100K into memory and then running the script, or running the script and > only loading the appropriate 50K into memory when it's needed? As of 4.0.

Re: [PHP] Include question

2002-06-02 Thread Bogdan Stancescu
gt; >---John Holmes... > > > >>-Original Message- >>From: Bogdan Stancescu [mailto:[EMAIL PROTECTED]] >>Sent: Saturday, June 01, 2002 11:12 PM >>To: [EMAIL PROTECTED] >>Cc: [EMAIL PROTECTED] >>Subject: Re: [PHP] Include question >> >>

RE: [PHP] Include question

2002-06-01 Thread John Holmes
To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Include question > > Your second guess. But you could've tested it easily with two includes > appending stuff to the same global var. > > Bogdan > > John Holmes wrote: > > >Hi. When I&#

Re: [PHP] Include question

2002-06-01 Thread Bogdan Stancescu
Your second guess. But you could've tested it easily with two includes appending stuff to the same global var. Bogdan John Holmes wrote: >Hi. When I've got code like the following: > >if($this) { include("this.html"); } >elseif($that) { include("that.html"); } > >When are the includes() eval

RE: [PHP] Include load question (newbie)

2002-05-27 Thread David Freeman
> I have two files (f1.php,f2.php) that each take about 90% > and 90% of differient functions from the first > file(func.php), would my files (f1.php,f2.php) load faster > if I defined the functions in each file instead of including > it or is this helping? It might, but the difference

RE: [PHP] Include (Newbie question)

2002-05-25 Thread John Holmes
... > -Original Message- > From: Kevin Stone [mailto:[EMAIL PROTECTED]] > Sent: Saturday, May 25, 2002 8:54 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Include (Newbie question) > > No, not exactly. The idea behind the include() function in PHP is to > append > a

Re: [PHP] Include (Newbie question)

2002-05-25 Thread Kevin Stone
No, not exactly. The idea behind the include() function in PHP is to append and execute code to the currently running script. This is great for organizing your code into more easier to manage chunks. PHP will attempt to parse and execute the included file as a PHP file regardless of the file ex

Re: [PHP] Include Files self aware?

2002-04-30 Thread Evan Nemerson
> www.PHPBeginner.com // where PHP Begins > > > -Original Message- > > From: mArk.cOLListER [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, May 01, 2002 2:00 AM > > To: php > > Subject: Re: [PHP] Include Files self aware? > > > > > > The p

RE: [PHP] Include Files self aware?

2002-04-30 Thread Maxim Maletsky \(PHPBeginner.com\)
> -Original Message- > From: mArk.cOLListER [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 01, 2002 2:00 AM > To: php > Subject: Re: [PHP] Include Files self aware? > > > The problem with this is you will loose the scope of your variables. > > So $filename wi

Re: [PHP] Include Files self aware?

2002-04-30 Thread Miguel Cruz
On Tue, 30 Apr 2002, PHP List wrote: > Is it possible to detect if a file is being called as an include or require? > > ex: > include("file.php")<-- file.php code can "detect" that is has been > called as an include. Compare $PHP_SELF with __FILE__, maybe? miguel -- PHP General Mailing L

Re: [PHP] Include Files self aware?

2002-04-30 Thread mArk.cOLListER
The problem with this is you will loose the scope of your variables. So $filename will not have access to anything from where the function is called... -mark On Tue, 30 Apr 2002, Billy S Halsey wrote: > Try this code (untested): > > function selfAwareInclude($filename) > { > defin

Re: [PHP] Include Files self aware?

2002-04-30 Thread Billy S Halsey
Try this code (untested): function selfAwareInclude($filename) { define($filename, true); include($filename); } Inside your include file, make calls such as if (defined($filename)) { // Do whatever } Then use the selfAwareInclude() function instead of include(). You could do the s

Re: [PHP] include through HTTP

2002-04-13 Thread Barýþ
file.php does more than one jobs depending on HTTP_GET_VARS. for example if "..?mod=show" or it is empty it shows things, elseif "..?mod=update" it updates... so i must send a variable to the included file but i can't do it in the file that includes it. The file that includes file.php is a templa

Re: [PHP] include through HTTP

2002-04-12 Thread Rasmus Lerdorf
Why do you want to include from localhost over HTTP? Sounds to me like you want to do: $foo='bar'; include "$DOCUMENT_ROOT/folder/file.php"; -Rasmus On Fri, 12 Apr 2002, Barýþ Mert wrote: > What i want to do is : > include("http://localhost/folder/file.php?foo=bar";); > but it doesn't work. A

RE: [PHP] include through HTTP

2002-04-12 Thread Barýþ
Oh what a shame on me! Sorry and thank you... --- "Collins, Robert" <[EMAIL PROTECTED]> wrote: > Check the Note about 5 lines down on this page. > http://www.php.net/manual/en/features.remote-files.php > > "Note: You can't use remote files in include() and > require() statements on > Windows." >

RE: [PHP] include through HTTP

2002-04-12 Thread Collins, Robert
Check the Note about 5 lines down on this page. http://www.php.net/manual/en/features.remote-files.php "Note: You can't use remote files in include() and require() statements on Windows." Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Email : [EM

Re: [PHP] Include Error on PHP 4.1.2

2002-03-28 Thread bvr
Fix 'include_path' in php.ini I think you want it to look in the current directory (.\) as well. bvr. Alberto Wagner wrote: >I can't include anything on my php scripts > >Failed opening 'Pagina_Inicial.php' for inclusion (include_path='c:\php4\pear') > >How to fix it? > > > > -- PHP Gene

RE: [PHP] include() question

2002-03-14 Thread Dave
Missing close " for one. v include("index.php?var='$var'"); ^ and you don't need to pass the $var to the include since it will be included, and obviously you already have it declared. if index.php contained and the file you are i

Re: [PHP] include() question

2002-03-14 Thread Lars Torben Wilson
On Thu, 2002-03-14 at 13:20, Phil Schwarzmann wrote: > Why doesn't this work... > > include("index.php?var='$var'); > > I want to include a page in my code and send a variable to it but I get > some funky error. > > THANKS!! Please read this page carefully, especially the third paragraph an

Re: [PHP] include() question

2002-03-14 Thread Erik Price
lt;[EMAIL PROTECTED]>; "Phil > Schwarzmann" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Thursday, March 14, 2002 11:03 PM > Subject: Re: [PHP] include() question > > >> On Thu, 14 Mar 2002, Erik Price wrote: >> >>> >>> On Thursd

Re: [PHP] include() question

2002-03-14 Thread Erik Price
On Thursday, March 14, 2002, at 05:03 PM, Jan Rademaker wrote: > I think what Edward means is that you can't pass parameters to an > included > file, like include("some.inc?var=value"); > That's true, at least for local > files. include("http://remotesite/some.php?var=value";) will work, as >

Re: [PHP] include() question

2002-03-14 Thread Edward van Bilderbeek - Bean IT
PROTECTED]>; "Phil Schwarzmann" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, March 14, 2002 11:03 PM Subject: Re: [PHP] include() question > On Thu, 14 Mar 2002, Erik Price wrote: > > > > > On Thursday, March 14, 2002, at 04:34 PM, Edward van Bilde

Re: [PHP] include() question

2002-03-14 Thread Edward van Bilderbeek - Bean IT
s, Edward - Original Message - From: "Erik Price" <[EMAIL PROTECTED]> To: "Edward van Bilderbeek - Bean IT" <[EMAIL PROTECTED]> Cc: "Phil Schwarzmann" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, March 14, 2002 10:58 PM Subject: Re: [

Re: [PHP] include() question

2002-03-14 Thread Erik Price
On Thursday, March 14, 2002, at 04:34 PM, Edward van Bilderbeek - Bean IT wrote: > you can't use a variable as a parameter for the included file... because > include does nothing else then putting the text of the include file on > the > place of the include statement... Are you sure about th

Re: [PHP] include() question

2002-03-14 Thread Edward van Bilderbeek - Bean IT
you can't use a variable as a parameter for the included file... because include does nothing else then putting the text of the include file on the place of the include statement... so this should work: $var = 'bladibla'; include('index.php'); Greets, Edward - Original Message - Fro

RE: [PHP] include() question

2002-03-14 Thread Demitrious S. Kelly
Try to simplify the problem $file='index.php?var='; $file.=$var; include($file); -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 1:20 PM To: [EMAIL PROTECTED] Subject: [PHP] include() question Why doesn't this work... include("index.

Re: [PHP] include, include_once bug or feature ?

2002-03-14 Thread Pavel Plesov
: I think that since you are including a file into a function - the vars : become local so they only exist when the function is running. Therefore, : a call to get_defined_vars will not show them since the vars do not : exist in the global scope. In fact, during the call to get_defined_vars, : the

RE: [PHP] include, include_once bug or feature ?

2002-03-14 Thread Matt Friedman
I think that since you are including a file into a function - the vars become local so they only exist when the function is running. Therefore, a call to get_defined_vars will not show them since the vars do not exist in the global scope. In fact, during the call to get_defined_vars, the included

RE: [PHP] include() & .htaccess

2002-03-13 Thread Ford, Mike [LSS]
> -Original Message- > From: Patrick Teague [mailto:[EMAIL PROTECTED]] > Sent: 13 March 2002 10:48 > > > I'm having problems with .htaccess files setting up the php_value > include_dir on both my development & test servers. I'm using > php4 under > apache on win2k for development & php

Re: [PHP] include() & .htaccess

2002-03-13 Thread Patrick Teague
I'm having problems with .htaccess files setting up the php_value include_dir on both my development & test servers. I'm using php4 under apache on win2k for development & php4 under apache on unix as a test server. I've currently done the following on the win server php_value include_dir

Re: [PHP] include() and paths

2002-03-06 Thread michael kimsal
Patrick Teague wrote: > ok, so this makes alot of since... if I move my website from one server to > another server I'll have to go through every single file & redo the > directory structure? Isn't this the reason for the includes... so you > don't have to go through every single file to make c

Re: [PHP] include() and paths

2002-03-06 Thread Patrick Teague
ok, so this makes alot of since... if I move my website from one server to another server I'll have to go through every single file & redo the directory structure? Isn't this the reason for the includes... so you don't have to go through every single file to make changes? Maybe I should go bac

RE: [PHP] include() and paths

2002-03-05 Thread Ford, Mike [LSS]
> -Original Message- > From: Nick Wilson [mailto:[EMAIL PROTECTED]] > Sent: 01 March 2002 17:30 > To: PHP-General > Subject: Re: [PHP] include() and paths > > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > * and then Nick Winfield decla

Re: [PHP] include() and paths

2002-03-01 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then DL Neil declared > > > RTFM the four pages from > > > http://www.php.net/manual/en/function.require.php.; There's quite a > bit > > > of advice/experience in the user annotations! > > > > Please don't RTFM me, that's the first place I

Re: [PHP] include() and paths

2002-03-01 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Nick Winfield declared > I didn't catch the first part of this thread (rampant deletion ahoy) so > please excuse if I am talking nadgers. The way I see it, if you are > calling includes/requires from within other includes, the path is

Re: [PHP] include() and paths

2002-03-01 Thread DL Neil
and Nick Wilson opined in what could be seen to be an arrogant fashion... > * and then DL Neil declared > > > masterfile.inc lives in /var/www/includes/ and contains this line: > > > include("/var/www/includes/anotherfile.inc"); > > > > > > in index.php I include masterfile.inc and thus get an

Re: [PHP] include() and paths

2002-03-01 Thread Nick Winfield
On Fri, 1 Mar 2002, Nick Wilson wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > * and then DL Neil declared > > > masterfile.inc lives in /var/www/includes/ and contains this line: > > > include("/var/www/includes/anotherfile.inc"); > > > > > > in index.php I include masterfile

Re: [PHP] include() and paths

2002-03-01 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then DL Neil declared > > masterfile.inc lives in /var/www/includes/ and contains this line: > > include("/var/www/includes/anotherfile.inc"); > > > > in index.php I include masterfile.inc and thus get anotherfile.inc. > > > > What I'd like

Re: [PHP] include() and paths

2002-03-01 Thread DL Neil
Hi Nick, > masterfile.inc lives in /var/www/includes/ and contains this line: > include("/var/www/includes/anotherfile.inc"); > > in index.php I include masterfile.inc and thus get anotherfile.inc. > > What I'd like to know though is, is it possible to have the include line > in masterfile.inc sp

[PHP] Re: php include path setting in .htaccess

2002-02-28 Thread Pete Lacey
php_value include_path "../includefiles/:../../includefiles/" Bill wrote: > How can I set the php include path on an Apache machine using .htaccess. > > Assuming I'm puting it outside of the web root, I think it is something > like: > > php_include_path "../includefiles/:../../includefiles/" >

Re: [PHP] Include file for MySQL insert rows

2002-02-17 Thread Janet Valade
INCLUDE is not really what you are looking for. INCLUDE is more to read in files that contain PHP code. If I'm understanding correctly, what you want to do is to read each line from your file and put each line into a separate variable. Then, you can create the INSERT statement for each row. It mi

Re: [PHP] include redirects

2002-01-29 Thread David Otton
On Tue, 29 Jan 2002 12:51:15 +0100, you wrote: >Do you know a solution to insert remote content handling eventual redirects >in the remote? >Something like a browser. fopen() the file you're trying to include, and handle the response from the server yourself. If it returns 301 or 302, you have t

Re: [PHP] 'include' & anchors

2002-01-20 Thread Bogdan Stancescu
"A script to go to an anchor" - I don't know about that... If you need a _link_ to go to an anchor then you just need to echo the proper link (i.e. echo "blah.htm#anchor";). If you want a script to _redirect_ to an anchor then Emile is right: this is a client-side thing and you either have to go w

RE: [PHP] include() and URL's

2002-01-17 Thread John (News)
I'm using my workstation as an all in one test box. It's running, IIS 4.0, and PHP for Windows version 4.0.6. At 11:13 AM 1/18/02 +1100, you wrote: > > The file is running on an NT box and can be accessed fine > > through IIS. It is only when using the include() statement to > > this file that p

RE: [PHP] include() and URL's

2002-01-17 Thread Jason Murray
> The file is running on an NT box and can be accessed fine > through IIS. It is only when using the include() statement to > this file that problems occur. If I do a local path map to it, > it will include fine but when using an URL it gives that error. Can you retrieve the file from that URL

RE: [PHP] include() and URL's

2002-01-17 Thread John (News)
The file is running on an NT box and can be accessed fine through IIS. It is only when using the include() statement to this file that problems occur. If I do a local path map to it, it will include fine but when using an URL it gives that error. Hippie. At 05:02 PM 1/17/02 -0700, you wrote:

RE: [PHP] include() and URL's

2002-01-17 Thread Johnson, Kirk
Does the file have persmissions such that it is include()-able by nobody? Kirk > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 16, 2002 4:33 PM > To: [EMAIL PROTECTED] > Subject: [PHP] include() and URL's > > > I'm trying to include

Re: [PHP] include or fread a binary file?

2001-11-28 Thread faeton
Hello Bryant, Thursday, November 29, 2001, 12:56:07 AM, you've written: BB> I have a flash file that I need to embed in an iframe on a page. I BB> dynamically get the path to the file from a MySQL database. I've BB> tried to include the file and use fopen/fread to execute the BB> file, but I only

RE: [PHP] include or fread a binary file?

2001-11-28 Thread Martin Towell
you might need to set the content-type... -Original Message- From: Bryant Brabson [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 29, 2001 9:56 AM To: [EMAIL PROTECTED] Subject: [PHP] include or fread a binary file? I have a flash file that I need to embed in an iframe on a page. I

Re: [PHP] Include Precompiled C binaries

2001-10-28 Thread Christian Reiniger
On Friday 26 October 2001 22:32, Daelic wrote: > I was debating perl Vs. PHP with a friend, and he came up with this: > > "Perl can include compiled C binaries without backprocessing them, > which is a pretty useful trick." Ask him what he means with "backprocessing" -- Christian Reiniger LGDC

Re: [PHP] include() problem.

2001-10-23 Thread David Robley
On Wed, 24 Oct 2001 10:02, brendan wrote: > Uni runs solaris/unix > faculty runs iis > world of political pain and anguish.. > > view source brings up a blank screen .. > ta > brendan > OK - bit of straw grasping; you do have URL-fopen-wrappers enabled; try assigning the result of the include to

Re: [PHP] include() problem.

2001-10-23 Thread brendan
Uni runs solaris/unix faculty runs iis world of political pain and anguish.. view source brings up a blank screen .. ta brendan David Robley wrote: > On Wed, 24 Oct 2001 08:03, brendan wrote: > >>Hi, >> I have an issue with including a file accross my web server from a >>separate

Re: [PHP] include() problem.

2001-10-23 Thread David Robley
On Wed, 24 Oct 2001 08:03, brendan wrote: > Hi, > I have an issue with including a file accross my web server from a > separate site on that server served on another port. > > - explanation > > my php website runs off IIS port :80 (unfortunately IIS is employers > decision not mine )

Re: [PHP] include XHTML document

2001-09-24 Thread Tim
On Mon, 2001-09-24 at 08:04, cweiske wrote: > I wrote my new page in XHTML 1.0, split it and wanted to include the top > part of the file with the include( "page_top.htm"). > The problem is, that the valid XHTML document has to begin with > > > The problem now is, that I for myself use http://w

[PHP] An Email RE: [PHP] include XHTML document has been trapped

2001-09-24 Thread MAILsweeper
The email RE: [PHP] include XHTML document from [EMAIL PROTECTED] to [EMAIL PROTECTED] [EMAIL PROTECTED] contained script similar to known Worm viruses. As a precaution this has been held in quarantine. The message will be held for up to 20 days, for further checking. Please notify the

RE: [PHP] include() problem...

2001-09-20 Thread Matthew Walker
alker [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 20, 2001 2:52 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] include() problem... Checked that. Plenty of permissions. Anyone else have any idea? -Original Message- From: Johnson, Kirk [mailto:[EMAIL PROTECTED]] Sent: Thursday, Septem

RE: [PHP] include() problem...

2001-09-20 Thread Matthew Walker
Checked that. Plenty of permissions. Anyone else have any idea? -Original Message- From: Johnson, Kirk [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 20, 2001 1:48 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] include() problem... Check the permissions on both the directory and

RE: [PHP] include() problem...

2001-09-20 Thread Johnson, Kirk
Check the permissions on both the directory and the file, so that they are accessible to 'nobody' (or whomever PHP is running as). I'm not sure what to make of the empty include path in the error message. Kirk > I've tried including just a file that was in the /usr/lib/php > directory. > No lu

RE: [PHP] include() problem...

2001-09-20 Thread Matthew Walker
Anderson Scarbrough [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 20, 2001 12:04 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [PHP] include() problem... If you put the file into the include directory specified in the php.ini (.:/usr/lib/php) then I believe you should do:

RE: [PHP] include() problem...

2001-09-20 Thread Jeb Anderson Scarbrough
If you put the file into the include directory specified in the php.ini (.:/usr/lib/php) then I believe you should do: include("mysql.php"); NOT include("DB/mysql.php"); Someone please correct me if I'm wrong. I've got a very odd problem. I'm trying to include 'DB/mysql.php', from the /us

Re: [PHP] include question

2001-09-17 Thread Scott
At 02:03 AM 9/18/2001 +0200, Chris Hayes wrote: > 2) let them make a real template, either a file or a database >cell, for instance > fhkhfsahehfaa[DATA1] >and do a str replace [DATA1] parts --> database content. Chris- YOU ROCK! Thank you for the thought starter, I have been beating m

Re: [PHP] include error with no includes

2001-09-05 Thread Chad Cunningham
> I could be way off, but it sounds like a permissions problem. The user > that your webserver runs as probably no longer has access to the page. Allright, how did I not think of that :) Seems someone has been messing around with permissions on the server, thanks! -- Chad Cunningham [EMAIL P

Re: [PHP] include error with no includes

2001-09-05 Thread Jason Stechschulte
On Wed, Sep 05, 2001 at 09:02:03AM -0400, Chad Cunningham wrote: > > I've got a few php pages that a while back started giving the following > include error: > > Warning: Failed opening '/home/ccunning/WWW/probability.php3' for > inclusion (include_path='.:/web/php/include:/web/php/phplib') in U

Re: [PHP] include, chmod, password files

2001-08-08 Thread David Hill
On Wed, 8 Aug 2001 12:03:34 -0600 "Johnson, Kirk" <[EMAIL PROTECTED]> wrote: > > If I have a file called db.inc with, for example, this: > > > > However, any user on the system can read db.inc cause its > > chmod'd 0644. > > If I chmod db.inc 0600 or even 0640, index.php can not include it. >

RE: [PHP] include, chmod, password files

2001-08-08 Thread Johnson, Kirk
> If I have a file called db.inc with, for example, this: > > However, any user on the system can read db.inc cause its > chmod'd 0644. > If I chmod db.inc 0600 or even 0640, index.php can not include it. > > How do I go about protecting my files from being read by > users on the system? Belo

<    1   2   3   4   5   6   7   8   >