"Julian Wanke" wrote:
> Hi,
>
> I use the pretty large Library PHP Image Workshop
> (http://phpimageworkshop.com/) at my project. It is about 75,5 KB.
> Everything works fine but if I try to include a 15 KB file with country
> codes, it fails.
> With the other files I easily get over 100 KB inclu
On Wed, May 29, 2013 at 8:09 PM, Jim Giner wrote:
> On 5/29/2013 1:39 PM, Ron Piggott wrote:
>
>>
>> Good morning all:
>>
>> I have recently purchased a computer and am using it as a dedicated
>> server. A friend helped me install PHP and configure. I am saying this
>> because I wonder if using
You are most probable getting a fatal error, and the way PHP is configured
now, doesn't show you that publicly. Enable that setting via php.ini or
directly in the script (not recommended) or check out the webserver's
error_log (assuming apache and a RedHat based distro this will be on
/var/log/http
On 5/29/2013 1:39 PM, Ron Piggott wrote:
Good morning all:
I have recently purchased a computer and am using it as a dedicated server. A
friend helped me install PHP and configure. I am saying this because I wonder
if using a newer version of PHP (compared to my commercial web host) may be
PJ wrote:
> How does one deal with tag completion from an include file to the
> main(source)-file?
> i.e. c should a tag, such as or be closed withing the
> include file? Or can be started in the include file and closed in
> the main-file?
It doesn't really matter, however it may be easier to d
Andrew Ballard wrote:
I do use PHP comments (probably not as much as I should), but I don't
usually use HTML comments. This is partly (largely?) because HTML
comments get passed on to the client which wastes (albeit usually a
small amount of) extra space and bandwidth for each request, and they
On Wed, Mar 11, 2009 at 7:51 PM, Patrick Moloney wrote:
> OK, I think I've got the problem. I had to go back further than where the
> problem appeared to be. The 1st error was the comment code on the div line
> before the menu is Included. It had the "--" in the comment.
> Oddly, it interacts with
OK, I think I've got the problem. I had to go back further than where
the problem appeared to be. The 1st error was the comment code on the
div line before the menu is Included. It had the "--" in the comment.
Oddly, it interacts with the same error in the comment in the mainmenu
file. I saw som
Patrick Moloney wrote:
> Thanks for all the replies.
> As I said in my original post the comments are on the first lines of the
> included file and are HTML comments. I'll have to look closer at comment
> syntax - I see there are "empty comments" and issues with pairs of
> double hyphens.
>
> My o
Thanks for all the replies.
As I said in my original post the comments are on the first lines of the
included file and are HTML comments. I'll have to look closer at comment
syntax - I see there are "empty comments" and issues with pairs of
double hyphens.
My overall code worked well with 2 c
Shaun wrote:
Hi,
I am having problems with an include statement, i am using the following
statement in an effort to include a footer file on my page:
include("/cms/templates/footer.php");
However I get the following error:
Warning: main(/cms/templates/footer.php): failed to open stream: No su
Hello
This is the same thing I always use.
By the way, I installed php 4.4.7 and everything is fine with this
version though "register_globals" is again Off.
Regards,
Mac
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Perhaps there is some whitespace before/after the 'C'...
echo "'$_POST[status_code]'\n";
You should then see some whitespace inside the '' so you'll know it's
there.
This is a VERY good debugging technique to adopt. :-)
My own methodology is to use one of the following to peer into an array
1- No
2- Yes
--
itoctopus - http://www.itoctopus.com
"Stephen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 1) Does the filename extension matter? I prefer *.inc? It seems to work
> fine, but I only see others using *.php
>
> 2) Does the include file need an opening ?
>
> Not
Dan Shirah wrote:
Okay, I think I'm doing everything right, but for whatever reason my
include
isn't working.
The echo of my status_code retruns the correct value so the if should
trigger.
This is my include page:
VERY simple, but for some reason is not working
change this line:
i
Hi Everyone,
Thanks for the info, putting the opening and closing tags in the
include file worked like a charm! Now I just need to get the SQL
injection protection junk to work... Back to the web to read more!
--
Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
3251 132nd ave
H
Hello,
Short tags () are only available when they are enabled via the
short_open_tag php.ini configuration file directive, or if php was
configured with the --enable-short-tags option. Did you configure your
php.ini file?
--
Republic Of Turkey - Ministry of National Education
Education Tec
Is it the whole code of your file, or is there any other html code?
"Chris Carter" <[EMAIL PROTECTED]> escreveu na mensagem
news:[EMAIL PROTECTED]
>
> Hi,
>
> Here is code that I got from the internet for random image. This file
> works
> perfect if I try it independently but not on any existing
Adam Zey wrote:
Dave Goodchild wrote:
I use a config file too. That was a sanity check. The file extract
looked like this:
$months = array(1 => 'January', 2 => 'February', 3 => 'March', 4 =>
'April', 5 => 'May', 6=> 'June',
7 => 'July', 8 => 'August', 9 => 'September', 10 =>
Dave Goodchild wrote:
I use a config file too. That was a sanity check. The file extract
looked like this:
$months = array(1 => 'January', 2 => 'February', 3 => 'March', 4 =>
'April', 5 => 'May', 6=> 'June',
7 => 'July', 8 => 'August', 9 => 'September', 10 =>
'October', 11 =>
Dave Goodchild wrote:
Hi all - I have several require_once statements in my web app to load in
small function libraries. A common one bundles a variety of functions to
handle date math and map month numbers to month names. I originally defined
an array in that file plus a bunch of functions but w
Check the file's permissions with your ftp utility
Shaun wrote:
Hi,
I am having problems with an include statement, i am using the following
statement in an effort to include a footer file on my page:
include("/cms/templates/footer.php");
However I get the following error:
Warning: main(/
Claudio schrieb:
> I'm using PHP 5. I have a class operation that includes php files.
> Is there a way to include this files to global scope? So that difined vars
> and functions are global accesseble?
I know this problem from my early PHP days. If your problem is that you
want to include some c
the answer
cc wrote:
> yes, its possible, consider this:
>
> /**
> * @param $file_to_include path to php file you want to get its content
> * @return included contents
> */
> function get_output($file_to_include){
> ob_start();
> include $file_to_include;
> return ob_get_clean();
> }
is
cc wrote:
yes, its possible, consider this:
/**
* @param $file_to_include path to php file you want to get its content
* @return included contents
*/
function get_output($file_to_include){
ob_start();
include $file_to_include;
return ob_get_clean();
}
this will break if the included f
yes, its possible, consider this:
/**
* @param $file_to_include path to php file you want to get its content
* @return included contents
*/
function get_output($file_to_include){
ob_start();
include $file_to_include;
return ob_get_clean();
}
of course, you may extend this function to bet
Actually, I think I might have found a solution, although its not a very
good one.
include realpath(dirname(__FILE__) . "/" . "../include/global.php");
Ethilien wrote:
I've been attempting to write an application with a bit more ordered
directory structure than I normally use, and I ran into t
Ethilien wrote:
Actually, I think I might have found a solution, although its not a very
good one.
include realpath(dirname(__FILE__) . "/" . "../include/global.php");
alot of people do something _like_:
define('GLOBAL_BASE_DIR', dirname(__FILE__));
somewhere near the beginning of their sta
Ethilien wrote:
Actually, I think I might have found a solution, although its not a very
good one.
include realpath(dirname(__FILE__) . "/" . "../include/global.php");
Ethilien wrote:
I've been attempting to write an application with a bit more ordered
directory structure than I normally use
* Mike Smith <[EMAIL PROTECTED]>:
> In core.class.php I have my generic special html methods and my db
> connection. I'm having trouble accessing $this->db (initialized in
> core.class.php) from user.class.php. Am I wrong in thinking
> user.class.php should be able to access methods/attributes of
>
Mike Smith wrote:
I'm trying to consolidate code in a new project. My dirs are:
/
/inc
core.class.php
/mods
/mods/system
system.class.php //extends core.class.php
user.class.php //extends system.class.php
In core.class.php I have my generic special html methods and my db
connection.
* "I. Gray" <[EMAIL PROTECTED]>:
> Is there a big difference between me including a file by putting the url
> in the include() such as
> include("http://www.examplesite.com/examplefile.php) and putting the
> server path such as
> include("number/www.examplesite.com/public_html/examplefile.php")
eval('?> '.$code.' http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ryan Grange wrote:
Gary C. New wrote:
Is there a quick and dirty way to include, file, or fsockopen content
from a remote server and make it appear as though the request was
straight from the browser's remote address?
Thank you for your assistance.
Respectfully,
Gary
I believe you woul
Jeremy Reynolds wrote:
> What if I want to include some literal test into a PHP document that I
> don't want it to interpret as it loads. In particular, I am working
> with XML but for the example's sake I will say PHP. Example:
FYI, when you have -- on a line by itself most newsreaders think tha
"Jochem Maas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Jason Barnett wrote:
>> Jochem Maas wrote:
>>
>>>Rob Adams wrote:
>>
>> ...
>>
>>>you 100% sure your include_path is '.' ? just asking.
>>>also you mention a /www/lib and a /www/include dir - maybe thats
>>>the problem?
>>
Jason Barnett wrote:
Jochem Maas wrote:
Rob Adams wrote:
...
you 100% sure your include_path is '.' ? just asking.
also you mention a /www/lib and a /www/include dir - maybe thats
the problem?
maybe you can make the problem go away by setting include_path to
'.:/www/include' or '.:/www/lib'
This s
"Jason Barnett" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>My guess is the file *is* in the include path, but the current working
>directory when require_once() executes is not what the OP thinks it is...
I was hoping this was the case, but just checked it with:
echo `pwd`;
and
Jochem Maas wrote:
> Rob Adams wrote:
...
>
> you 100% sure your include_path is '.' ? just asking.
> also you mention a /www/lib and a /www/include dir - maybe thats
> the problem?
>
> maybe you can make the problem go away by setting include_path to
> '.:/www/include' or '.:/www/lib'
This stil
The scenario I gave is very simplified. I'm actually trying to get tikiwiki
working on a server, and the reason it won't run the install is because of
this problem I've mentioned. It works as expected on my development server
(WinXP), but on my production (FreeBSD) it fails.
I don't have a /w
Rob Adams wrote:
One correction. The include('lib/test2.php') is actually a
require_once('lib/test2.php'). That's why it quits and I don't get the
third include.
you 100% sure your include_path is '.' ? just asking.
also you mention a /www/lib and a /www/include dir - maybe thats
the problem?
m
One correction. The include('lib/test2.php') is actually a
require_once('lib/test2.php'). That's why it quits and I don't get the
third include.
-- Rob
"Rob Adams" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> From the manual on 'include':
>
> "Files for including are firs
ECTED]
Sent: Wednesday, June 16, 2004 5:53 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Include Issues
Stephen Craton wrote:
> I have a script that calls a function called conbox. This function
> creates the HTML to a content box and you also pass a file to be
> included into the content a
Stephen Craton wrote:
I have a script that calls a function called conbox. This function creates
the HTML to a content box and you also pass a file to be included into the
content area of the box.
The function echos out some of the HTML, then does a simple include(), and
then echos out the rest o
Try it?
(Yes, it works)
"Bob Lockie" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Should 'include $var;' work?
> I need go to an HTML page after the form has been submitted.
> page A -> program B (no output) -> page A
--
PHP General Mailing List (http://www.php.net/)
To unsubsc
"Daniel Barbar" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Thanks Torsten! Using the file-system relative path made it work (I had
> tried only with the absolute path, which ddidn't work). However, I checked
> again and I did have 'allow_url_fopen = On' in /etc/php.ini. I'll take
Nik wrote:
Hi there,
I'm new to these groups so forgive me if I'm asking at the wrong place (tell me where
then :)
Ok,
I'm not PHP guru but I need to create a simple script that would do this:
Include a content from another URL into the current output. I have done something like
this:
-- code
Thanks Torsten! Using the file-system relative path made it work (I had
tried only with the absolute path, which ddidn't work). However, I checked
again and I did have 'allow_url_fopen = On' in /etc/php.ini. I'll take a
closer look later and report the problem if I find it. Thanks again,
Daniel
"
> Try including it as a local file:
> require_once library.php'; // if it is in the same directory as the file
you
Forgot a quote here, sorry:
require_once 'library.php';
Torsten
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
"Daniel Barbar" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> I'm almost ashamed to ask this question as surely enough the
> problem is something very basic but, nonetheless, I can't put my finger on
> it. I'm trying to implement the concept of a library (librar
You could always use this :
$text = "";
$fd=fopen($url,"r");
while ($line=fgets($fd,1000)) { $text.=$line; } fclose ($fd);
echo $text;
--
--
Kim Steinhaug
--
There are 10 types of people when it comes to binary numbers:
tho
PHP will load the entire file and consume memory. It will also check the
sintax of the entire file. If your file grows to much it would affect the
speed of showing your pages and if it is very big, you could find the limit
of memory of PHP (8Mb by default).
The Zend engine makes an "on the fly" co
> I'm trying to include that file because in my index page
> because it has many
> functions I need to use in other pages... I'm on ADDR.com
> servers and I
> can't set "allow_url_fopen" to 1 (it sucks!).
> In ssi.php functions are called by accessing this address:
> http://mydomain.com/forums/ss
ssing this address:
http://mydomain.com/forums/ssi.php?a=active
So how can I possibly include that page (ssi.php?a=active) on any of my
pages???
From: "Dennis Sterzenbach" <[EMAIL PROTECTED]>
Reply-To: "Dennis Sterzenbach" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: [P
"Gustave Bernier" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi everyone,
>
> I'm new to PHP and I'm trying to use the include function but with no
> success... My server's ini file is set as (allow_url_fopen, 0) so I'm
> having some trouble to pass different values for the php
> -Original Message-
> From: Jennifer Goodie [mailto:[EMAIL PROTECTED]
> Sent: 31 July 2003 22:42
>
> > if (isset($page)) {
> > include $$_GET['page'];
> > } else {
> > $page = $home;
> > include $page;
> > }
> >
> > would that be right?
> > or should i use
> >
> > if (isset($page)) {
> >
nope, it doesn't work. it'll only call up the variables that were specified
in my files.inc.php...well so far at least
"Curt Zirzow" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> * Thus wrote LoonySalmon ([EMAIL PROTECTED]):
> >
> > i want to call up my contact page, but how
* Thus wrote LoonySalmon ([EMAIL PROTECTED]):
>
> i want to call up my contact page, but how do i do it?
>
> http://localhost/index.php?page=$contact
I hope you cant use something like:
http://localhost/index.php?page=%2Fetc%2Fpasswd
Curt
--
"I used to think I was indecisive, but now I'm no
thanks jeff harris, that is exactly what my problem was,
now it works
good night all
thank a million
"Jeff Harris" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Aug 1, 2003, "LoonySalmon" claimed that:
>
> |and btw, this is my code now:
> |
> | |require 'files.inc.php';
> |
>
On Aug 1, 2003, "LoonySalmon" claimed that:
|and btw, this is my code now:
|
|
--
Is $main being set inside a function?
http://www.php.net/language.variables.scope
Also, for future compatability, you should probably change the 3rd line to
"if (isset($_GET['page'])) {" That will also help incase
and btw, this is my code now:
"Loonysalmon" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> well crap, it turns out that i'm back to step 1, but with more code
> it won't load up the other files now when defined through the url. i
guess
> that there is something wrong, but w
well crap, it turns out that i'm back to step 1, but with more code
it won't load up the other files now when defined through the url. i guess
that there is something wrong, but what could it be?
"Loonysalmon" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> if (isset($page)) {
> i
Jennifer Goodie wrote:
I don't think I'd let someone pass any page they wanted via a get and just
include that page.
If you have URL fopen wrappers on I can create a page on my server and
include it to your page and pretty much execute any code I want on your
server.
example:
http://www.yourdomai
> if (isset($page)) {
> include $$_GET['page'];
> } else {
> $page = $home;
> include $page;
> }
>
> would that be right?
> or should i use
>
> if (isset($page)) {
> include $$_GET['page'];
> } else {
> include $home;
> }
>
> hopefully that's right. if so, pretty good for a n00b
>
I don't think I
for some odd reason, $home wasn't working, so i changed home to main and now
it works
thanks for all the good support guys/gals?
L00NY54LM0N - 16 year old coder in the makin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
is there anyway where i can check if page is defined in the url?
not sure I know exactly what you mean but I think you could use
something like this
$foo = @include("index.php");
if ($foo) {
//index.php was valid
} else {
//index.php was not valid
}
there also might be a better way to do th
if (isset($page)) {
include $$_GET['page'];
} else {
$page = $home;
include $page;
}
would that be right?
or should i use
if (isset($page)) {
include $$_GET['page'];
} else {
include $home;
}
hopefully that's right. if so, pretty good for a n00b
--
PHP General Mailing List (http://www.php.n
LoonySalmon wrote:
if page is defined in url, include page defined
else include home
You are on the right track. Take a look at the manual.
http://us4.php.net/manual/en/index.php
http://us4.php.net/isset
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://ww
ok
i have that done, but now i can't just have index.php because i get an error
is there anyway where i can check if page is defined in the url?
if so, could somebody make me a simple script? this is my first time with
php
i'm guessing that it would be something like this, but summed up
if pa
LoonySalmon wrote:
that isn't really what i want
i want to have a seperate file where i declare the variables.
what i'm getting at here is this, well, take a look at this page:
http://l33trus.servebeer.com/site/index.php
i just want to include a page into the table where it says that it's
included
that isn't really what i want
i want to have a seperate file where i declare the variables.
what i'm getting at here is this, well, take a look at this page:
http://l33trus.servebeer.com/site/index.php
i just want to include a page into the table where it says that it's
included
what i'm going fo
> http://localhost/index.php?page=contact.html
>
> And get rid of your hard-coded set for $contact, and use
> $_GET['contact'] instead.
My apologies. I meant $_GET['page'].
Chris
=
Become a better Web developer with the HTTP Developer's Handbook
http://httphandbook.org/
--
PHP General Mai
--- LoonySalmon <[EMAIL PROTECTED]> wrote:
> INDEX.PHP
> > require 'files.inc.php';
> $page = $home;
> include $page;
> ?>
>
> FILES.INC.PHP
> > $home = 'home.html';
> $forum = 'forum/index.php';
> $contact = 'contact.html';
> ?>
>
> http://localhost/index.php?page=$contact
http://localhost/in
lol, yet again i need some more help
as you guys can see from the scripts before, i am including a file into a
page. now my only problem is trying to include a different file.
what i have
INDEX.PHP
FILES.INC.PHP
i want to call up my contact page, but how do i do it?
http://localhost/in
I think you want
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
thanks everybody
now it works
"Loonysalmon" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> i am looking to use includes on my page,
> this is the code that i want to use to call my files with:
>
> INDEX.PHP
>
> require 'files.inc.php';
> $page = '$home';
> include '$page';
> ?>
>
>
My apologies - I just double posted this question ...
"Dougd" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have a PHP included page that takes quite a time to load. I would like
to
> have the entire main page loaded and displayed and then the final include
> page executed.
>
>
I copied and pasted your code into two different files, changed the image
name (of course) and it worked just fine on the first try for me. You must
have something being output before your header() call. If you can't find
it, send me your two files and I'll try running them on my server.
-- Ro
Nobe, the image.php script starts with wrote in message
news:[EMAIL PROTECTED]
> "Oli" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > I have a function that resizes images. If I put it in the same php file
> that
> > calles it it workes fine. Gives a nice thumbnail or whatever s
"Oli" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have a function that resizes images. If I put it in the same php file
that
> calles it it workes fine. Gives a nice thumbnail or whatever size I choose
> to display. If I however put it in a seperate file and include it and call
On Thursday 17 July 2003 06:25, DougD wrote:
> > when you call your script, is $point defined somewhere ?
> > if $point is empty, you'll get an empty string for $links_include and
> > include $links_include will not work.
> yes, I should have mentioned: $point is defined in the URL string
> http
yes, I should have mentioned: $point is defined in the URL string
http://something.com/index.html?point=12
"Baroiller Pierre-Emmanuel" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> when you call your script, is $point defined somewhere ?
> if $point is empty, you'll get
Hi,
when you call your script, is $point defined somewhere ?
if $point is empty, you'll get an empty string for $links_include and
include $links_include will not work.
Regards,
P.E. Baroiller
"Dougd" <[EMAIL PROTECTED]> a écrit dans le message de
news:[EMAIL PROTECTED]
> I am new to all this, bu
ather than
include() at the end of the script. Just my opinion.
- Kevin
- Original Message -
From: "Tim Burden" <[EMAIL PROTECTED]>
To: "Beauford.2002" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, March 28, 2003 1:36 PM
Subject: [PHP]
You could try this instead:
Checklogin.php
if (!$name || !password) {
$message = $enter_info;
}
if ($message){
include ("login.php");
echo $message;
exit;
}
But the way you had it should work, you might just need to
global $message;
right before the echo in login.php in case it is insi
Edit php.ini and add the pear directory to your include_path
or
use ini_set to set your include_path in your script:
http://www.php.net/manual/en/function.ini-set.php
Justin Garrett
"Harring Figueiredo" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> I woul
well ok, if it's :
main.php :
include 'foo';
foo :
include 'bar';
bar :
include 'whatever';
...
there will be lots of used file descriptors at once
Leon Mergen wrote:
"Stephan Seidt" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I guess that PHP will c
"Stephan Seidt" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I guess that PHP will close file 1 before it opens
> file 2 and so on.. For example :
>
> include 'foo';
> include 'bar';
>
> When bar is being opened foo is already closed.
Hmmm, i think the par
I guess that PHP will close file 1 before it opens
file 2 and so on.. For example :
include 'foo';
include 'bar';
When bar is being opened foo is already closed.
Leon Mergen wrote:
"Radek Zajkowski" <[EMAIL PROTECTED]> schreef in bericht
news:[EMAIL PROTECTED]...
Is there, was there ever issu
"Radek Zajkowski" <[EMAIL PROTECTED]> schreef in bericht
news:[EMAIL PROTECTED]...
> 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 think that the only source that could cause any problems with too many
f
To my knowledge you can include as many files as you want.
If by commenting out the clean() function, I'd say you have a syntax error
in that function and you're just not seeing the error message. Turn on
full error reporting and see what happens.
-philip
On Thu, 3 Oct 2002, Matias Silva wrote
hi,
thanks for your help again.
i've noticed that file function have two different behaviors.
i tested file function with the url and it seems that the file is
interpreted. But i tried the code u give me and without the
"http://myurl.com/"; at the beginning, a warning is raised :
Warning: file(
@all:
I just noticed that I was not replying to the list, but to the
posting email adresses. I just switched to another email client
and was not aware of this. My apologies :-(
---
You,
could it be that you want to do the following?:
Am Dienstag den, 3. September 2002, um 00:15, schrie
nope sorry...
-Message d'origine-
De : Chris Knipe [mailto:[EMAIL PROTECTED]]
Envoyé : samedi 31 août 2002 20:10
À : you; 'Richard Lynch'
Cc : [EMAIL PROTECTED]
Objet : Re: [PHP] RE : include interpreted php file
fopen()
Regards,
Chris Knipe
Cell: (072) 434-7582
Me
received this email in error,
| please notify us immediately by return email and delete the document.
\---
- Original Message -
From: "you" <[EMAIL PROTECTED]>
To: "'Richard Lynch'" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Sat
Hi,
Thanks for u help. But i just wanna include a php file in an other. But
the included file must be interpreted before including it.
Thx
kciop
-Message d'origine-
De : Richard Lynch [mailto:[EMAIL PROTECTED]]
Envoyé : samedi 31 août 2002 02:12
À : you
Cc : [EMAIL PROTECTED]
Objet :
>pb : include a php file in an other php file
>contraints : the php file must be interpreted before being included
>solution known : fsock then get the html code from the server and include
>it...
>
>Is there an other solution (easier) to include that file?
Not real sure if you *want* the PHP fil
try using the absolute path to the file e.g.
include("C:/windows/webserver/httproot/inc/test.inc");
"Scott" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have PHP4 on both a windows IIS server and a windows apache server. The
> include function only works
In article <00d501c23ada$87050590$3404a8c0@alawi>,
[EMAIL PROTECTED] (Alawi) wrote:
> How can I Include my php code code as variable and excute it ?
include() can return a value, assignable to a variable. Some other ways to
get the content of a file (I assume that's why you're saying "includ
How ever can ant of the apache restrictions stop any one from including the
script by giving the whole path.
ie /home/htdocs/include.inc or /home/abc/include.inc
Yes or No ?
I use win 2000 so it is not possible for me to experiment! but I have
hostings on servers like www.f2s.net and a project o
1 - 100 of 132 matches
Mail list logo