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

[PHP] include() problem...

2001-09-20 Thread Matthew Walker
I've got a very odd problem. I'm trying to include 'DB/mysql.php', from the /usr/lib/php directory, and it's not working. My include_path is set properly (.:/usr/lib/php) and when I do 'print_r(ini_get("include_path"));' it prints it properly. But when I try and do an include, I get the following

[PHP] include question

2001-09-18 Thread Nikola Veber
Hi ! I'm using include() function to print html code nested in a function in the included file when a link is selected. I was wondering if the whole php file that is included gets loaded, or the server just sends the code from desired finction? Can I put more than one function full of html cod

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

[PHP] include question

2001-09-17 Thread Scott
Hello everyone- I am working on a project where a client can upload a template into a database table and manage it. The actual HTML code and dynamic code will be in the template as well. My hope is to build the page using an include that will echo the code to the page and then also fill in the

[PHP] include path-problem

2001-09-10 Thread mail
Hi I have a problem with the include command.I want to include a txt file in a php file.But this txt file must include in every php file on the server and these phpfiles are in different directories. Here is the Problem : www.domain.com/index2.php and www.domain.com/support/shop.php must includ

[PHP] include problem

2001-09-08 Thread mail
Hi I have a little Problem with include.I want to include a txt file in every php file on the server but some php files are in other directories and dont include this txt file. Example : Url for the txt file : www.domain.com/include/incl.txt So www.domain.com/index2.php includes the txt file

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='.

[PHP] include error with no includes

2001-09-05 Thread Chad Cunningham
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 Unknown on line 0 There are no includes in th

[PHP] include or require or what?

2001-08-23 Thread daniel james
I am working on a form that needs to run INSERTS into a table, but also has other connections and functions going on, so $php_self isn't really an option (I'm a newbie, and switch still scares me)... Can I effectively use an include/require(insert.php) on the main of the form, have the form actio

[PHP] Include/requrie secure pages

2001-08-19 Thread TomazSa
I can not include / require secure pages (https). Is that the way it is in php? If so how can I do that another way? lp, tomaz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list admi

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

[PHP] include, chmod, password files

2001-08-08 Thread David Hill
Hello If I have a file called db.inc with, for example, this: I have a my index.php do a include('db.inc'); ok, that works. 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

RE: [PHP] Include

2001-08-07 Thread Johnson, Kirk
> I try to use include() and require() an that what i get: > The path is 100% good. > > Warning: Failed opening '../inc/menu.inc' for inclusion > (include_path='') in Make sure that file permissions allow 'nobody' to view the file. -- PHP General Mailing List (http://www.php.net/) To unsubscr

[PHP] Include

2001-08-07 Thread Veniamin Goldin
help me please ! I try to use include() and require() an that what i get: The path is 100% good. Warning: Failed opening '../inc/menu.inc' for inclusion (include_path='') in -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

[PHP] include path syntax for php.ini under windows

2001-08-04 Thread Mark Lo
Hi, I would like to know the correct syntax of include_path for php.ini under windows. I have tried to set the include path as "C:\home\main\require" but it doesn't work. Thanks in advance Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTE

RE: [PHP] include ("foo.php") not working

2001-07-25 Thread Rudolf Visagie
I've found that when I forget to start and end the include file's code with it sometimes does exactly what you're getting. Regards Rudolf -Original Message- From: Jon Hubbard [mailto:[EMAIL PROTECTED]] Sent: 25 July 2001 01:42 To: [EMAIL PROTECTED] Subject: [PHP] in

Re: [PHP] include ("foo.php") not working

2001-07-25 Thread maatt
Errr... feel embaressed asking but I've done the same... You do have tags around your code? Easy to leave off when there's no HTML in the page. Matt "Ilari Kaartinen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > when I include the statement then rather

Re: [PHP] include ("foo.php") not working

2001-07-25 Thread ilari . kaartinen
> when I include the statement then rather than > parsing the file and displaying the results the whole file is just dumped to > screen as a text file. Interesting the same problem occurs whatever the > file extension so the same thing happens for foo.htm, foo.html and foo.txt! >From PHP manual

Re: [PHP] include ("foo.php") not working

2001-07-25 Thread Andy Warwick
> I am running PHP 4.0.6 on my Mac OSX using apache and MySQL. > when I include the statement then rather than > parsing the file and displaying the results the whole file is just dumped to > screen as a text file. Interesting the same problem occurs whatever the > file extension so the same th

[PHP] include ("foo.php") not working

2001-07-25 Thread Jon Hubbard
I have a strange problem which I cannot seem to resolve. I am running PHP 4.0.6 on my Mac OSX using apache and MySQL. Everything works fine except for one problem. Like many developers I make extensive use of the include funtion but it does not seem to work correctly on this installation. when

RE: [PHP]include question, WHY doesn't this work...

2001-07-23 Thread Gonyou, Austin
] > Sent: Monday, July 23, 2001 2:53 PM > To: Chris Cocuzzo > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP]include question, WHY doesn't this work... > > > Is the lib direcotory under the working directory, I mean, if your > program is excuting under temp directory,

Re: [PHP]include question, WHY doesn't this work...

2001-07-23 Thread Chris Cocuzzo
lt;[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, July 23, 2001 3:52 PM Subject: Re: [PHP]include question, WHY doesn't this work... > Is the lib direcotory under the working directory, I mean, if your > program is excuting under temp directory, the lib directory has to

Re: [PHP]include question, WHY doesn't this work...

2001-07-23 Thread Unni
Is the lib direcotory under the working directory, I mean, if your program is excuting under temp directory, the lib directory has to be below temp directory. If you are running this program from the root directory then lib has to be below root directory. Your code looks good to me. One more t

[PHP]include question, WHY doesn't this work...

2001-07-23 Thread Chris Cocuzzo
hey- I have a piece of code which does a simply INSERT query into an mp3 table. I've tested it out, and it completes the query, however there is one bug that I just have no clue about. this code does not work when i try to connect to the db: include("lib/db_config.php"); $connection = db_connec

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

RE: [PHP] include, require, require_once

2001-07-21 Thread Jeff Lewis
t; To: 'Thiago Locatelli da Silva'; [EMAIL PROTECTED] > 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 L

RE: [PHP] include, require, require_once

2001-07-21 Thread Maxim Maletsky
7;; [EMAIL 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.

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 unsu

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

[PHP] include, require, require_once

2001-07-20 Thread Thiago Locatelli da Silva
what is the diference beetwen this functions? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] include nubie question - need help

2001-07-10 Thread Ivo Stoykov
Hello I migrated to php 4.0.5 under windows IIS 5/win2000 AS The following line - if($HTTP_POST_VARS['user_name']) { ... WHATEVER ...} - returns me following error with and without global $HTTP_POST_VARS Warning: Undefined index: user_name in E:\10ioWebSite\sales\login.php on line 99 and the l

RE: [PHP] include a perl script

2001-07-09 Thread Chadwick, Russell
u trust this server (dont do this over the internet) you can make the cgi output php code to set arrays and variables and such and then just eval () everything. - Russ -Original Message- From: Ajuco [mailto:[EMAIL PROTECTED]] Sent: Monday, July 09, 2001 4:33 PM To: [EMAIL PROTECTED] Subj

[PHP] include a perl script

2001-07-09 Thread Ajuco
hi! Is there a way to 'include' a perl script in a php page?? example.. I have a php page that executes another php script (poll).. to make that I used the command.. Is there a command or something that makes that php page execute a perl script (.cgi) ?? thanks! -- PHP General Mailing List

RE: [PHP] Apache config + PHP include paths

2001-06-21 Thread Aaron Bennett
Title: RE: [PHP] Apache config + PHP include paths Shaun, you can also define php_value (but NOT php_admin_value) lines in a .htaccess file rather than in your httpd.conf, assuming you gave (or were given) the appropriate AllowOverride parameters to use .htaccess... Unless you are running

Re: [PHP] Apache config + PHP include paths

2001-06-21 Thread DAve Goodrich
on 6/21/01 8:14 AM, Butler, Shaun at [EMAIL PROTECTED] wrote: > is there a way to set up a different include path per virtual host in the > apache config or in the php.ini ? > > so www.blahblah.com would have /www/libs as the include path > > and > > www.moomoo.com would have /www/moo > > --

Re: [PHP] Apache config + PHP include paths

2001-06-21 Thread infoz
Yes, in httpd.conf, just add the appropriate line, i.e. php_value include_path "blah" in the section for each virtual host. - Tim http://www.phptemplates.org > is there a way to set up a different include path per virtual host in the > apache config or in the php.ini ? -- PHP General Mai

Re: [PHP] Apache config + PHP include paths

2001-06-21 Thread lenar
in your virtualhost definition use: php_value include_path "new include path" might be that instead of php_value you have to use php_admin_value, not sure. this is explained in "Chapter 3. Configuration" of php manual. lenar. ""Butler, Shaun"" <[EMAIL PROTECTED]> wrote in message 010624050

[PHP] Apache config + PHP include paths

2001-06-21 Thread Butler, Shaun
is there a way to set up a different include path per virtual host in the apache config or in the php.ini ? so www.blahblah.com would have /www/libs as the include path and www.moomoo.com would have /www/moo -- Shaun -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

RE: [PHP] Include & Speed

2001-06-20 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, e

RE: [PHP] Include & Speed

2001-06-20 Thread tony . mccrory
scott [gts]" ctype.com> cc: Subject:

RE: [PHP] Include & Speed

2001-06-20 Thread scott [gts]
ailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 20, 2001 4:11 AM > To: php-general > Subject: [PHP] Include & Speed > > > Hi everybody, > > How much the include() can slow down the execution of the scripts; if I > call one file let say for the db connection it&

[PHP] Include & Speed

2001-06-20 Thread mfourny
Hi everybody, How much the include() can slow down the execution of the scripts; if I call one file let say for the db connection it's clearly ok but is it a limite of numbers of include in one script from where that slow the process? Marc -- /*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*

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

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

[PHP] include and include-virtual

2001-05-23 Thread Christian Dechery
What is the main difference between:

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... > > in

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 al

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

2001-05-20 Thread Jaime Torres
Asunto: Re: [PHP] include() in a file incuded() Replace with > 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://my

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

2001-05-20 Thread George E. Papadakis
Replace with > 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 ("frameset.php"); > } > ?> > > The fram

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

2001-05-20 Thread Jaime Torres
Hi! I've been blocked by this tiny problem... I have a main.php file: http://myserver.com/info.html";; if ($frames) { include ("frameset.php"); } ?> The frameset.php looks like (omitting almost all the HTML): In the onlineview.php file I need to use the $open URL defined befor

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 t

[PHP] Include Paths

2001-05-19 Thread Dylan Finney
Hello, 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 similar function in PHP? Also when i use readfile() or fpassthru() when I echo the result

[PHP] include + path & how to invoke a remote PHP script

2001-05-17 Thread Greg Wright
Hello All, I have a app that is used to track stats, it was designed to be used on the smae server that the website being tracked is, it uses an include and a path statement to register a hit in the page being displayed. Does anyone know of a method where I could get the remote website to invoke

[PHP] include + path

2001-05-17 Thread Greg Wright
Hello All, I have a app that is used to track stats, it was designed to be used on the smae server that the website being tracked is, it uses an include and a path statement to register a hit in the page being displayed. Does anyone know of a method where I could get the remote website to invoke

Re: [PHP] include + path

2001-05-17 Thread elias
Easy, ... Use JavaScript or simple HTML... javascript: Now you've just been called from another server! Now from within your script you can get lots of informations like: $HTTP_REFERER ... -elias http://www.eassoft.cjb.net ""Greg Wright"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECT

[PHP] include + path

2001-05-17 Thread Greg Wright
Hello All, I have a app that is used to track stats, it was designed to be used on the smae server that the website being tracked is, it uses an include and a path statement to register a hit in the page being displayed. Does anyone know of a method where I could get the remote website to invoke

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

2001-05-14 Thread kelvin chan .
[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("../file.inc"); Either of the first two should work under linux. I have done similar many times myself e.g. require_once &

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("../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: [PH

[PHP] include("../file.inc");

2001-05-11 Thread Matthew Ralston
How do you include or require a file that is above the current script in the directory hierarchy? For example how would I include or require a file whose path is "../file.inc" relative to the current script? I tried all of: include("../file.inc"); require("../file.inc"); include("/file.inc"); req

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() http://marc.theaimsgroup.com/?l=php-general&m=9741

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 li

[PHP] Include and require

2001-05-03 Thread Ronald
Hi There, 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 ca

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 we

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 yo

[PHP] include whole directories?

2001-04-27 Thread andrew
Is there any way to include whole directories? I have my function declarations in many small, easily maintainable files, but it's a pain to include/require them all individually...I would like to just split them into directories by common purpose, e.g functions/auth functions/content function

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 auto_prep

[PHP] include file by .htaccess

2001-04-24 Thread Keyur Kalaria
Hello, 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. thanks in advance ke

[PHP] include file by .htaccess

2001-04-24 Thread Keyur Kalaria
Hello, 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. thanks in advance ke

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:

RE: [PHP] include file using .htaccess

2001-04-21 Thread PHPBeginner.com
s) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Keyur Kalaria [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 22, 2001 12:51 AM To: php Subject: [PHP] include file using .htaccess Hello, How can I include any html or php file via .htaccess ? I want to include an html file

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 inc

[PHP] include file using .htaccess

2001-04-21 Thread Keyur Kalaria
Hello, 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. thanks in advance ke

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

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 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. http://php.net/manual/en/function.virtual.php -- CC

RE: [PHP] include files with PHP 3.0.16

2001-04-16 Thread James Atkinson
> Is there an equivalent to 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 http://www.php.net/require Enjoy, James

[PHP] include files with PHP 3.0.16

2001-04-16 Thread Tim Thorburn
Hi, I'm currently working on a rather large site and have just completed the navigation portion of it. I'd like to make use of server side includes so that if I have to make changes down the road, I won't have to chance potentially 100s of files. Normally I use with .asp and .shtml files, h

Re: [PHP] include path per script

2001-04-16 Thread Ulf Wendel
Martín Marqués 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 http://www.ulf-wen

[PHP] include path per script

2001-04-16 Thread Martín Marqués
I think I saw this, but can't remember when or where. Is it posible to change the value of include_path in a php script without changing it in php.ini? Saludos... :-) -- El mejor sistema operativo es aquel que te da de comer. Cuida tu dieta. ---

Re: [PHP] Include / Require

2001-04-05 Thread Plutarck
This is a good time for a quick lesson on just exactly what include/require actually does. The following two examples are exactly the same, in almost every way: === Example 1 === example1A.php: example1B.php: The output is "Hello World!", and that's all. === Example 2 === example2.php:

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 now, variables.php will NOT return variables, thats not what is for. it just includes the code, thats it. variables.php there you. include does NO

Re: [PHP] Include / Require

2001-04-05 Thread Ashley M. Kirchner
Lindsay Adams wrote: > So, leaving out the table=$table will still result in $table being defined > by the code prior to the include. Actually, the the I'm trying to include has several segments in it, which depend on which table was just queries. It basically looks like this: if (tabl

RE: [PHP] Include / Require

2001-04-05 Thread Johnson, Kirk
Kirchner [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 05, 2001 11:57 AM > To: PHP-General List > Subject: [PHP] Include / Require > > However, every time I try that, it tells me it can't find > 'variables.php'. However, if I rename the file to 'variabl

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

[PHP] Include / Require

2001-04-05 Thread Ashley M. Kirchner
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: $sql = "..." $result = ; include 'variables.php?table=$table'

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 the > php gets ignored.Is there a way of doing this without

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 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 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 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. Chris

[PHP] Include Files

2001-04-04 Thread Mike
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 the php gets ignored.Is there a way of doing this without using the php include function? Thanks Mike P [EMAIL PROTECTED] -- PHP General Mailing List (http://w

Re: [PHP] Include Files

2001-04-04 Thread bizzk
PROTECTED]... > 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 the > php gets ignored.Is there a way of doing this without using the php include > function? > Thanks > > Mike P > [EMAIL PROTE

[PHP] Include Files

2001-04-04 Thread Mike
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 the php gets ignored.Is there a way of doing this without using the php include function? Thanks Mike P [EMAIL PROTECTED] -- PHP General Mailing List (http://w

[PHP] Include Files

2001-04-04 Thread Mike
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 the php gets ignored.Is there a way of doing this without using the php include function? Thanks Mike P [EMAIL PROTECTED] -- PHP General Mailing List (http://w

<    4   5   6   7   8   9   10   >