* Thus wrote Police Trainee ([EMAIL PROTECTED]):
When the server upgraded to php 4.3.1 from 4.2.x, I
was no longer able to include remote html files.
allow_url_fopen is still enabled and no other settings
have changed. Running Apache 1.3.27 on Linux.
This is one line that I use to call
DougD wrote:
I am new to all this, but here is the basic code:
$link_titles = file('links/master.txt');
$links_include = $link_titles[$point]; // path to directory
include $links_include;
If I echo the value of $links_include just prior to the include() function
it contains what I would
rtrim () solved the issue. There was a newline sitting at the end of the
variable and messing it up! Thanks for all your help!
Marek Kilimajer [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
DougD wrote:
I am new to all this, but here is the basic code:
$link_titles =
I am new to all this, but here is the basic code:
$link_titles = file('links/master.txt');
$links_include = $link_titles[$point]; // path to directory
include $links_include;
If I echo the value of $links_include just prior to the include() function
it contains what I would expect it to
-Original Message-
From: Ow Mun Heng [mailto:[EMAIL PROTECTED]
Sent: 09 July 2003 03:44
I finally got it. Thanks. All I needed to do was just
define global
$page_title inside the function to denote that I wanted to use that
variable.
One other quick question, in my
PROTECTED]
Sent: Wednesday, July 09, 2003 6:20 PM
To: Ow Mun Heng; Ford, Mike [LSS]
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] include/require inside of function
-Original Message-
From: Ow Mun Heng [mailto:[EMAIL PROTECTED]
Sent: 09 July 2003 03:44
I finally got it. Thanks. All I
Hello, i need a function that gets a internal file say news.php, and
follows
the urls from its copied location,
say if i am in
/pages/
and i need a file from
/pages/php/wow
i put
include('php/wow/news.php')
But the news.php file needs a file in the /php/wow directory called
On Tue, 8 Jul 2003 09:35:10 +0100, you wrote:
Hello, i need a function that gets a internal file say news.php, and
follows
the urls from its copied location,
say if i am in
/pages/
and i need a file from
/pages/php/wow
i put
include('php/wow/news.php')
But the news.php file needs a
on Tue, Jul 8, 2003, David Otton wrote:
Hello, i need a function that gets a internal file say news.php, and
follows
the urls from its copied location,
say if i am in
/pages/
and i need a file from
/pages/php/wow
i put
include('php/wow/news.php')
But the news.php file needs a file in
-Original Message-
From: Ow Mun Heng [mailto:[EMAIL PROTECTED]
Sent: 07 July 2003 04:34
Here's My question, a variable is not actually global is not
actually global until I make it global through global
$make_this_global
and then I can assess it using
: [PHP] include/require inside of function
-Original Message-
From: Ow Mun Heng [mailto:[EMAIL PROTECTED]
Sent: 07 July 2003 04:34
Here's My question, a variable is not actually global is not
actually global until I make it global through global
$make_this_global
and then I can
-Original Message-
From: Ow Mun Heng [mailto:[EMAIL PROTECTED]
Sent: 08 July 2003 15:53
Here's the thing.. I declared $page_title = My Page Title in a
file called config.php which is included in the index.php
page. when I tried
to - echo $page_title - Nothing comes out.
();
?
Cheers,
Mun Heng, Ow
H/M Engineering
Western Digital M'sia
DID : 03-7870 5168
-Original Message-
From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 08, 2003 11:34 PM
To: Ow Mun Heng
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] include/require inside
, July 05, 2003 12:39 AM
To: Rasmus Lerdorf
Cc: Aric Caley; [EMAIL PROTECTED]
Subject: Re: [PHP] include/require inside of function
Hi,
If the file you are including is of your own authorage (I know that
isn't a word, but whatever :), just refer to global variables always as
an index of the $GLOBALS
Is there anyway to include a file inside of a function and have the included
stuff be global? For instance if I defined a class or a function in that
include file, I want to be able to use that class outside of the function.
On the documentation for include() a poster commented that it did
On Fri, 4 Jul 2003, Aric Caley wrote:
Is there anyway to include a file inside of a function and have the included
stuff be global? For instance if I defined a class or a function in that
include file, I want to be able to use that class outside of the function.
On the documentation for
Hi,
Friday, July 4, 2003, 5:11:18 PM, you wrote:
AC Is there anyway to include a file inside of a function and have the included
AC stuff be global? For instance if I defined a class or a function in that
AC include file, I want to be able to use that class outside of the function.
AC On the
Hi,
If the file you are including is of your own authorage (I know that
isn't a word, but whatever :), just refer to global variables always as
an index of the $GLOBALS array. This is good practice anyways for any
file that might be included by another user, for exactly this issue.
I have a
Hi Blake,
If you're using Apache, try this:
http://ca3.php.net/virtual
Cheers,
Lux
On Friday, June 27, 2003, at 01:05 PM, Blake Schroeder wrote:
Hey all
I used to include a perl script via Sever Side Include how could I do
this in php?
example:
!--#include virtual=
Hey all
I used to include a perl script via Sever Side Include how could I do
this in php?
example:
!--#include virtual= /cgi-bin/something.pl?data=something--
--
Blake Schroeder
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
[snip]
I used to include a perl script via Sever Side Include how could I do
this in php?
example:
!--#include virtual= /cgi-bin/something.pl?data=something--
[/snip]
exec(/cgi-bin/something.pl?data=something);
HTH
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Blake Schroeder wrote:
Hey all
I used to include a perl script via Sever Side Include how could I do
this in php?
example:
!--#include virtual= /cgi-bin/something.pl?data=something--
You can't use SSI in PHP. PHP is not SSI. You can do something similar
though, www.php.net/virtual.
--
The
Hi,
I have a site running on a shared server (and as such, I have no access to
the php.ini file) that I'd like to be able to change the default include
path. I've done this before using the .htaccess file and the following
command:
php_value include_path .:/path/to/web/
However, on this
On Monday 23 June 2003 05:10, Tim Thorburn wrote:
I have a site running on a shared server (and as such, I have no access to
the php.ini file) that I'd like to be able to change the default include
path. I've done this before using the .htaccess file and the following
command:
php_value
Hello,
I have found troubling behavior using include() that looks like a bug.
When I specify an include file by a full path name versus a relative
path, PHP acts as though it has included the file, but variable and
constant definitions in the include file are not coming through. My
server is
Uh, http://www.walkereffects.com/test/include.php is not a full path
name, that is a URL. That will make an HTTP request to your web server
for /test/include.php which will of course get parsed by PHP and you will
only get the parsed output which means you won't see any variables or any
PHP tags
I get it... so instead I should use:
include(/usr/home/sites/www.walkereffects.com/web/test/include.php)
Thank you,
Steven J. Walker
Walker Effects
www.walkereffects.com
[EMAIL PROTECTED]
On Friday, June 6, 2003, at 10:08 AM, Rasmus Lerdorf wrote:
Uh,
On Fri, Jun 06, 2003 at 10:19:10AM -0700, Steven Walker wrote:
I get it... so instead I should use:
include(/usr/home/sites/www.walkereffects.com/web/test/include.php)
I would recommend using your .htaccess file, or ini_set, or something
else to set your include_path variable to contain
I would recommend using your .htaccess file, or ini_set, or something
else to set your include_path variable
Thanks Joel, that worked nicely.
Steven J. Walker
Walker Effects
www.walkereffects.com
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hi all,
If you're having trouble with PHP includes and directories, are on a
shared server, etc. this function is totally cool:
ini_set(include_path,.:/your/dir/to/whatever:/another/dir/to/whatever);
make sure you put the '.:' at the begginning and seperate with a ':'.
I'm using it and it works
Hi,
First, I fixed my other problem of the stack overflow by moving the files
back to the root directory (although I would rather have them in a login
directory). Anyway, I have a question regarding the include function. I have
a login script in a file called login.php - in this file it includes
, 2003 4:15 PM
Subject: RE: [PHP] Include Question
If checklogin.php is only below, you shouldnn't get those errors. Anyway,
is password just a typo below or does your code omit the $ too?
if (!$name || !password) {
$message = $enter_info;
include (login.php);
exit
2:28 PM
To: James E Hicks III
Cc: PHP General
Subject: Re: [PHP] Include Question
Just a typo, but now I have other problems as well which I think have to do
with paths and includes. If I am in the root directory on page main.html
and click on a link that is in /other - because
Hello all!
In index.php I include a file template.php using
?php
// this is index.php file
include('template.php');
?
Works fine. In template.php I'm using include function too
?php
// this is template.php file
echo 'before include';
include('header.php');
echo 'after include';
?
Works fine
Hi Hubert,
Check if there display_errors in your php.ini is set to Yes,
and also take a look at your apache error log when you execute this
page, probably you will see an error there.
Best regards,
Veniamin Goldin
Interlogics, Inc.
15 2003 ., 12:34:35:
HK Hello all!
HK In index.php I
Hallo,
after a Provider-Change my counter-script dosn't work again.
My entry is: ?php include (counter/rcounter.php) ; ? in an
html-document.
Is there an Error inside?
My server show no error-messages...
Thanx for Help.
Olly
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
You can't execute PHP from an HTML page. My guess is that your old
provider had PHP parsing enabled for .html files, shich most don't.
Oliver Witt wrote:
Hallo,
after a Provider-Change my counter-script dosn't work again.
My entry is: ?php include (counter/rcounter.php) ; ? in an
html
-Ursprüngliche Nachricht-
Von: Oliver Witt [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 13. März 2003 10:03
An: [EMAIL PROTECTED]
Betreff: [PHP] include dosn't after Provider-Change
Hallo,
after a Provider-Change my counter-script dosn't work again.
My entry is: ?php include (counter/rcounter.php
I have an *.inc with html, a rather long list of options. I want to clean this up
some.
I'm going to declare $FieldName and $ToBeSelected before I call
include(options.inc). I also want to select one of the options in advance.
The problem is ... this is beginning to look like a function, which
On Fri, 2003-03-07 at 09:34, John Taylor-Johnston wrote:
I have an *.inc with html, a rather long list of options.
And you want to print out said list of OPTIONs several times with
different ones selected each time?
You could do it with an array and a function. The array would contain a
list
At 01:34 26.02.2003, Kenneth Suralta said:
[snip]
How do I include external library files in PHP???
I would like to put the lines that are repeated in each php files, in a
separate file.
e.g.
?php
$db_host = localhost;
$db_port = 3306;
$db_name = test;
...
if require is used to include the 'same file', say, twice that file will be
loaded twice. This can of course cause errors (such as resulting from the
redefinition of functions within this file). In contrast the require_once
construct will only load a file 'once' irrespective of the number of times
How do I include external library files in PHP???
I would like to put the lines that are repeated in each php files, in a
separate file.
e.g.
?php
$db_host = localhost;
$db_port = 3306;
$db_name = test;
...
?
Kenneth
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
How do I include external library files in PHP???
I would like to put the lines that are repeated in each php files, in
a
separate file.
e.g.
?php
$db_host = localhost;
$db_port = 3306;
$db_name = test;
...
?
Just throw caution to the wind and try the include() function I'm
not
How do I include external library files in PHP???
I would like to put the lines that are repeated in each php files, in
a separate file.
e.g.
?php
$db_host = localhost;
$db_port = 3306;
$db_name = test;
...
?
I find the include() function to be quite useful for including external
files. Check
:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 4:35 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Include files
How do I include external library files in PHP???
I would like to put the lines that are repeated in each php files, in a
separate file.
e.g.
?php
$db_host = localhost;
$db_port = 3306
the problem was solved by creating an include file and using using
require() method
i was just wondering what are the advantages and disadvantages of using
require_once() instead of require()?
thanx =)
John W. Holmes wrote:
How do I include external library files in PHP???
I would like to
On Monday 24 February 2003 15:09, John Taylor-Johnston wrote:
$_SERVER is outdated now isn't it?
Read the docs please. This is one of the new 'super globals' and deprecates
$HTTP_SERVER_VARS (or whatever it was called).
--
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source
On February 23, 2003 11:08 pm, John Taylor-Johnston wrote:
Which variable should I use?
_SERVER[HTTP_HOST]
_SERVER[SERVER_NAME]
HTTP_HOST
Server_NAME
Host
Docs are your friend. or JUST TRY IT.
leo
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hi,
I have an index.html that I use on different URLs. Because of that, I want to create a
causal reality. I want to
if ?? = http://foo.ccl.flsh.usherb.ca/
include('./note.html');
if the URL is http://foo.ccl.flsh.usherb.ca/ but not if the URL is
http://foo.compcanlit.ca/
What variable
On Monday 24 February 2003 15:03, John Taylor-Johnston wrote:
Hi,
I have an index.html that I use on different URLs. Because of that, I want
to create a causal reality. I want to
if ?? = http://foo.ccl.flsh.usherb.ca/
include('./note.html');
if the URL is http://foo.ccl.flsh.usherb.ca/
Which variable should I use?
_SERVER[HTTP_HOST]
_SERVER[SERVER_NAME]
HTTP_HOST
Server_NAME
Host
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jason,
$_SERVER is outdated now isn't it?
John
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Never mind. Apparently I can't tell the difference between a capital
and a lowercase B. time to crash methinks.
leo
On February 13, 2003 11:59 pm, Leo Spalteholz wrote:
I just ran into a somewhat strange problem with an include failing.
I have the following in my script:
I just ran into a somewhat strange problem with an include failing.
I have the following in my script:
include(dirname(__FILE__)./LNScreens/LNScrMain.php);
include(dirname(__FILE__)./LNDataBase/LNDataBase.php);
The first file is included just fine, but the LNDataBase file fails
(Failed opening
I would like to include some of the files ( tabel.php, etc ) from PEAR on my
scripts - Do I have to hardcode the installation path ? or is there a directive
that tells the preprocessor to look on the right place (Like in c)?
Thanks in advance.
HArring
What would the SQL be to find a record where:
start_date today = end_date
Thanks,
- Brian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi Brian,
What would the SQL be to find a record where:
start_date today = end_date
... WHERE start_date today AND today = end_date
If you're asking how do I get today's date into an SQL statement, there
are two ways:
- use your DBMS's built-in function to get today's date
- use PHP's
Brian,
$Today = // Date format that you use that can be compared to the date
stored in the database.
$Query = WHERE start_date $Today and end_date =$Today;
I just showed the where statement of the query. You can add in any
statement you want before that to select or manipulate data based on
I don't appear to be able to use this variable in an include directive
because the variable is empty:
include $_SERVER['DOCUMENT_ROOT']
Do I have the syntax incorrect?
--
Sent from Mozilla and GNU/Linux.
Powered by an AMD processor.
--
PHP General
On Tue, 4 Feb 2003, Bob Lockie wrote:
I don't appear to be able to use this variable in an include directive
because the variable is empty:
include $_SERVER['DOCUMENT_ROOT']
Do I have the syntax incorrect?
Please post the exact syntax as you did not as the
above will provide a serious
On 02/04/03 13:16 Philip Olson spoke thusly
On Tue, 4 Feb 2003, Bob Lockie wrote:
I don't appear to be able to use this variable in an include directive
because the variable is empty:
include $_SERVER['DOCUMENT_ROOT']
Do I have the syntax incorrect?
Please post the exact syntax as you did
On Tue, 4 Feb 2003, Bob Lockie wrote:
On 02/04/03 13:16 Philip Olson spoke thusly
On Tue, 4 Feb 2003, Bob Lockie wrote:
I don't appear to be able to use this variable in an include directive
because the variable is empty:
include $_SERVER['DOCUMENT_ROOT']
Do I have the syntax
Hello all,
I'm have a PHP script that works in a folder.. for the sake of clarity we'll
call it c:\project
In c:\project\htmls there are several HTML documents which refer to images
in the project\htmls directory with tags like img src=file.gif
In my PHP script in c:\project I include
It would probably be best to include the absolute path to the images.
so instead of: img src=file.gif use: img src='c:\project\htmls\file.gif'
Is something like that possible?
Otherwise at the very least you should use: img src='htmls\file.gif'
HTH
-Brad
Ryan wrote:
Hello all,
I'm have a PHP
No unfortunately something like that isn't possible... The HTML files
are generated by a closed-source application.
-Original Message-
From: Brad Bonkoski [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 15, 2003 5:04 PM
To: Ryan
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] include
[EMAIL PROTECTED] (Brad Bonkoski) wrote:
It would probably be best to include the absolute path to the images.
so instead of: img src=file.gif use: img src='c:\project\htmls\file.gif'
Is something like that possible?
??? forget this... this will only work on some browsers and as long as
you keep
Where should this point to? Mine points to c:\php4\pear and I dont' have a
pear directory under \php4.
Rad Craig
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
That depends on where you want to point it at :)
In pear we always use something like :
require_once 'Package/File.php'
It's very usable to add the pear directory to php's
include path, but only if you have it ;)
Otherwhise, just don't think about that setting.
Rad Craig wrote:
Where should this
i am designing a small app that obviuosly works best when I have a lot of
global files with functions, which cut down on editing.
I will likely have a main page that will contain modules and also load
all of the required includes like config etc. in total some 10 files will
be reqested.
Is
Is there, was there ever issue around including a lot files via
include(). I am running things on a local server so it's hard to gauge.
I don't understand that comment. includes/requires are always (well
nearly anyway) local to the server regardless of where the request is
coming from. So if
These files are parsed by the interpreter...
They are not sent to the client, so I you are thinking bandwidth I dont see how it
would affect it.
Unless they all output a bunch of data.
Of course there will be some overhead for PHP to interpret all that code.
Mike
*** REPLY SEPARATOR
He likely ment that his local server is simply fast enough that any
speed defference is unnoticeable,
but on a shared host this might make some difference.
Use include/require as you are more comfortable with it.
Rasmus Lerdorf wrote:
Is there, was there ever issue around including a lot files
Sorry if this was not 100% clear. In a nutshell the app I'm making will
be available for poeple to use. My feeling is that there will be users
using shared servers, which under a stress tend to suck. The only thing
in this one I'm doing that;s new to me is having some 20 includes loaded
as I
I have a similar question/problem. However, I want to use an external
email template as it were, so that the sales guys can edit it as they
like and simply shuffle the three variables around that they need
$username, $password, $code (either with or without the ?php ? tags).
I don't want them
Hi Everyone,
I have one file with several sections of code which I have so far
accessed using a good old fashioned - - if ($HTTP_GET_VARS['action'] ==
Update) - - however I now want to include this code within some other
web pages, I thought I may be able to use the following code - -
I have one file with several sections of code which I have so far
accessed using a good old fashioned - - if ($HTTP_GET_VARS['action']
==
Update) - - however I now want to include this code within some
other
web pages, I thought I may be able to use the following code - -
Title: Message
I have a file named
header.php stored in the includes folder:
Inside includes is
anohter folder called editable.
When I open my page for the first time
(before it is cached) or after I edit my header file I get these
errors:
Warning: Failed opening
'editable/meta.php' for
: [PHP] Include Problems
Learn to quote GAMER
- Original Message -
From: Mike Bowers mailto:[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 26, 2002 8:42 PM
Subject: [PHP] Include Problems
I have a file named header.php stored in the includes folder:
Inside includes
PROTECTED]]
Sent: Thursday, December 26, 2002 12:47 PM
To: Mike Bowers
Subject: Re: [PHP] Include Problems
Learn to quote GAMER
- Original Message -
From: Mike Bowers mailto:[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 26, 2002 8:42 PM
Subject: [PHP] Include Problems
I
without people like u throwing
insults?
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 26, 2002 12:47 PM
To: Mike Bowers
Subject: Re: [PHP] Include Problems
Learn to quote GAMER
- Original Message -
From: Mike Bowers mailto:[EMAIL
Mike Bowers wrote:
I have a file named header.php stored in the includes folder:
Inside includes is anohter folder called editable.
When I open my page for the first time (before it is cached) or after
I edit my header file I get these errors:
*Warning*: Failed opening 'editable/meta.php'
PROTECTED]
Subject: Re: [PHP] Include Problems
Mike Bowers wrote:
I have a file named header.php stored in the includes folder:
Inside includes is anohter folder called editable.
When I open my page for the first time (before it is cached) or after
I edit my header file I get these errors
Message-
From: John Nichel [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 26, 2002 12:58 PM
To: Mike Bowers
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Include Problems
Post the include statements from your header.php file.
Mike Bowers wrote:
Isnt this supposed to be a friendly place where
On Thu, 26 Dec 2002, Mike Bowers wrote:
I have a file named header.php stored in the includes folder:
Inside includes is anohter folder called editable.
When I open my page for the first time (before it is cached) or after I
edit my header file I get these errors:
Warning: Failed opening
This has worked.
Thanks for your inout and help everybody.
-Original Message-
From: John Nichel [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 26, 2002 1:13 PM
To: Mike Bowers; [EMAIL PROTECTED]
Subject: Re: [PHP] Include Problems
You can try setting your include path
On Thursday 26 December 2002 12:06 pm, Mike Bowers wrote:
It's not permissions. The files to be read as well as folders are all
CHMOD 777 as I thought it was this originally.
don't use 777. that makes the scripts writeable for everyone. any
other user who can run scripts on that server can
Hi,
i am trying to make my work a little easier when editing the appearance of
a news site i am building. As it is, everytime i want to change the looks
of how each news appears, i have to edit inside the print(' '); which is
annoying, because of the backslash with problem thing(when i
Use a here-doc:
echo EOB
br[$data] br $titulo br($user)br $intro br $texto
brbr (comentarios=$contador)brbrhr size=1 width=90%br
EOB;
-Rasmus
On Fri, 27 Dec 2002, Pag wrote:
Hi,
i am trying to make my work a little easier when editing the appearance of
a news site i am
Hello all,
I am passing a variable like so:
a href=link.php?foo=bar.php
On the link.php page, I have this simple code:
?php
$job = $_GET['foo'];
echo $job; // for error checking
include 'path/to/$job';
?
The 'echo $job;' statement works just fine, but the outbout for the
include statement
Variables don't get parsed in single quotes, use double quotes.
RClark wrote:
Hello all,
I am passing a variable like so:
a href=link.php?foo=bar.php
On the link.php page, I have this simple code:
?php
$job = $_GET['foo'];
echo $job; // for error checking
include 'path/to/$job';
?
The
Hi,
Friday, December 13, 2002, 12:07:05 AM, you wrote:
R Hello all,
R I am passing a variable like so:
R a href=link.php?foo=bar.php
R On the link.php page, I have this simple code:
R ?php
R $job = $_GET['foo'];
R echo $job; // for error checking
R include 'path/to/$job';
?
R The 'echo
Thanks! Works perfect with double quotes!
RC
-Original Message-
From: Tom Rogers [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 12, 2002 8:21 AM
To: Ronald Clark
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] include question
Hi,
Friday, December 13, 2002, 12:07:05 AM, you wrote:
R
It seems that if I create a php file in my dir at my hosting provider and do
include('/etc/passwd'); then wow, I see the contents of etc/passwd!
Is this expected behavior???
I am looking at creating a script that takes a var in the url and includes
the requested file. The purpose would be for
The passwd file is frequently world-readable so programs that rely on it don't need
root permissions. Now if you can view /etc/shadow, then that would be a problem since
that's where the actual passwords are stored (encrypted).
On Thu, 2002-12-12 at 12:53, Shawn McKenzie wrote:
Shawn McKenzie wrote:
Is this expected behavior???
Settings such as safe_mode come into play. There is a difference between
what a webhost provider expects from someone trusted with an account,
and what is expectd of a user of your website. The best advice I've
heard is to assume a user of
How do I find the PHP include dir?
I looked in the .ini file but it appears that the include dir directive
is commented out, here it is:
; UNIX: /path1:/path2
;include_path = .:/php/includes
Do I need to uncomment this?
Thanks
Mike
Mike Dunlop
Webmaster - AWN, Inc.
[E] [EMAIL PROTECTED]
[P
to your include_path like so:
include_path=.:/usr/local/php/config_scripts
And now you can access those scripts from your php scripts in your web
document directory
HTH
On Wed, 2002-11-13 at 19:48, Mike D wrote:
How do I find the PHP include dir?
I looked in the .ini file but it appears
HTH
On Wed, 2002-11-13 at 19:48, Mike D wrote:
How do I find the PHP include dir?
I looked in the .ini file but it appears that the include dir
directive
is commented out, here it is:
; UNIX: /path1:/path2
;include_path = .:/php/includes
Do I need to uncomment this?
Thanks
Mike
Mike Dunlop
like
/usr/local/php/config_scripts
and add that directory to your include_path like so:
include_path=.:/usr/local/php/config_scripts
And now you can access those scripts from your php scripts in your web
document directory
HTH
On Wed, 2002-11-13 at 19:48, Mike D wrote:
How do I find the PHP
501 - 600 of 950 matches
Mail list logo