RE: [PHP] include, require, require_once

2001-07-21 Thread Maxim Maletsky
PROTECTED] Subject: RE: [PHP] include, require, require_once Subject: [PHP] include, require, require_once what is the diference beetwen this functions? The difference is well explained on www.php.net - documentation - {include, require, require_once} RTFM! Martin. -- PHP General Mailing List

RE: [PHP] include, require, require_once

2001-07-21 Thread Jeff Lewis
] Subject: RE: [PHP] include, require, require_once The difference is well explained on www.php.net - documentation - {include, require, require_once} RTFM! Martin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

RE: [PHP] include, require, require_once

2001-07-21 Thread Martin Marconcini
Lets not destroy the user community now :( All the time I hear Perl users are mea and rude The PHP community is great. I am just picking up JSP (have to, for work) and can't stand their manuals and their users aren't always as nice. Lets keep PHP nice and friendly ;) Yes it is in the

Re: [PHP] include, require, require_once

2001-07-20 Thread Joshua Pierre
Hi, On Sat, Jul 21, 2001 at 12:18:38AM -0300, Thiago Locatelli da Silva wrote: what is the diference beetwen this functions? I believe the include/require_once() functions check to see if that particular include was previously included in the script and if it was it ignores it, at least that

RE: [PHP] include, require, require_once

2001-07-20 Thread Martin Marconcini
Subject: [PHP] include, require, require_once what is the diference beetwen this functions? The difference is well explained on www.php.net - documentation - {include, require, require_once} RTFM! Martin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

RE: [PHP] include a perl script

2001-07-09 Thread Chadwick, Russell
if you just want to run the script system(/path/to/whatever); if you want its output fopen (server-name/cgi-bin/whatever.cgi); if you want the perl script to set variables or anything you'll have to write something that reads the output from fopen and assigns them. Or if you trust this server

Re: [PHP] ? include (http://www.myserver.de/page2.php); ?

2001-07-08 Thread Chris Anderson
You could try fopen()ing the contents that way. maybe exec() them? - Original Message - From: Dieter Stolpmann [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, July 08, 2001 3:18 PM Subject: [PHP] ? include (http://www.myserver.de/page2.php;); ? Hi, does anyone know, how to

RE: [PHP] Include Speed

2001-06-21 Thread Jason Murray
Isn't it fair to say that having the server open the extra file will add to the total execution time of the page? I think if it significantly impacts the execution time, you have bigger problems with your server. :) Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Include Speed

2001-06-20 Thread scott [gts]
include() is not magical. it's all PHP code, whether or not you put it into your main file, or pull it in with an include() if it's slow - it's slow, regardless of *how* it was brought into the script. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent:

RE: [PHP] Include Speed

2001-06-20 Thread tony . mccrory
: Subject: RE: [PHP] Include Speed 06/20/2001 04:33 PM

Re: [PHP] include!!!!!

2001-05-23 Thread mheumann
Hi, that sounds like your Web server doesn't interpret PHP at all. Are you sure you enabled it correctly? What platform are you working on? Greetings, Michael. I'm new to php (having converted from the evil ASP) and i'm having some trouble with includes this is what i'm doing... ?php

Re: [PHP] include and include-virtual

2001-05-23 Thread James, Yz
Christian, Those are SSI calls (Server Side Includes, for use with .shtml files). Try: include(/path/to/filename); require(/path/to/filename); I've never used these, but in PHP4 there are also: include_once(/path/to/filename); and require_once(/path/to/filename); (double check that I have

Re: [PHP] include and include-virtual

2001-05-23 Thread Christian Dechery
At 22:23 23/5/2001 +0100, James, Yz wrote: Christian, Those are SSI calls (Server Side Includes, for use with .shtml files). I know what they are... I wanna know what's the difference between them Try: include(/path/to/filename); require(/path/to/filename); no... I want SSI calls cause this

Re: [PHP] include and include-virtual

2001-05-23 Thread David Robley
On Thu, 24 May 2001 10:00, Christian Dechery wrote: At 22:23 23/5/2001 +0100, James, Yz wrote: Christian, Those are SSI calls (Server Side Includes, for use with .shtml files). I know what they are... I wanna know what's the difference between them That's really an apache-related

Re: [PHP] include() in a file incuded()

2001-05-21 Thread Christian Reiniger
On Sunday 20 May 2001 19:39, Jaime Torres wrote: I've been blocked by this tiny problem... I have a main.php file: ? $frames = true; $open = http://myserver.com/info.html;; if ($frames) { include (frameset.php); } ? The frameset.php looks like (omitting almost all the HTML):

Re: [PHP] Include Paths

2001-05-20 Thread Christian Reiniger
On Saturday 19 May 2001 23:18, Dylan Finney wrote: I am fairly new to PHP and so far I love it. One question I have is how to call include files outside of their directory without hard coding the real path to the file itself. Is there map path or a See the include_path ini directive in the

Re: [PHP] include() in a file incuded()

2001-05-20 Thread George E. Papadakis
Replace frame src=onlineview.php3 with frame src=? echo $open;? Variable $open is passed to the included file automatically. Hi! I've been blocked by this tiny problem... I have a main.php file: ? $frames = true; $open = http://myserver.com/info.html;; if ($frames) { include

RE: [PHP] include() in a file incuded()

2001-05-20 Thread Jaime Torres
passes the values of the variables defined in the parent? Regads, Jaime -Mensaje original- De: George E. Papadakis [mailto:[EMAIL PROTECTED]] Enviado el: domingo 20 de mayo de 2001 13:22 Para: Jaime Torres; [PHP] General List Asunto: Re: [PHP] include() in a file incuded() Replace

Re: [PHP] include + path

2001-05-17 Thread elias
Easy, ... Use JavaScript or simple HTML... javascript: script Language=JavaScript src=yousite/yourscripts/statcounter.php/script Now you've just been called from another server! Now from within your script you can get lots of informations like: $HTTP_REFERER ... -elias

RE: [PHP] include(../file.inc);

2001-05-14 Thread kelvin chan .
then! =) kelvin Chan Message-ID: [EMAIL PROTECTED] From: Taylor, Stewart [EMAIL PROTECTED] To: 'Matthew Ralston' [EMAIL PROTECTED], [EMAIL PROTECTED] Date: Fri, 11 May 2001 11:52:17 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Subject: RE: [PHP] include

RE: [PHP] include(../file.inc);

2001-05-11 Thread Taylor, Stewart
Either of the first two should work under linux. I have done similar many times myself e.g. require_once ../common/localvars.php; -Stewart -Original Message- From: Matthew Ralston [mailto:[EMAIL PROTECTED]] Sent: 11 May 2001 11:40 To: [EMAIL PROTECTED] Subject: [PHP]

Re: [PHP] include(../file.inc);

2001-05-11 Thread Jakob Kruse
You may need to set your include_path to . in php.ini. Than again maybe not. Try it. Then include ../file.inc should work (on Unix or Linux, use \ on Windows). Regards, Jakob Kruse Matthew Ralston [EMAIL PROTECTED] wrote in message 9dgfbo$kom$[EMAIL PROTECTED]">news:9dgfbo$kom$[EMAIL

RE: [PHP] Include and require

2001-05-03 Thread Johnson, Kirk
According to the docu u should not require() files or external code in loops or u must use curly Bracket when used in if conditions. But everythink works fine. I require() successfully in for loops, I can use it in if..elseif..else constucts without curly brackets. (only one line of

RE: [PHP] Include and require

2001-05-03 Thread Philip Olson
for a lengthy post on the subject that clearly explains the differences/similarities/history between require and include, see this post by Zeev : RE: [PHP] Require() vs Include()

Re: [PHP] include whole directories?

2001-05-01 Thread Nikhil Goyal
you could create a common include file for each directory, for e.g. functions/auth.inc.php would contain: include (auth/auth1.php); include (auth/auth2.php); ... later you could just include() the auth.inc.php file, and all the rest qould get included as well andrew [EMAIL

Re: [PHP] include whole directories?

2001-04-27 Thread Erica Douglass
Sure. Use an array, as suggested in the example on the include manual page, but put all files in a specific directory in that array. To do that, use code like the following: # load files into array # assign $directory to your variable, or replace $directory in the below line with the directory

Re: [PHP] include file by .htaccess

2001-04-24 Thread Rasmus Lerdorf
How can I include any html or php file via .htaccess . I want to include an html file in a site contaning around 1000 pages. I want to add header footer dynamically on these pages . Is there any way to include header footer on these pages using .htaccess file. php_value

Re: [PHP] include file using .htaccess

2001-04-23 Thread Keyur Kalaria
thanks for that , it is working fine. keyur - Original Message - From: Rasmus Lerdorf [EMAIL PROTECTED] To: Keyur Kalaria [EMAIL PROTECTED] Cc: php [EMAIL PROTECTED] Sent: Saturday, April 21, 2001 9:18 PM Subject: Re: [PHP] include file using .htaccess Make sure AllowOverride

Re: [PHP] include file using .htaccess

2001-04-21 Thread Rasmus Lerdorf
Make sure AllowOverride includes Options and put these lines in your .htaccess: php_value auto_prepend_file header.html php_value auto_append_file footer.html -Rasmus On Sat, 21 Apr 2001, Keyur Kalaria wrote: Hello, How can I include any html or php file via .htaccess ? I want to include

RE: [PHP] include file using .htaccess

2001-04-21 Thread PHPBeginner.com
the syntax for it is: php_value auto_prepend_file /full/path/to/the/prepend.inc php_value auto_append_file /full/path/to/the/append.inc or you could also do this: php_value include_path /full/path/to/the/includes php_value auto_prepend_file prepend.inc php_value auto_append_file append.inc

Re: [PHP] include path per script

2001-04-16 Thread Ulf Wendel
Martn Marqus schrieb: Is it posible to change the value of include_path in a php script without changing it in php.ini? Try ini_set() friends, http://www.php.net/manual/en/function.ini-set.php . Ulf -- Neu: PEAR Menu 3 - Navigationsstrukturen dynamisch dargestellt

RE: [PHP] include files with PHP 3.0.16

2001-04-16 Thread James Atkinson
Is there an equivalent to !--#include file="filename.inc"-- in PHP? And will it work in version 3.0.16. I've gone through the online manual but found nothing that would help in this situation. include("filename.inc"); or require("filename.inc"); http://www.php.net/include

Re: [PHP] include files with PHP 3.0.16

2001-04-16 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Tim Thorburn) wrote: Is there an equivalent to !--#include file="filename.inc"-- in PHP? And will it work in version 3.0.16. I've gone through the online manual but found nothing that would help in this situation.

RE: [PHP] include files with PHP 3.0.16

2001-04-16 Thread Stefan Kostopoulos
Tim, Check out the include() and require() function of php. Stefan -Original Message- From: Tim Thorburn [mailto:[EMAIL PROTECTED]] Sent: Monday, April 16, 2001 5:38 PM To: [EMAIL PROTECTED] Subject: [PHP] include files with PHP 3.0.16 Hi, I'm currently working on a rather large

Re: [PHP] Include / Require

2001-04-05 Thread Lindsay Adams
On 4/5/01 10:56 AM, "Ashley M. Kirchner" [EMAIL PROTECTED] wrote: I have a DB project going and every time I query the DB for data from a particular table, I want to include a set of variables (that get set based on the query result). I was thinking of doing something like this:

RE: [PHP] Include / Require

2001-04-05 Thread Johnson, Kirk
In addition to Lindsay's comments: Any time PHP can't include() a file, but it can include() it if you change the filename, check the permissions on the original file. They may be set too restrictive for PHP to read it. Kirk -Original Message- From: Ashley M. Kirchner [mailto:[EMAIL

Re: [PHP] Include / Require

2001-04-05 Thread Chris Lee
is the file localhost? because the file being localhost or remote makes a huge difference. lets assume its localhost incdex.php ?php $table = 'test'; include_once("$DOCUMENT_ROOT/include/variables.php"); ? now, variables.php will NOT return variables, thats not what

Re: [PHP] Include Files

2001-04-04 Thread bizzk
html head title/title /head body ...your HTML page... br ? include("footer.html"); ? /body /html I got this from www.devshed.com (http://www.devshed.com/Server_Side/PHP/PHP101_1/page5.html). Check it out! See You, Bizzk ""Mike"" [EMAIL PROTECTED] schreef in bericht 9afcj1$o9l$[EMAIL

RE: [PHP] Include Files

2001-04-04 Thread Boget, Chris
I'm trying to use html "include" syntax in a php page.If I use .shtml the php gets ignored .If I use php the !--#include virtual="Nav.htm" -- the php gets ignored.Is there a way of doing this without using the php include function? Set up the .shtml extension so that it is parsed as PHP.

Re: [PHP] Include Files

2001-04-04 Thread Christian Reiniger
On Wednesday 04 April 2001 17:08, you wrote: I'm trying to use html "include" syntax in a php page.If I use .shtml the php gets ignored .If I use php the !--#include virtual="Nav.htm" -- the php gets ignored.Is there a way of doing this without using the php include function? Thanks Stop

Re: [PHP] Include files

2001-04-04 Thread CC Zona
In article 9afah8$8d3$[EMAIL PROTECTED], [EMAIL PROTECTED] ("Mike") wrote: I'm trying to use html "include" syntax in a php page.If I use .shtml the php gets ignored .If I use php the !--#include virtual="Nav.htm" -- the php gets ignored.Is there a way of doing this without using the php

Re: [PHP] Include files????

2001-04-02 Thread Felix Kronlage
On Mon, Apr 02, 2001 at 08:55:26AM -0300, Bruno Freire wrote: Anybody can tell me how can i do Include files? has the thought of looking up the manual at php.net crossed your mind? try searching php.net for include(), require() -fkr -- gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0 8A48 0D31

RE: [PHP] include virtual, file or exec cgi?

2001-03-21 Thread Brian V Bonini
Is there a reason you not using PHP's include method to do this? Rename your shtml file to have a PHP extension, replace the SSI instructions with PHP functions. You should be good to go. ? include "something.php"; ? -Brian *** -Original Message- From: Christian Dechery

RE: [PHP] include virtual, file or exec cgi?

2001-03-21 Thread Christian Dechery
Is there a reason you not using PHP's include method to do this? Rename your shtml file to have a PHP extension, replace the SSI instructions with PHP functions. You should be good to go. I don't wanna rename all my shtml files (which are a LOT) and change all my links to .php in files like this

Re: [PHP] include virtual, file or exec cgi?

2001-03-21 Thread Christian Dechery
you won't be able to use $PHP_SELF, and you will encounter problems with passing values via the querystring, but other than that you can use SSI to call a PHP page. I don't really need any of this, the script is a simple 15-lines-of-code image randomizer that shows a random image from a list. It

Re: [PHP] include virtual, file or exec cgi?

2001-03-21 Thread Christian Dechery
When I first started playing with PHP I had been using SSI's. I tried to find a way that I could get a file that contained SSI's and php to be parsed, but I haven't seen it done. In Apache it seems like it would be as easy as adding a handler that parses shtml files as php files, but that

Re: [PHP] include virtual, file or exec cgi?

2001-03-21 Thread Joe Sheble (Wizaerd)
virtual (PHP 3, PHP 4 ) Perform an Apache sub-request int virtual (string filename) Virtual() is an Apache-specific function which is equivalent to !–#include virtual...– in mod_include. It performs an Apache sub-request. It is useful for including CGI scripts or .shtml files, or anything else

Re: [PHP] include virtual, file or exec cgi?

2001-03-21 Thread almir
you can include through http ,I did it even remotly and it works fine but slow, see in manual how to read files through http -almir ""Christian Dechery"" [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Can't I !--#include file="something.php"-- or

RE: [PHP] include virtual, file or exec cgi?

2001-03-21 Thread Christian Dechery
You could just do a rename *.shtml *.php under DOS or UNIX or cp *.shtml ./*.php then use some sort of regex program/function to replace the internal links. I'm not willing to change my entire site (which have over 3.000 html files) just because PHP can't do something... I'd rather work

Re: [PHP] include virtual, file or exec cgi?

2001-03-21 Thread Christian Dechery
this will work, however: body !--#include file="path/to/myfile.php"-- /body that is the problem... THIS is not working... I have my html file like this: index.shtml html body ... stuff... !--#include virtual="/path/to/banners.php"-- /body /html and it's not working... there are 4

Re: [PHP] include virtual, file or exec cgi?

2001-03-21 Thread Rasmus Lerdorf
Doesn't make a whole lot of sense to do so, but include virtual should work just fine. -Rasmus On Wed, 21 Mar 2001, Christian Dechery wrote: Can't I !--#include file="something.php"-- or !--#include virtual="something.php"-- or !--#exec cgi="something.php"-- ??? I'm trying to, the

RE: [PHP] include() suggestion

2001-03-17 Thread Don Read
On 17-Mar-01 Steve Wardell wrote: I didn't know where else to post feature requests so I'll post it here. Could we get included files to not merely be sucked in to the file that is including it but still think of it as a distinctive file in terms of getting debug output for errors. The

Re: [PHP] include() suggestion

2001-03-17 Thread Steve Wardell
Say you have index.php and 20 lines into index.php you include file.inc and there's an error on line 30 of file.inc, but I'm pretty sure PHP would say there was an error on line 50 of index.php and not like 30 of file.inc. It doesn't keep track of included files as separate files that are called

Re: [PHP] include() suggestion

2001-03-17 Thread Don Read
On 18-Mar-01 Steve Wardell wrote: Say you have index.php and 20 lines into index.php you include file.inc and there's an error on line 30 of file.inc, but I'm pretty sure PHP would say there was an error on line 50 of index.php and not like 30 of file.inc. It doesn't keep track of included

RE: [PHP] include php3 -vs- 4

2001-03-16 Thread Boget, Chris
Is there a workaround under php3 for include_once ? if( !$this_include_file_only_variable_declared ) { $this_include_file_only_variable_declared = 1; // your include script here } And if you attempt to include the file more than once in a script, the IF() will resolve true and skip past

Re: [PHP] include php3 -vs- 4

2001-03-16 Thread Philip Olson
there's a few worthy notes within user comments under include() in manual, have a look here : http://www.php.net/manual/en/function.include.php regards, philip On Fri, 16 Mar 2001, Jack Sasportas wrote: Is there a workaround under php3 for include_once ? Thanks

Re: [PHP] include php3 -vs- 4

2001-03-16 Thread rm
try something like define("CONFIGURATION", "YES"); in xyz-inc-1.php if (CONFIGURATION != "YES") { include("/xyz-inc-1.php"); in the script --- Jack Sasportas [EMAIL PROTECTED] wrote: Is there a workaround under php3 for include_once ? Thanks

Re: [PHP] include() from one server to another server

2001-03-13 Thread Chris Lee
include_once can handel http connection if --disable-url-fopen-wrapper is not compiled intophp or allow_url_fopen = off in php.ini then you can use http, not https though, secure connections are not supported. also not that when using include() this way that the script is accually executed

Re: [PHP] include() require()

2001-03-07 Thread Derek Sivers
Which is the main difference between include() and require() functions? "include" is optional you can put it inside an "IF" like this: if (0) { /* THIS WILL NOT SHOW... */ include "optional_file.php"; } but "require" happens every time, even if it is inside an "IF" that does not

Re: [PHP] include() require()

2001-03-07 Thread Zeev Suraski
At 13:41 7/3/2001, Derek Sivers wrote: Which is the main difference between include() and require() functions? "include" is optional you can put it inside an "IF" like this: if (0) { /* THIS WILL NOT SHOW... */ include "optional_file.php"; } but "require" happens every time,

Re: [PHP] include file

2001-02-25 Thread David Robley
On Mon, 26 Feb 2001 13:29, JW wrote: I have created a config.php3 to store the connection of the database and some constant variable. Then, I created the other file functions.php3 and inculde config.php3 into this file for function.phps3 should use some variables inside the file config.php3.

Re: [PHP] Include

2001-02-13 Thread Ankur Verma
you should try the setting for include_path in php.ini as include_path =" /usr/share/php:./" note the addition of './' in the include path. this would allow php to include the files in the current directory as well, which is the case I guess with the phorum scripts. regards best regards

Re: [PHP] Include files

2001-02-12 Thread Alexander Wagner
Conover, Ryan wrote: I have an include file foo.inc. I want to call a function that is in another include file,say anotherfoo.inc, from the foo.inc. [..] can I call an include from another include? Sure. I tried the above but it fails opening the other include. Should I have the '

RE: [PHP] Include files

2001-02-12 Thread PHPBeginner.com
Yes, you can include foo.php which has another include in it and another and another they will all appear to you as a one single file. But, be careful though, do not reinclude them, or you'll create an infinite loop.. use include_once instead Sincerely, Maxim Maletsky Founder, Chief

Re: [PHP] include(blah.php?var=this); doesn't work?!

2001-02-10 Thread Anna
- Original Message - From: "thor" [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, February 08, 2001 11:58 AM Subject: Re: [PHP] include("blah.php?var=this"); doesn't work?! Any include page you use will automatically use any variab

Re: [PHP] include(blah.php?var=this); doesn't work?!

2001-02-08 Thread Rasmus Lerdorf
Uh, why? Adding ?asin$asin makes absolutely no sense in an include since included files share the same namespace as the parent file. You can simply do: $asin = 123; include 'book_reviews.php'; And the $asin variable will be accessible to you book_reviews.php script. -Rasmus On Thu, 8 Feb

Re: [PHP] include(blah.php?var=this); doesn't work?!

2001-02-08 Thread thor
You don't need to go through these hoops. Any include page you use will automatically use any variable that has been set in the master page. Thus, all you need to do is include the book_reviews.php page, and the $asin variable will work in that one IF it has been set in the master file. If

RE: [PHP] include(blah.php?var=this); doesn't work?!

2001-02-08 Thread Rasmus Lerdorf
Adding ?asin=$asin doesn't make much sense but do it like this: include('book_reviews.php?asin=' . $asin); Which makes just as little sense. Included files share the same namespace as the file doing the including. You don't pass arguments to included files. -Rasmus -- PHP General

Re: [PHP] include(blah.php?var=this); doesn't work?!

2001-02-08 Thread Dean Hall
Uh, why? Adding ?asin$asin makes absolutely no sense in an include since included files share the same namespace as the parent file. You can simply do: Er, Rasmus. Do you mean "scope"? You're usually right on target with your comments, so I'm sure that's what you meant :-) Speaking of

Re: [PHP] include files

2001-02-05 Thread Steve Werby
"David VanHorn" [EMAIL PROTECTED] wrote: I know this works, in footer.inc, to pull up nomenu. ? include("/home/dvh/public_html/footer-nomenu.inc")? However, is there a more "generic" way to specify the server root as the path? I'd rather not expose my directory structure in the PHP code.

RE: [PHP] include files

2001-02-05 Thread Brian V Bonini
DOCUMENT_ROOT ??? http://php.net/manual/en/language.variables.predefined.php -Original Message- From: David VanHorn [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 12:16 PM To: [EMAIL PROTECTED] Subject: [PHP] include files I've got kind of a deep page structure,

RE: [PHP] include files

2001-02-05 Thread David VanHorn
At 12:50 PM 2/5/01 -0500, Brian V Bonini wrote: DOCUMENT_ROOT ??? http://php.net/manual/en/language.variables.predefined.php Ok, but having read the docs you pointed to (thanks), I still don't see how to use it in an include directive. I assume that since the vhost is specified to use

RE: [PHP] include files

2001-02-05 Thread Brian V Bonini
? include ($DOCUMENT_ROOT . "/footer-nomenu.inc"); ? -Original Message- From: David VanHorn [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 1:04 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] include files At 12:50 PM 2/5/01 -0500, Bria

Re: [PHP] include files

2001-02-05 Thread Christian Reiniger
On Monday 05 February 2001 18:15, David VanHorn wrote: I know this works, in footer.inc, to pull up nomenu. ? include("/home/dvh/public_html/footer-nomenu.inc")? However, is there a more "generic" way to specify the server root as the path? I'd rather not expose my directory structure in

Re: [PHP] Include quotes inside textbox

2001-02-02 Thread Christian Reiniger
On Thursday 01 February 2001 19:07, Karl J. Stubsjoen wrote: I'm trying to pass back a link to the user in a textbox (so they can copy and paste it elsewhere), however my textbox is being parsed incorrectly by the browser because of the " quotes which happen in the link I'm passing -

Re: [PHP] Include quotes inside textbox

2001-02-01 Thread Chana Black
If you want to put a " in an echo statement, you need to escape it first by putting the / before it, like /" The function addslashes does this for you. CB At 11:07 AM 2/1/01 -0700, Karl J. Stubsjoen wrote: Hello, I'm trying to pass back a link to the user in a textbox (so they can copy and

Re: [PHP] include statement

2001-01-17 Thread Adam Wright
This is because the PHP include statement is ment to include other blocks of PHP code, rather than bits of HTML. Hence, it includes things from anywhere on the system. To include things from under your current htdocs directory, use... include($DOCUMENT_ROOT . "/includes/metatags.include");

Re: [PHP] include statement

2001-01-17 Thread Toby Butzon
This all depends on your include_path set in the PHP config files; see the manual section on config for more info. About the security hole... yes it would be dangerous on a system where accounts are given to untrusted users (ie, customers), but there are ways to make PHP secure for multi-account

Re: [PHP] include statement

2001-01-17 Thread Alexander Wagner
Michael Zornek wrote: which is scary cause this worked too: ?PHP include("/usr/local/apache/conf/httpd.conf"); ? doesn't this seem like a huge security hole? No. If you know can trust your scripts, this is possible, but trusted scripts won't do any abuse, will they? If you can't trust

Re: [PHP] include statement

2001-01-17 Thread Michael Zornek
Adam(and everyone else who answers in 5 minutes, god i love this list), thanks for the help. Why is readfile more 'correct'? Just wondering? Mike At 5:07 PM + 1/17/01, Adam Wright wrote: This is because the PHP include statement is ment to include other blocks of PHP code, rather than

Re: [PHP] include statement

2001-01-17 Thread Karl J. Stubsjoen
* - Original Message - From: "Adam Wright" [EMAIL PROTECTED] To: [EMAIL PROTECTED]; "Michael Zornek" [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 10:18 AM Subject: Re: [PHP] include statement For your things (where you are including HTML), readfile just rea

Re: [PHP] include statement

2001-01-17 Thread Adam Wright
, investigate "Safe mode" this instant :) adamw - Original Message - From: "Karl J. Stubsjoen" [EMAIL PROTECTED] To: "Adam Wright" [EMAIL PROTECTED]; [EMAIL PROTECTED]; "Michael Zornek" [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 5:21 PM Subject: R

Re: [PHP] include path confusion

2001-01-11 Thread Randy
Thanks for the info Brian. But what about the path you have in the include statement? IE: include "../path1/file.php" Does it ignore the path? Try the path? Or just append that path to the end of each path in the include_path? Best regards, Randy Wednesday, January 10, 2001, 5:06:44 PM,

Re: [PHP] include path confusion

2001-01-11 Thread Randy
Thanks for the info Brian. But what about the path you have in the include statement? IE: include "../path1/file.php" Does it ignore the path? Try the path? Or just append that path to the end of each path in the include_path? Best regards, Randy Wednesday, January 10, 2001, 5:06:44 PM,

Re: [PHP] include path confusion

2001-01-11 Thread Paul K Egell-Johnsen
Randy wrote: Thanks for the info Brian. But what about the path you have in the include statement? IE: include "../path1/file.php" Does it ignore the path? Try the path? Or just append that path to the end of each path in the include_path? Best regards, Randy My experience is that

Re: [PHP] include path confusion

2001-01-11 Thread Brian Clark
Hello Randy, (R == "Randy") [EMAIL PROTECTED] writes: R Thanks for the info Brian. But what about the path you have in the R include statement? IE: include "../path1/file.php" R Does it ignore the path? Try the path? Or just append that path to R the end of each path in the include_path?

Re: [PHP] include path confusion

2001-01-11 Thread Brian Clark
(BC == "Brian Clark") [EMAIL PROTECTED] writes: R Thanks for the info Brian. But what about the path you have in the R include statement? IE: include "../path1/file.php" R Does it ignore the path? Try the path? Or just append that path to R the end of each path in the include_path? BC Using

Re: [PHP] include path confusion

2001-01-10 Thread Brian Clark
Hello Randy, (R == "Randy") [EMAIL PROTECTED] writes: R How I think it SHOULD work is like DOS - First it looks at where R you say it is. If not there, it looks in the current directory. Let's not forget Unix. ;-) R If not there, it looks in the directories in the path. I'm sure PHP R

<    2   3   4   5   6   7