Re: [PHP-WIN] Include Question!

2008-05-09 Thread Stut
On 9 May 2008, at 18:56, Bradley Stahl wrote: Your code would essentially be "inserted" in the place where your include statement is called. Let's say that your in 'page.php' you had the following code: echo "I AM IN PAGE.PHP!"; and then in your script you have your code: if (some variable)

Re: [PHP-WIN] Include Question!

2008-05-09 Thread Bradley Stahl
Your code would essentially be "inserted" in the place where your include statement is called. Let's say that your in 'page.php' you had the following code: echo "I AM IN PAGE.PHP!"; and then in your script you have your code: if (some variable) { include('page.php'); } This would essenti

Re: [PHP-WIN] Include Question!

2008-05-09 Thread awkenney
What is it that you are trying to accomplish? Normally no if statement is needed for an include to take place unless a certain condition triggers the use of the include. Sent via BlackBerry from T-Mobile -Original Message- From: Matthew Gonzales <[EMAIL PROTECTED]> Date: Fri, 09 May 200

Re: [PHP-WIN] include and warning: headers already sent by ..

2008-02-09 Thread trystano
indows@lists.php.net Sent: Fri, 8 Feb 2008 21:17 Subject: RE: [PHP-WIN] include and warning: headers already sent by .. Also make sure that one/some of the includes aren't trying to echo/print something before it should. For ex: don't echo something before trying to output header

RE: [PHP-WIN] include and warning: headers already sent by ..

2008-02-08 Thread Bill Bolte
Also make sure that one/some of the includes aren't trying to echo/print something before it should. For ex: don't echo something before trying to output header information like redirecting to another page. Bill Bolte -Original Message- From: germana [mailto:[EMAIL PROTECTED] Sent: Frid

Re: [PHP-WIN] include and warning: headers already sent by ..

2008-02-08 Thread Piotr Pluciennik
Try to remove characters (like spaces) that can be found at the end of your php scripts... example: where ### are any characters (even invisible), after the closing tag. There should be nothing. HTH, let me know Piotr germana <[EMAIL PROTECTED]> wrote: Hi there!!! i just want to ask so

Re: [PHP-WIN] include txt in html

2006-03-14 Thread Armando
If you're loading PHP as a module under Apache and you have PHP in your include file which you want to be processed, you also need to make sure it's added to your list of file types that the engine processes PHP code in. In your httpd.conf file you'd specify something like: AddType applicat

Re: [PHP-WIN] include statement

2004-10-29 Thread Jason Barnett
Just one thing to add here: My query is: If i load the header as .HTM does it put the included file through the PHP parser. I have the includes as .PHP at present. There is nothing php in the header or footer as yet. I am looking at saving the server some cycles by doing this. Not sure exactly how

Re: [PHP-WIN] include statement

2004-10-29 Thread Paul Menard
So just so I'm clear on your files... Let's say you have a file, index.php. This file has an include statement for 'header.htm'. Your question is does it matter if the header.htm is just HTML and does not contain and PHP? No it does not matter. But the URL must be pointed to the index.php PHP

Re: [PHP-WIN] INCLUDE ASP does Not Work! for PHP - 4.3.4

2004-09-22 Thread DvDmanDT
TECTED] > > virtual is an Apache specific function, and AFAIK they haven't put ASP > > support into Apache yet. Let's hope they never do ;-) > > > > - Original Message - > > From: "Dvdmandt" <[EMAIL PROTECTED]> > > Newsgroups: php.windows

Re: [PHP-WIN] INCLUDE ASP does Not Work! for PHP - 4.3.4

2004-09-22 Thread DvDmanDT
IL PROTECTED]> > Newsgroups: php.windows > To: <[EMAIL PROTECTED]> > Sent: Saturday, September 18, 2004 9:51 PM > Subject: Re: [PHP-WIN] INCLUDE ASP does Not Work! for PHP - 4.3.4 > > > > I'd lookup virtual()... > > > > -- > > // DvDmanDT

Re: [PHP-WIN] INCLUDE ASP does Not Work! for PHP - 4.3.4

2004-09-21 Thread Mikey
revor" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "Mikey" <[EMAIL PROTECTED]> Sent: Tuesday, September 21, 2004 2:10 PM Subject: RE: [PHP-WIN] INCLUDE ASP does Not Work! for PHP - 4.3.4 I believe there's ChiliSoftASP or something that'll do ASP on A

RE: [PHP-WIN] INCLUDE ASP does Not Work! for PHP - 4.3.4

2004-09-21 Thread Gryffyn, Trevor
I believe there's ChiliSoftASP or something that'll do ASP on Apache. -TG > -Original Message- > From: Mikey [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 21, 2004 6:52 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP-WIN] INCLUDE ASP does Not Work! for PH

Re: [PHP-WIN] INCLUDE ASP does Not Work! for PHP - 4.3.4

2004-09-21 Thread Mikey
ber 18, 2004 9:51 PM Subject: Re: [PHP-WIN] INCLUDE ASP does Not Work! for PHP - 4.3.4 > I'd lookup virtual()... > > -- > // DvDmanDT > MSN: dvdmandt¤hotmail.com > Mail: dvdmandt¤telia.com > "Trevor Gryffyn" <[EMAIL PROTECTED]> skrev i meddelandet >

Re: [PHP-WIN] INCLUDE ASP does Not Work! for PHP - 4.3.4

2004-09-18 Thread DvDmanDT
I'd lookup virtual()... -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com "Trevor Gryffyn" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] The problem is that the web server looks at the file type and determines what to do with it before it sends anything to the web

Re: [PHP-WIN] INCLUDE ASP does Not Work! for PHP - 4.3.4

2004-09-18 Thread Phil Driscoll
On Friday 17 September 2004 20:36, I wrote: > include('http://wherever.example.com/poll.asp'); > ?> A safer option if your asp page does not generate any php code you wish to execute would be: http://wherever.example.com/poll.asp'); ?> -- Phil Driscoll -- PHP Windows Mailing List (http://w

Re: [PHP-WIN] INCLUDE ASP does Not Work! for PHP - 4.3.4

2004-09-17 Thread Phil Driscoll
On Thursday 16 September 2004 22:18, Raj Gopal wrote: > Hi All, > > I have included a ASP file in a PHP script as follows > > > > and it does not work! If you want poll.asp to execute and generate some output for inclusion in the php script, you could do http://wherever.example.com/poll.asp');

RE: [PHP-WIN] INCLUDE ASP does Not Work! for PHP - 4.3.4

2004-09-17 Thread Gryffyn, Trevor
The problem is that the web server looks at the file type and determines what to do with it before it sends anything to the web browser. Your .PHP file is being sent to a PHP interpreter which outputs certain things that get sent to the browser. What's going to happen in this case is that ASP cod

Re: [PHP-WIN] include() problem

2003-11-07 Thread Eric COLINET
Sorry ! It is part of the PHP sources in fact ! ".;c:\\php4\\pear" Is the default include path when none is specified in the php.ini file I've mentionned the header file of the PHP sources where it is defined in fact ;) Eric At 11:57 07/11/2003, [EMAIL PROTECTED] wrote: Sorry, I don't unders

Re: [PHP-WIN] include() problem

2003-11-07 Thread Eric COLINET
Hi ! A very simple reason: D:\LOCAL\src\php-4.3.2\main\config.w32.h(16): #define PHP_INCLUDE_PATH".;c:\\php4\\pear" Eric At 02:07 07/11/2003, you wrote: Hi all, I'm having a problem with my scripts in that I'm having the follwoing error message when I try to include a file into

Re: [PHP-WIN] Include and require

2003-10-20 Thread Luis Moreira
Browse through http://ww.php.net , search and read the documentation. If you do that and search for "include", for instance, you will find The documentation below also applies to require(). The two constructs are identical in every way except how they handle failure. include() produces a Warning wh

RE: [PHP-WIN] Include and require

2003-10-20 Thread Rinku Shivnani
Hi David, Can you explain me the same thing with some examples.. Pls. Regards, Rinku -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-WIN] Include and require

2003-10-20 Thread David Felton
if an include fails for whatever reason the script will continue executing and just issue a warning. If a require fails the script will throw an error and exit (it won't execute the remainder of the script). -Original Message- From: Rinku Shivnani [mailto:[EMAIL PROTECTED] Sent: 20 October

RE: [PHP-WIN] include, phpself and inline frames

2003-02-22 Thread Matt Hillebrand
Make the action of the form "poll.php" instead of $PHP_SELF. $PHP_SELF is the parent document. Matt |-Original Message- |From: m1nt ch3w [mailto:[EMAIL PROTECTED] |Sent: Saturday, February 22, 2003 3:27 AM |To: [EMAIL PROTECTED] |Subject: [PHP-WIN] include, phpself and inline frames | |

RE: [PHP-WIN] Include virtual?

2003-02-05 Thread Charles P. Killmer
EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 05, 2003 8:50 AM To: Charles P. Killmer; [EMAIL PROTECTED] Subject: RE: [PHP-WIN] Include virtual? I've wondered this before also but currently use; include($_SERVER["DOCUMENT_ROOT"].'/'.'template.php

RE: [PHP-WIN] Include virtual?

2003-02-05 Thread fran . thomas
I've wondered this before also but currently use; include($_SERVER["DOCUMENT_ROOT"].'/'.'template.php') Be interested if there is an easier way! .:Fran -Original Message- From: Charles P. Killmer [mailto:[EMAIL PROTECTED]] Sent: 05 February 2003 14:46 To: php-windows Subject: [PHP-WIN]

Re: [PHP-WIN] @include ...

2002-09-24 Thread Daniel Gustafsson
At 23:01 2002-09-24 +0200, Wolfgang Schneider wrote: >Hello, > >I have a question about a syntax I had not noticed until now and I >could not find an explanation for the inclusion of the character "@" >in from of function statment ... > >What's the difference between these: >(1) @include("../lang/

Re: [PHP-WIN] @include ...

2002-09-24 Thread Jim Hunter
The '@' character suppresses error messages that might occur. Jim ---Original Message--- From: Wolfgang Schneider Date: Tuesday, September 24, 2002 02:04:06 PM To: php-windows Subject: [PHP-WIN] @include ... Hello, I have a question about a syntax I had not noticed un

RE: [PHP-WIN] include() and file() on remote files

2002-08-27 Thread Ross Fleming
So far as I know, Linux etc does not have any problem with a statement such as include("http://www.yahoo.com";); However it is fairly simple to work around in Windows, I do it all the time. The following code will produce the same output: http://www.yahoo.com","r";); while(!feof($fp) && $fp) {

Re: [PHP-WIN] Include Issues Windoes 2000

2002-07-25 Thread Luis Ferro
I doubt... (i've no reason to believe that it doesn't work, but if it doesn't i would assume it to be a bug in windows filesystem->networksystem layer)... Anyway, the better way is to create a distributed file system and/or map the share as if it was a directory in one of the WS machine... Th

RE: [PHP-WIN] Include Issues Windoes 2000

2002-07-25 Thread Dash McElroy
2 things: 1. Your webserver should be running as IUSR_something which as far as I know, may have no network access, or permissions by default. There was a like topic discussed recently on this list. I don't use IIS (YAY!) so I'm not really sure. Check your permissions. Then double check them. 2.

Re: [PHP-WIN] Include ()

2002-03-14 Thread Mike Flynn
Check your PHP.INI file for settings related to automatic escaping of characters. And, uh, you say it's a forward slash like '/', but are you sure they aren't backslashes like '\'? I've never heard of forward slashes getting added. Are you positive that the text files don't have the slashes

Re: [PHP-WIN] Include()

2002-01-25 Thread Ignatius Teo
Have u tried using "soap" tee hee hee (sorry...couldn't resist!) Ignatius - Original Message - From: "Shrock, Court" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, Januar

RE: [PHP-WIN] Include()

2002-01-23 Thread Shrock, Court
: [PHP-WIN] Include() Ross: No, it's not what I mean :) Let say that you have a PHP class that I like on your site, for free or a bundle of pounds, you give me permission to use this class from my site to your site (include it on my site) without even giving me your source. Anyway, I know ther

RE: [PHP-WIN] Include()

2002-01-23 Thread alain samoun
to do that... A+ Alain -Original Message- From: Ross Fleming [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 23, 2002 10:08 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP-WIN] Include() Can I just add that this is a feature that already exists... it's called FTP!! :

RE: [PHP-WIN] Include()

2002-01-22 Thread alain samoun
other [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 22, 2002 9:24 AM To: '[EMAIL PROTECTED]' Subject: RE: [PHP-WIN] Include() If you think it over that could be a real security hazard. If I have a phpdoc that opens sqlconnections at server A and includes that doc over at server B then

RE: [PHP-WIN] Include()

2002-01-22 Thread Shrock, Court
Alain, The PHP engine can only process php code in files on your local filesystem(*). It just so happens that PHP is smart enough to realize that if a file is not entirely PHP code, the rest must be meant for output to the client (which can be ANY device, not just a human behind a browser). When

RE: [PHP-WIN] Include()

2002-01-22 Thread brother
that it isn't reply to: listadres) > -Original Message- > From: alain samoun [mailto:[EMAIL PROTECTED]] > Sent: den 22 januari 2002 03:52 > To: Shrock, Court; [EMAIL PROTECTED] > Subject: RE: [PHP-WIN] Include() > > > Humm, I do not know if I understand you.

RE: [PHP-WIN] Include()

2002-01-21 Thread John (News)
I'm not using it to include remote php files as I assumed it would still onlu be able to process the file after it was parsed by the remote system. I do however need to include remote html files which should not be affected by this problem. Hippie. At 04:38 PM 1/21/02 -0800, you wrote: >Yes,

RE: [PHP-WIN] Include()

2002-01-21 Thread alain samoun
it? A+ Alain -Original Message- From: Shrock, Court [mailto:[EMAIL PROTECTED]] Sent: Monday, January 21, 2002 4:38 PM To: [EMAIL PROTECTED] Subject: RE: [PHP-WIN] Include() Yes, it works on Linux/Apache. But the results are not what you might expect. When one normally uses the in

RE: [PHP-WIN] Include()

2002-01-21 Thread Shrock, Court
Yes, it works on Linux/Apache. But the results are not what you might expect. When one normally uses the include statement, you intend to process some php file, not the output from such a file. For example: nfo.php contains, located at http://www.myserver.com/nfo.php : --BEGIN FILE

RE: [PHP-WIN] Include()

2002-01-21 Thread alain samoun
You are right, it doesn't seem to work with windows, I don't know if it works with *nix either? But you can include your file as: include("http://whatever/yourfile.php";); A+ Alain -Original Message- From: John (News) [mailto:[EMAIL PROTECTED]] Sent: Monday, January 21, 2002 3:34 PM To:

Re: [PHP-WIN] Include files seem sqiffy

2001-11-16 Thread Mike Flynn
You should use your real e-mail as your return address so I can respond to you privately. Some messages aren't deserving of a message to the whole list. This is a recommendation to everyone on the list because it's certainly not the first time that I've wanted to give someone private advice

re: [PHP-WIN] include("remote host") under w2k problem

2001-11-01 Thread Ross Fleming
ow how did you help me. Marek. - Original Message - From: Ross Fleming <[EMAIL PROTECTED]> Newsgroups: php.windows To: <[EMAIL PROTECTED]> Sent: Thursday, November 01, 2001 8:11 PM Subject: RE: [PHP-WIN] include("remote host") under w2k problem > I would assume,

RE: [PHP-WIN] include("remote host") under w2k problem

2001-11-01 Thread Ross Fleming
I would assume, that because linux is built around networking, making a reference to http://whatever would tell linux to look on the internet for the file. window isn't built the same way, so it doesn't know to look beyond it's filing system. As to a solution, I'm not sure. I'd look into fopen

Re: [PHP-WIN] include()ing the remote file

2001-07-30 Thread Ignatius Teo
>From the manual Note: You can't use remote files in include() and require() statements on Windows. HTH Ignatius - Original Message - From: "Vasu Gokaraju" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 31, 2001 12:58 AM Subject: [PHP-WIN] include()ing the remote file

Re: [PHP-WIN] include - one more thing

2001-05-22 Thread Mike Flynn
Sorry, should have mentioned -- if you are doing it on windows, then try something like this: include(getcwd().'\\path\\to\\file\\test.php'); -Mike At 01:37 PM 5/23/01 +0700, you wrote: >help...!! > >ilustration: >i got trouble with include on the virtual directory... > >a myfile.php -->> incl

Re: [PHP-WIN] include

2001-05-22 Thread Mike Flynn
Try... include(getcwd().'/path/to/file/test.php'); -Mike At 01:37 PM 5/23/01 +0700, you wrote: >help...!! > >ilustration: >i got trouble with include on the virtual directory... > >a myfile.php -->> include file on directory includes/test.php > >why it shouldn't work?. when i moved my file test.

RE: [PHP-WIN] include

2001-05-22 Thread Ignatius Teo
You need to specify the full path (unless you're using the include_dir setting in php.ini). ie. include ("d:/inetpub/wwwroot/project/includes/test.php"); OR include (get_env("DOCUMENT_ROOT")."/includes/test.php"); Ignatius Teo Project Manager, Internet Access Services Information Technolog

Re: [PHP-WIN] include paths

2001-05-18 Thread Ruslan Ohitin
Hello mjrobey, try to replace "\" with "/": include_path = "d:/foxserv/www/include;." mmc> Greetings, mmc> I'm running Apache with the PHP mod under Windows 2000, but I seem to have mmc> a recurring problem with includes. Every time I try to view a page with an mmc> include() statement, it ret

Re: [PHP-WIN] include paths

2001-05-17 Thread Alan Popow
On Thu, 17 May 2001 11:30:59 -0500, you wrote: On second thought (see my previous note), how exactly are you typing your include() in code? I realized after posting previously, that include() automatically traverses the path(s) set by the include_path variable, so as long as that is set up proper

Re: [PHP-WIN] include paths

2001-05-17 Thread Netcom Mail
- Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 17, 2001 12:30 PM Subject: [PHP-WIN] include paths Try typing the include() line in your code like this: include($include_path."\SomeFilenameToInclude"); Alan > Greetings, > > I'm running Apac

Re: [PHP-WIN] include paths

2001-05-17 Thread Michael Kelley
my include looks like ; ; Paths and Directories ; ; include_path =\apache\includes do you have the quotes & ; & . in yours?? [EMAIL PROTECTED] wrote: > Greetings, > > I'm running Apache with the PHP mod under Windows 2000, but I seem to h

Re: [PHP-WIN] include

2001-04-20 Thread Chris Adams
On 20 Apr 2001 14:04:00 -0700, Olivier Botineau <[EMAIL PROTECTED]> wrote: >Good evening all, >do you know if its possible to give an absolute path instead of a relative path for >include: >include( '../../menu.php' ); is OK >incude( '/inculde/menu.php' ); is Not OK That's the

Re: [PHP-WIN] include

2001-04-20 Thread Toby Miller
This is extremely unfortunate as I don't know of a way to do this either. I do however have a workaround that's not too tedious. Insert the following code into the very top of all of your documents: $GLOBALS["DOCUMENT_ROOT"] = preg_replace("/wwwroot.*$/i","wwwroot",$PATH_TRANSLATED); This assum

RE: [PHP-WIN] include woes

2001-02-06 Thread Mangiola Nunzio Datavia
I'd say got for Apache. If not that, then download the latest IIS4 from the internet. I tried to run PHP4 on IIS3 and I battled for a week to get it going. Once I installed IIS4 it ran like a dream. > -- > From: Matt Williams[SMTP:[EMAIL PROTECTED]] > Sent: Friday, Februar