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
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
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
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
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
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
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
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
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
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
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
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,
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,
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
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.
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
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
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
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
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 =
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
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
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
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
]
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
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
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]
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
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
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
(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
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
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
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,
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,
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
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
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
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
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
--
: 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
:
Subject: RE: [PHP] Include Speed
06/20/2001
04:33 PM
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
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
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
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
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
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):
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
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
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
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
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
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
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
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
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
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
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);
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
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
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
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
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()
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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:
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
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
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
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]
--
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]
--
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
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]
--
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
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
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
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 !!!
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
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
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
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
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
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
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
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
801 - 900 of 950 matches
Mail list logo