Re: [PHP] Include Bug?

2003-06-06 Thread Steven Walker
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,

Re: [PHP] Include Bug?

2003-06-06 Thread joel boonstra
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

Re: [PHP] Include Bug?

2003-06-06 Thread Steven Walker
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:

Re: [PHP] Include Question

2003-03-27 Thread Beauford.2002
, 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

RE: [PHP] Include Question

2003-03-27 Thread Jennifer Goodie
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

Re: [PHP] Include() in included file

2003-03-16 Thread Veniamin Goldin
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

Re: [PHP] include dosn't after Provider-Change

2003-03-13 Thread Leif K-Brooks
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

Re: [PHP] include or function

2003-03-06 Thread Nik Makepeace
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

Re: [PHP] Include files

2003-02-26 Thread Ernest E Vogelsinger
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; ...

Re: [PHP] Include files

2003-02-26 Thread David Eisenhart
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

RE: [PHP] Include files

2003-02-25 Thread John W. Holmes
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

Re: [PHP] Include files

2003-02-25 Thread Larry E. Ullman
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

RE: [PHP] Include files

2003-02-25 Thread Bryan Lipscy
Funny thing about online manuals. include() http://www.php.net/manual/en/function.include.php include_once() http://www.php.net/manual/en/function.include-once.php Please read: http://www.catb.org/~esr/faqs/smart-questions.html -Original Message- From: Kenneth Suralta

Re: [PHP] Include files

2003-02-25 Thread Jinky Otacan Cocalon
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

Re: [PHP] include

2003-02-24 Thread Jason Wong
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

Re: [PHP] include

2003-02-24 Thread Leo Spalteholz
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:

Re: [PHP] include

2003-02-23 Thread Jason Wong
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/

Re: [PHP] include

2003-02-23 Thread John Taylor-Johnston
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

Re: [PHP] include

2003-02-23 Thread John Taylor-Johnston
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

Re: [PHP] Include() problems IGNORE PARENT

2003-02-14 Thread Leo Spalteholz
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:

RE: [PHP] Include today's date in a SQL statement?

2003-02-05 Thread Jon Haworth
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

Re: [PHP] Include today's date in a SQL statement?

2003-02-05 Thread Jonathan Pitcher
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

Re: [PHP] include

2003-02-04 Thread Philip Olson
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

Re: [PHP] include

2003-02-04 Thread Bob Lockie
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

Re: [PHP] include

2003-02-04 Thread Philip Olson
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

Re: [PHP] include question

2003-01-15 Thread Brad Bonkoski
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

RE: [PHP] include question

2003-01-15 Thread Ryan Cassin
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

Re: [PHP] include question

2003-01-15 Thread Christoph Grottolo
[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

Re: [PHP] include directory?

2003-01-06 Thread Stephan Seidt
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

Re: [PHP] include/require vs performance

2003-01-03 Thread Rasmus Lerdorf
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

Re: [PHP] include/require vs performance

2003-01-03 Thread Michael J. Pawlowsky
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

Re: [PHP] include/require vs performance

2003-01-03 Thread Marek Kilimajer
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

Re: [PHP] include/require vs performance

2003-01-03 Thread R . Z .
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

RE: [PHP] include problem -- how to use an external 'template' file and still use PHP variables?

2002-12-30 Thread Daevid Vincent
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

RE: [PHP] include option and calling only part of a file.

2002-12-28 Thread John W. Holmes
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 - -

RE: [PHP] Include Problems

2002-12-26 Thread Mike Bowers
: [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

Re: [PHP] Include Problems

2002-12-26 Thread John Nichel
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

Re: [PHP] Include Problems

2002-12-26 Thread John Nichel
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

Re: [PHP] Include Problems

2002-12-26 Thread Chris Hewitt
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'

RE: [PHP] Include Problems

2002-12-26 Thread Mike Bowers
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

Re: [PHP] Include Problems

2002-12-26 Thread John Nichel
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

Re: [PHP] Include Problems

2002-12-26 Thread Chris Wesley
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

RE: [PHP] Include Problems

2002-12-26 Thread Mike Bowers
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

Re: [PHP] Include Problems

2002-12-26 Thread Gerald Timothy Quimpo
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

Re: [PHP] include problem

2002-12-26 Thread Rasmus Lerdorf
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

Re: [PHP] include question

2002-12-12 Thread Leif K-Brooks
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

Re: [PHP] include question

2002-12-12 Thread Tom Rogers
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

RE: [PHP] include question

2002-12-12 Thread Ronald Clark
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

Re: [PHP] Include?

2002-12-12 Thread Adam Voigt
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:

Re: [PHP] Include?

2002-12-12 Thread Chris Hewitt
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

Re: [PHP] include file with parameters

2002-11-12 Thread Denis N. Peplin
On Tuesday 12 November 2002 15:55, Fikret CAN wrote: hello PHP developers, I am going to convert a site that works with frames to the equivalent with includes. I have several template files whic behaves according to query string parameters. I don't want to make big changes, just make it work.

Re: [PHP] include file with parameters

2002-11-12 Thread 1LT John W. Holmes
On Tuesday 12 November 2002 15:55, Fikret CAN wrote: hello PHP developers, I am going to convert a site that works with frames to the equivalent with includes. I have several template files whic behaves according to query string parameters. I don't want to make big changes, just make it

Re: [PHP] Include: Warning: Failed opening

2002-10-30 Thread 1LT John W. Holmes
Warning: Failed opening '/common.php' for inclusion (include_path='.:/www/htdocs/php:/www/htdocs') in /www/htdocs/php/includetest.php on line 3 Take out the forward slash in your include. '/common.php' means to look in the root directory for the file, while if you just put 'common.php' or

Re: [PHP] include http

2002-10-15 Thread Maxim Maletsky
In order to use your PHP script (authentication features etc) you need to have the all files within the same server. As of including files, virtually - yes, yo can use include for remote files, but you will not be able to execute the remote PHP code. You will only include the output. ie:

Re: [PHP] Include

2002-10-04 Thread Marek Kilimajer
You can include as many files as you want (or manage to), but you can declare functions only once. So include your files declaring functions using require_once(); Matias Silva wrote: This might sound like a dumb question but I just need verification so that I can convince myself that I'm going

[PHP] Re: PHP Include Help

2002-10-01 Thread Erwin
On line 6, I have the list of musicians in the song. Example (ignore the quotes): Doyle Lawson -- lead vocal; Dale Perry - - bass vocal Is there a way to make it so that, when I include line 6 in my PHP template, the ; will be replaced with a line break so I get one musician per line in the

Re: [PHP] Include Part 2

2002-09-29 Thread Justin French
Is this to pull the rows out of a database?? You could start with a simple example, which is just a basic config setting, and use the $myrow array in your sql while loop to do a lot of the work. ? // set your column names $colsToSelect = 'title, format, category'; // select $sql = SELECT

Re: [PHP] Include Part 2

2002-09-29 Thread Chris Shiflett
Chuck PUP Payne wrote: By the way I have time this but what is happen and maybe this will clear up things. That certainly made things clear. :-) I only calling this first myrow call titles. It's not going on to the other two. Now in my php page I have this... $myrow =

Re: [PHP] Include...

2002-09-28 Thread Chris Shiflett
Chuck, It is likely that either: 1. That file does not exist. 2. PHP does not have read privileges on that file. Chris Chuck PUP Payne wrote: I am trying to start using inc files. But I am this this error Warning: Failed opening '/local/htdocs/movies/style.inc' for inclusion

Re: [PHP] Include Part 2

2002-09-28 Thread Justin French
Not sure I fully understand, but usually this stuff calls for either a function, or an included file of code... in your case, sounds like a function is required, but I may not fully understand... Regards, Justin on 29/09/02 3:29 PM, Chuck PUP Payne ([EMAIL PROTECTED]) wrote: Ok, I am trying

Re: [PHP] Include...

2002-09-28 Thread John Hinton
Chuck \PUP\ Payne wrote: Hi, I am trying to start using inc files. But I am this this error Warning: Failed opening '/local/htdocs/movies/style.inc' for inclusion (include_path='.:/usr/share/php') in /local/htdocs/movies/lmenu.php on line 3 I have this in my lmenu.php Include

RE: [PHP] Include Part 2

2002-09-28 Thread John W. Holmes
-Original Message- From: Chuck PUP Payne [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 29, 2002 1:29 AM To: PHP General Subject: [PHP] Include Part 2 Ok, I am trying to make my design a lot easier. I want to know if I can do this... I want to set up in my php page this...

Re: [PHP] Include Part 2

2002-09-28 Thread Chuck PUP Payne
What I was wanting to do was store the myrows under let say, db_info.inc file. So that I can add or delete what myrows I want to call on. I am thinking this what I need to do... Function row ($row) { //These are the rows to call on... $title = $myrow[title]; $format = myrow[format];

Re: [PHP] Include Part 2

2002-09-28 Thread Chuck PUP Payne
By the way I have time this but what is happen and maybe this will clear up things. I only calling this first myrow call titles. It's not going on to the other two. Now in my php page I have this... $myrow = mysql_fetch_array($result); $row; Now this doesn't work. But this does. $myrow =

Re: [PHP] include() from another sub-domain

2002-08-19 Thread Rasmus Lerdorf
If these domains are on the same physical server, include them directly via the full filesystem path. If they are actually on different physical machines, you will need to configure those other machines to let you get the non-parsed PHP code through them. Your problam right now is that the

Re: [PHP] include() from another sub-domain

2002-08-19 Thread Greg Macek
Well, that would make sense. Now is this something I need to configure in the Apache or the PHP config file? On Mon, 2002-08-19 at 14:27, Rasmus Lerdorf wrote: If these domains are on the same physical server, include them directly via the full filesystem path. If they are actually on

Re: [PHP] include() from another sub-domain

2002-08-19 Thread Rasmus Lerdorf
Apache On 19 Aug 2002, Greg Macek wrote: Well, that would make sense. Now is this something I need to configure in the Apache or the PHP config file? On Mon, 2002-08-19 at 14:27, Rasmus Lerdorf wrote: If these domains are on the same physical server, include them directly via the full

RE: [PHP] include() from another sub-domain

2002-08-19 Thread Brad Dameron
What I would do is change the include filename to something like functions.inc like I do. This way the server won't try and run it for you. --- Brad Dameron Network Account Executive TSCNet Inc.

RE: [PHP] include opens source, but it shouldn't

2002-08-15 Thread Jay Blanchard
[snip] why does include always opens my included file although it is defined as a variable Example: $file=include(/myfile/myfile.txt/); shouldn't it only be opend by typing echo $file; [/snip] The include() opens the file to place it in the variable, in other words include means READ INTO.

Re: [PHP] include opens source, but it shouldn't

2002-08-15 Thread Sascha Braun
on? Schura - Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: 'Harry.de' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, August 15, 2002 6:25 PM Subject: RE: [PHP] include opens source, but it shouldn't [snip] why does include always opens my included file although

RE: [PHP] include opens source, but it shouldn't

2002-08-15 Thread SHEETS,JASON (Non-HP-Boise,ex1)
you assigned to it. This is covered in the manual, Jason -Original Message- From: Sascha Braun [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 10:31 AM To: PHP Mailingliste; Jay Blanchard Subject: Re: [PHP] include opens source, but it shouldn't Can't you use a fopen('$file

RE: [PHP] include opens source, but it shouldn't

2002-08-15 Thread Jay Blanchard
[snip] What is in the file? Do you have a print($file) or echo somewhere? Does the included file have print() or echo() in it? No, in the file is only html [/snip] There you go ... HTML will be parsed by the browser and displayed. So it is doing exactly what it is supposed to do. HTH! Jay

RE: [PHP] include opens source, but it shouldn't

2002-08-15 Thread Jay Blanchard
[snip] [snip] What is in the file? Do you have a print($file) or echo somewhere? Does the included file have print() or echo() in it? No, in the file is only html [/snip] There you go ... HTML will be parsed by the browser and displayed. So it is doing exactly what it is supposed to do. [/snip]

RE: [PHP] include opens source, but it shouldn't

2002-08-15 Thread Jay Blanchard
[snip] Are you wanting to place the file into the variable so that you can echo it out later? That is an extra step that you do not need. Just place the include() function where you want it to appear. But what do if i want echo it out later - That's exactly what i want do [/snip] You mean more

Re: [PHP] include opens source, but it shouldn't

2002-08-15 Thread Sascha Braun
;? - Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: 'Jay Blanchard' [EMAIL PROTECTED]; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, August 15, 2002 7:03 PM Subject: RE: [PHP] include opens source, but it shouldn't [snip] [snip] What is in the file? Do you have a print($file

RE: [PHP] include opens source, but it shouldn't

2002-08-15 Thread Jay Blanchard
[snip] Only on demand. I'd like to define the variable without showing the file $var=include(); do something else echo $var; [/snip] Since the included file outputs headers you cannot do what it is you wish to do AFAIK. When I do includes, and having looked at other's code I can say that I

RE: [PHP] include opens source, but it shouldn't

2002-08-15 Thread Matt Schroebel
From: Jay Blanchard [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 1:19 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] include opens source, but it shouldn't [snip] Only on demand. I'd like to define the variable without showing the file $var=include(); do something

Re: [PHP] Include/require and the HTML Code

2002-08-14 Thread Sascha Braun
Maybe something wrong with the return? I was thinking about return What?. (U understand me?) in Javascript a simple return does nothing. maybe you can just leave the return out of your script. - Original Message - From: Mike Eales [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: [PHP] Include/require and the HTML Code

2002-08-14 Thread Bas Jobsen
Can anybody tell me why I get a Parse error: parse error, unexpected '}' in /usr/local/apache/htdocs/logbook/Functions.inc on line begin and end your include files with ? and ? ? function HtmlHeader() { ? bllaalla ? return; } ? -- PHP General Mailing List (http://www.php.net/)

RE: [PHP] Include/require and the HTML Code

2002-08-14 Thread Peter Houchin
Mike, i had no problems with this.. !-- index.php -- ? include('Functions.inc'); HtmlHeader(); ? # Do things ? HtmlFooter(); ? !-- Functions.inc-- ? function HtmlHeader() { ? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN htmlhead

RE: [PHP] Include/require and the HTML Code

2002-08-14 Thread Michael Eales
the function that this problem arises. Thanks again Mike. -Original Message- From: Bas Jobsen [mailto:[EMAIL PROTECTED]] Sent: Thursday, 15 August 2002 6:52 AM To: Mike Eales; [EMAIL PROTECTED] Subject: Re: [PHP] Include/require and the HTML Code Can anybody tell me why I get a Parse error

Re: [PHP] Include/require and the HTML Code

2002-08-14 Thread Chris Shiflett
I'm not sure about others, but I am glad this behavior is like this. It is very nice for modules to stand on their own so to speak, so that you don't have to worry about what context they are used in. If the file you are including is plain HTML, would you want it to be parsed as if it were

Re: [PHP] include require directive

2002-08-13 Thread James Green
On Tue, 2002-08-13 at 02:55, Huy wrote: But I do... If I left out the require statement all is well.. or I copy the whole content of the included file.. it works fine. The problem is the require statement. Check the file for whitespace, anything outside ?..?php or spaces/blank lines

Re: [PHP] include require directive

2002-08-13 Thread Huy
Thanks, I thought I checked that already. Obviously, I use notepad in Win2000 to edit the files, and save them as Unicode file, which Notepad put some characters at the beginning of the file. Only when I use another editor was I able to see those strange characters. After deleting them, the

Re: [PHP] include require directive

2002-08-13 Thread Miles Thompson
Huy, Use Editplus, or something similar, not Notepad. Costs $45 and makes your work *much* easier. Miles At 08:41 AM 8/13/2002 -0700, Huy wrote: Thanks, I thought I checked that already. Obviously, I use notepad in Win2000 to edit the files, and save them as Unicode file, which Notepad put

Re: [PHP] include require directive

2002-08-12 Thread James Green
On Mon, 2002-08-12 at 22:14, Huy wrote: If I use either the include or require statement, PHP will generate some lines in the browser. For example, I want the first line is Hello There.. echo (Hello There); but the line happens to be the third line after some blank lines. So how do I turn

Re: [PHP] include require directive

2002-08-12 Thread Huy
But I do... If I left out the require statement all is well.. or I copy the whole content of the included file.. it works fine. The problem is the require statement. James Green [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Mon, 2002-08-12 at 22:14, Huy

Re: [PHP] Include php code as variable

2002-08-03 Thread Danny Shepherd
http://www.php.net/eval - Original Message - From: Alawi [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, August 03, 2002 11:41 AM Subject: [PHP] Include php code as variable How can I Include my php code code as variable and excute it ? -- PHP General Mailing List

RE: [PHP] Include problems

2002-08-03 Thread Daniel Kushner
include 'inc/test.inc' will work fine if you add your root directory to your include_path (in the c:\winnt\php.ini file). Daniel Kushner [EMAIL PROTECTED] Need hosting? http://www.TheHostingCompany.us/ -Original Message- From: Scott [mailto:[EMAIL PROTECTED]] Sent: Saturday, August

Re: [PHP] Include problems

2002-08-03 Thread Scott
Does this mean i have to do this to each site??? Daniel Kushner [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... include 'inc/test.inc' will work fine if you add your root directory to your include_path (in the c:\winnt\php.ini file). Daniel Kushner

Re: [PHP] Include problems

2002-08-03 Thread ::: Flavio Bastos Amiel::::::
does the require has something to be with include ? Cause instead of using include im always usin require Thanks, Flavio Bastos Amiel Scott [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Does this mean i have to do this to each site??? Daniel Kushner

RE: [PHP] Include problems

2002-08-03 Thread Maxim Maletsky
: Wednesday, September 04, 2002 12:53 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Include problems does the require has something to be with include ? Cause instead of using include im always usin require Thanks, Flavio Bastos Amiel Scott [EMAIL PROTECTED] wrote in message [EMAIL

Re: [PHP] Include problems

2002-08-03 Thread ::: Flavio Bastos Amiel::::::
() halts permanently ending execution of the script. Sincerely, Maxim Maletsky PHP Beginner www.phpbeginner.com -Original Message- From: ::: Flavio Bastos Amiel:: [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 04, 2002 12:53 AM To: [EMAIL PROTECTED] Subject: Re: [PHP]

Re: [PHP] include hassle

2002-08-02 Thread Reuben D. Budiardja
On Friday 02 August 2002 10:02 am, lallous wrote: I have this: //file1.php ? include('../libs/lib1.php'); ? now lib1.php: ? include ('helper.php'); ? If i run file1.php -includes lib1.php - fails to include helper.php ! ! how can i solve that? We need more information that this.

Re: [PHP] include hassle

2002-08-02 Thread lallous
I mean this: i have this tree: ./libs/*.php ./user/file1.php now i'm in ./user/ directory i run file1.php it includes ../libs/lib1.php which in turn will include helper.php (./users/helper.php) -- will fail! how can i programmatically set the include path? Elias Reuben D. Budiardja [EMAIL

Re: [PHP] include hassle

2002-08-02 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Lallous) wrote: how can i programmatically set the include path? http://php.net/ini-set -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] include hassle

2002-08-02 Thread Reuben D. Budiardja
On Friday 02 August 2002 10:41 am, lallous wrote: I mean this: i have this tree: ./libs/*.php ./user/file1.php now i'm in ./user/ directory i run file1.php it includes ../libs/lib1.php which in turn will include helper.php (./users/helper.php) -- will fail! how can i programmatically

Re: [PHP] include()

2002-08-02 Thread Chris Knipe
If you run your own server, you can set it up so that each webmaster is locked into a private environment, but it's messy. According to me, you would need a separate copy of apache for each site, each running under a different user, and they would need to run on separate ports, which is a

Re: [PHP] include()

2002-08-01 Thread Lord Loh.
Other users on the same server *shouldn't* be able to include() in this way How? Would their $_SERVER['HTTP_HOST'] not be the same? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] include()

2002-08-01 Thread Simon Ritchie
I suppose include() can be used to include files from remote systems(not on WINDOWS). Only if the sysadmin running your web server allows it, which they should not. A webmaster on the same server can always use a path like /home/htdocs/.../config.php and include my config .php which

<    1   2   3   4   5   6   7   >