Re: [PHP] include()

2002-08-01 Thread Andrey Hristov
I suppose include() can be used to include files from remote systems(not on WINDOWS). Only if the sysadmin running your web server allows it, which they should not. A webmaster on the same server can always use a path like /home/htdocs/.../config.php and include my config .php

RE: [PHP] include()

2002-08-01 Thread Simon Ritchie
Other users on the same server *shouldn't* be able to include() in this way How? Would their $_SERVER['HTTP_HOST'] not be the same? You did not specify your circumstances in your original posting, so there is some confusion. One web server can handle many domains. An ISP offering shared

Re: [PHP] include()

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

Re: [PHP] include()

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

RE: [PHP] include()

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

Re: [PHP] include()

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

Re: [PHP] include() limits

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

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

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

Re: [PHP] include files and global variables

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

RE: [PHP] include files or fopen

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

RE: [PHP] INCLUDE vs Functions

2002-06-27 Thread Fifield, Mike
I cannot answer this for sure but my guess would be that having separately included files would be faster. There are two reasons for this. First functions are almost always slower then regular php code. Second you will be loading the entire Routines.php on every page even if you only require one

RE: [PHP] Include/require

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

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

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

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

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

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

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

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

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

RE: [PHP] Include question

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

Re: [PHP] Include question

2002-06-11 Thread Tom Ray
Yes, but according to http://www.php.net/manual/en/function.include.php I should be able to delcare the include and then pull the information out normally. So by what the manual says I can do this somefile.php ? $apple = 'green'; $pear = 'yellow'; ? callfile.php ? include 'somefile.php'; echo

Re: [PHP] Include question

2002-06-11 Thread Justin French
Check that you actually have ? ? wrapped around the PHP code in somefile.php that you include. Justin French on 12/06/02 11:36 AM, Tom Ray ([EMAIL PROTECTED]) wrote: Yes, but according to http://www.php.net/manual/en/function.include.php I should be able to delcare the include and then pull

RE: [PHP] Include question

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

Re: [PHP] Include question

2002-06-11 Thread Tom Ray
Well I got it solved. It would help if I formatted my files correctly. Sorry about that, i've been messing with PHP for about a year now, but am now really diving into it so I may have stupid questions here and there :) TIA to all for help. John Holmes wrote: Umm...that's what it's supposed

RE: [PHP] Include question

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

Re: [PHP] Include + $Variables Help

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

Re: [PHP] Include + $Variables Help

2002-06-08 Thread Olexandr Vynnychenko
Hello Steven, Saturday, June 08, 2002, 5:40:40 PM, you wrote: S Here's my problem: S I'm trying to make a simple publication of 30+ articles, using PHP but not S MySQL. S There are basically three components: S - a table of contents (contents.html) S - an article template

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
No offense but what you just said made absolutely no sense. There is no way to perform an operation on a computer without allocating memory for that operation. Unlike other lower level prgramming languages (ie. C/C++) PHP automatically allocates the necessary amount of memory for whatever

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

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,

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

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

Re: [PHP] Include (Newbie question)

2002-05-25 Thread Kevin Stone
No, not exactly. The idea behind the include() function in PHP is to append and execute code to the currently running script. This is great for organizing your code into more easier to manage chunks. PHP will attempt to parse and execute the included file as a PHP file regardless of the file

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

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

RE: [PHP] include through HTTP

2002-04-12 Thread Collins, Robert
Check the Note about 5 lines down on this page. http://www.php.net/manual/en/features.remote-files.php Note: You can't use remote files in include() and require() statements on Windows. Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Email :

RE: [PHP] include through HTTP

2002-04-12 Thread Barýþ
Oh what a shame on me! Sorry and thank you... --- Collins, Robert [EMAIL PROTECTED] wrote: Check the Note about 5 lines down on this page. http://www.php.net/manual/en/features.remote-files.php Note: You can't use remote files in include() and require() statements on Windows. Robert W.

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

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

2002-03-14 Thread Matt Friedman
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, the included

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

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

Re: [PHP] include() question

2002-03-14 Thread Edward van Bilderbeek - Bean IT
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... so this should work: $var = 'bladibla'; include('index.php'); Greets, Edward - Original Message -

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
Missing close for one. v include(index.php?var='$var'); ^ and you don't need to pass the $var to the include since it will be included, and obviously you already have it declared. if index.php contained ? echo $var;

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

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
Yes, this is acceptable. Normally, include and require go at the top of the page out of convention. However, there is no requirement that they be there. Just be careful. it's an accepted convention because it's a good idea. Make sure you know what you are doing when you break with the

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

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

Re: [PHP] Include file for MySQL insert rows

2002-02-17 Thread Janet Valade
INCLUDE is not really what you are looking for. INCLUDE is more to read in files that contain PHP code. If I'm understanding correctly, what you want to do is to read each line from your file and put each line into a separate variable. Then, you can create the INSERT statement for each row. It

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

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

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)
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. Hippie. At 05:02 PM 1/17/02 -0700, you wrote:

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

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

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

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

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

Re: [PHP] include question

2001-09-17 Thread Scott
At 02:03 AM 9/18/2001 +0200, Chris Hayes wrote: 2) let them make a real template, either a file or a database cell, for instance fhkhfsakuhfewhehfaalkuhfwe[DATA1]/lkuhfwe and do a str replace [DATA1] parts -- database content. Chris- YOU ROCK! Thank you for the thought starter, I

Re: [PHP] include error with no includes

2001-09-05 Thread Jason Stechschulte
On Wed, Sep 05, 2001 at 09:02:03AM -0400, Chad Cunningham wrote: I've got a few php pages that a while back started giving the following include error: Warning: Failed opening '/home/ccunning/WWW/probability.php3' for inclusion (include_path='.:/web/php/include:/web/php/phplib') in

Re: [PHP] include error with no includes

2001-09-05 Thread Chad Cunningham
I could be way off, but it sounds like a permissions problem. The user that your webserver runs as probably no longer has access to the page. Allright, how did I not think of that :) Seems someone has been messing around with permissions on the server, thanks! -- Chad Cunningham [EMAIL

RE: [PHP] include, chmod, password files

2001-08-08 Thread Johnson, Kirk
If I have a file called db.inc with, for example, this: However, any user on the system can read db.inc cause its chmod'd 0644. If I chmod db.inc 0600 or even 0640, index.php can not include it. How do I go about protecting my files from being read by users on the system? Below is

Re: [PHP] include, chmod, password files

2001-08-08 Thread David Hill
On Wed, 8 Aug 2001 12:03:34 -0600 Johnson, Kirk [EMAIL PROTECTED] wrote: If I have a file called db.inc with, for example, this: However, any user on the system can read db.inc cause its chmod'd 0644. If I chmod db.inc 0600 or even 0640, index.php can not include it. How do I

RE: [PHP] Include

2001-08-07 Thread Johnson, Kirk
I try to use include() and require() an that what i get: The path is 100% good. Warning: Failed opening '../inc/menu.inc' for inclusion (include_path='') in Make sure that file permissions allow 'nobody' to view the file. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] include (foo.php) not working

2001-07-25 Thread Andy Warwick
I am running PHP 4.0.6 on my Mac OSX using apache and MySQL. when I include the statement ? include (foo.php); ? then rather than parsing the file and displaying the results the whole file is just dumped to screen as a text file. Interesting the same problem occurs whatever the file

Re: [PHP] include (foo.php) not working

2001-07-25 Thread ilari . kaartinen
when I include the statement ? include (foo.php); ? then rather than parsing the file and displaying the results the whole file is just dumped to screen as a text file. Interesting the same problem occurs whatever the file extension so the same thing happens for foo.htm, foo.html and

Re: [PHP] include (foo.php) not working

2001-07-25 Thread maatt
Errr... feel embaressed asking but I've done the same... You do have ?php ? tags around your code? Easy to leave off when there's no HTML in the page. Matt Ilari Kaartinen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... when I include the statement ? include

RE: [PHP] include (foo.php) not working

2001-07-25 Thread Rudolf Visagie
I've found that when I forget to start and end the include file's code with ? and ? it sometimes does exactly what you're getting. Regards Rudolf -Original Message- From: Jon Hubbard [mailto:[EMAIL PROTECTED]] Sent: 25 July 2001 01:42 To: [EMAIL PROTECTED] Subject: [PHP] include

Re: [PHP]include question, WHY doesn't this work...

2001-07-23 Thread Unni
Is the lib direcotory under the working directory, I mean, if your program is excuting under temp directory, the lib directory has to be below temp directory. If you are running this program from the root directory then lib has to be below root directory. Your code looks good to me. One more

Re: [PHP]include question, WHY doesn't this work...

2001-07-23 Thread Chris Cocuzzo
PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, July 23, 2001 3:52 PM Subject: Re: [PHP]include question, WHY doesn't this work... Is the lib direcotory under the working directory, I mean, if your program is excuting under temp directory, the lib directory has to be below temp directory. If you

RE: [PHP]include question, WHY doesn't this work...

2001-07-23 Thread Gonyou, Austin
23, 2001 2:53 PM To: Chris Cocuzzo Cc: [EMAIL PROTECTED] Subject: Re: [PHP]include question, WHY doesn't this work... Is the lib direcotory under the working directory, I mean, if your program is excuting under temp directory, the lib directory has to be below temp directory. If you

<    1   2   3   4   5   6   7   >