[PHP] include file with parameters

2002-11-12 Thread Fikret CAN
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. ?php include(tmplt1.php?var1=val1var2=val2

Re: [PHP] include file with parameters

2002-11-12 Thread Denis N. Peplin
. ?php include(tmplt1.php?var1=val1var2=val2); ? Try this way: ?php $var1=val1; $var2=val2; include(tmplt1.php); ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] include file with parameters

2002-11-12 Thread 1LT John W. Holmes
it work. ?php include(tmplt1.php?var1=val1var2=val2); ? You don't need to pass vars to an include file. Whatever variables are available to the main script at the time of the include() are available to the included file. It's the same as copying that code into your main file

[PHP] Include: Warning: Failed opening

2002-10-30 Thread Tim Kucejko
I am trying to use include statements, but am having no luck. I set the include path in php.ini to include directories of the files, I tried CHMOD 777 on both files, and I restarted the server. I can't get any include files working. I got this message: Warning: Failed opening '/common.php' for

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

[PHP] include http

2002-10-15 Thread Dan Healy
Hi, I wrote a program to authenticate users. I would like to place a few lines at the top a webpage that would call this program. Some web pages will be on the same server as the authentication program, others will not. Can I use include/require of do I need to use fopen? The program

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] Include

2002-10-03 Thread Matias Silva
This might sound like a dumb question but I just need verification so that I can convince myself that I'm going insane! I have this error in which I include 3 files (common_html.inc, common_db.inc, common_functions.inc) well I have a clean() function in the common_functions.inc file. But it

[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] PHP Include Help

2002-10-01 Thread Jay Blanchard
[snip] 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

[PHP] PHP Include Help

2002-09-30 Thread Rick Beckman
I have a series of text files that are set up with each line being a different field. Line 0 is song title, 1 is artist, 2 is album, and so forth. I know how to use PHP to include those files in an HTML template so that I don't have to make a separate page for each song, however, I do have two

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 =

[PHP] Include...

2002-09-28 Thread Chuck \PUP\ Payne
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 (/local/htdocs/movies/style.inc); So

[PHP] Include...

2002-09-28 Thread Chuck PUP Payne
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 (/local/htdocs/movies/style.inc); So

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

[PHP] Include Part 2

2002-09-28 Thread Chuck PUP Payne
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... $rows; Under my db_info.inc I want to store this so that I can add delete from it. $row = $title = myrow[title]; $format = myrow[format]; $category = myrow[category];

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

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 =

[PHP] include interpreted php file

2002-08-28 Thread you
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? thx for your help! You -- PHP

[PHP] include() from another sub-domain

2002-08-19 Thread Greg Macek
Hello, I've searched the list and the manual and am still a bit confused. Here's what I'd like to do. We have a bunch of internal sites that all use the same username/password. One is already setup with a function to authenticate this to a database. However, each login page is coming from a

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
] Subject: [PHP] include() from another sub-domain Hello, I've searched the list and the manual and am still a bit confused. Here's what I'd like to do. We have a bunch of internal sites that all use the same username/password. One is already setup with a function to authenticate this to a database

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

2002-08-15 Thread Harry.de
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; ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

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

[PHP] Include/require and the HTML Code

2002-08-14 Thread Mike Eales
Hi, Can anybody tell me why I get a Parse error: parse error, unexpected '}' in /usr/local/apache/htdocs/logbook/Functions.inc on line 17 for the following code: Appreciate any help. Using PHP 4.2.2 and Apache 1.3.26 on Redhat 7.3 x86 (The stuff is not part of the code.

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

2002-08-14 Thread Sascha Braun
: Wednesday, August 14, 2002 10:44 AM Subject: [PHP] Include/require and the HTML Code Hi, Can anybody tell me why I get a Parse error: parse error, unexpected '}' in /usr/local/apache/htdocs/logbook/Functions.inc on line 17 for the following code: Appreciate any help. Using PHP 4.2.2

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

[PHP] include require directive

2002-08-12 Thread Huy
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 that off?? -- PHP General Mailing List

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

[PHP] Include php code as variable

2002-08-03 Thread Alawi
How can I Include my php code code as variable and excute it ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

[PHP] Include problems

2002-08-03 Thread Scott
I have PHP4 on both a windows IIS server and a windows apache server. The include function only works in the same directory of the file I wish to access. ex. www.include.com/default.php all files in same directory (i guess the root)? ?php include 'test.inc' ? everything works fine. Here's

RE: [PHP] Include problems

2002-08-03 Thread Daniel Kushner
03, 2002 3:11 PM To: [EMAIL PROTECTED] Subject: [PHP] Include problems I have PHP4 on both a windows IIS server and a windows apache server. The include function only works in the same directory of the file I wish to access. ex. www.include.com/default.php all files in same directory (i

Re: [PHP] Include problems

2002-08-03 Thread Scott
Kushner [EMAIL PROTECTED] Need hosting? http://www.TheHostingCompany.us/ -Original Message- From: Scott [mailto:[EMAIL PROTECTED]] Sent: Saturday, August 03, 2002 3:11 PM To: [EMAIL PROTECTED] Subject: [PHP] Include problems I have PHP4 on both a windows IIS server and a window

Re: [PHP] Include problems

2002-08-03 Thread ::: Flavio Bastos Amiel::::::
ostingCompany.us/ -Original Message- From: Scott [mailto:[EMAIL PROTECTED]] Sent: Saturday, August 03, 2002 3:11 PM To: [EMAIL PROTECTED] Subject: [PHP] Include problems I have PHP4 on both a windows IIS server and a windows apache server. The include fun

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]

[PHP] include hassle

2002-08-02 Thread lallous
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? p.s: currently, i'm chdir()ing to the ../libs path, then i return to current dir... my

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

Re: [PHP] include hassle

2002-08-02 Thread lallous
PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... 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 he

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

Re: [PHP] include()

2002-08-01 Thread Andrey Hristov
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

RE: [PHP] include()

2002-08-01 Thread Simon Ritchie
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? You did not specify your circumstances in your original posting, so there is some confusion. One web server can handle many domains. An ISP offering shared

Re: [PHP] include()

2002-08-01 Thread Lee
CPU time) required to run the muliple instances. Cheers Lee - Original Message - From: Simon Ritchie [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 01, 2002 11:30 AM Subject: RE: [PHP] include() I suppose include() can be used to include files from remote systems

[PHP] include()

2002-07-31 Thread Lord Loh.
I suppose include() can be used to include files from remote systems(not on WINDOWS). So, How can I protect my script from unauthorised inclusions ? A webmaster on the same server can always use a path like /home/htdocs/.../config.php and include my config .php which contains my database

Re: [PHP] include()

2002-07-31 Thread Jason Wong
On Thursday 01 August 2002 15:28, Lord Loh. wrote: I suppose include() can be used to include files from remote systems(not on WINDOWS). So, How can I protect my script from unauthorised inclusions ? A webmaster on the same server can always use a path like /home/htdocs/.../config.php and

RE: [PHP] include()

2002-07-31 Thread Martin Towell
, August 01, 2002 3:38 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] include() On Thursday 01 August 2002 15:28, Lord Loh. wrote: I suppose include() can be used to include files from remote systems(not on WINDOWS). So, How can I protect my script from unauthorised inclusions ? A webmaster

Re: [PHP] include()

2002-07-31 Thread Justin French
All included scripts inherit the variables of the parent script, so you could test for numerous server variables like the name of the parent script (PHP_SELF), or the domain name being used, etc etc. If it's not what you expected, spit out an error. something like ? if($_SERVER['PHP_SELF'] ==

[PHP] include() limits

2002-07-25 Thread lallous
Hello, I wonder how much I can include files? does it matter if the size sum of the source code included are above 1MB ? thanks, elias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] include() limits

2002-07-25 Thread Jason Wong
On Thursday 25 July 2002 18:41, lallous wrote: Hello, I wonder how much I can include files? does it matter if the size sum of the source code included are above 1MB ? Instead of testing the mailing list, why not try the above for yourself? -- Jason Wong - Gremlins Associates -

RE: [PHP] include() and div align=top

2002-07-22 Thread Jay Blanchard
[snip] When i use div align=top on an include inside of a table cell it dosen't work. Any reason? Almost certainly there'll be a reason. Browse the page in question in your web browser and then view the source - see if you've ended up with your page source as you'd intended. Most of these

[PHP] include files and global variables

2002-07-21 Thread Jon Wyatt
I have some pages which include a number of files. In one of the include files I have a function which I wish to be executed everytime the include file is loaded. Therefore I place the function name in the include file at the top. However, this function uses a session variable to decide

Re: [PHP] include files and global variables

2002-07-21 Thread Michael Hall
I think that you need to call the checkMaster() function AFTER you declare it, not before. Try moving checkMaster(); beneath the function definition. Mick On Sun, 21 Jul 2002, Jon Wyatt wrote: I have some pages which include a number of files. In one of the include files I have a

[PHP] include files or fopen

2002-06-30 Thread Lee
Hi, I am trying to write a program that is very modular in nature one of the features I need the user to be able to do is install/uninstall or enable/disable the module though the interface. I have though of 2 ways this could be done, either when the module is installed it adds additional

RE: [PHP] include files or fopen

2002-06-30 Thread David Freeman
I am trying to write a program that is very modular in nature one of the features I need the user to be able to do is install/uninstall or enable/disable the module though the interface. I have, in the past, stored such information in a database. In projects that have need of such

[PHP] INCLUDE vs Functions

2002-06-27 Thread Jeff Gannaway
I'm re-writing a medium-sized commercial site in PHP. There will be elements that will on nearly every page. I was considering writing each element as a program and then using INCLUDE statements wherever I wanted that element displayed. Now I'm wondering if grouping all those elements into

RE: [PHP] INCLUDE vs Functions

2002-06-27 Thread Fifield, Mike
of the functions. -Original Message- From: Jeff Gannaway [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 10:41 AM To: [EMAIL PROTECTED] Subject: [PHP] INCLUDE vs Functions I'm re-writing a medium-sized commercial site in PHP. There will be elements that will on nearly every

RE: [PHP] Include/require

2002-06-20 Thread Michael Sweeney
Be careful not to get confused between a chrooted environment like the web server or ftp server and php include paths. PHP handles the include and require parameters either as absolute (eg /inc/filename is an absolute path from / - it is not relative to the web docroot.) or relative

[PHP] include() question...

2002-06-20 Thread Phil Schwarzmann
Okay, let's say I want to send a user to a certain webpage... usually I would use... include(website.php); but, if i want to send a user to a website along with a variable like... $temp = website.php?var=.$var; include($temp); ...this doesn't work. any suggestions?? THANKS!!

Re: [PHP] include() question...

2002-06-20 Thread Purushotham Komaravolu
use header ob_start() $temp = website.php?var=.$var; header (Location: $temp); Puru - Original Message - From: Phil Schwarzmann [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 20, 2002 4:31 PM Subject: [PHP] include() question... Okay, let's say I want to send a user

Re: [PHP] include() question...

2002-06-20 Thread Philip Olson
but, if i want to send a user to a website along with a variable like... $temp = website.php?var=.$var; include($temp); ...this doesn't work. Example: ?php $var = 'foo'; include 'somefile.php'; ? somefile.php now has access to $var. This is talked about in the manual too:

RE: [PHP] include() question...

2002-06-20 Thread David Freeman
Okay, let's say I want to send a user to a certain webpage... usually I would use... include(website.php); but, if i want to send a user to a website along with a variable like... $temp = website.php?var=.$var; include($temp); ...this doesn't work. If you are

Re: [PHP] include statement errors -- something missing

2002-06-18 Thread Doug DeVries
I've tried a hundred different things -- YOURS WORKED! Thank you very much! -Doug - Original Message - From: Niklas Lampén [EMAIL PROTECTED] To: Php-General [EMAIL PROTECTED] Sent: Monday, June 17, 2002 10:45 PM Subject: RE: [PHP] include statement errors -- something missing So far

[PHP] Include question

2002-06-11 Thread Tom Ray
I'm trying to use the include function in some PHP scripts, but when I do include 'config.inc'; or include 'config.php; It returns all the information in the file when I look at my test php file (which calls the include) Anyone know why this is? -- PHP General Mailing List

RE: [PHP] Include question

2002-06-11 Thread John Holmes
Umm...that's what it's supposed to do...it's including it... ---John Holmes... -Original Message- From: Tom Ray [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 9:29 PM To: [EMAIL PROTECTED] Subject: [PHP] Include question I'm trying to use the include function in some

Re: [PHP] Include question

2002-06-11 Thread Tom Ray
including it... ---John Holmes... -Original Message- From: Tom Ray [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 9:29 PM To: [EMAIL PROTECTED] Subject: [PHP] Include question I'm trying to use the include function in some PHP scripts, but when I do include 'config.inc

Re: [PHP] Include question

2002-06-11 Thread Justin French
PROTECTED]] Sent: Tuesday, June 11, 2002 9:29 PM To: [EMAIL PROTECTED] Subject: [PHP] Include question I'm trying to use the include function in some PHP scripts, but when I do include 'config.inc'; or include 'config.php; It returns all the information in the file when I look at my

RE: [PHP] Include question

2002-06-11 Thread Peter
: Wednesday, 12 June 2002 11:36 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Include question Yes, but according to http://www.php.net/manual/en/function.include.php I should be able to delcare the include and then pull the information out normally. So by what the manual says I can do

Re: [PHP] Include question

2002-06-11 Thread Tom Ray
to do...it's including it... ---John Holmes... -Original Message- From: Tom Ray [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 9:29 PM To: [EMAIL PROTECTED] Subject: [PHP] Include question I'm trying to use the include function in some PHP scripts, but when I do

RE: [PHP] Include question

2002-06-11 Thread David Freeman
somefile.php ? $apple = 'green'; $pear = 'yellow'; ? callfile.php ? include 'somefile.php'; echo Apples are $apple and Pears are $pear; \\ which would return the line with green and yellow in the correct spots. ? But when I just do ? include

[PHP] Include + $Variables Help

2002-06-08 Thread Steven
', right? # Is that enough? ?php include($auth.txt); ? # I then assume this would result in it trying to include 'name.txt', # but instead there is always a nasty error about the .txt part. # I should probably ask, is passing variables inside an include allowed? If I'm wrong, or I'm just missing something

Re: [PHP] Include + $Variables Help

2002-06-08 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Steven declared # Is that enough? ?php include($auth.txt); ? # I then assume this would result in it trying to include 'name.txt', # but instead there is always a nasty error about the .txt part. # I should probably ask

Re: [PHP] Include + $Variables Help

2002-06-08 Thread Olexandr Vynnychenko
Link/a S ## article.php S # The link above would then pass the $auth variable as 'name', right? S # Is that enough? S ?php include($auth.txt); ? S # I then assume this would result in it trying to include 'name.txt', S # but instead there is always a nasty error about the .txt part. S # I should

[PHP] include/require porblem

2002-06-04 Thread Mitja Pagon
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)) {

<    2   3   4   5   6   7   8   9   10   >