and error_reporing runtime in
your PHP script?
(there is no way that I can use .htaccess to override :-((
Any help would be much appreciated!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact
hosting
provider decides that he wants to upgrade his php (and believe me, he will
use default settings)
Is there any way to override register_globals and error_reporing runtime in
your PHP script?
(there is no way that I can use .htaccess to override :-((
Any help would be much appreciated
a quick and inelegant hack
4.1 includes an array that has all of the data sent to the
script...(or use
the different ones like $_GET etc if need be) then write a
globalize function
that extracts the vars and declares them global...then use this
Or use extract().
--
Richard Heyes
If
Thank you for your answers.
The hack seems the way to go, but I haven't found anything like this on the
net. Presumably because the 'problem' is so new...
I have absolutely no control over my hosting providers settings, and I wish
PHP 4.10 would just understand something like
: Monday, December 17, 2001 4:54 PM
To: Jack Dempsey; Michael Jurgens
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] PHP 4.10: any way to override register_globals = OFF
a quick and inelegant hack
4.1 includes an array that has all of the data sent to the
script...(or use
the different ones like $_GET etc
for all in $_GET
{
$[varname] = $_GET[varname]
}
Could anyone give me some pointers in actually programming this?
extract($_GET);
--
Richard Heyes
If you have any trouble sounding condescending,
find a Unix user to show you how it's done. - Scott Adams
--
PHP General
Jack
$_GET is automatically global to all scopes. No need to globalize.
chuck
- Original Message -
From: Jack Dempsey [EMAIL PROTECTED]
To: Michael Jurgens [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, December 17, 2001 10:49 PM
Subject: Re: [PHP] PHP 4.10: any way to override
PM
To: Jack Dempsey; Michael Jurgens
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP 4.10: any way to override register_globals = OFF
Jack
$_GET is automatically global to all scopes. No need to globalize.
chuck
- Original Message -
From: Jack Dempsey [EMAIL PROTECTED]
To: Michael Jurgens
Hey Guys,
Thanks a lot, I allways use some config files that I include in every page,
and with
extract ($_REQUEST); added to one of those files, almost all of my
problems are history.
I'm now working on getting $PHP_SELF etc back working, but that should work
out.
Amazing this newsgroup, thank
you can do this to get what u want:
foreach($_GET as $key = $val){
$$key = $val;
}
this is what u want to do, right? :)
for all in $_GET
{
$[varname] = $_GET[varname]
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
hello all,
I have got a problem I want to remove one or more evvironment variables
from those passed by apache authentication.
eg : $PHP_AUTH_USER, $PHP_AUTH_PW, REMOTE_USER and similar ones
I went through apache documentation and I found some options like
PassEnv, SetEnv and UnsetEnv, is
Following is a solution...
$now = getdate();
$today = date(d-m-Y);
$yesterday =
date(d-m-Y,mktime(0,0,0,$today['mon'],$today['mday']-1,$today['year']);
echo(Today is . $today . and yesterday was . $yesterday);
Harry Lau [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL
Oh what a big mistake...sorry!
$now = getdate();
$today = date(d-m-Y);
$yesterday =
date(d-m-Y,mktime(0,0,0,$now['mon'],$now['mday']-1,$now['year']);
echo(Today is . $today . and yesterday was . $yesterday);
Harry Lau [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL
[EMAIL PROTECTED] (Harry Lau) wrote:
It is easy to use the function getDate() to obtain the date of today.
But instead of writing plenty of conditions,
is there any easy way to get the date of yesterday?
echo date(m-d-Y, mktime(0,0,0,date(n), date(d)-1, date(Y)));
--
Henrik Hansen
--
strtotime('yesterday') should work!
Harry Lau [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
It is easy to use the function getDate() to obtain the date of today.
But instead of writing plenty of conditions,
is there any easy way to get the date of yesterday?
If we are using the default Apache/PHP authentication, it will always pop up the
default login window for login user ID /password. Is there a method to redirect to a
customized PHP login page instead of the default pop up window?
Thanks ahead.
--
PHP General Mailing List
Yep. Design your own form, and feed the data from that to $PHP_AUTH_USER and
$PHP_AUTH_PW. Don't send the header() for the 403.
Cheers
Jon
-Original Message-
From: Zhu George-CZZ010 [mailto:[EMAIL PROTECTED]]
Sent: 01 November 2001 17:18
To: [EMAIL PROTECTED]
Subject: [PHP
of popping up the default login window?
Regards.
-Original Message-
From: Jon Haworth [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 01, 2001 11:36 AM
To: 'Zhu George-CZZ010'; [EMAIL PROTECTED]
Subject: RE: [PHP] Is there a way not to pop up the default login
window?
Yep. Design your
redirect to a customized PHP login page instead of
popping up the default login window?
Regards.
-Original Message-
From: Jon Haworth [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 01, 2001 11:36 AM
To: 'Zhu George-CZZ010'; [EMAIL PROTECTED]
Subject: RE: [PHP] Is there a way not to pop up
flock does not work because works differently.
is there a way to access fnctl locking directly from php?
--
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 administrators,
This is really I guess a non-PHP question, so please excuse...
What is the most reliable, browser-safe way to redirect the browser from a
default index.html to, say, index.php? The I'm doing it now is with the
following javascript:
script type=text/javascript language=Javascript
You might try META tags. Put this in the head section of your index.html file:
meta http-equiv=refresh content=0; url=index.php
If the user has JavaScript disabled, you're probably best off using a link
and letting the user click through.
You may also be able to adjust your Apache
Before any of your HTML code, put in:
header('Location: index.php');
If anything has been sent to the browser yet (through echo/print/etc, or
through code outside of the ?php ? tags), though, you will get an error.
Mike
René Fournier wrote:
This is really I guess a non-PHP question, so
René Fournier wrote:
And it works, but I wanted to know if any of you are using a better [more
compatible] way of redirecting the browser (say, if it doesn't have
JavaScript (!?)).
If you're using Apache, add 'index.php' to the DirectoryIndex option in
httpd.conf. Then you can remove
On Friday 26 October 2001 10:25, you wrote:
What is the most reliable, browser-safe way to redirect the browser from a
default index.html to, say, index.php? The I'm doing it now is with the
following javascript:
The most reliable, browser-safe, non-PHP way to redirect mail is to do
Right. My bad.
Heh, I have an excuse.. it's before noon here ;)
Definitely go with the meta approach, then:
Example:
html
head
meta http-equiv=refresh content=0; url=index.php /
/head
body
a href=index.phpClick here to enter the site/a
/body
/html
Mike
this wouldn't work from an
How can I read the /etc/passwd file when safe mode is turned on. is
there a work around on this. Hear is a function I use to check if a
username is already in use on the system. This works fine when safe
mode is off but when it is on it gives this error.
Warning: SAFE MODE Restriction in effect.
Hello,
I am a newi in PHP. Currently I am creating my first site.
I would like to programm it modularly. I tryed it, but I came to the point,
that I have everything in one file with a huge amount of tables.
What would be the best way to build a site with a navigation on the left and
content on
.
-Original Message-
From: Andreas Pucko [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 30, 2001 4:08 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Programming PHP in a modular way
Hello,
I am a newi in PHP. Currently I am creating my first site.
I would like to programm it modularly. I tryed
Use include();
Mick
On Mon, 30 Apr 2001, Andreas Pucko wrote:
Hello,
I am a newi in PHP. Currently I am creating my first site.
I would like to programm it modularly. I tryed it, but I came to the point,
that I have everything in one file with a huge amount of tables.
What would be
Hi!
Well, I want to send an email to about 300 people. The
problem is that if I use this method people can see
all the email address of the people whoever it is sent
to.
?php
$connect = mysql_connect();
$query = "select email from news";
$execute = mysql_db_query("uaegraduate", $query);
"Dhaval Desai" [EMAIL PROTECTED] wrote:
Well, I want to send an email to about 300 people. The
problem is that if I use this method people can see
all the email address of the people whoever it is sent
to.
Add the addresses to the bcc: field instead of the to: field. I believe
this is
.
Sincerely
berber
Visit http://www.weberdev.com Today!!!
To see where PHP might take you tomorrow.
-Original Message-
From: Steve Werby [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 06, 2001 8:41 PM
To: Dhaval Desai; [EMAIL PROTECTED]
Subject: Re: [PHP] Newsletter on the way
BCC - blind carbon copy
Miles
At 11:23 AM 4/6/01 -0700, Dhaval Desai wrote:
Hi!
Well, I want to send an email to about 300 people. The
problem is that if I use this method people can see
all the email address of the people whoever it is sent
to.
?php
$connect = mysql_connect();
$query =
I would like to have the authenticated user name
appear in my apache access web logs but I am not using
HTTP authentication. I am using phplib to have better
control over the authentication process.
Is there a way to set this apache api variable
from php code so that apache will log these
I would like to have the authenticated user name
appear in my apache access web logs but I am not using
HTTP authentication. I am using phplib to have better
control over the authentication process.
Is there a way to set this apache api variable
from php code so that apache will log these user
Is there a way to call php functions in perl? or call perl functions from
PHP codes?
?php
exec("/full/path/to/script.pl", $output, $error);
while (list(,$line) = each($output)){
echo $line, "BR\n";
}
if ($error){
echo "OS Err
Is there a way to call php functions in perl? or call perl functions from
PHP codes?
Thanks,
David
_
Get your FREE download of MSN Explorer at http://explorer.msn.com
--
PHP General Mailing List (http://www.php.net
Am I programming the hard way?
I *always* parse my strings like this...
mysql_query("SELECT * FROM table WHERE id='".$id."'");
Could I just do this?
mysql_query("SELECT * FROM table WHERE id='$id'");
If so, is this compatable across all platforms and versions of PHP?
Yes
--
PHP
"[ rswfire ]" [EMAIL PROTECTED] wrote"
Am I programming the hard way?
mysql_query("SELECT * FROM table WHERE id='".$id."'");
Could I just do this?
mysql_query("SELECT * FROM table WHERE id='$id'");
Yes. And if $id is always numeric you could simplify it even more. Quotes
are only needed
401 - 440 of 440 matches
Mail list logo