RE: [PHP] Include Problems

2003-07-24 Thread Jay Blanchard
[snip] <-incHeader.php--> [Site Name] home <-incHeader.php--> [/snip] home"); } ?> HTH! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Include Problems

2003-07-24 Thread Eric Fleming
Here is a snippet from the header file. You can see that I am just trying to determine what the value of the subnav variable is set to in order to determine which navigational link is bold. There are other places the variable is used, but you can get an idea based on what is below. Thanks for an

Re: [PHP] Include Problems

2003-07-24 Thread Eric Fleming
Yeah, that is a problem, but I can't even print out the value of the subnav variable. It prints nothing when I try to print the variable. "Jason Giangrande" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Eric, If you want to check to see if $subnav is equal to "home" you want > to

Re: [PHP] Include Problems

2003-07-24 Thread Jason Giangrande
Eric, If you want to check to see if $subnav is equal to "home" you want to use == and not =. Perhaps this is your problem. Jason On Thu, 2003-07-24 at 15:35, Eric Fleming wrote: > Here is a snippet from the header file. You can see that I am just trying > to determine what the value of the sub

Re: [PHP] Include Problems

2003-07-24 Thread Eric Fleming
Here is a snippet from the header file. You can see that I am just trying to determine what the value of the subnav variable is set to in order to determine which navigational link is bold. There are other places the variable is used, but you can get an idea based on what is below. Thanks for an

Re: [PHP] Include Problems

2003-07-24 Thread Jason Giangrande
Is the code you are trying to call $subnav from inside a function? If so you will need to tell the function that by using the global keyword (i.e. global $subnav;). Other than that the code you've shown looks right to me. Jason On Thu, 2003-07-24 at 13:55, Eric Fleming wrote: > I am having some

RE: [PHP] Include Problems

2003-07-24 Thread Jennifer Goodie
Without seeing what you have in your includes, it will be hard to determine where your scope is messed up. > $subnav = "home"; > include("incHeader.php"); > ?> > > > > The content would go here. > > > > > > Now, when I try to reference the subnav variable in the inHeader.php or > incFooter.p

RE: [PHP] Include Problems

2003-07-24 Thread Jay Blanchard
[snip] The content would go here. Now, when I try to reference the subnav variable in the inHeader.php or incFooter.php files, it comes up blank. I am basically trying to adjust the navigation on each page depending on the page I am on. I am just learning PHP, have programmed in ColdFusi

Re: [PHP] Include Problems

2003-07-24 Thread Jeff Harris
On Jul 24, 2003, "Eric Fleming" claimed that: |I am having some problems using variables in included files. Can someone |please look at my code below and see how I might accomplish what I am trying |to do? [snip] |Now, when I try to reference the subnav variable in the inHeader.php or |incFooter.

[PHP] Include Problems

2003-07-24 Thread Eric Fleming
I am having some problems using variables in included files. Can someone please look at my code below and see how I might accomplish what I am trying to do? The content would go here. Now, when I try to reference the subnav variable in the inHeader.php or incFooter.php files, it comes up

Re: [PHP] include statement giving me hives! - SOLVED

2003-07-17 Thread DougD
rtrim () solved the issue. There was a newline sitting at the end of the variable and messing it up! Thanks for all your help! "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > DougD wrote: > > I am new to all this, but here is the basic code: > > > > $link_titles =

Re: [PHP] include statement giving me hives! - help

2003-07-17 Thread Marek Kilimajer
DougD wrote: I am new to all this, but here is the basic code: $link_titles = file('links/master.txt'); $links_include = $link_titles[$point]; // path to directory include $links_include; If I echo the value of $links_include just prior to the include() function it contains what I would expect

[PHP] include statement giving me hives! - help

2003-07-16 Thread DougD
I am new to all this, but here is the basic code: $link_titles = file('links/master.txt'); $links_include = $link_titles[$point]; // path to directory include $links_include; If I echo the value of $links_include just prior to the include() function it contains what I would expect it to conta

RE: [PHP] include/require inside of function

2003-07-09 Thread Ow Mun Heng
[LSS] [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 6:20 PM To: Ow Mun Heng; Ford, Mike [LSS] Cc: [EMAIL PROTECTED] Subject: RE: [PHP] include/require inside of function > -Original Message- > From: Ow Mun Heng [mailto:[EMAIL PROTECTED] > Sent: 09 July 2003 03:44 >

RE: [PHP] include/require inside of function

2003-07-09 Thread Ford, Mike [LSS]
> -Original Message- > From: Ow Mun Heng [mailto:[EMAIL PROTECTED] > Sent: 09 July 2003 03:44 > > I finally got it. Thanks. All I needed to do was just > define global > $page_title inside the function to denote that I wanted to use that > variable. > > One other quick question, in

RE: [PHP] include/require inside of function

2003-07-08 Thread Ow Mun Heng
} } --- --index.php-- Cheers, Mun Heng, Ow H/M Engineering Western Digital M'sia DID : 03-7870 5168 -Original Message- From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 11:34 PM To: Ow Mun Heng Cc: [EMAIL PROTECTED] Subject: RE: [PHP] in

RE: [PHP] include/require inside of function

2003-07-08 Thread Ford, Mike [LSS]
> -Original Message- > From: Ow Mun Heng [mailto:[EMAIL PROTECTED] > Sent: 08 July 2003 15:53 > > Here's the thing.. I declared $page_title = "My Page Title" in a > file called config.php which is included in the index.php > page. when I tried > to -> echo $page_title <- Nothing com

RE: [PHP] include/require inside of function

2003-07-08 Thread Ow Mun Heng
n Heng Cc: [EMAIL PROTECTED] Subject: RE: [PHP] include/require inside of function > -Original Message- > From: Ow Mun Heng [mailto:[EMAIL PROTECTED] > Sent: 07 July 2003 04:34 > > Here's My question, a variable is not actually global is not > actually global

RE: [PHP] include/require inside of function

2003-07-08 Thread Ford, Mike [LSS]
> -Original Message- > From: Ow Mun Heng [mailto:[EMAIL PROTECTED] > Sent: 07 July 2003 04:34 > > Here's My question, a variable is not actually global is not > actually global until I make it global through "global > $make_this_global" > and then I can assess it using $GLOBAL[$make

Re: [PHP] include like function

2003-07-08 Thread Ian Mantripp
on Tue, Jul 8, 2003, David Otton wrote: >>> Hello, i need a function that gets a internal file say news.php, and >>follows >>> the urls from its copied location, >>> >>> say if i am in >>> /pages/ >>> and i need a file from >>> /pages/php/wow >>> >>> i put >>> include('php/wow/news.php') >>> But t

Re: [PHP] include like function

2003-07-08 Thread David Otton
On Tue, 8 Jul 2003 09:35:10 +0100, you wrote: >> Hello, i need a function that gets a internal file say news.php, and >follows >> the urls from its copied location, >> >> say if i am in >> /pages/ >> and i need a file from >> /pages/php/wow >> >> i put >> include('php/wow/news.php') >> But the new

[PHP] include like function

2003-07-08 Thread sgeorge9q
> Hello, i need a function that gets a internal file say news.php, and follows > the urls from its copied location, > > say if i am in > /pages/ > and i need a file from > /pages/php/wow > > i put > include('php/wow/news.php') > But the news.php file needs a file in the /php/wow directory called >

RE: [PHP] include/require inside of function

2003-07-06 Thread Ow Mun Heng
Ow H/M Engineering Western Digital M'sia DID : 03-7870 5168 -Original Message- From: Greg Beaver [mailto:[EMAIL PROTECTED] Sent: Saturday, July 05, 2003 12:39 AM To: Rasmus Lerdorf Cc: Aric Caley; [EMAIL PROTECTED] Subject: Re: [PHP] include/require inside of function Hi, If the

Re: [PHP] include/require inside of function

2003-07-04 Thread Greg Beaver
Hi, If the file you are including is of your own authorage (I know that isn't a word, but whatever :), just refer to global variables always as an index of the $GLOBALS array. This is good practice anyways for any file that might be included by another user, for exactly this issue. I have a f

Re: [PHP] include/require inside of function

2003-07-04 Thread Tom Rogers
Hi, Friday, July 4, 2003, 5:11:18 PM, you wrote: AC> Is there anyway to include a file inside of a function and have the included AC> stuff be global? For instance if I defined a class or a function in that AC> include file, I want to be able to use that class outside of the function. AC> On the

Re: [PHP] include/require inside of function

2003-07-04 Thread Rasmus Lerdorf
On Fri, 4 Jul 2003, Aric Caley wrote: > Is there anyway to include a file inside of a function and have the included > stuff be global? For instance if I defined a class or a function in that > include file, I want to be able to use that class outside of the function. > > On the documentation for

[PHP] include/require inside of function

2003-07-04 Thread Aric Caley
Is there anyway to include a file inside of a function and have the included stuff be global? For instance if I defined a class or a function in that include file, I want to be able to use that class outside of the function. On the documentation for include() a poster commented that it did indeed

Re: [PHP] include question

2003-06-28 Thread John Luxford
Hi Blake, If you're using Apache, try this: http://ca3.php.net/virtual Cheers, Lux On Friday, June 27, 2003, at 01:05 PM, Blake Schroeder wrote: Hey all I used to include a perl script via Sever Side Include how could I do this in php? example: -- Blake Schroeder [EMAIL PROTECTED] -- PH

Re: [PHP] include question

2003-06-27 Thread Leif K-Brooks
Blake Schroeder wrote: Hey all I used to include a perl script via Sever Side Include how could I do this in php? example: You can't use SSI in PHP. PHP is not SSI. You can do something similar though, www.php.net/virtual. -- The above message is encrypted with double rot13 encoding. Any

RE: [PHP] include question

2003-06-27 Thread Jay Blanchard
[snip] I used to include a perl script via Sever Side Include how could I do this in php? example: [/snip] exec("/cgi-bin/something.pl?data=something"); HTH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] include question

2003-06-27 Thread Blake Schroeder
Hey all I used to include a perl script via Sever Side Include how could I do this in php? example: -- Blake Schroeder [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] changing PHP include location without .htaccess

2003-06-22 Thread Jason Wong
On Monday 23 June 2003 05:10, Tim Thorburn wrote: > I have a site running on a shared server (and as such, I have no access to > the php.ini file) that I'd like to be able to change the default include > path. I've done this before using the .htaccess file and the following > command: > > php_val

[PHP] changing PHP include location without .htaccess

2003-06-22 Thread Tim Thorburn
Hi, I have a site running on a shared server (and as such, I have no access to the php.ini file) that I'd like to be able to change the default include path. I've done this before using the .htaccess file and the following command: php_value include_path ".:/path/to/web/" However, on this pa

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: http://www.

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 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, http://www.walkereffects.com/test/include

Re: [PHP] Include Bug?

2003-06-06 Thread Rasmus Lerdorf
Uh, http://www.walkereffects.com/test/include.php is not a "full path name", that is a URL. That will make an HTTP request to your web server for /test/include.php which will of course get parsed by PHP and you will only get the parsed output which means you won't see any variables or any PHP tags

[PHP] Include Bug?

2003-06-06 Thread Steven Walker
Hello, I have found troubling behavior using include() that looks like a bug. When I specify an include file by a full path name versus a relative path, PHP acts as though it has included the file, but variable and constant definitions in the include file are not coming through. My server is r

RE: [PHP] Include Question

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

Re: [PHP] Include Question

2003-03-27 Thread Beauford.2002
;[EMAIL PROTECTED]> Sent: Thursday, March 27, 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) {

[PHP] Include Question

2003-03-27 Thread Beauford.2002
Hi, First, I fixed my other problem of the stack overflow by moving the files back to the root directory (although I would rather have them in a login directory). Anyway, I have a question regarding the include function. I have a login script in a file called login.php - in this file it includes c

[PHP] Include Path Troubles... I figured it out!

2003-03-27 Thread Mike
Hi all, If you're having trouble with PHP includes and directories, are on a shared server, etc. this function is totally cool: ini_set("include_path",".:/your/dir/to/whatever:/another/dir/to/whatever"); make sure you put the '.:' at the begginning and seperate with a ':'. I'm using it and it wor

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

[PHP] Include() in included file

2003-03-16 Thread Hubert Kowalski
Hello all! In index.php I include a file template.php using Works fine. In template.php I'm using include function too Works fine on all machines I installed it till now: Windows (NT, 98), Linux (some of them). But I installed it on FreeBSD and... surprise. When I call index.php, all I get i

[PHP] include dosn't after Provider-Change - I have it!

2003-03-13 Thread Oliver Witt
nxs! Olly -Ursprüngliche Nachricht- Von: Oliver Witt [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 13. März 2003 10:03 An: [EMAIL PROTECTED] Betreff: [PHP] include dosn't after Provider-Change Hallo, after a Provider-Change my counter-script dosn't work again. My entry is: in an html-d

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: in an html-document. Is there an Error inside? My server

[PHP] include dosn't after Provider-Change

2003-03-13 Thread Oliver Witt
Hallo, after a Provider-Change my counter-script dosn't work again. My entry is: in an html-document. Is there an Error inside? My server show no error-messages... Thanx for Help. Olly -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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 . 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 of keys

[PHP] include or function

2003-03-06 Thread John Taylor-Johnston
I have an *.inc with html, a rather long list of . I want to clean this up some. I'm going to declare $FieldName and $ToBeSelected before I call include("options.inc"). I also want to select one of the in advance. The problem is ... this is beginning to look like a function, which I will decla

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-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. >$db_host = "localhost"; >$db_port = "3306"; >$db_name = "test

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 pu

RE: [PHP] Include files

2003-02-25 Thread Bryan Lipscy
:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 4:35 PM To: [EMAIL PROTECTED] Subject: [PHP] Include files How do I include external library files in PHP??? I would like to put the lines that are repeated in each php files, in a separate file. e.g. Kenneth -- PHP General Mailing List (http

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. $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 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. > $db_host = "localhost"; > $db_port = "3306"; > $db_name = "test"; > ... > ?> Just throw caution to the wind and try the include() function I'

[PHP] Include files

2003-02-25 Thread Kenneth Suralta
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. $db_host = "localhost"; $db_port = "3306"; $db_name = "test"; ... ?> Kenneth -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

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: http:/

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 Sof

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

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 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.ush

[PHP] include

2003-02-23 Thread John Taylor-Johnston
Hi, I have an index.html that I use on different URLs. Because of that, I want to create a causal reality. I want to if ?? = http://foo.ccl.flsh.usherb.ca/ include('./note.html'); if the URL is http://foo.ccl.flsh.usherb.ca/ but not if the URL is http://foo.compcanlit.ca/ What variable can

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: > include(dirname(

[PHP] Include() problems

2003-02-13 Thread Leo Spalteholz
I just ran into a somewhat strange problem with an include failing. I have the following in my script: include(dirname(__FILE__)."/LNScreens/LNScrMain.php"); include(dirname(__FILE__)."/LNDataBase/LNDataBase.php"); The first file is included just fine, but the LNDataBase file fails (Failed openin

[PHP] Include directoive on PHP.

2003-02-06 Thread Harring Figueiredo
I would like to include some of the files ( tabel.php, etc ) from PEAR on my scripts - Do I have to hardcode the installation path ? or is there a directive that tells the preprocessor to look on the right place (Like in c)? Thanks in advance. HArring ___

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

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] Include today's date in a SQL statement?

2003-02-05 Thread Brian Dunning
What would the SQL be to find a record where: start_date < today <= end_date Thanks, - Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

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: > 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 seriou

[PHP] include

2003-02-04 Thread Bob Lockie
I don't appear to be able to use this variable in an include directive because the variable is empty: include "$_SERVER['DOCUMENT_ROOT'] Do I have the syntax incorrect? -- Sent from Mozilla and GNU/Linux. Powered by an AMD processor. -- PHP General Mai

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: use: >Is something like that possible? ??? forget this... this will only work on some browsers and as long as you keep the files exactly there. >Otherwise at the very

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

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: use: Is something like that possible? Otherwise at the very least you should use: HTH -Brad Ryan wrote: > Hello all, > > I'm have a PHP script that works in a folder.. for the sake of clarity we'll > call it c:

[PHP] include question

2003-01-15 Thread Ryan
Hello all, I'm have a PHP script that works in a folder.. for the sake of clarity we'll call it c:\project In c:\project\htmls there are several HTML documents which refer to images in the project\htmls directory with tags like In my PHP script in c:\project I include "htmls/file.html" and the

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

[PHP] include directory?

2003-01-06 Thread Rad Craig
Where should this point to? Mine points to c:\php4\pear and I dont' have a pear directory under \php4. Rad Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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 ne

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 v

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

[PHP] include/require vs performance

2003-01-03 Thread Radek Zajkowski
i am designing a small app that obviuosly works best when I have a lot of global files with functions, which cut down on editing. I will likely have a main page that will contain modules and also load all of the required includes like config etc. in total some 10 files will be reqested. Is the

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 tags). I don't want them mucking

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 - - > include("/mod

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

2002-12-28 Thread Stephen of Blank Canvas
Hi Everyone, I have one file with several sections of code which I have so far accessed using a good old fashioned - - if ($HTTP_GET_VARS['action'] == "Update") - - however I now want to include this code within some other web pages, I thought I may be able to use the following code - - include(

Re: [PHP] include "problem"

2002-12-26 Thread Rasmus Lerdorf
Use a here-doc: echo <<[$data] $titulo ($user) $intro $texto (comentarios=$contador) 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 building. As it is, everytime i want to chan

[PHP] include "problem"

2002-12-26 Thread Pag
Hi, i am trying to make my work a little easier when editing the appearance of a news site i am building. As it is, everytime i want to change the looks of how each news appears, i have to edit inside the print(' '); which is annoying, because of the backslash with " problem thing(when i ne

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 d

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 in a

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 John Nichel
nclude("editable/my_header.php"); -Original 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 wro

RE: [PHP] Include Problems

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

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' for

Re: [PHP] Include Problems

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

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 Pr

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:

[PHP] Include Problems

2002-12-26 Thread Mike Bowers
Title: Message I have a file named header.php stored in the includes folder: Inside includes is anohter folder called editable. When I open my page for the first time (before it is cached) or after I edit my header file I get these errors: Warning: Failed opening 'editable/meta.php' for inc

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 y

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:

<    1   2   3   4   5   6   7   8   9   10   >