[PHP] require/include fails with APC enabled

2009-07-20 Thread Ian Maddox
I have one server that is acting up whenever I try to enable APC. PHP scripts execute normally as long as there are no calls to include(), include_once(), require(), or require_once(). Any file (no matter the size) that can be included while APC is disabled will cause the script to silently fail a

Re: [PHP] require() causing strange characters ?

2009-02-05 Thread Paul M Foster
On Fri, Feb 06, 2009 at 06:34:41AM +0100, cr.vege...@gmail.com wrote: > Hi all, > > I have a script called "test.php": > > > and a script called "echo.php": > > > With IE and Firefox it shows: CtestD > but when I view the source, it seems to be: C??testD > > When debugging it, it seems t

[PHP] require() causing strange characters ?

2009-02-05 Thread cr.vegelin
Hi all, I have a script called "test.php": and a script called "echo.php": With IE and Firefox it shows: CtestD but when I view the source, it seems to be: C�testD When debugging it, it seems that: > "CtestD" has length 9 in stead of 6 > pos1has char=C ord=67 > pos2has ch

Re: [PHP] Require error

2008-12-20 Thread Jochem Maas
Wolf schreef: > Kyle Terry wrote: >> On Fri, Dec 19, 2008 at 9:43 AM, Wolf wrote: >> >>> Bottom Post >>> >>> sean greenslade wrote: No. The file is called testing.php and it is trying to include sql.inc On Fri, Dec 19, 2008 at 12:36 PM, Kyle Terry wrote: > >>>

Re: [PHP] Require error

2008-12-20 Thread Jochem Maas
sean greenslade schreef: > So, I have this code in a php file called testing.php: > $incl = '/webs/www.zootboy.com/sl/sql.inc'; > if(!is_readable($incl)) die('ERROR: MySQL Include file does not > exist??!?'); > require $incl or die('MySQL page not found. Unable to continue.'); > your require li

FWD: [PHP] Require error

2008-12-19 Thread sean greenslade
On Fri, Dec 19, 2008 at 1:11 PM, Kyle Terry wrote: > > > On Fri, Dec 19, 2008 at 10:07 AM, sean greenslade > wrote: > >> On Fri, Dec 19, 2008 at 1:04 PM, Philip Graham >> wrote: >> >> > >> > > So, I have this code in a php file called testing.php: >> > > $incl = '/webs/www.zootboy.com/sl/sql.in

Re: [PHP] Require error

2008-12-19 Thread Kyle Terry
On Fri, Dec 19, 2008 at 10:07 AM, sean greenslade wrote: > On Fri, Dec 19, 2008 at 1:04 PM, Philip Graham > wrote: > > > > > > So, I have this code in a php file called testing.php: > > > $incl = '/webs/www.zootboy.com/sl/sql.inc'; > > > if(!is_readable($incl)) die('ERROR: MySQL Include file doe

Re: [PHP] Require error

2008-12-19 Thread sean greenslade
On Fri, Dec 19, 2008 at 1:04 PM, Philip Graham wrote: > > > So, I have this code in a php file called testing.php: > > $incl = '/webs/www.zootboy.com/sl/sql.inc'; > > if(!is_readable($incl)) die('ERROR: MySQL Include file does not > > exist??!?'); > > require $incl or die('MySQL page not found.

Re: [PHP] Require error

2008-12-19 Thread Philip Graham
> So, I have this code in a php file called testing.php: > $incl = '/webs/www.zootboy.com/sl/sql.inc'; > if(!is_readable($incl)) die('ERROR: MySQL Include file does not > exist??!?'); > require $incl or die('MySQL page not found. Unable to continue.'); > > > When I run the code in command line,

Re: [PHP] Require error

2008-12-19 Thread sean greenslade
On Fri, Dec 19, 2008 at 12:55 PM, Kyle Terry wrote: > > > On Fri, Dec 19, 2008 at 9:50 AM, Wolf wrote: > >> >> Kyle Terry wrote: >> > On Fri, Dec 19, 2008 at 9:43 AM, Wolf wrote: >> > >> > > Bottom Post >> > > >> > > sean greenslade wrote: >> > > > No. The file is called testing.php

Re: [PHP] Require error

2008-12-19 Thread Kyle Terry
On Fri, Dec 19, 2008 at 9:50 AM, Wolf wrote: > > Kyle Terry wrote: > > On Fri, Dec 19, 2008 at 9:43 AM, Wolf wrote: > > > > > Bottom Post > > > > > > sean greenslade wrote: > > > > No. The file is called testing.php and it is trying to include > sql.inc > > > > > > > > On Fri, Dec 19

Re: [PHP] Require error

2008-12-19 Thread sean greenslade
On Fri, Dec 19, 2008 at 12:50 PM, Wolf wrote: > > Kyle Terry wrote: > > On Fri, Dec 19, 2008 at 9:43 AM, Wolf wrote: > > > > > Bottom Post > > > > > > sean greenslade wrote: > > > > No. The file is called testing.php and it is trying to include > sql.inc > > > > > > > > On Fri, Dec 1

Re: [PHP] Require error

2008-12-19 Thread Wolf
Kyle Terry wrote: > On Fri, Dec 19, 2008 at 9:43 AM, Wolf wrote: > > > Bottom Post > > > > sean greenslade wrote: > > > No. The file is called testing.php and it is trying to include sql.inc > > > > > > On Fri, Dec 19, 2008 at 12:36 PM, Kyle Terry wrote: > > > > > > > > > > > > > >

Re: [PHP] Require error

2008-12-19 Thread Wolf
sean greenslade wrote: > On Fri, Dec 19, 2008 at 12:43 PM, Wolf wrote: > > > Bottom Post > > > > sean greenslade wrote: > > > No. The file is called testing.php and it is trying to include sql.inc > > > > > > On Fri, Dec 19, 2008 at 12:36 PM, Kyle Terry wrote: > > > > > > > > > > >

Re: [PHP] Require error

2008-12-19 Thread Kyle Terry
On Fri, Dec 19, 2008 at 9:43 AM, Wolf wrote: > Bottom Post > > sean greenslade wrote: > > No. The file is called testing.php and it is trying to include sql.inc > > > > On Fri, Dec 19, 2008 at 12:36 PM, Kyle Terry wrote: > > > > > > > > > > > On Fri, Dec 19, 2008 at 9:28 AM, sean greenslad

Re: [PHP] Require error

2008-12-19 Thread Wolf
Bottom Post sean greenslade wrote: > No. The file is called testing.php and it is trying to include sql.inc > > On Fri, Dec 19, 2008 at 12:36 PM, Kyle Terry wrote: > > > > > > > On Fri, Dec 19, 2008 at 9:28 AM, sean greenslade > > wrote: > > > >> So, I have this code in a php file calle

Re: [PHP] Require error

2008-12-19 Thread sean greenslade
No. The file is called testing.php and it is trying to include sql.inc On Fri, Dec 19, 2008 at 12:36 PM, Kyle Terry wrote: > > > On Fri, Dec 19, 2008 at 9:28 AM, sean greenslade wrote: > >> So, I have this code in a php file called testing.php: >> $incl = '/webs/www.zootboy.com/sl/sql.inc'; >>

[PHP] Require error

2008-12-19 Thread sean greenslade
So, I have this code in a php file called testing.php: $incl = '/webs/www.zootboy.com/sl/sql.inc'; if(!is_readable($incl)) die('ERROR: MySQL Include file does not exist??!?'); require $incl or die('MySQL page not found. Unable to continue.'); When I run the code in command line, it outputs this

Re: [PHP] Problems with mod_vhost_alias and PHP require

2008-05-07 Thread Aschwin Wesselius
Mário Gamito wrote: Hi, I have this Apache server with mod_vhost_alias and set /home/pages/%0 as the VirtualDocumentRoot In /home/pages/gamito.foo.com I have a index.php file. This generates the http://gamito.foo.com URL. Also, I have a /home/pages/fckeditor with FCKeditor. *This is not defined

[PHP] Problems with mod_vhost_alias and PHP require

2008-05-07 Thread Mário Gamito
Hi, I have this Apache server with mod_vhost_alias and set /home/pages/%0 as the VirtualDocumentRoot In /home/pages/gamito.foo.com I have a index.php file. This generates the http://gamito.foo.com URL. Also, I have a /home/pages/fckeditor with FCKeditor. *This is not defined as a subdomain in the

Re: [PHP] require and http

2007-07-20 Thread Richard Lynch
On Fri, July 20, 2007 7:17 am, Suporte - DPRJ Sistemas wrote: > I am returning to PHP and having some problems. > > Can anyone tell me if > require_once("http://www.mydomain.com.br/includes/teste.php";) really > do not work? It will not work if allow_url_fopen is set to OFF in php.ini Even if it

Re: [PHP] require and http

2007-07-20 Thread Zoltán Németh
orry I forgot to include the list in my reply - but you forgot that too ;) ) > Deleo > > - Original Message - > From: "Zoltán Németh" <[EMAIL PROTECTED]> > To: "Suporte - DPRJ Sistemas" <[EMAIL PROTECTED]> > Cc: "PHP - General List&q

Re: [PHP] require and http

2007-07-20 Thread Zoltán Németh
2007. 07. 20, péntek keltezéssel 09.17-kor Suporte - DPRJ Sistemas ezt írta: > Hello! > > I am returning to PHP and having some problems. > > Can anyone tell me if > require_once("http://www.mydomain.com.br/includes/teste.php";) really do not > work? > > If I especify the complete path for my

[PHP] require and http

2007-07-20 Thread Suporte - DPRJ Sistemas
Hello! I am returning to PHP and having some problems. Can anyone tell me if require_once("http://www.mydomain.com.br/includes/teste.php";) really do not work? If I especify the complete path for my local server (/srv/www/htdocs/mysite/php/teste.php) it works fine (I did it when using versio

Re: [PHP] Does PHP require patch for Daylight Savings Time 2007 change

2007-02-27 Thread Chris
Causevic, Dzenan wrote: I am running Apache HTTP 1.3 with PHP 4.2.2 and MySQL 3.23. Do I need to apply any kind of patches to my PHP related to Daylight Savings Time 2007 change? The -internals list might be a better place to search / ask. -- Postgresql & php tutorials http://www.designmagick

[PHP] Does PHP require patch for Daylight Savings Time 2007 change

2007-02-27 Thread Causevic, Dzenan
I am running Apache HTTP 1.3 with PHP 4.2.2 and MySQL 3.23. Do I need to apply any kind of patches to my PHP related to Daylight Savings Time 2007 change? ___ Dzenan Causevic Web Applications Developer NaviSite, Inc. 315-453-2912 x5346 (Office) 315-278-737

Re: [PHP] 'Require' and 'Select' lists

2005-05-14 Thread Andre Dubuc
On Saturday 14 May 2005 02:14 am, you wrote: > On Fri, May 13, 2005 5:59 am, Andre Dubuc said: > > However, the behavior continues intermittently. I've duplicated it one > > time. > > If I click on the 'State' dropdown list, allow the mouse to scan through > > it, > > but do not choose a value, and

Re: [PHP] 'Require' and 'Select' lists

2005-05-14 Thread Richard Lynch
On Fri, May 13, 2005 5:59 am, Andre Dubuc said: > However, the behavior continues intermittently. I've duplicated it one > time. > If I click on the 'State' dropdown list, allow the mouse to scan through > it, > but do not choose a value, and then immediately go to the previous or next > field and

Re: [PHP] 'Require' and 'Select' lists

2005-05-13 Thread Andre Dubuc
That might be it ( a browser issue) since the behavior seems to occur most in Opera. I shudder to think what IE must be doing with it. And blush . . . I didn't have that declaration on the required page (since the page only contains that code snippet and I thought it unnecessary - guess I was wr

Re: [PHP] 'Require' and 'Select' lists

2005-05-13 Thread Brent Baisley
Sounds like it might be a browser behavior issue. I've seen some really weird behavior in browsers when a DOCTYPE is not declared at the start of the web page. The doctype declaration and the version declared in it are actually very important to the rendering and behavior of a web page. Over t

Re: [PHP] 'Require' and 'Select' lists

2005-05-13 Thread Andre Dubuc
On Friday 13 May 2005 02:20 am, Richard Lynch wrote: > On Thu, May 12, 2005 8:41 pm, Andre Dubuc said: > > I've had some rather odd intermittent behavior with a select list drawn > > by a > > 'require' on my production site. Sometimes, rather than displaying 'In > > USA/Canada' from the 'In USA/Can

Re: [PHP] 'Require' and 'Select' lists

2005-05-13 Thread Richard Lynch
On Thu, May 12, 2005 8:41 pm, Andre Dubuc said: > I've had some rather odd intermittent behavior with a select list drawn by > a > 'require' on my production site. Sometimes, rather than displaying 'In > USA/Canada' from the 'In USA/Canada' code in the > required file, it will display a blank. Yet,

[PHP] 'Require' and 'Select' lists

2005-05-12 Thread Andre Dubuc
Hi, I've had some rather odd intermittent behavior with a select list drawn by a 'require' on my production site. Sometimes, rather than displaying 'In USA/Canada' from the 'In USA/Canada' code in the required file, it will display a blank. Yet, if I try to duplicate this behavior on the devel

Re: [PHP] require() in other directories?

2004-11-18 Thread Ryan King
Peter Lauri wrote: I get the Failed to open stream, no such file in directory If you were in one of these folders: /fr/ /eng/ And your classfile was namned classes.php and in the directory: /classes/ And you wanted to include the classfile, how would you write it? I would assume: require("/classes/

Re: [PHP] require() in other directories?

2004-11-18 Thread Jason Wong
On Thursday 18 November 2004 19:45, Peter Lauri wrote: Please do not top post. > But if I am working on a webserver it would try to find it in the root of > my webserver, or am I wrong? > > For example I use that notation with an image: > I use this: That is your 'webroot'. > Is this not the c

Re: [PHP] require() in other directories?

2004-11-18 Thread Peter Lauri
But if I am working on a webserver it would try to find it in the root of my webserver, or am I wrong? For example I use that notation with an image: I use this: Is this not the case for the PHP-scripting? /Peter "Jason Wong" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > On

Re: [PHP] require() in other directories?

2004-11-18 Thread Jason Wong
On Thursday 18 November 2004 16:32, Peter Lauri wrote: > I get the Failed to open stream, no such file in directory > > If you were in one of these folders: > /fr/ > /eng/ > And your classfile was namned classes.php and in the directory: > /classes/ > And you wanted to include the classfile, how wo

Re: [PHP] require() in other directories?

2004-11-18 Thread Peter Lauri
I get the Failed to open stream, no such file in directory If you were in one of these folders: /fr/ /eng/ And your classfile was namned classes.php and in the directory: /classes/ And you wanted to include the classfile, how would you write it? I would assume: require("/classes/classes.php"); B

Re: [PHP] require() in other directories?

2004-11-18 Thread Pluance
What error happen? On Thu, 18 Nov 2004 09:15:22 +0100, Peter Lauri <[EMAIL PROTECTED]> wrote: > Best groupmember, > > I have an webapplication that uses different languages and therefor I have > set up different directorys for each language. All languages use the same > classes. > > The problem

[PHP] require() in other directories?

2004-11-18 Thread Peter Lauri
Best groupmember, I have an webapplication that uses different languages and therefor I have set up different directorys for each language. All languages use the same classes. The problem I have is when I want to require() the classfile I can not require a file that is not in the same directory a

RE: [PHP] require/include from a different directory

2003-03-31 Thread Jennifer Goodie
If the includes are within the website, using $_SERVER[DOCUMENT_ROOT]/pathtofile/file is a good way to go. -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Saturday, March 29, 2003 2:10 PM To: 'Greg Macek'; [EMAIL PROTECTED] Subject: RE: [PHP] require/incl

Re: [PHP] require/include from a different directory

2003-03-30 Thread Tim Burden
any folder. - Original Message - From: "Greg Macek" <[EMAIL PROTECTED]> Newsgroups: php.general To: <[EMAIL PROTECTED]> Sent: Saturday, March 29, 2003 3:37 PM Subject: Re: [PHP] require/include from a different directory > It seems I have found my problem. It has to do wit

RE: [PHP] require/include from a different directory

2003-03-29 Thread John W. Holmes
> > try using an absolute path. > > I've considered that route, but an issue I have with that is I do most > of my development work on a machine that a different directory structure > than the production server (currently a Cobalt RaQ4), so the paths are > different. Accommodating both would be a

Re: [PHP] require/include from a different directory

2003-03-29 Thread Greg Macek
n Sat, 2003-03-29 at 14:47, Jason Paschal wrote: > try using an absolute path. > > > > > > > >From: Greg Macek <[EMAIL PROTECTED]> > >To: [EMAIL PROTECTED] > >Subject: [PHP] require/include from a different directory > >Date: 29 Mar 2003 14:19:4

Re: [PHP] require/include from a different directory

2003-03-29 Thread Greg Macek
It seems I have found my problem. It has to do with the files I'm trying to include. They also include other files and the directories it's trying to include files from aren't working. I've found a workaround for my situation for the time being. It's not pretty, but functional. On Sat, 2003-03-29

[PHP] require/include from a different directory

2003-03-29 Thread Greg Macek
Hi, I'm having a problem hopefully can be easily answered. I'm trying to organize parts of my site into different directories so that they're all not in the "main" folder so to speak; basically breaking out by what part of the application it is. I also have an "include" folder for all my main func

RE: [PHP] Require some help about the date comparison

2002-07-17 Thread Manisha
Thanks to all who responded me. Actually I got confused after seeing so many commands but finally got it correct from u guys. Thanks once again. Manisha -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Require some help about the date comparison

2002-07-17 Thread John Holmes
> I want to display some text on web. This text should appear for limited > period e.g from 20th July 12pm till 25th July 3pm. After 25th July 3pm the > text should disappear from screen. $start && $now < $end) { //display text } else { //text expired } ?> Something like that. You can use strto

Re: [PHP] Require some help about the date comparison

2002-07-17 Thread Andrey Hristov
CTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 17, 2002 9:55 AM Subject: [PHP] Require some help about the date comparison > I am writing one program - > > I want to display some text on web. This text should appear for limited > period e.g from 20th July 12pm till 25t

Re: [PHP] Require some help about the date comparison

2002-07-17 Thread Jason Wong
On Wednesday 17 July 2002 14:55, Manisha wrote: > I am writing one program - > > I want to display some text on web. This text should appear for limited > period e.g from 20th July 12pm till 25th July 3pm. After 25th July 3pm the > text should disappear from screen. > > I tried to look for date co

[PHP] Require some help about the date comparison

2002-07-16 Thread Manisha
I am writing one program - I want to display some text on web. This text should appear for limited period e.g from 20th July 12pm till 25th July 3pm. After 25th July 3pm the text should disappear from screen. I tried to look for date comparison / string conversion to date etc, I got lot info

Re: [PHP] Require()

2002-06-26 Thread Andy Whittlestone
Thanks, that worked, and made it alot clearer. Andy "John Holmes" <[EMAIL PROTECTED]> wrote in message 000501c21d12$f4907580$b402a8c0@mango">news:000501c21d12$f4907580$b402a8c0@mango... > > if ($viewsystem = = 1) > > $Str = "editexemptfiles.php?every = 1"; > > > > require($Str); > > You don

RE: [PHP] Require()

2002-06-26 Thread Niklas Lampén
Try this: Niklas -Original Message- From: Andy Whittlestone [mailto:[EMAIL PROTECTED]] Sent: 26. kesäkuuta 2002 15:37 To: [EMAIL PROTECTED] Subject: [PHP] Require() I want to use require to send some post information to a page. Code: if ($viewsystem = = 1) $Str

RE: [PHP] Require()

2002-06-26 Thread John Holmes
> if ($viewsystem = = 1) > $Str = "editexemptfiles.php?every = 1"; > > require($Str); You don't pass variables to a require()'d file. Any variable in the current scope is available in the included()'d, require()'d file. So just require($editexemptfiles.php); and in that file, $every will b

Re: [PHP] Require()

2002-06-26 Thread Andy Whittlestone
I'm afraid it don't ork. Thanks Anyway. Anyone ? "Adam Voigt" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > No spaces. > > Instead of "every = 1" > Use: "every=1" > > Adam Voigt > [EMAIL PROTECTED] > > On Wed, 2002-06-26 at 08:37, Andy Whittlestone wrote:

Re: [PHP] Require()

2002-06-26 Thread Adam Voigt
No spaces. Instead of "every = 1" Use: "every=1" Adam Voigt [EMAIL PROTECTED] On Wed, 2002-06-26 at 08:37, Andy Whittlestone wrote: > I want to use require to send some post information to a page. > > > Code: > > if ($viewsystem = = 1) > $Str = "editexemptfiles.php?every = 1"; > > requ

[PHP] Require()

2002-06-26 Thread Andy Whittlestone
I want to use require to send some post information to a page. Code: if ($viewsystem = = 1) $Str = "editexemptfiles.php?every = 1"; require($Str); I've tried what it says in the online documentation, but it doesn't work, Tried: $Str = "d:\htdocs\somewhere\editexemptfiles.php?every

Re: [PHP] require or include ?

2002-03-28 Thread bvr
both include the file, but use require() when it is required, and include() when it's not. In the new behaviour these two make no further difference. bvr. Javier wrote: >If I include for ex. common.php in a script and this script also calls >common.php what should I use require or include? >

Re: [PHP] require or include ?

2002-03-28 Thread Javier
rom it. include() may be conditional. > > -Original Message- > From: javier [mailto:[EMAIL PROTECTED]] > Sent: Thursday, March 28, 2002 4:44 PM > To: [EMAIL PROTECTED] > Subject: [PHP] require or include ? > > > When should I use require or include? > I read that

RE: [PHP] require or include ?

2002-03-28 Thread Rick Emery
require() is used when you want the file included regardless of whether any information is used from it. include() may be conditional. -Original Message- From: javier [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 4:44 PM To: [EMAIL PROTECTED] Subject: [PHP] require or

[PHP] require or include ?

2002-03-28 Thread javier
When should I use require or include? I read that include copies the content from the file to the script that is calling it. And require is like #include in C. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Require variable declaration?

2002-03-27 Thread Johnson, Kirk
You can catch typos by setting the error reporting level to E_ALL (in php.ini). PHP will then give you a warning whenever a variable is used before it has been assigned a value. Kirk > That's too bad, > I used to do some ASP which is weakly typed too but I still > could use "Option Explicit" t

RE: [PHP] Require variable declaration?

2002-03-27 Thread Rick Emery
There has been some discussion at zend.com to add this to PHP5/engine 2.0. However, the idea was rejected. -Original Message- From: Kjell Hansen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 2:54 PM To: Rick Emery; [EMAIL PROTECTED] Subject: Re: [PHP] Require variable

Re: [PHP] Require variable declaration?

2002-03-27 Thread Kjell Hansen
? Thanx /Kjell - Original Message - From: "Rick Emery" <[EMAIL PROTECTED]> To: "'Kjell Hansen'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, March 27, 2002 10:45 PM Subject: RE: [PHP] Require variable declaration? > PHP is wea

RE: [PHP] Require variable declaration?

2002-03-27 Thread Demitrious S. Kelly
PM To: [EMAIL PROTECTED] Subject: [PHP] Require variable declaration? Hi, I've just started making my database/PHP-scripts and I'm used to, from my earlier development, have my variables declared at the top of each routine. But I can't find the command that would force me to declar

RE: [PHP] Require variable declaration?

2002-03-27 Thread Rick Emery
PHP is weakly typed. Therefore, definitions are not needed. A variable may assume any guise depending upon its context. -Original Message- From: Kjell Hansen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 2:47 PM To: [EMAIL PROTECTED] Subject: [PHP] Require variable

[PHP] Require variable declaration?

2002-03-27 Thread Kjell Hansen
Hi, I've just started making my database/PHP-scripts and I'm used to, from my earlier development, have my variables declared at the top of each routine. But I can't find the command that would force me to declare my variables and I can't find the declare statement either. Is there a way to do th

RE: [PHP] require() vs include()

2002-03-15 Thread Ford, Mike [LSS]
> -Original Message- > From: Jim Lucas [php] [mailto:[EMAIL PROTECTED]] > Sent: 15 March 2002 00:55 > > Plus, depending on how you are calling the file. Meaning if > the file name > that you are calling is a static file name or dynamic file name > > require() and require_once() will i

Re: [PHP] require() vs include()

2002-03-14 Thread Jim Lucas [php]
s www.bend.com - Original Message - From: "SHEETS,JASON (Non-HP-Boise,ex1)" <[EMAIL PROTECTED]> To: "'David McInnis'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, March 14, 2002 3:56 PM Subject: RE: [PHP] require() vs include()

RE: [PHP] require() vs include()

2002-03-14 Thread SHEETS,JASON (Non-HP-Boise,ex1)
ctions ensure the file is only included once which prevents a lot of problems. Jason -Original Message- From: David McInnis [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 4:47 PM To: [EMAIL PROTECTED] Subject: [PHP] require() vs include() Are these redundant functions or are they

[PHP] require() vs include()

2002-03-14 Thread David McInnis
Are these redundant functions or are they different? I seem to be able to use the interchangeably. David McInnis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] require v. includes

2002-03-07 Thread Andrey Hristov
require includes code only once(on the parse), include includes code everytime it is called. if you have some libs and in two or more you do require or include of some core lib you have to use require_once or to define some constant and use it to check. I am sure when but require changed its b

[PHP] require v. includes

2002-03-07 Thread Joshua E Minnie
I was just wondering if anyone could tell me when would be the time to choose require(), require_once(), or include(). I know a little bit about using each one, but I am just not sure if there is one that is better than the other in certain situations. -- Joshua E Minnie CIO [EMAIL PROTECTED] "

[PHP] Require File on Another Computer with UNC Reference

2002-02-12 Thread David Drewa
I'm using IIS 5.0 on Windows 2000. I installed PHP 4.1.1 configured to be a CGI interpreter. I'm trying to require a file located on another W2K computer on our LAN with this code: require 'computername\\sharename\\functions.php'; However, when I try to execute this PHP script, I get this e

Re: [PHP] require or include

2001-11-15 Thread Mike Eheler
It all depends on the purpose. With require, the script will die on the spot if the file is not found. Also, the code will always be included in the file.. so take this example: file.php: requiretest.php: The run script would be: Of course that code would never be executed, but the requi

[PHP] require or include

2001-11-15 Thread Oosten, Sjoerd van
Hello list, I'm just wandering what's better, require or include. Greetings, Sjoerd van Oosten Digitaal vormgever [EMAIL PROTECTED] Datamex E-sites B.V. http://www.esites.nl Minervum 7368 Telefoon: (076) 5 730 730 4817 ZH BREDA Telefax: (076) 5 877 75

Re: [PHP] require & include

2001-10-22 Thread Steve Cayford
http://www.php.net/manual/en/function.require.php require() pulls in the target file when the source file is parsed/compiled, include() pulls in the target file when the source file is executed. So an include() nested in an if statement will only be included if the if statement evaluates to tr

[PHP] require & include

2001-10-22 Thread jtjohnston
Coverting from perl ... What's the differencw between require and include? Where, when, why? John? Email post & reply always appreciated -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To c

Re: [PHP] require using url

2001-08-09 Thread Christian Reiniger
On Wednesday 08 August 2001 18:08, [EMAIL PROTECTED] wrote: > I'm having a problem using require with a url. What I'm trying to do is > have a php script on a server that calls a file on another server using > require. The file that is called on the other server contains php > functions that the

RE: [PHP] require using url

2001-08-08 Thread Nigel_Soon
ongren > CC: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Onderwerp: Re: [PHP] require using url > > > Line 51 has a call to login(). The login() function is in functions.php > which lives on a different server. I try to use functions.php by putting > the require statement in survey.php. Thi

RE: [PHP] require using url

2001-08-08 Thread Bruin, Bolke de
6:20 PM Aan: Tyler Longren CC: [EMAIL PROTECTED]; [EMAIL PROTECTED] Onderwerp: Re: [PHP] require using url Line 51 has a call to login(). The login() function is in functions.php which lives on a different server. I try to use functions.php by putting the require statement in survey.php. This

Re: [PHP] require using url

2001-08-08 Thread Nigel_Soon
Line 51 has a call to login(). The login() function is in functions.php which lives on a different server. I try to use functions.php by putting the require statement in survey.php. This works when they both live on the same server but when I try using require with the url to a remote server it fa

Re: [PHP] require using url

2001-08-08 Thread Tyler Longren
What's on line 51? The error is on line 51 in survey.php. require() Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com isn't on line 51. The error occurs because there's no login() function. On Wed, 8 Aug 2001 10:08:01 -0600 (Mountain Daylight Time) <[EMAIL PRO

[PHP] require using url

2001-08-08 Thread Nigel_Soon
Hi, I'm having a problem using require with a url. What I'm trying to do is have a php script on a server that calls a file on another server using require. The file that is called on the other server contains php functions that the calling php script uses. I my attempts so far I get: Fatal erro

[PHP] require() results in session and header-sent errors

2001-07-30 Thread Jempty, George
I'm trying to prototype the framework for some intranet applications. I begin with a login.php script. At the VERY top, of this script, I require a file as follows: require("intranet_ini.php"); This contains some constant definitions, and one function; here is the code:

Re: [PHP] Require very urgent Help about Security (pki, digital signature) along with PHP

2001-07-10 Thread Christian Reiniger
On Tuesday 10 July 2001 04:50, Manisha wrote: > I want to develop one payment site, where people will pay their tax. [...] > These reports are very sensitive, so I want high end security (I am out > of USA). I am thinking of using pki (public key infrastructure). If it is very sensitive, employ

[PHP] Require very urgent Help about Security (pki, digital signature) along with PHP

2001-07-09 Thread Manisha
Hi, I want to develop one payment site, where people will pay their tax. The payment is made through the payment gateway. But database entries are on local machine. From these database entries I am generating reports which need to encrypt and send it through mail or keep for download (which on

[PHP] Require SAMPLE Script for Macromedia Generator2 Flash using PHP ?

2001-05-09 Thread Manisha
Hi, This is a question regarding Macromedia Generator 2 using PHP 4. I have created a PNG and using a URL method to call .php file. In documentation they are saying ' You can call any file but content that returns must be in a text file and in proper format' What do you mean by that ? Is thi

RE: [PHP] Require vs include

2001-03-17 Thread Boaz Yahav
, March 17, 2001 9:44 AM To: [EMAIL PROTECTED] Subject: [PHP] Require vs include Hi Can someone explain me what's the difference between include() and require() ?? I did not catch the explanation in the docs. When should I use include() and when should I use require() ?? I'm not on the lis

[PHP] Require vs include

2001-03-16 Thread NGUYEN DINH Quoc Huy
Hi Can someone explain me what's the difference between include() and require() ?? I did not catch the explanation in the docs. When should I use include() and when should I use require() ?? I'm not on the list so reply me to: [EMAIL PROTECTED] Thnx --

Re: [PHP] require on compressed files

2001-03-01 Thread Christian Reiniger
On Wednesday 28 February 2001 22:58, you wrote: > I am trying to get the expected behavior of: > require("filename.gz"); > or > require("filename.bz2"); > to work properly. Why do you want to do that? If that file is just a normal include file, compression just adds unneccessary overhead. If it

[PHP] require on compressed files

2001-02-28 Thread Shane Wegner
Hi all, I am trying to get the expected behavior of: require("filename.gz"); or require("filename.bz2"); to work properly. Beyond using gzopen, gzread, and gzwrite to do it using a temp file, is there any other way to include a compressed file with PHP code? I thought of using gzread and passin

RE: [PHP] require() ???

2001-02-16 Thread Maamiin
:[EMAIL PROTECTED]] || Sent: Friday, February 16, 2001 8:30 PM || To: PHP User Group || Subject: RE: [PHP] require() ??? || || || Hello, || || Can you give me the full path to where the php script is and the || full path || to where the script is you want require(''); || || I use this al

RE: [PHP] require() ???

2001-02-16 Thread Brandon Orther
evelopment Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com -Original Message- From: Maamiin [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 9:38 AM To: PHP General Newslist Subject: [PHP] require() ??? How can I use this f

[PHP] require() ???

2001-02-16 Thread Maamiin
How can I use this function to load files from subfolders? when i try this on apache (Linux+PHP3) require('cls/mysql.cl.php3'); from log I can read then: [error] PHP3 Fatal error: Failed opening required 'cls/mysql.cl.php3' in 'index.php3' on line 6 I already tried full-path, but nothing! Only

RE: [PHP] require('asdf')

2001-02-15 Thread Maxim Maletsky
3:05 AM To: PHP User Group Subject: [PHP] require('asdf') Hello, I am using the require() function to open up the head of my pages. In the head.php file it requires something relative to its path. What I want to do is be able to require('head.php') without having to copy all th

Re: [PHP] require('asdf')

2001-02-14 Thread Chris Lee
is this what you want ? somefile.php -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 ""Brandon Orther"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, > > I am using the require() functi

[PHP] require('asdf')

2001-02-14 Thread Brandon Orther
Hello, I am using the require() function to open up the head of my pages. In the head.php file it requires something relative to its path. What I want to do is be able to require('head.php') without having to copy all the files head.php requires into the folder of the script using this head.php