On Sat, February 2, 2008 5:09 am, ehl lhe wrote:
hello,
I'd like to know where PHP finally sets the php.ini-values in it's
sourcecode, e.g. max_execution_time, open_basedir, etc...
What I need is to set several static values which must not be editable
using php.ini, .htaccess, ini_set,
hello,
I'd like to know where PHP finally sets the php.ini-values in it's sourcecode,
e.g. max_execution_time, open_basedir, etc...
What I need is to set several static values which must not be editable using
php.ini, .htaccess, ini_set, or whatever - so I simply need to set final values
for
On Feb 2, 2008 6:09 AM, ehl lhe [EMAIL PROTECTED] wrote:
hello,
I'd like to know where PHP finally sets the php.ini-values in it's
sourcecode, e.g. max_execution_time, open_basedir, etc...
What I need is to set several static values which must not be editable using
php.ini, .htaccess,
On Wednesday 11 April 2007 23:50, Jarrel Cobb wrote:
Don't you have to run locate -u first to generate the database before using
locate? You can't just assume a database exists already can you?
not an updated one at least, updatedb can also be used to update.
and if you're in a little bit of
Børge Holen wrote:
On Wednesday 11 April 2007 23:50, Jarrel Cobb wrote:
Don't you have to run locate -u first to generate the database before using
locate? You can't just assume a database exists already can you?
not an updated one at least, updatedb can also be used to update.
Probably
Em Quarta 11 Abril 2007 19:38, Buesching, Logan J escreveu:
IF db not exists THEN
locate -u
END-IF
I'd hate to see the time it'd take to create a first-time database...
this could take awhile to run.
_maybe_ locate -u is faster than ls / -Rv... Need to test before said
Hi,
I have looked in the documentation but can't find it:
My PHP script (which is run from the command prompt - CLI) needs to know
the file system location of the PHP executable. This is because it needs
to run a second PHP script. I know about the which command but it's
not available in all
Mattias Thorslund wrote:
Hi,
I have looked in the documentation but can't find it:
My PHP script (which is run from the command prompt - CLI) needs to know
the file system location of the PHP executable. This is because it needs
to run a second PHP script. I know about the which command but
Don't you have to run locate -u first to generate the database before using
locate? You can't just assume a database exists already can you?
On 4/11/07, Jim Lucas [EMAIL PROTECTED] wrote:
Mattias Thorslund wrote:
Hi,
I have looked in the documentation but can't find it:
My PHP script
Em Quarta 11 Abril 2007 18:50, Jarrel Cobb escreveu:
Don't you have to run locate -u first to generate the database before using
locate? You can't just assume a database exists already can you?
If you can use locate, you can use which... =P
BTW, do something to check OS then:
IF OS == *nix
Jim Lucas wrote:
Mattias Thorslund wrote:
Hi,
I have looked in the documentation but can't find it:
My PHP script (which is run from the command prompt - CLI) needs to know
the file system location of the PHP executable. This is because it needs
to run a second PHP script. I know about the
Subject: Re: [PHP] location of the PHP executable
Em Quarta 11 Abril 2007 18:50, Jarrel Cobb escreveu:
Don't you have to run locate -u first to generate the database before
using
locate? You can't just assume a database exists already can you?
If you can use locate, you can use which... =P
Mattias Thorslund wrote:
Jim Lucas wrote:
...
$ /my-location-of/php myscript.php
/my-location-of/php
$
I was hoping there's a function or $_SERVER property that would contain
this?
have you tried looking for this info you want?
I can't say for sure if it always exists but on the few
On Wed, April 11, 2007 2:49 pm, Mattias Thorslund wrote:
I have looked in the documentation but can't find it:
My PHP script (which is run from the command prompt - CLI) needs to
know
the file system location of the PHP executable. This is because it
needs
to run a second PHP script. I know
Jochem Maas wrote:
have you tried looking for this info you want?
Yup, but the manual seems kind of light on the subject.
I can't say for sure if it always exists but on the few boxes
I tried I found and entry in both $_SERVER and $_ENV:
_ = '/usr/bin/php'
I found
your script should try it's best to find the executable, on failure
you might consider having it mail an error to you so at least you
can pre-empt the client with regard to getting things working.
most windows machines will probably have there php binary at:
$_ENV['PHPRC'].'php.exe'
This probably belongs in php-install, but here goes.
Where should extension files be located? In php.ini the default entry for
extension_dir is:
extension_dir= ./
That's fine, but relative to which directory (locations in parentheses)?
Where php.ini is located? (/usr/share/lib)
Where
On Tuesday 10 April 2007 15:24, Miles Thompson wrote:
This probably belongs in php-install, but here goes.
Where should extension files be located? In php.ini the default entry for
extension_dir is:
extension_dir= ./
That's fine, but relative to which directory (locations in
On Tue, April 10, 2007 8:24 am, Miles Thompson wrote:
This probably belongs in php-install, but here goes.
Where should extension files be located?
Yes.
:-)
They should go wherever it makes sense on your setup.
In php.ini the default entry
for
extension_dir is:
extension_dir= ./
On Wed, December 28, 2005 8:15 am, Christian Ista wrote:
PHP? I tried this code : header(Location: mypage.php);
But in some case, I have error message headers already sent. Then I
You know the old saying, You can't step in the same stream twice?
Think about it.
Really think about it.
Now...
On Fri, 2005-12-30 at 15:04, Richard Lynch wrote:
On Wed, December 28, 2005 8:15 am, Christian Ista wrote:
PHP? I tried this code : header(Location: mypage.php);
*LOL* That was one of the best write-ups I've ever read concerning the
headers already sent error message.
Similarly, watch out
On Fri, December 30, 2005 2:16 pm, Robert Cummings wrote:
Similarly, watch out for BLANK LINES after the last ? in your
files.
They will trip you up for header()
Regarding that last ? in scripts, the PHP engine intentionally
supports
it's omission so that you don't have to think about
Christian Ista wrote:
From: Jay Blanchard [mailto:[EMAIL PROTECTED]
Header is a good solution, and is the only one available in PHP for
redirects. It requires that you do not send anything else out to the
browsers before sending the redirect, which is what is causing your error.
You can always
Hello,
Could you tell me a efficient solution for change page (new location) in
PHP? I tried this code : header(Location: mypage.php);
But in some case, I have error message heade already send. Then I use a
javascript solution : window.location.href=mypage.php;
Is there a good solution in php ?
[snip]
Could you tell me a efficient solution for change page (new location) in
PHP? I tried this code : header(Location: mypage.php);
But in some case, I have error message heade already send. Then I use a
javascript solution : window.location.href=mypage.php;
Is there a good solution in php ?
Christian Ista wrote:
Hello,
Could you tell me a efficient solution for change page (new location) in
PHP? I tried this code : header(Location: mypage.php);
note: HTTP/1.1 requires an absolute URI
http://php.net/header
But in some case, I have error message heade already send. Then I use
From: Jay Blanchard [mailto:[EMAIL PROTECTED]
Header is a good solution, and is the only one available in PHP for
redirects. It requires that you do not send anything else out to the
browsers before sending the redirect, which is what is causing your error.
You can always use the output
[snip]
Ok but there is something more strange.
I use header location in a switch/case. An header location by case. I
don't understand at the end of the case, the header location don't work and
I go through the others cases.
Any idea why ?
[/snip]
Not without seeing code.
--
PHP General
On Wed, Dec 28, 2005 at 03:15:09PM +0100, Christian Ista wrote:
Hello,
Could you tell me a efficient solution for change page (new location) in
PHP? I tried this code : header(Location: mypage.php);
But in some case, I have error message heade already send. Then I use a
javascript
I really appreciate everyone who responded taking your valuable time
looking into my problem.
Now back to my problem. Changing the condition to if($_SERVER['HTTPS']
!= 'on') did not make any difference unfortunately. So the result was
still the URL in the Address box of the browser changed to
On 05 August 2004 16:36, Bing Du wrote:
I really appreciate everyone who responded taking your valuable time
looking into my problem.
Now back to my problem. Changing the condition to
if($_SERVER['HTTPS']
!= 'on') did not make any difference unfortunately. So the result was
still the
On 05 August 2004 17:12, Ford, Mike [LSS] wrote:
(1) Your browser requests
https://computing.eng.iastate.edu/mambo/index.php?option=conte
nttask=viewi d=159Itemid=162
Bother! Sorry, that should, of course, be http:// in step (1)!
Cheers!
Mike
I sent Bing specific code that will work:
If (!IsSet($_SERVER[HTTPS]))
Header(Location: https://; . $_SERVER[HTTP_HOST] .
$_SERVER[REQUEST_URI]);
Manually go to the URL specified.
https://computing.eng.iastate.edu/mambo/index.php?option=contenttask=viewi
d=159Itemid=162
It doesn't
On Thu, 5 Aug 2004 10:35:47 -0500 (CDT), Bing Du [EMAIL PROTECTED] wrote:
I really appreciate everyone who responded taking your valuable time
looking into my problem.
Now back to my problem. Changing the condition to if($_SERVER['HTTPS']
!= 'on') did not make any difference unfortunately.
Quoting Justin Patrin [EMAIL PROTECTED]:
On Tue, 3 Aug 2004 15:34:27 -0500 (CDT), Bing Du [EMAIL PROTECTED] wrote:
The latest message I got was 'Redirection limit for this URL exceeded.
Unable to load the requested page.This may be caused by cookies that are
blocked.'.
Your page is
Ok, now I'm confused and cannot understand the result of the following
code snippet. After click the link that I want to redirect, the URL in
the Address box of the browser changed from http to https fine (that's
what I expected). But 'hello my friend' was also displayed. How come?
On Wed, 4 Aug 2004 17:02:30 -0500 (CDT), Bing Du [EMAIL PROTECTED] wrote:
Ok, now I'm confused and cannot understand the result of the following
code snippet. After click the link that I want to redirect, the URL in
the Address box of the browser changed from http to https fine (that's
what I
On Thursday 05 August 2004 06:18, Justin Patrin wrote:
if($_SERVER['HTTPS'] != 'on') {
Careful, IIRC the value of $_SERVER['HTTPS'] differs depending on websever.
The original isset() is the better way.
Bing, IIRC you're redirecting back to the same page weren't you?
if ($option ==
I've been struggling with this redirect thing for a while but still cannot
get it work. I'm desperately needing help, please.
What I want to do is redirect
http://computing.eng.iastate.edu/mambo/index.php?option=contenttask=viewid=159Itemid=162
to
On Tuesday 03 August 2004 15:41, Bing Du offered up the following tid-bit of
information :
I've been struggling with this redirect thing for a while but still
cannot get it work. I'm desperately needing help, please.
What I want to do is redirect
On Wednesday 04 August 2004 03:41, Bing Du wrote:
==
if ($option == 'content' and $task == 'view' and $id == 159 and $Itemid ==
162)
{
session_write_close();
header(Location:
https://computing.eng.iastate.edu/mambo/index.php?option=contenttask=view;
id=159Itemid=162); exit;
}
I've been struggling with this redirect thing for a while but still cannot
get it work. I'm desperately needing help, please.
What I want to do is redirect
http://computing.eng.iastate.edu/mambo/index.php?option=contenttask=viewid=159Itemid=162
to
The latest message I got was 'Redirection limit for this URL exceeded.
Unable to load the requested page.This may be caused by cookies that are
blocked.'.
Bing
On Tuesday 03 August 2004 15:41, Bing Du offered up the following tid-bit
of
information :
I've been struggling with this redirect
header(Location: . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
-Original Message-
From: John Nichel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 03, 2004 12:59 PM
To: Bing Du; [EMAIL PROTECTED]
Subject: Re: [PHP] Location header does not work?
On Tuesday 03 August 2004
] Location header does not work?
header(Location: . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
-Original Message-
From: John Nichel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 03, 2004 12:59 PM
To: Bing Du; [EMAIL PROTECTED]
Subject: Re: [PHP] Location header does
Netscape?
Monty
From: [EMAIL PROTECTED] (Bing Du)
Newsgroups: php.general
Date: Tue, 3 Aug 2004 15:34:27 -0500 (CDT)
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Location header does not work?
The latest message I got was 'Redirection limit for this URL exceeded.
Unable to load the requested
The latest message I got was 'Redirection limit for this URL exceeded.
Unable to load the requested page.This may be caused by cookies that are
blocked.'.
Bing
Correct me if I'm wrong but I think this is an Apache error.
--
--Matthew Sims
--http://killermookie.org
--
PHP General
On Tue, 3 Aug 2004 15:34:27 -0500 (CDT), Bing Du [EMAIL PROTECTED] wrote:
The latest message I got was 'Redirection limit for this URL exceeded.
Unable to load the requested page.This may be caused by cookies that are
blocked.'.
Your page is redirecting you over and over again. Your problem
-Original Message-
From: Ed Lazor [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 03, 2004 2:33 PM
To: 'Bing Du'
Subject: RE: [PHP] Location header does not work?
I tried the https address and it lagged badly on me as well. It did
eventually display, so I looked at the source
--- Lee Stewart [EMAIL PROTECTED] wrote:
It's version 4.0.3
Lee
In v4.3.2, it throws a Parse error: parse error, unexpected '=' in
/path/to/file/test.php on line 23.
Chris Shiflett wrote:
--- Lee Stewart [EMAIL PROTECTED] wrote:
Here's a *working* section of code... Note the
On Tue, Nov 11, 2003 at 01:46:33PM -0800, Mark wrote:
:
: --- Lee Stewart [EMAIL PROTECTED] wrote:
:
: Here's a *working* section of code... Note the
:location = browse.php;
: on line 23
:
: In v4.3.2, it throws a Parse error: parse error, unexpected '=' in
:
Hi...
I'm looking at an existing application that uses a number of statements
like:
location = page2.php;
I thought I'd seen it somewhere in the PHP doc, but can't find it now..
Can anyone point me to where it's written up?
Thanks,
Lee
--
PHP General Mailing List (http://www.php.net/)
To
[snip]
I'm looking at an existing application that uses a number of statements
like:
location = page2.php;
I thought I'd seen it somewhere in the PHP doc, but can't find it now..
Can anyone point me to where it's written up?
[/snip]
http://www.php.net/header
--
PHP General Mailing
I see the Location: of the Header function there, but what I see in the
code is just a location = and a page name... No header function...
Is it the same thing?
Lee
Jay Blanchard wrote:
[snip]
I'm looking at an existing application that uses a number of statements
like:
location = page2.php;
--- Lee Stewart [EMAIL PROTECTED] wrote:
I'm looking at an existing application that uses a number of
statements like:
location = page2.php;
I thought I'd seen it somewhere in the PHP doc, but can't find it
now.. Can anyone point me to where it's written up?
The HTTP header itself is
Lee Stewart mailto:[EMAIL PROTECTED]
on Monday, November 10, 2003 12:18 PM said:
I see the Location: of the Header function there, but what I see in
the code is just a location = and a page name... No header
function...
Is it the same thing?
$location = page.php; is nothing more than
It's not $location = xxx, just
location = page.php;
And it seems to work as a redirect... But not part of the header
fuction, and not just setting a variable...
Lee
Chris W. Parker wrote:
Lee Stewart mailto:[EMAIL PROTECTED]
on Monday, November 10, 2003 12:18 PM said:
I see the Location:
--- Lee Stewart [EMAIL PROTECTED] wrote:
It's not $location = xxx, just location = page.php;
So the dollar sign is missing? Can you show us all of the code in
question? (Or did I miss it?)
And it seems to work as a redirect... But not part of the header
fuction, and not just setting a
Lee Stewart mailto:[EMAIL PROTECTED]
on Monday, November 10, 2003 12:42 PM said:
It's not $location = xxx, just
location = page.php;
And it seems to work as a redirect... But not part of the header
fuction, and not just setting a variable...
Hmm.. Never seen that before and the
Here's a *working* section of code... Note the
location = browse.php;
on line 23
?
$errmsg = '';
if( isset($username) ) {
require_once('Connections/mySql.php');
mysql_select_db($database_mySql, $mySql);
$rs = mysql_query(select * from employee where initials = ' .
--- Lee Stewart [EMAIL PROTECTED] wrote:
Here's a *working* section of code... Note the
location = browse.php;
on line 23
How does that not generate a parse error? I must be missing something.
It seems to me that either a dollar sign is missing, or the line is
intended to define a
It's version 4.0.3
Lee
Chris Shiflett wrote:
--- Lee Stewart [EMAIL PROTECTED] wrote:
Here's a *working* section of code... Note the
location = browse.php;
on line 23
How does that not generate a parse error? I must be missing something.
It seems to me that either a dollar sign is
Lee Stewart wrote:
Hi...
I'm looking at an existing application that uses a number of statements
like:
location = page2.php;
I thought I'd seen it somewhere in the PHP doc, but can't find it now..
Can anyone point me to where it's written up?
This would generate parse error in php, but I
Hi,
Anybody have any sugestion how to pass this data.
My only idea is something like this.
redir.php?url=www.somehost.comq=testpos=1
That way i can count click and also send referer with query data.
Wednesday, August 13, 2003, 3:27:10 PM, you wrote:
DO On Wed, 13 Aug 2003 15:22:42 +0200,
Hello!
Is it possible to fake Referer header when redirecting to another URL.
I need this because of some redirection script in our directory. Because I
want that user ger referer from search query not that redirect script
generate.
for example:
redir.php?url=www.somehost.com
and at
No way.
Uros wrote:
Hi,
Anybody have any sugestion how to pass this data.
My only idea is something like this.
redir.php?url=www.somehost.comq=testpos=1
That way i can count click and also send referer with query data.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
I'm using the following short script to redirect users to another page
on my site (php 4.3.2, Apache 2.0.47).
?php
$goLang='en';
header(Location: http://; . $_SERVER['HTTP_HOST'] . / . $goLang . /);
exit;
?
I'm having a problem where it takes up to 15 seconds for the redirect
page to load, but
try putting this after the header:
echo HTML/HTML;
It forces the redirect to take place immediately (in most cases!).
HTH
On Wednesday 30 Jul 2003 11:53 am, admin wrote:
I'm using the following short script to redirect users to another page
on my site (php 4.3.2, Apache 2.0.47).
?php
Excellent, that does the trick.
Thank you
Phil
On Mercoledì, lug 30, 2003, at 13:56 Europe/Rome, Nicholas Robinson
wrote:
try putting this after the header:
echo HTML/HTML;
It forces the redirect to take place immediately (in most cases!).
HTH
On Wednesday 30 Jul 2003 11:53 am, admin wrote:
I had some headers that were working on one server (4.0.6), but isn't
working on my (nearly) fresh install of 4.2.2. Here's the conundrum:
header(Set-Cookie: mid=$mid);
header(Location: $location);
exit;
worked just fine. I moved it over, and now the cookie doesn't take
effect. But
On Tue, 13 Aug 2002 22:14:28 -0500, you wrote:
I had some headers that were working on one server (4.0.6), but isn't
working on my (nearly) fresh install of 4.2.2. Here's the conundrum:
header(Set-Cookie: mid=$mid);
header(Location: $location);
exit;
worked just fine. I moved it
At 06:14 PM 8/15/2001, Wolfgang Schneider wrote:
oops - i forgot - I use functions similar tp the ones used on
php.net. when i call the function i pass $title to it
define $title and it should work. :-)
~kurth
On Tue, 14 Aug 2001 11:39:55 -0400, Kurth Bemis wrote:
just stick this in
On Tue, 14 Aug 2001 11:39:55 -0400, Kurth Bemis wrote:
just stick this in a function as I did and you'll be sailing.its easy
to update, and Extremely flexible.
look at my code.. (rest snipped)
Hi Kurth, and others
I adjusted your code for the purpose of my site (replacing he values in
Hi everyone,
I am somewhat new at the use of php and would appreciate if someone
could help me with a question re location bar
How can a location bar such as the sample below be generated in php to
be displayed in web pages ...
Location : home:/category:sub_1:/page title
Is there a
To: php-general
Subject: [PHP] location bar
Hi everyone,
I am somewhat new at the use of php and would appreciate if someone
could help me with a question re location bar
How can a location bar such as the sample below be generated in php to
be displayed in web pages ...
Location : home
implementations of this all over the place. Try hotscripts.com
or google.com.
Kevin
-Original Message-
From: Wolfgang Schneider [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 14, 2001 12:35 AM
To: php-general
Subject: [PHP] location bar
Hi everyone,
I am somewhat new at the use of php and would
-Original Message-
From: Wolfgang Schneider [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 14, 2001 3:35 PM
To: php-general
Subject: [PHP] location bar
Hi everyone,
I am somewhat new at the use of php and would appreciate if someone
could help me with a question re location bar
How can a location
ok.
I have this problem of mine which i dont know how to solve. therefor i use this
great mailing list.
Lets say i have a URL that looks something like this.
http://adam:9000//usr/local/test/test.html
and i want to change this with a PHP script to
"Brandon Feldhahn" [EMAIL PROTECTED] wrote:
Im making a website and i want the viewer to know were he of she is,
what do i need to do to make a location bar (home serverices ect...)
with the $PHP_SELF command, i wasent able to figure it out so i am
asking assistance from another person.
A
-
From: Brandon Feldhahn [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 23, 2001 10:27 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Location
Im making a website and i want the viewer to know were he of she is,
what do i need to do to make a location bar (home serverices ect...)
with the $PHP_SELF
Im making a website and i want the viewer to know were he of she is,
what do i need to do to make a location bar (home serverices ect...)
with the $PHP_SELF command, i wasent able to figure it out so i am
asking assistance from another person.
--
PHP General Mailing List (http://www.php.net/)
make a function which validates users.
Then where ever you want to restrict access just call that function before
other things .. and it will
do the trick where ever you need .. no if statements needed.
HTH
Jaskirat
At 11:47 PM 2/16/01 -0800, Brandon Feldhahn wrote:
how would i make somthing
see if this name/pw combination are valid.
//return 1 if good, return 0 if bad
}
-Original Message-
From: jaskirat [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 17, 2001 00:30
To: Brandon Feldhahn; [EMAIL PROTECTED]
Subject: Re: [PHP] location
make a function w
how would i make somthing in a IF statement that would take somone to
the members page when they get the login correct
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list
84 matches
Mail list logo