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

[PHP] Include and memory

2002-06-03 Thread Paulo Cesar
Hi people... I'd like to know if the include function alocates the variables that are in the included file in the memory... and, if it happens, if do I have a way to access a file with some variables without alocating it in memory. Tks... Paulo Cesar

Re: [PHP] Include and memory

2002-06-03 Thread Analysis Solutions
On Mon, Jun 03, 2002 at 01:49:03PM -0300, Paulo Cesar wrote: I'd like to know if the include function alocates the variables that are in the included file in the memory... and, if it happens, if do I have a way to access a file with some variables without alocating it in memory. Dude, turn

Re: [PHP] Include and memory

2002-06-03 Thread Kevin Stone
operation it is you're doing. It is completely out of your control. So I don't see that there's anything for you to worry about in this regard. -Kevin - Original Message - From: Paulo Cesar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 03, 2002 10:49 AM Subject: [PHP] Include

Re: [PHP] Include question

2002-06-02 Thread Bogdan Stancescu
into memory when it's needed? ---John Holmes... -Original Message- From: Bogdan Stancescu [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 01, 2002 11:12 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Include question Your second guess. But you could've tested it easily

[PHP] Setting PHP Include Dir

2002-06-02 Thread Tim Thorburn
Hi, I'm trying to set a PHP include directory for one of my sites. I'm on a shared hosting system, so I don't have access to the php.ini file. My plan was to do it using a .htaccess file in Apache - however I must be doing something very much wrong, as it isn't working. Here is what I've

Re: [PHP] Setting PHP Include Dir

2002-06-02 Thread Bogdan Stancescu
That REALLY is a tricky one because it's documented the way you wrote it in most places, except where you (and I) should've looked: http://www.php.net/manual/en/configuration.php The trick is that you must remove the equal sign. Bogdan Tim Thorburn wrote: Hi, I'm trying to set a PHP

Re: [PHP] Include question

2002-06-02 Thread Analysis Solutions
Hey John: On Sun, Jun 02, 2002 at 12:10:27AM -0400, John Holmes wrote: What I'm looking at is if each include .html file is 50K, am I loading 100K into memory and then running the script, or running the script and only loading the appropriate 50K into memory when it's needed? As of 4.0.2,

[PHP] Include question

2002-06-01 Thread John Holmes
Hi. When I've got code like the following: if($this) { include(this.html); } elseif($that) { include(that.html); } When are the includes() evaluated? Does the Zend engine do the includes first, pull in all of the code, then process it and produce output. Or does the engine start processing

Re: [PHP] Include question

2002-06-01 Thread Bogdan Stancescu
Your second guess. But you could've tested it easily with two includes appending stuff to the same global var. Bogdan John Holmes wrote: Hi. When I've got code like the following: if($this) { include(this.html); } elseif($that) { include(that.html); } When are the includes() evaluated?

RE: [PHP] Include question

2002-06-01 Thread John Holmes
PROTECTED] Subject: Re: [PHP] Include question Your second guess. But you could've tested it easily with two includes appending stuff to the same global var. Bogdan John Holmes wrote: Hi. When I've got code like the following: if($this) { include(this.html); } elseif

[PHP] PHP Include directory

2002-05-27 Thread Tim Thorburn
Hi, I'm trying to setup an include directory for my site using .htaccess but I'm having some difficulties. The command I'm typing is as follows: php_value include_dir .:/path/to/my/site/includes When I try this, I get an error 500 with Apache. Have I typed something wrong? Here's my setup:

[PHP] Include load question (newbie)

2002-05-27 Thread r
Hey all, I have a file that is totally filled with PHP functions, its around 15 k. (func.php) I have two files (f1.php,f2.php) that each take about 90% and 90% of differient functions from the first file(func.php), would my files (f1.php,f2.php) load faster if I defined the functions in each

RE: [PHP] Include load question (newbie)

2002-05-27 Thread David Freeman
I have two files (f1.php,f2.php) that each take about 90% and 90% of differient functions from the first file(func.php), would my files (f1.php,f2.php) load faster if I defined the functions in each file instead of including it or is this helping? It might, but the difference

[PHP] Include (Newbie question)

2002-05-25 Thread r
Hey, I have just being going through the manual (windows version) and am a bit confused about include, If I want the scope to affect the whole page I do this right: (example page) html body ?php include blah.php ? some html ?php use some functions to call blah.php ? is this correct? and my

Re: [PHP] Include (Newbie question)

2002-05-25 Thread Kevin Stone
this helps -Kevin - Original Message - From: r [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, May 26, 2002 5:11 AM Subject: [PHP] Include (Newbie question) Hey, I have just being going through the manual (windows version) and am a bit confused about include, If I want the scope

RE: [PHP] Include (Newbie question)

2002-05-25 Thread John Holmes
declarations and separating pieces of your HTML apart to easily manage it. ---John Holmes... -Original Message- From: Kevin Stone [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 25, 2002 8:54 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Include (Newbie question) No, not exactly. The idea

[PHP] include text from a html-file online

2002-05-09 Thread Andreas Indahl
I want to include text from a html-file that is online at another website. To be more precise: I want to include my seti-stats from http://setiathome.ssl.berkeley.edu/ on my own homepage. Can I do this with PHP? Sincerely Andreas Indahl -- PHP General Mailing List (http://www.php.net/) To

[PHP] Include Files self aware?

2002-04-30 Thread PHP List
Hi, Is it possible to detect if a file is being called as an include or require? ex: include(file.php)-- file.php code can detect that is has been called as an include. Thanks, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Include Files self aware?

2002-04-30 Thread Billy S Halsey
Try this code (untested): function selfAwareInclude($filename) { define($filename, true); include($filename); } Inside your include file, make calls such as if (defined($filename)) { // Do whatever } Then use the selfAwareInclude() function instead of include(). You could do the

Re: [PHP] Include Files self aware?

2002-04-30 Thread mArk.cOLListER
The problem with this is you will loose the scope of your variables. So $filename will not have access to anything from where the function is called... -mark On Tue, 30 Apr 2002, Billy S Halsey wrote: Try this code (untested): function selfAwareInclude($filename) {

Re: [PHP] Include Files self aware?

2002-04-30 Thread Miguel Cruz
On Tue, 30 Apr 2002, PHP List wrote: Is it possible to detect if a file is being called as an include or require? ex: include(file.php)-- file.php code can detect that is has been called as an include. Compare $PHP_SELF with __FILE__, maybe? miguel -- PHP General Mailing List

RE: [PHP] Include Files self aware?

2002-04-30 Thread Maxim Maletsky \(PHPBeginner.com\)
-Original Message- From: mArk.cOLListER [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 2:00 AM To: php Subject: Re: [PHP] Include Files self aware? The problem with this is you will loose the scope of your variables. So $filename will not have access to anything from

[PHP] include() and require() problem

2002-04-19 Thread Rodrigo Peres
List, I'm trying to include some .inc files in my project, but I got errors all time saying that this includes couldn't be found. I'm a newbie, so I can't understand what's happend, since it worked pretty good in my local machine and not in the ISP. I tried to speak to ISP many times but they

[PHP] include through HTTP

2002-04-12 Thread Barýþ
What i want to do is : include(http://localhost/folder/file.php?foo=bar;); but it doesn't work. As you may guess it looks for a file called file.php?foo=bar. url_fopen is set to on in my php.ini file as told in the PHP manual. I work on win98+apache+php4.1.1(or something like that but at least

RE: [PHP] include through HTTP

2002-04-12 Thread Collins, Robert
: [EMAIL PROTECTED] -Original Message- From: Barýþ Mert [mailto:[EMAIL PROTECTED]] Sent: Friday, April 12, 2002 8:13 AM To: [EMAIL PROTECTED] Subject: [PHP] include through HTTP What i want to do is : include(http://localhost/folder/file.php?foo=bar;); but it doesn't work. As you may guess

RE: [PHP] include through HTTP

2002-04-12 Thread Barýþ
. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Email : [EMAIL PROTECTED] -Original Message- From: Barýþ Mert [mailto:[EMAIL PROTECTED]] Sent: Friday, April 12, 2002 8:13 AM To: [EMAIL PROTECTED] Subject: [PHP] include through HTTP

Re: [PHP] include through HTTP

2002-04-12 Thread Rasmus Lerdorf
Why do you want to include from localhost over HTTP? Sounds to me like you want to do: $foo='bar'; include $DOCUMENT_ROOT/folder/file.php; -Rasmus On Fri, 12 Apr 2002, Barýþ Mert wrote: What i want to do is : include(http://localhost/folder/file.php?foo=bar;); but it doesn't work. As you

Re: [PHP] Include Error on PHP 4.1.2

2002-03-28 Thread bvr
Fix 'include_path' in php.ini I think you want it to look in the current directory (.\) as well. bvr. Alberto Wagner wrote: I can't include anything on my php scripts Failed opening 'Pagina_Inicial.php' for inclusion (include_path='c:\php4\pear') How to fix it? -- PHP General

[PHP] Include Error on PHP 4.1.2

2002-03-23 Thread Alberto Wagner
I can't include anything on my php scripts Failed opening 'Pagina_Inicial.php' for inclusion (include_path='c:\php4\pear') How to fix it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] include, include_once bug or feature ?

2002-03-14 Thread Pavel Plesov
Hello! I have a trouble :( When I try this: --[index.php]-- ?php function f($action) { switch($action){ case 'one': include_once('M/one.php'); break; } } f('one'); ? -- --[M/one.php]-- ?php print pre\n; print_r(get_defined_vars()); print /pre\n; ? -- At

RE: [PHP] include, include_once bug or feature ?

2002-03-14 Thread Matt Friedman
vars do not exist at all. This is a feature, not a bug. Matt Friedman Web Applications Developer www.SpryNewMedia.com Email: [EMAIL PROTECTED] -Original Message- From: Pavel Plesov [mailto:[EMAIL PROTECTED]] Sent: Thursday March 14, 2002 7:56 AM To: [EMAIL PROTECTED] Subject: [PHP

Re: [PHP] include, include_once bug or feature ?

2002-03-14 Thread Pavel Plesov
: I think that since you are including a file into a function - the vars : become local so they only exist when the function is running. Therefore, : a call to get_defined_vars will not show them since the vars do not : exist in the global scope. In fact, during the call to get_defined_vars, :

[PHP] include() question

2002-03-14 Thread Phil Schwarzmann
Why doesn't this work... include(index.php?var='$var'); I want to include a page in my code and send a variable to it but I get some funky error. THANKS!!

RE: [PHP] include() question

2002-03-14 Thread Demitrious S. Kelly
Try to simplify the problem $file='index.php?var='; $file.=$var; include($file); -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 1:20 PM To: [EMAIL PROTECTED] Subject: [PHP] include() question Why doesn't this work... include

Re: [PHP] include() question

2002-03-14 Thread Edward van Bilderbeek - Bean IT
- From: Phil Schwarzmann [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 14, 2002 10:20 PM Subject: [PHP] include() question Why doesn't this work... include(index.php?var='$var'); I want to include a page in my code and send a variable to it but I get some funky error. THANKS

Re: [PHP] include() question

2002-03-14 Thread Erik Price
On Thursday, March 14, 2002, at 04:34 PM, Edward van Bilderbeek - Bean IT wrote: you can't use a variable as a parameter for the included file... because include does nothing else then putting the text of the include file on the place of the include statement... Are you sure about this?

Re: [PHP] include() question

2002-03-14 Thread Edward van Bilderbeek - Bean IT
- Original Message - From: Erik Price [EMAIL PROTECTED] To: Edward van Bilderbeek - Bean IT [EMAIL PROTECTED] Cc: Phil Schwarzmann [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, March 14, 2002 10:58 PM Subject: Re: [PHP] include() question On Thursday, March 14, 2002, at 04:34 PM, Edward

Re: [PHP] include() question

2002-03-14 Thread Edward van Bilderbeek - Bean IT
] Sent: Thursday, March 14, 2002 11:03 PM Subject: Re: [PHP] include() question On Thu, 14 Mar 2002, Erik Price wrote: On Thursday, March 14, 2002, at 04:34 PM, Edward van Bilderbeek - Bean IT wrote: you can't use a variable as a parameter for the included file... because include does

Re: [PHP] include() question

2002-03-14 Thread Erik Price
On Thursday, March 14, 2002, at 05:03 PM, Jan Rademaker wrote: I think what Edward means is that you can't pass parameters to an included file, like include(some.inc?var=value); That's true, at least for local files. include(http://remotesite/some.php?var=value;) will work, as long as

Re: [PHP] include() question

2002-03-14 Thread Erik Price
, 2002 11:03 PM Subject: Re: [PHP] include() question On Thu, 14 Mar 2002, Erik Price wrote: On Thursday, March 14, 2002, at 04:34 PM, Edward van Bilderbeek - Bean IT wrote: you can't use a variable as a parameter for the included file... because include does nothing else then putting

Re: [PHP] include() question

2002-03-14 Thread Lars Torben Wilson
On Thu, 2002-03-14 at 13:20, Phil Schwarzmann wrote: Why doesn't this work... include(index.php?var='$var'); I want to include a page in my code and send a variable to it but I get some funky error. THANKS!! Please read this page carefully, especially the third paragraph and

RE: [PHP] include() question

2002-03-14 Thread Dave
Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 4:20 PM To: [EMAIL PROTECTED] Subject: [PHP] include() question Why doesn't this work... include(index.php?var='$var'); I want to include a page in my code and send a variable to it but I get some

Re: [PHP] include() .htaccess

2002-03-13 Thread Patrick Teague
I'm having problems with .htaccess files setting up the php_value include_dir on both my development test servers. I'm using php4 under apache on win2k for development php4 under apache on unix as a test server. I've currently done the following on the win server Directory php_value

RE: [PHP] include() .htaccess

2002-03-13 Thread Ford, Mike [LSS]
-Original Message- From: Patrick Teague [mailto:[EMAIL PROTECTED]] Sent: 13 March 2002 10:48 I'm having problems with .htaccess files setting up the php_value include_dir on both my development test servers. I'm using php4 under apache on win2k for development php4 under

Re: [PHP] include() and paths

2002-03-06 Thread Patrick Teague
ok, so this makes alot of since... if I move my website from one server to another server I'll have to go through every single file redo the directory structure? Isn't this the reason for the includes... so you don't have to go through every single file to make changes? Maybe I should go

Re: [PHP] include() and paths

2002-03-06 Thread michael kimsal
Patrick Teague wrote: ok, so this makes alot of since... if I move my website from one server to another server I'll have to go through every single file redo the directory structure? Isn't this the reason for the includes... so you don't have to go through every single file to make

[PHP] ?include?... another dumb question

2002-03-05 Thread Team GotFusion
I have people telling me that I MUST put the ?include? file before or inside the header of the .php file I am writing before a script is pulled into my file. I usually just put the ?include? whereever I need it on the page. Actually have it embedded in an IF statement, so that if the

Re: [PHP] ?include?... another dumb question

2002-03-05 Thread Jason Wong
On Tuesday 05 March 2002 20:58, Team GotFusion wrote: I have people telling me that I MUST put the ?include? file before or inside the header of the .php file I am writing before a script is pulled into my file. I usually just put the ?include? whereever I need it on the page. Actually have

RE: [PHP] ?include?... another dumb question

2002-03-05 Thread Cal Evans
with the tradition. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Team GotFusion [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 6:59 AM To: [EMAIL PROTECTED] Subject: [PHP] ?include?... another dumb question I have people telling

Re: [PHP] ?include?... another dumb question

2002-03-05 Thread Team GotFusion
Yep, ordered the manuals from Amazon.com... and they inadvertently shipped the books to my mom-in-law ha ha. except that she's retired and computers are still a mystery. So, I am muddling through with my PHP dev. dictionary until I get to see my relatives this weekend. (cheesy smiley)

Re: [PHP] ?include?... another dumb question

2002-03-05 Thread Erik Price
On Tuesday, March 5, 2002, at 08:08 AM, Jason Wong wrote: Is placing the include at the top absolutely required, good programming convention or just preferred? Simply put, you can place them wherever you want. Obviously if your include file defines certain variables then common sense

RE: [PHP] include() and paths

2002-03-05 Thread Ford, Mike [LSS]
-Original Message- From: Nick Wilson [mailto:[EMAIL PROTECTED]] Sent: 01 March 2002 17:30 To: PHP-General Subject: Re: [PHP] include() and paths -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Nick Winfield declared I didn't catch the first part

[PHP] include() and paths

2002-03-01 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, Here's the scenario masterfileinc lives in /var/www/includes/ and contains this line: include(/var/www/includes/anotherfileinc); in indexphp I include masterfileinc and thus get anotherfileinc Simple (I hope) What I'd like to know though

Re: [PHP] include() and paths

2002-03-01 Thread DL Neil
Hi Nick, masterfile.inc lives in /var/www/includes/ and contains this line: include(/var/www/includes/anotherfile.inc); in index.php I include masterfile.inc and thus get anotherfile.inc. What I'd like to know though is, is it possible to have the include line in masterfile.inc specify a

Re: [PHP] include() and paths

2002-03-01 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then DL Neil declared masterfileinc lives in /var/www/includes/ and contains this line: include(/var/www/includes/anotherfileinc); in indexphp I include masterfileinc and thus get anotherfileinc What I'd like to know though is, is

Re: [PHP] include() and paths

2002-03-01 Thread Nick Winfield
On Fri, 1 Mar 2002, Nick Wilson wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then DL Neil declared masterfileinc lives in /var/www/includes/ and contains this line: include(/var/www/includes/anotherfileinc); in indexphp I include masterfileinc and thus get

Re: [PHP] include() and paths

2002-03-01 Thread DL Neil
and Nick Wilson opined in what could be seen to be an arrogant fashion... * and then DL Neil declared masterfile.inc lives in /var/www/includes/ and contains this line: include(/var/www/includes/anotherfile.inc); in index.php I include masterfile.inc and thus get anotherfile.inc.

Re: [PHP] include() and paths

2002-03-01 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Nick Winfield declared I didn't catch the first part of this thread (rampant deletion ahoy) so please excuse if I am talking nadgers The way I see it, if you are calling includes/requires from within other includes, the path is that

Re: [PHP] include() and paths

2002-03-01 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then DL Neil declared RTFM the four pages from http://wwwphpnet/manual/en/functionrequirephp; There's quite a bit of advice/experience in the user annotations! Please don't RTFM me, that's the first place I went I didn't find

[PHP] Re: php include path setting in .htaccess

2002-02-28 Thread Pete Lacey
php_value include_path /includefiles/://includefiles/ Bill wrote: How can I set the php include path on an Apache machine using htaccess Assuming I'm puting it outside of the web root, I think it is something like: php_include_path /includefiles/://includefiles/ but that generates

[PHP] Include file for MySQL insert rows

2002-02-17 Thread Paul Fowler
I am very new at this and am having trouble migrating to php and mysql from a different system (WebCatalog). I want to start dumping files to text and let php use them to populate mysql on the fly as I start migrating. snip--- $db = mysql_pconnect(host,

Re: [PHP] Include file for MySQL insert rows

2002-02-17 Thread Janet Valade
. A comma on the first line and a semicolon on the second line. Janet - Original Message - From: Paul Fowler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, February 17, 2002 8:17 PM Subject: [PHP] Include file for MySQL insert rows I am very new at this and am having trouble

[PHP] include redirects

2002-01-29 Thread Calin Uioreanu
Hi all, I have a problem with a redirect. I have a file that includes a content from another PHP script, parses the content as string with output buffering and displays it. The problem is that the include function doesn't seem to handle redirects. When that other PHP script makes a Header

Re: [PHP] include redirects

2002-01-29 Thread David Otton
On Tue, 29 Jan 2002 12:51:15 +0100, you wrote: Do you know a solution to insert remote content handling eventual redirects in the remote? Something like a browser. fopen() the file you're trying to include, and handle the response from the server yourself. If it returns 301 or 302, you have to

[PHP] 'include' anchors

2002-01-20 Thread Phil Schwarzmann
I want a script to go to an anchor in an html page This doesn't seem to work include blah.htm#anchor; how is this possible Thanks! Phil in baltimore P.S. Pittsburgh sucks Bill Gates' balls.

Re: [PHP] 'include' anchors

2002-01-20 Thread Bogdan Stancescu
A script to go to an anchor - I don't know about that... If you need a _link_ to go to an anchor then you just need to echo the proper link (i.e. echo blah.htm#anchor;). If you want a script to _redirect_ to an anchor then Emile is right: this is a client-side thing and you either have to go with

[PHP] Include() and URLs

2002-01-17 Thread John (News)
I'm trying to include a URL using the following line include('http://www.cci.net.au/default.htm'); I get the following response. Warning: Failed opening 'http://www.cci.net.au/default.htm' for inclusion (include_path='') in C:\Inetpub\wwwroot\template\index.php on line 61 I have made sure the

[PHP] include() and URL's

2002-01-17 Thread Hippie
I'm trying to include a URL using the following line include('http://www.cci.net.au/default.htm'); I get the following response. Warning: Failed opening 'http://www.cci.net.au/default.htm' for inclusion (include_path='') in C:\Inetpub\wwwroot\template\index.php on line 61 I have made sure the

RE: [PHP] include() and URL's

2002-01-17 Thread Johnson, Kirk
Does the file have persmissions such that it is include()-able by nobody? Kirk -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 16, 2002 4:33 PM To: [EMAIL PROTECTED] Subject: [PHP] include() and URL's I'm trying to include a URL

RE: [PHP] include() and URL's

2002-01-17 Thread John (News)
: Does the file have persmissions such that it is include()-able by nobody? Kirk -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 16, 2002 4:33 PM To: [EMAIL PROTECTED] Subject: [PHP] include() and URL's I'm trying to include

RE: [PHP] include() and URL's

2002-01-17 Thread Jason Murray
The file is running on an NT box and can be accessed fine through IIS. It is only when using the include() statement to this file that problems occur. If I do a local path map to it, it will include fine but when using an URL it gives that error. Can you retrieve the file from that URL

RE: [PHP] include() and URL's

2002-01-17 Thread John (News)
I'm using my workstation as an all in one test box. It's running, IIS 4.0, and PHP for Windows version 4.0.6. At 11:13 AM 1/18/02 +1100, you wrote: The file is running on an NT box and can be accessed fine through IIS. It is only when using the include() statement to this file that

[PHP] include with call

2002-01-13 Thread John Cuthbert
Hello, I have a file which does several different things depending on how its called Ie file?mode=show is to show it etc But I want to include the output from the show so I tried ?php include(file.php?mode=show); ? but this causes errors. It goes away with including as only file.php but doing

[PHP] include help

2001-12-15 Thread jtjohnston
I have a mess of variables I HTML from a couple of different scripts, so I combined them into an include.inc. But now, when I do this: $news = mysql_query('select * from ccl where ... order by AU asc'); while ($personne = mysql_fetch_object($news)) {

[PHP] include

2001-12-15 Thread jtjohnston
I have a mess of variables I HTML from a couple of different scripts, so I combined them into an include.inc. But now, when I do this: $news = mysql_query('select * from ccl where ... order by AU asc'); while ($personne = mysql_fetch_object($news)) {

[PHP] include or fread a binary file?

2001-11-28 Thread Bryant Brabson
I have a flash file that I need to embed in an iframe on a page. I dynamically get the path to the file from a MySQL database. I've tried to include the file and use fopen/fread to execute the file, but I only get binary code back, which makes sense actually. What's the best way to go about

Re: [PHP] include or fread a binary file?

2001-11-28 Thread faeton
Hello Bryant, Thursday, November 29, 2001, 12:56:07 AM, you've written: BB I have a flash file that I need to embed in an iframe on a page. I BB dynamically get the path to the file from a MySQL database. I've BB tried to include the file and use fopen/fread to execute the BB file, but I only

[PHP] include http problem

2001-11-20 Thread Mike Webby
include (http://www.somesite.com/somepage.html;); Worked perfect on our unix box and our win98 machines but when we installed PHP on our Windows server it no longer worked and tottaly ignored the include unless we used the path instead like. include (somepage.html); [EMAIL PROTECTED]

[PHP] include(remote host) under w2k problem

2001-11-01 Thread Marek Wysmulek
Hi all. I have searched almost everything on the net regarding php and windows focusing on one thing. How to include to php script started on apache on w2k external sript placed on some URL. Source of test script (http://mylocalhost/marek.php) ? include("http://hermes.com.pl/test.php"); ? and

Re: [PHP] Include Precompiled C binaries

2001-10-28 Thread Christian Reiniger
On Friday 26 October 2001 22:32, Daelic wrote: I was debating perl Vs. PHP with a friend, and he came up with this: Perl can include compiled C binaries without backprocessing them, which is a pretty useful trick. Ask him what he means with backprocessing -- Christian Reiniger LGDC

[PHP] include-ing results in variable?

2001-10-27 Thread Nathaniel Merriam
This is what I'm trying to do, and I think I'm just missing some logic in how to think like PHP. I have a global included file (global.inc) where I set up variables, open the database, etc, and I include it in the header of every HTML file on the site. One thing I would like to set as a

[PHP] Include Precompiled C binaries

2001-10-26 Thread Daelic
I was debating perl Vs. PHP with a friend, and he came up with this: Perl can include compiled C binaries without backprocessing them, which is a pretty useful trick. I don't know anything about this, so couldn't comment on it. Can PHP do this, or anything similar? Thanks! -- PHP General

[PHP] include() problem.

2001-10-23 Thread brendan
Hi, I have an issue with including a file accross my web server from a separate site on that server served on another port. - explanation my php website runs off IIS port :80 (unfortunately IIS is employers decision not mine ) - I have a web spider running off port : both

Re: [PHP] include() problem.

2001-10-23 Thread David Robley
On Wed, 24 Oct 2001 08:03, brendan wrote: Hi, I have an issue with including a file accross my web server from a separate site on that server served on another port. - explanation my php website runs off IIS port :80 (unfortunately IIS is employers decision not mine ) - I

Re: [PHP] include() problem.

2001-10-23 Thread brendan
Uni runs solaris/unix faculty runs iis world of political pain and anguish.. view source brings up a blank screen .. ta brendan David Robley wrote: On Wed, 24 Oct 2001 08:03, brendan wrote: Hi, I have an issue with including a file accross my web server from a separate site on

Re: [PHP] include() problem.

2001-10-23 Thread David Robley
On Wed, 24 Oct 2001 10:02, brendan wrote: Uni runs solaris/unix faculty runs iis world of political pain and anguish.. view source brings up a blank screen .. ta brendan OK - bit of straw grasping; you do have URL-fopen-wrappers enabled; try assigning the result of the include to a

[PHP] include XHTML document

2001-09-24 Thread cweiske
Hi I wrote my new page in XHTML 1.0, split it and wanted to include the top part of the file with the include( page_top.htm). The problem is, that the valid XHTML document has to begin with ?xml version=1.0 encoding=iso-8859-1? The problem now is, that ? is interpreted as a begin of php

[PHP] An Email RE: [PHP] include XHTML document has been trapped

2001-09-24 Thread MAILsweeper
The email RE: [PHP] include XHTML document from [EMAIL PROTECTED] to [EMAIL PROTECTED] [EMAIL PROTECTED] contained script similar to known Worm viruses. As a precaution this has been held in quarantine. The message will be held for up to 20 days, for further checking. Please notify

Re: [PHP] include XHTML document

2001-09-24 Thread Tim
On Mon, 2001-09-24 at 08:04, cweiske wrote: I wrote my new page in XHTML 1.0, split it and wanted to include the top part of the file with the include( page_top.htm). The problem is, that the valid XHTML document has to begin with ?xml version=1.0 encoding=iso-8859-1? The problem now is,

[PHP] Include inside a function?

2001-09-21 Thread Kyle Smith
Is it possible to use include inside the mail function? eg mail(include(blah.txt)) ??? -lk6- http://www.StupeedStudios.f2s.com Home of the burning lego man! ICQ: 115852509 MSN: [EMAIL PROTECTED] AIM: legokiller666

[PHP] Include inside a function?

2001-09-21 Thread Kyle Smith
Is it possible to use include inside the mail function? eg mail(include(blah.txt)) ??? -lk6- http://www.StupeedStudios.f2s.com Home of the burning lego man! ICQ: 115852509 MSN: [EMAIL PROTECTED] AIM: legokiller666

[PHP] include() problem...

2001-09-20 Thread Matthew Walker
I've got a very odd problem. I'm trying to include 'DB/mysql.php', from the /usr/lib/php directory, and it's not working. My include_path is set properly (.:/usr/lib/php) and when I do 'print_r(ini_get(include_path));' it prints it properly. But when I try and do an include, I get the following

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

2001-09-20 Thread Jeb Anderson Scarbrough
If you put the file into the include directory specified in the php.ini (.:/usr/lib/php) then I believe you should do: include(mysql.php); NOT include(DB/mysql.php); Someone please correct me if I'm wrong. I've got a very odd problem. I'm trying to include 'DB/mysql.php', from the

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

2001-09-20 Thread Matthew Walker
[mailto:[EMAIL PROTECTED]] Sent: Thursday, September 20, 2001 12:04 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [PHP] include() problem... If you put the file into the include directory specified in the php.ini (.:/usr/lib/php) then I believe you should do: include(mysql.php

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

2001-09-20 Thread Johnson, Kirk
Check the permissions on both the directory and the file, so that they are accessible to 'nobody' (or whomever PHP is running as). I'm not sure what to make of the empty include path in the error message. Kirk I've tried including just a file that was in the /usr/lib/php directory. No

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

2001-09-20 Thread Matthew Walker
Checked that. Plenty of permissions. Anyone else have any idea? -Original Message- From: Johnson, Kirk [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 20, 2001 1:48 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] include() problem... Check the permissions on both the directory

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

2001-09-20 Thread Matthew Walker
PROTECTED]] Sent: Thursday, September 20, 2001 2:52 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] include() problem... Checked that. Plenty of permissions. Anyone else have any idea? -Original Message- From: Johnson, Kirk [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 20, 2001 1:48 PM

[PHP] include question

2001-09-18 Thread Nikola Veber
Hi ! I'm using include() function to print html code nested in a function in the included file when a link is selected. I was wondering if the whole php file that is included gets loaded, or the server just sends the code from desired finction? Can I put more than one function full of html

[PHP] include question

2001-09-17 Thread Scott
Hello everyone- I am working on a project where a client can upload a template into a database table and manage it. The actual HTML code and dynamic code will be in the template as well. My hope is to build the page using an include that will echo the code to the page and then also fill in the

<    3   4   5   6   7   8   9   10   >