Re: [PHP] Include(remote HTML file) doesn't work since upgrade

2003-07-24 Thread Curt Zirzow
* Thus wrote Police Trainee ([EMAIL PROTECTED]): When the server upgraded to php 4.3.1 from 4.2.x, I was no longer able to include remote html files. allow_url_fopen is still enabled and no other settings have changed. Running Apache 1.3.27 on Linux. This is one line that I use to call

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

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 =

[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

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 my

RE: [PHP] include/require inside of function

2003-07-09 Thread Ow Mun Heng
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 I finally got it. Thanks. All I

[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 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 news.php file needs a

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 the news.php file needs a file 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: 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

RE: [PHP] include/require inside of function

2003-07-08 Thread Ow Mun Heng
: [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 until I make it global through global $make_this_global and then I can

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 comes out.

RE: [PHP] include/require inside of function

2003-07-08 Thread Ow Mun Heng
(); ? 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] include/require inside

RE: [PHP] include/require inside of function

2003-07-06 Thread Ow Mun Heng
, 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 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

[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

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

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

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: !--#include virtual=

[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: !--#include virtual= /cgi-bin/something.pl?data=something-- -- Blake Schroeder [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

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: !--#include virtual= /cgi-bin/something.pl?data=something-- [/snip] exec(/cgi-bin/something.pl?data=something); HTH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

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: !--#include virtual= /cgi-bin/something.pl?data=something-- You can't use SSI in PHP. PHP is not SSI. You can do something similar though, www.php.net/virtual. -- The

[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

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_value

[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

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

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:

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

[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

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

[PHP] Include() in included file

2003-03-16 Thread Hubert Kowalski
Hello all! In index.php I include a file template.php using ?php // this is index.php file include('template.php'); ? Works fine. In template.php I'm using include function too ?php // this is template.php file echo 'before include'; include('header.php'); echo 'after include'; ? Works fine

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

[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: ?php include (counter/rcounter.php) ; ? 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

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 html

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

2003-03-13 Thread Oliver Witt
-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: ?php include (counter/rcounter.php

[PHP] include or function

2003-03-06 Thread John Taylor-Johnston
I have an *.inc with html, a rather long list of options. 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 options in advance. The problem is ... this is beginning to look like a function, which

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

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

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
:[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. ?php $db_host = localhost; $db_port = 3306

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:

[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

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:

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

[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

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

[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

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

[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 img src=file.gif In my PHP script in c:\project I include

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

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

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

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

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

[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

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

[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

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

[PHP] include question

2002-12-12 Thread RClark
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 'echo $job;' statement works just fine, but the outbout for the include statement

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

[PHP] Include?

2002-12-12 Thread Shawn McKenzie
It seems that if I create a php file in my dir at my hosting provider and do include('/etc/passwd'); then wow, I see the contents of etc/passwd! Is this expected behavior??? I am looking at creating a script that takes a var in the url and includes the requested file. The purpose would be for

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

[PHP] PHP include dir

2002-11-13 Thread Mike D
How do I find the PHP include dir? I looked in the .ini file but it appears that the include dir directive is commented out, here it is: ; UNIX: /path1:/path2 ;include_path = .:/php/includes Do I need to uncomment this? Thanks Mike Mike Dunlop Webmaster - AWN, Inc. [E] [EMAIL PROTECTED] [P

Re: [PHP] PHP include dir

2002-11-13 Thread BigDog
to your include_path like so: include_path=.:/usr/local/php/config_scripts And now you can access those scripts from your php scripts in your web document directory HTH On Wed, 2002-11-13 at 19:48, Mike D wrote: How do I find the PHP include dir? I looked in the .ini file but it appears

Re: [PHP] PHP include dir

2002-11-13 Thread Mike D
HTH On Wed, 2002-11-13 at 19:48, Mike D wrote: How do I find the PHP include dir? I looked in the .ini file but it appears that the include dir directive is commented out, here it is: ; UNIX: /path1:/path2 ;include_path = .:/php/includes Do I need to uncomment this? Thanks Mike Mike Dunlop

Re: [PHP] PHP include dir

2002-11-13 Thread Wayne McCloud
like /usr/local/php/config_scripts and add that directory to your include_path like so: include_path=.:/usr/local/php/config_scripts And now you can access those scripts from your php scripts in your web document directory HTH On Wed, 2002-11-13 at 19:48, Mike D wrote: How do I find the PHP

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