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: ?php echo C; require(echo.php); echo D; ? and a script called echo.php: ?php echo test; ? With IE and Firefox it shows: CtestD but when I view the source, it seems to be:

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

Re: [PHP] Require error

2008-12-20 Thread Jochem Maas
Wolf schreef: Kyle Terry k...@kyleterry.com wrote: On Fri, Dec 19, 2008 at 9:43 AM, Wolf lonew...@nc.rr.com wrote: Bottom Post sean greenslade zootboys...@gmail.com 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,

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 k...@kyleterry.com wrote: On Fri, Dec 19, 2008 at 9:28 AM, sean greenslade zootboys...@gmail.comwrote: So, I have this code in a php file called testing.php: $incl =

Re: [PHP] Require error

2008-12-19 Thread Wolf
Bottom Post sean greenslade zootboys...@gmail.com 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 k...@kyleterry.com wrote: On Fri, Dec 19, 2008 at 9:28 AM, sean greenslade zootboys...@gmail.comwrote:

Re: [PHP] Require error

2008-12-19 Thread Kyle Terry
On Fri, Dec 19, 2008 at 9:43 AM, Wolf lonew...@nc.rr.com wrote: Bottom Post sean greenslade zootboys...@gmail.com 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 k...@kyleterry.com wrote: On Fri,

Re: [PHP] Require error

2008-12-19 Thread Wolf
sean greenslade zootboys...@gmail.com wrote: On Fri, Dec 19, 2008 at 12:43 PM, Wolf lonew...@nc.rr.com wrote: Bottom Post sean greenslade zootboys...@gmail.com wrote: No. The file is called testing.php and it is trying to include sql.inc On Fri, Dec 19, 2008 at 12:36

Re: [PHP] Require error

2008-12-19 Thread Wolf
Kyle Terry k...@kyleterry.com wrote: On Fri, Dec 19, 2008 at 9:43 AM, Wolf lonew...@nc.rr.com wrote: Bottom Post sean greenslade zootboys...@gmail.com 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

Re: [PHP] Require error

2008-12-19 Thread sean greenslade
On Fri, Dec 19, 2008 at 12:50 PM, Wolf lonew...@nc.rr.com wrote: Kyle Terry k...@kyleterry.com wrote: On Fri, Dec 19, 2008 at 9:43 AM, Wolf lonew...@nc.rr.com wrote: Bottom Post sean greenslade zootboys...@gmail.com wrote: No. The file is called testing.php and it is

Re: [PHP] Require error

2008-12-19 Thread Kyle Terry
On Fri, Dec 19, 2008 at 9:50 AM, Wolf lonew...@nc.rr.com wrote: Kyle Terry k...@kyleterry.com wrote: On Fri, Dec 19, 2008 at 9:43 AM, Wolf lonew...@nc.rr.com wrote: Bottom Post sean greenslade zootboys...@gmail.com wrote: No. The file is called testing.php and it is

Re: [PHP] Require error

2008-12-19 Thread sean greenslade
On Fri, Dec 19, 2008 at 12:55 PM, Kyle Terry k...@kyleterry.com wrote: On Fri, Dec 19, 2008 at 9:50 AM, Wolf lonew...@nc.rr.com wrote: Kyle Terry k...@kyleterry.com wrote: On Fri, Dec 19, 2008 at 9:43 AM, Wolf lonew...@nc.rr.com wrote: Bottom Post sean greenslade

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

Re: [PHP] Require error

2008-12-19 Thread sean greenslade
On Fri, Dec 19, 2008 at 1:04 PM, Philip Graham phi...@lightbox.org 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

Re: [PHP] Require error

2008-12-19 Thread Kyle Terry
On Fri, Dec 19, 2008 at 10:07 AM, sean greenslade zootboys...@gmail.comwrote: On Fri, Dec 19, 2008 at 1:04 PM, Philip Graham phi...@lightbox.org 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))

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 local

Re: [PHP] require and http

2007-07-20 Thread Zoltán Németh
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 php-general@lists.php.net Sent: Friday, July 20, 2007 9:25 AM Subject: Re: [PHP] require

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

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 click

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 then

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 'option selectedIn USA/Canada/option' code in the required file, it will

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 'option selectedIn

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

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

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

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

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

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: img src='/image/theimage.gif' Is this not the case for the PHP-scripting? /Peter Jason Wong [EMAIL PROTECTED] skrev i meddelandet

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: img src='/image/theimage.gif' That is your

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:

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/include from

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

2003-03-30 Thread Tim Burden
. - 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 with the files I'm trying to include. They also

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,

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

2003-03-29 Thread Greg Macek
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 time consuming project for me. On Sat,

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 time

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

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

2002-07-17 Thread Andrey Hristov
I think that it is better to use unixtimestamps and if you save them to a RDBMS then save according to GMT. When retrieving use timezone to convert to your local time - ex define('MY_TIMEZONE',-2); list($time) = mysql_fetch_array(mysql_query('select tstamp from table where user='.$user_id.';'));

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

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; require($Str);

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: I want to

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 be

RE: [PHP] Require()

2002-06-26 Thread Niklas Lampén
Try this: ? if ($viewsystem == 1) $Str = d:\\htdocs\\somewhere\\editexemptfiles.php?every=1; require($Str); ? Niklas -Original Message- From: Andy Whittlestone [mailto:[EMAIL PROTECTED]] Sent: 26. kesäkuuta 2002 15:37 To: [EMAIL PROTECTED] Subject: [PHP] Require() I want

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't pass

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

Re: [PHP] require or include ?

2002-03-28 Thread Javier
If I include for ex. common.php in a script and this script also calls common.php what should I use require or include? On Thu, Mar 28, 2002 at 04:44:04PM -0600, Rick Emery wrote: require() is used when you want the file included regardless of whether any information is used from it.

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

RE: [PHP] Require variable declaration?

2002-03-27 Thread Demitrious S. Kelly
You don't need to do this with PHP... a variable is created when you assign a value to it. It is also unnecessary to assign a type. PHP will typecast automatically as necessary -Original Message- From: Kjell Hansen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 12:47 PM To:

Re: [PHP] Require variable declaration?

2002-03-27 Thread Kjell Hansen
- 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 weakly typed. Therefore, definitions are not needed. A variable may assume any guise

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

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

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

2002-03-14 Thread SHEETS,JASON (Non-HP-Boise,ex1)
They are much the same, both include a file. To quote the PHP manual require() and include() are identical in every way except how they handle failure. include() produces a Warning while require() results in a Fatal Error. In other words, don't hesitate to use require() if you want a missing

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

2002-03-14 Thread Jim Lucas [php]
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() They are much the same, both include a file. To quote the PHP manual require() and include

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

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: ? echo Hello World!; ? requiretest.php: ? if (FALSE) { require('file.php'); } ? The

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

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

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

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

RE: [PHP] require using url

2001-08-08 Thread Nigel_Soon
] 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 works when they both live on the same server but when I try using require

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 a

RE: [PHP] Require vs include

2001-03-17 Thread Boaz Yahav
Hi Check out : http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=22 Sincerely berber Visit http://www.weberdev.com Today!!! To see where PHP might take you tomorrow. -Original Message- From: NGUYEN DINH Quoc Huy [mailto:[EMAIL PROTECTED]] Sent: Saturday,

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

RE: [PHP] require() ???

2001-02-16 Thread Brandon Orther
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 all the time and should be able to figure it out. Thank you, Brandon Orther WebIntellects Design/Development

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 all the time