I have the following problem.
code of index.php
---
?
require_once(dvojka_root.inc);
require_once(ROOT./admin/common/admin_func.inc);
session_start();
if(isset($_SESSION[user_id]) ($_SESSION[user_id] 0)) {
Hi people...
I'd like to know if the include function alocates the variables that are in the
included file in the memory... and, if it happens, if do I have a way to access a file
with some variables without alocating it in memory.
Tks...
Paulo Cesar
On Mon, Jun 03, 2002 at 01:49:03PM -0300, Paulo Cesar wrote:
I'd like to know if the include function alocates the variables that
are in the included file in the memory... and, if it happens, if do I
have a way to access a file with some variables without alocating it in
memory.
Dude, turn
operation it is you're doing. It is completely out of your control. So I
don't see that there's anything for you to worry about in this regard.
-Kevin
- Original Message -
From: Paulo Cesar [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 03, 2002 10:49 AM
Subject: [PHP] Include
into memory when it's needed?
---John Holmes...
-Original Message-
From: Bogdan Stancescu [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 01, 2002 11:12 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Include question
Your second guess. But you could've tested it easily
Hi,
I'm trying to set a PHP include directory for one of my sites. I'm on a
shared hosting system, so I don't have access to the php.ini file.
My plan was to do it using a .htaccess file in Apache - however I must be
doing something very much wrong, as it isn't working.
Here is what I've
That REALLY is a tricky one because it's documented the way you wrote it
in most places, except where you (and I) should've looked:
http://www.php.net/manual/en/configuration.php
The trick is that you must remove the equal sign.
Bogdan
Tim Thorburn wrote:
Hi,
I'm trying to set a PHP
Hey John:
On Sun, Jun 02, 2002 at 12:10:27AM -0400, John Holmes wrote:
What I'm looking at is if each include .html file is 50K, am I loading
100K into memory and then running the script, or running the script and
only loading the appropriate 50K into memory when it's needed?
As of 4.0.2,
Hi. When I've got code like the following:
if($this) { include(this.html); }
elseif($that) { include(that.html); }
When are the includes() evaluated? Does the Zend engine do the includes
first, pull in all of the code, then process it and produce output. Or
does the engine start processing
Your second guess. But you could've tested it easily with two includes
appending stuff to the same global var.
Bogdan
John Holmes wrote:
Hi. When I've got code like the following:
if($this) { include(this.html); }
elseif($that) { include(that.html); }
When are the includes() evaluated?
PROTECTED]
Subject: Re: [PHP] Include question
Your second guess. But you could've tested it easily with two includes
appending stuff to the same global var.
Bogdan
John Holmes wrote:
Hi. When I've got code like the following:
if($this) { include(this.html); }
elseif
Hi,
I'm trying to setup an include directory for my site using .htaccess but
I'm having some difficulties.
The command I'm typing is as follows:
php_value include_dir .:/path/to/my/site/includes
When I try this, I get an error 500 with Apache. Have I typed something wrong?
Here's my setup:
Hey all,
I have a file that is totally filled with PHP functions, its around 15 k.
(func.php)
I have two files (f1.php,f2.php) that each take about 90% and 90% of
differient functions from the first file(func.php),
would my files (f1.php,f2.php) load faster if I defined the functions in
each
I have two files (f1.php,f2.php) that each take about 90%
and 90% of differient functions from the first
file(func.php), would my files (f1.php,f2.php) load faster
if I defined the functions in each file instead of including
it or is this helping?
It might, but the difference
Hey,
I have just being going through the manual (windows version) and am a bit
confused about include,
If I want the scope to affect the whole page I do this right:
(example page)
html
body
?php
include blah.php
?
some html
?php
use some functions to call blah.php
?
is this correct?
and my
this helps
-Kevin
- Original Message -
From: r [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, May 26, 2002 5:11 AM
Subject: [PHP] Include (Newbie question)
Hey,
I have just being going through the manual (windows version) and am a bit
confused about include,
If I want the scope
declarations and separating pieces
of your HTML apart to easily manage it.
---John Holmes...
-Original Message-
From: Kevin Stone [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 25, 2002 8:54 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Include (Newbie question)
No, not exactly. The idea
I want to include text from a html-file that is online at another website.
To be more precise: I want to include my seti-stats from
http://setiathome.ssl.berkeley.edu/ on my own homepage. Can I do this with
PHP?
Sincerely
Andreas Indahl
--
PHP General Mailing List (http://www.php.net/)
To
Hi,
Is it possible to detect if a file is being called as an include or require?
ex:
include(file.php)-- file.php code can detect that is has been
called as an include.
Thanks,
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Try this code (untested):
function selfAwareInclude($filename)
{
define($filename, true);
include($filename);
}
Inside your include file, make calls such as
if (defined($filename)) {
// Do whatever
}
Then use the selfAwareInclude() function instead of include(). You could
do the
The problem with this is you will loose the scope of your variables.
So $filename will not have access to anything from where the function is
called...
-mark
On Tue, 30 Apr 2002, Billy S Halsey wrote:
Try this code (untested):
function selfAwareInclude($filename)
{
On Tue, 30 Apr 2002, PHP List wrote:
Is it possible to detect if a file is being called as an include or require?
ex:
include(file.php)-- file.php code can detect that is has been
called as an include.
Compare $PHP_SELF with __FILE__, maybe?
miguel
--
PHP General Mailing List
-Original Message-
From: mArk.cOLListER [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 01, 2002 2:00 AM
To: php
Subject: Re: [PHP] Include Files self aware?
The problem with this is you will loose the scope of your variables.
So $filename will not have access to anything from
List,
I'm trying to include some .inc files in my project, but I got errors
all time saying that this includes couldn't be found. I'm a newbie, so I
can't understand what's happend, since it worked pretty good in my local
machine and not in the ISP. I tried to speak to ISP many times but they
What i want to do is :
include(http://localhost/folder/file.php?foo=bar;);
but it doesn't work. As you may guess it looks for a
file called file.php?foo=bar. url_fopen is set to
on in my php.ini file as told in the PHP manual.
I work on win98+apache+php4.1.1(or something like that
but at least
: [EMAIL PROTECTED]
-Original Message-
From: Barýþ Mert [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 8:13 AM
To: [EMAIL PROTECTED]
Subject: [PHP] include through HTTP
What i want to do is :
include(http://localhost/folder/file.php?foo=bar;);
but it doesn't work. As you may guess
. Collins II
Webmaster
New Orleans Regional Transit Authority
Phone : (504) 248-3826
Email : [EMAIL PROTECTED]
-Original Message-
From: Barýþ Mert [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 8:13 AM
To: [EMAIL PROTECTED]
Subject: [PHP] include through HTTP
Why do you want to include from localhost over HTTP? Sounds to me like
you want to do:
$foo='bar';
include $DOCUMENT_ROOT/folder/file.php;
-Rasmus
On Fri, 12 Apr 2002, Barýþ Mert wrote:
What i want to do is :
include(http://localhost/folder/file.php?foo=bar;);
but it doesn't work. As you
Fix 'include_path' in php.ini
I think you want it to look in the current directory (.\) as well.
bvr.
Alberto Wagner wrote:
I can't include anything on my php scripts
Failed opening 'Pagina_Inicial.php' for inclusion (include_path='c:\php4\pear')
How to fix it?
--
PHP General
I can't include anything on my php scripts
Failed opening 'Pagina_Inicial.php' for inclusion (include_path='c:\php4\pear')
How to fix it?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello!
I have a trouble :(
When I try this:
--[index.php]--
?php
function f($action)
{
switch($action){
case 'one': include_once('M/one.php'); break;
}
}
f('one');
?
--
--[M/one.php]--
?php
print pre\n;
print_r(get_defined_vars());
print /pre\n;
?
--
At
vars do not exist at all.
This is a feature, not a bug.
Matt Friedman
Web Applications Developer
www.SpryNewMedia.com
Email: [EMAIL PROTECTED]
-Original Message-
From: Pavel Plesov [mailto:[EMAIL PROTECTED]]
Sent: Thursday March 14, 2002 7:56 AM
To: [EMAIL PROTECTED]
Subject: [PHP
: I think that since you are including a file into a function - the vars
: become local so they only exist when the function is running. Therefore,
: a call to get_defined_vars will not show them since the vars do not
: exist in the global scope. In fact, during the call to get_defined_vars,
:
Why doesn't this work...
include(index.php?var='$var');
I want to include a page in my code and send a variable to it but I get
some funky error.
THANKS!!
Try to simplify the problem
$file='index.php?var=';
$file.=$var;
include($file);
-Original Message-
From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 1:20 PM
To: [EMAIL PROTECTED]
Subject: [PHP] include() question
Why doesn't this work...
include
-
From: Phil Schwarzmann [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 14, 2002 10:20 PM
Subject: [PHP] include() question
Why doesn't this work...
include(index.php?var='$var');
I want to include a page in my code and send a variable to it but I get
some funky error.
THANKS
On Thursday, March 14, 2002, at 04:34 PM, Edward van Bilderbeek - Bean
IT wrote:
you can't use a variable as a parameter for the included file... because
include does nothing else then putting the text of the include file on
the
place of the include statement...
Are you sure about this?
- Original Message -
From: Erik Price [EMAIL PROTECTED]
To: Edward van Bilderbeek - Bean IT [EMAIL PROTECTED]
Cc: Phil Schwarzmann [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, March 14, 2002 10:58 PM
Subject: Re: [PHP] include() question
On Thursday, March 14, 2002, at 04:34 PM, Edward
]
Sent: Thursday, March 14, 2002 11:03 PM
Subject: Re: [PHP] include() question
On Thu, 14 Mar 2002, Erik Price wrote:
On Thursday, March 14, 2002, at 04:34 PM, Edward van Bilderbeek - Bean
IT wrote:
you can't use a variable as a parameter for the included file...
because
include does
On Thursday, March 14, 2002, at 05:03 PM, Jan Rademaker wrote:
I think what Edward means is that you can't pass parameters to an
included
file, like include(some.inc?var=value);
That's true, at least for local
files. include(http://remotesite/some.php?var=value;) will work, as
long
as
, 2002 11:03 PM
Subject: Re: [PHP] include() question
On Thu, 14 Mar 2002, Erik Price wrote:
On Thursday, March 14, 2002, at 04:34 PM, Edward van Bilderbeek -
Bean
IT wrote:
you can't use a variable as a parameter for the included file...
because
include does nothing else then putting
On Thu, 2002-03-14 at 13:20, Phil Schwarzmann wrote:
Why doesn't this work...
include(index.php?var='$var');
I want to include a page in my code and send a variable to it but I get
some funky error.
THANKS!!
Please read this page carefully, especially the third paragraph and
Message-
From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 4:20 PM
To: [EMAIL PROTECTED]
Subject: [PHP] include() question
Why doesn't this work...
include(index.php?var='$var');
I want to include a page in my code and send a variable to it but I get
some
I'm having problems with .htaccess files setting up the php_value
include_dir on both my development test servers. I'm using php4 under
apache on win2k for development php4 under apache on unix as a test
server. I've currently done the following on the win server
Directory
php_value
-Original Message-
From: Patrick Teague [mailto:[EMAIL PROTECTED]]
Sent: 13 March 2002 10:48
I'm having problems with .htaccess files setting up the php_value
include_dir on both my development test servers. I'm using
php4 under
apache on win2k for development php4 under
ok, so this makes alot of since... if I move my website from one server to
another server I'll have to go through every single file redo the
directory structure? Isn't this the reason for the includes... so you
don't have to go through every single file to make changes? Maybe I should
go
Patrick Teague wrote:
ok, so this makes alot of since... if I move my website from one server to
another server I'll have to go through every single file redo the
directory structure? Isn't this the reason for the includes... so you
don't have to go through every single file to make
I have people telling me that I MUST put the ?include? file before or inside the
header of the .php file I am writing before a script is pulled into my file. I usually
just put the ?include? whereever I need it on the page. Actually have it embedded in
an IF statement, so that if the
On Tuesday 05 March 2002 20:58, Team GotFusion wrote:
I have people telling me that I MUST put the ?include? file before or
inside the header of the .php file I am writing before a script is pulled
into my file. I usually just put the ?include? whereever I need it on the
page. Actually have
with the
tradition.
=C=
*
* Cal Evans
* Journeyman Programmer
* Techno-Mage
* http://www.calevans.com
*
-Original Message-
From: Team GotFusion [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 05, 2002 6:59 AM
To: [EMAIL PROTECTED]
Subject: [PHP] ?include?... another dumb question
I have people telling
Yep, ordered the manuals from Amazon.com... and they inadvertently shipped
the books to my mom-in-law ha ha. except that she's retired and
computers are still a mystery.
So, I am muddling through with my PHP dev. dictionary until I get to see my
relatives this weekend.
(cheesy smiley)
On Tuesday, March 5, 2002, at 08:08 AM, Jason Wong wrote:
Is placing the include at the top absolutely required, good programming
convention or just preferred?
Simply put, you can place them wherever you want. Obviously if your
include
file defines certain variables then common sense
-Original Message-
From: Nick Wilson [mailto:[EMAIL PROTECTED]]
Sent: 01 March 2002 17:30
To: PHP-General
Subject: Re: [PHP] include() and paths
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Nick Winfield declared
I didn't catch the first part
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi all,
Here's the scenario
masterfileinc lives in /var/www/includes/ and contains this line:
include(/var/www/includes/anotherfileinc);
in indexphp I include masterfileinc and thus get anotherfileinc
Simple (I hope)
What I'd like to know though
Hi Nick,
masterfile.inc lives in /var/www/includes/ and contains this line:
include(/var/www/includes/anotherfile.inc);
in index.php I include masterfile.inc and thus get anotherfile.inc.
What I'd like to know though is, is it possible to have the include
line
in masterfile.inc specify a
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then DL Neil declared
masterfileinc lives in /var/www/includes/ and contains this line:
include(/var/www/includes/anotherfileinc);
in indexphp I include masterfileinc and thus get anotherfileinc
What I'd like to know though is, is
On Fri, 1 Mar 2002, Nick Wilson wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then DL Neil declared
masterfileinc lives in /var/www/includes/ and contains this line:
include(/var/www/includes/anotherfileinc);
in indexphp I include masterfileinc and thus get
and Nick Wilson opined in what could be seen to be an arrogant
fashion...
* and then DL Neil declared
masterfile.inc lives in /var/www/includes/ and contains this line:
include(/var/www/includes/anotherfile.inc);
in index.php I include masterfile.inc and thus get
anotherfile.inc.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Nick Winfield declared
I didn't catch the first part of this thread (rampant deletion ahoy) so
please excuse if I am talking nadgers The way I see it, if you are
calling includes/requires from within other includes, the path is that
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then DL Neil declared
RTFM the four pages from
http://wwwphpnet/manual/en/functionrequirephp; There's quite a
bit
of advice/experience in the user annotations!
Please don't RTFM me, that's the first place I went I didn't find
php_value include_path /includefiles/://includefiles/
Bill wrote:
How can I set the php include path on an Apache machine using htaccess
Assuming I'm puting it outside of the web root, I think it is something
like:
php_include_path /includefiles/://includefiles/
but that generates
I am very new at this and am having trouble migrating to php and mysql from
a different system (WebCatalog).
I want to start dumping files to text and let php use them to populate mysql
on the fly as I start migrating.
snip---
$db = mysql_pconnect(host,
. A comma on the first line and a
semicolon on the second line.
Janet
- Original Message -
From: Paul Fowler [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, February 17, 2002 8:17 PM
Subject: [PHP] Include file for MySQL insert rows
I am very new at this and am having trouble
Hi all,
I have a problem with a redirect. I have a file that includes a content from
another PHP script,
parses the content as string with output buffering and displays it.
The problem is that the include function doesn't seem to handle redirects.
When that other
PHP script makes a Header
On Tue, 29 Jan 2002 12:51:15 +0100, you wrote:
Do you know a solution to insert remote content handling eventual redirects
in the remote?
Something like a browser.
fopen() the file you're trying to include, and handle the response
from the server yourself. If it returns 301 or 302, you have to
I want a script to go to an anchor in an html page
This doesn't seem to work
include blah.htm#anchor;
how is this possible
Thanks!
Phil in baltimore
P.S. Pittsburgh sucks Bill Gates' balls.
A script to go to an anchor - I don't know about that... If you need a
_link_ to go to an anchor then you just need to echo the proper link
(i.e. echo blah.htm#anchor;). If you want a script to _redirect_ to an
anchor then Emile is right: this is a client-side thing and you either
have to go with
I'm trying to include a URL using the following line
include('http://www.cci.net.au/default.htm');
I get the following response.
Warning: Failed opening 'http://www.cci.net.au/default.htm' for
inclusion (include_path='') in C:\Inetpub\wwwroot\template\index.php
on line 61
I have made sure the
I'm trying to include a URL using the following line
include('http://www.cci.net.au/default.htm');
I get the following response.
Warning: Failed opening 'http://www.cci.net.au/default.htm' for
inclusion (include_path='') in C:\Inetpub\wwwroot\template\index.php
on line 61
I have made sure the
Does the file have persmissions such that it is include()-able by nobody?
Kirk
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 16, 2002 4:33 PM
To: [EMAIL PROTECTED]
Subject: [PHP] include() and URL's
I'm trying to include a URL
:
Does the file have persmissions such that it is include()-able by nobody?
Kirk
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 16, 2002 4:33 PM
To: [EMAIL PROTECTED]
Subject: [PHP] include() and URL's
I'm trying to include
The file is running on an NT box and can be accessed fine
through IIS. It is only when using the include() statement to
this file that problems occur. If I do a local path map to it,
it will include fine but when using an URL it gives that error.
Can you retrieve the file from that URL
I'm using my workstation as an all in one test box. It's running, IIS 4.0,
and PHP for Windows version 4.0.6.
At 11:13 AM 1/18/02 +1100, you wrote:
The file is running on an NT box and can be accessed fine
through IIS. It is only when using the include() statement to
this file that
Hello,
I have a file which does several different things depending on how its
called Ie
file?mode=show is to show it etc
But I want to include the output from the show so I tried
?php include(file.php?mode=show); ? but this causes errors. It goes away
with including as only file.php but doing
I have a mess of variables I HTML from a couple of different
scripts, so I combined them into an include.inc.
But now, when I do this:
$news = mysql_query('select * from ccl where ... order by AU
asc');
while ($personne = mysql_fetch_object($news))
{
I have a mess of variables I HTML from a couple of different
scripts, so I combined them into an include.inc.
But now, when I do this:
$news = mysql_query('select * from ccl where ...
order by AU
asc');
while ($personne = mysql_fetch_object($news))
{
I have a flash file that I need to embed in an iframe on a page. I dynamically get the
path to the file from a MySQL database. I've tried to include the file and use
fopen/fread to execute the file, but I only get binary code back, which makes sense
actually. What's the best way to go about
Hello Bryant,
Thursday, November 29, 2001, 12:56:07 AM, you've written:
BB I have a flash file that I need to embed in an iframe on a page. I
BB dynamically get the path to the file from a MySQL database. I've
BB tried to include the file and use fopen/fread to execute the
BB file, but I only
include (http://www.somesite.com/somepage.html;);
Worked perfect on our unix box and our win98 machines but when we installed PHP on our
Windows server it no longer worked and tottaly ignored the include unless we used the
path
instead like.
include (somepage.html);
[EMAIL PROTECTED]
Hi all.
I have searched almost everything on the net regarding php and windows
focusing on one thing.
How to include to php script started on apache on w2k external sript placed
on some URL.
Source of test script (http://mylocalhost/marek.php)
?
include("http://hermes.com.pl/test.php");
?
and
On Friday 26 October 2001 22:32, Daelic wrote:
I was debating perl Vs. PHP with a friend, and he came up with this:
Perl can include compiled C binaries without backprocessing them,
which is a pretty useful trick.
Ask him what he means with backprocessing
--
Christian Reiniger
LGDC
This is what I'm trying to do, and I think I'm just missing some logic in
how to think like PHP.
I have a global included file (global.inc) where I set up variables, open
the database, etc, and I include it in the header of every HTML file on the
site.
One thing I would like to set as a
I was debating perl Vs. PHP with a friend, and he came up with this:
Perl can include compiled C binaries without backprocessing them, which is
a pretty useful trick.
I don't know anything about this, so couldn't comment on it. Can PHP do
this, or anything similar?
Thanks!
--
PHP General
Hi,
I have an issue with including a file accross my web server from a
separate site on that server served on another port.
- explanation
my php website runs off IIS port :80 (unfortunately IIS is employers
decision not mine )
- I have a web spider running off port :
both
On Wed, 24 Oct 2001 08:03, brendan wrote:
Hi,
I have an issue with including a file accross my web server from a
separate site on that server served on another port.
- explanation
my php website runs off IIS port :80 (unfortunately IIS is employers
decision not mine )
- I
Uni runs solaris/unix
faculty runs iis
world of political pain and anguish..
view source brings up a blank screen ..
ta
brendan
David Robley wrote:
On Wed, 24 Oct 2001 08:03, brendan wrote:
Hi,
I have an issue with including a file accross my web server from a
separate site on
On Wed, 24 Oct 2001 10:02, brendan wrote:
Uni runs solaris/unix
faculty runs iis
world of political pain and anguish..
view source brings up a blank screen ..
ta
brendan
OK - bit of straw grasping; you do have URL-fopen-wrappers enabled; try
assigning the result of the include to a
Hi
I wrote my new page in XHTML 1.0, split it and wanted to include the top
part of the file with the include( page_top.htm).
The problem is, that the valid XHTML document has to begin with
?xml version=1.0 encoding=iso-8859-1?
The problem now is, that ? is interpreted as a begin of php
The email RE: [PHP] include XHTML document from [EMAIL PROTECTED] to
[EMAIL PROTECTED]
[EMAIL PROTECTED]
contained script similar to known Worm viruses.
As a precaution this has been held in quarantine. The message will be held for up to
20 days, for further checking.
Please notify
On Mon, 2001-09-24 at 08:04, cweiske wrote:
I wrote my new page in XHTML 1.0, split it and wanted to include the top
part of the file with the include( page_top.htm).
The problem is, that the valid XHTML document has to begin with
?xml version=1.0 encoding=iso-8859-1?
The problem now is,
Is it possible to use include inside the mail function?
eg
mail(include(blah.txt)) ???
-lk6-
http://www.StupeedStudios.f2s.com
Home of the burning lego man!
ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666
Is it possible to use include inside the mail function?
eg
mail(include(blah.txt)) ???
-lk6-
http://www.StupeedStudios.f2s.com
Home of the burning lego man!
ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666
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
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
[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:
include(mysql.php
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
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
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, September 20, 2001 1:48 PM
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
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
701 - 800 of 950 matches
Mail list logo