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 fhkhfsakuhfewhehfaalkuhfwe[DATA1]/lkuhfwe and do a str replace [DATA1] parts -- database content. Chris- YOU ROCK! Thank you for the thought starter, I

[PHP] include path-problem

2001-09-10 Thread mail
include the txt file from www.domain.com/includes/news.txt. So i used for this problem ?php include(/server/path/includes/news.txt); ? for every php file.But this works only for the www.domain.com/index2.php file. So what should i do to get the txt file in the www.domain.com/support/shop.php file

[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

[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 this page, there is no auto

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

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

[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

[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

[PHP] include, chmod, password files

2001-08-08 Thread David Hill
Hello If I have a file called db.inc with, for example, this: ?php // db.inc $user = david; $pass = password; ? 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

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? Below is

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. How do I

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

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

[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

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

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 ? include (foo.php); ? 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

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

2001-07-25 Thread ilari . kaartinen
when I include the statement ? include (foo.php); ? 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

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 ?php ? 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 ? include

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 ? and ? 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] include

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

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

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

2001-07-23 Thread Chris Cocuzzo
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 be below temp directory. If you

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

2001-07-23 Thread Gonyou, Austin
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, the lib directory has to be below temp directory. If you

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

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

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

[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

RE: [PHP] include a perl script

2001-07-09 Thread Chadwick, Russell
(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] Subject: [PHP] include

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

2001-07-08 Thread Dieter Stolpmann
Hi, does anyone know, how to get the following line working an windows? ? include (http://www.myserver.de/page2.php;); ? I know, this way to access a remote file works on UNIX. I simply can't get it to work on window. Is there a patch/trick out, wich enables this? I tried it on windows

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

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,

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

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

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

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

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

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

2001-06-20 Thread scott [gts]
: 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's clearly ok but is it a limite of numbers of include in one script from where

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

[PHP] include and include-virtual

2001-05-23 Thread Christian Dechery
What is the main difference between: !--#include ... !--#include virtual ... !--#exec cgi... the only one that seems to work for PHP files is 'include virtual'. 'exec cgi' as well as 'include' gives me that message 'an error ocurred while processing this directive'... -- PHP General Mailing

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

[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: ? $frames = true; $open = http://myserver.com/info.html;; if ($frames) { include (frameset.php); } ? The frameset.php looks like (omitting almost all the HTML): frameset rows=100,* border=0 frame src=onlineview.php3

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

[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

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

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

[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

[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

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

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

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

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

[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

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

[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

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

[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

[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

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

[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

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
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 in a site

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

[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 !--#include

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

[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

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
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 'variables.inc', it does find it (though it doesn't pass any arguments

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

[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 !--#include virtual="Nav.htm" -- the php gets ignored.Is there a way of doing this without using the php include function? Thanks Mike P [EMAIL PROTECTED] -- PHP

[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 !--#include virtual="Nav.htm" -- the php gets ignored.Is there a way of doing this without using the php include function? Thanks Mike P [EMAIL PROTECTED] --

[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 !--#include virtual="Nav.htm" -- the php gets ignored.Is there a way of doing this without using the php include function? Thanks Mike P [EMAIL PROTECTED] --

Re: [PHP] Include Files

2001-04-04 Thread bizzk
f in bericht 9afcj1$o9l$[EMAIL PROTECTED]">news:9afcj1$o9l$[EMAIL 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 !--#include virtual="Nav.htm" -- the php gets ignored.Is there a way of doing this

[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 !--#include virtual="Nav.htm" -- the php gets ignored.Is there a way of doing this without using the php include function? Thanks Mike P [EMAIL PROTECTED] --

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

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 fun

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 do

[PHP] Include files????

2001-04-02 Thread Bruno Freire
Hi! My name is Bruno. Anybody can tell me how can i do Include files? I mean, Write a function in a file and after this just include this file in the code, like #include file.h of C++?? Thanks !!!

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] PHP - include / require

2001-03-23 Thread Richard Lynch
Surfer!" [EMAIL PROTECTED] Newsgroups: php.general Sent: Monday, March 19, 2001 3:20 AM Subject: [PHP] PHP - include / require I was wanting a set of pages generated by individual PHP scripts to each use one PHP script to generate the navigation links. However I'm not winning - a suitable e

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

2001-03-21 Thread Brian V Bonini
an Dechery [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 21, 2001 11:20 AM To: [EMAIL PROTECTED] Subject: [PHP] include virtual, file or exec cgi? Can't I !--#include file="something.php"-- or !--#include virtual="something.php"-- or !--#exec cgi="something.php

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

<    4   5   6   7   8   9   10   >