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
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:
> 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
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 = "editexem
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
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 Ma
:[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
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
Use require("$DOCUMENT_ROOT/includes/folder/file.inc")
from any place on you website...
in other words you need to use the full path to the file.
Cheers,
Maxim Maletsky
-Original Message-
From: Brandon Orther [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 15, 2001 3:05 AM
To: PH
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
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
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 f
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()
> -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
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 declarat
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: [
?
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
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
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
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 include
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. inclu
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?
>
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
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, Mar
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
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
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
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
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
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
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
31 matches
Mail list logo