[PHP] PHP 4.10: any way to override register_globals = OFF

2001-12-17 Thread Michael Jurgens
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

Re: [PHP] PHP 4.10: any way to override register_globals = OFF

2001-12-17 Thread Jack Dempsey
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

RE: [PHP] PHP 4.10: any way to override register_globals = OFF

2001-12-17 Thread Richard Heyes
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

Re: [PHP] PHP 4.10: any way to override register_globals = OFF

2001-12-17 Thread Michael Jurgens
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

RE: [PHP] PHP 4.10: any way to override register_globals = OFF

2001-12-17 Thread Jack Dempsey
: 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

RE: [PHP] PHP 4.10: any way to override register_globals = OFF

2001-12-17 Thread Richard Heyes
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

Re: [PHP] PHP 4.10: any way to override register_globals = OFF

2001-12-17 Thread Charles Williams
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

RE: [PHP] PHP 4.10: any way to override register_globals = OFF

2001-12-17 Thread Jack Dempsey
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

Re: [PHP] PHP 4.10: any way to override register_globals = OFF

2001-12-17 Thread 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

Re: Re: [PHP] PHP 4.10: any way to override register_globals = OFF

2001-12-17 Thread David
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

[PHP] Is there a way to Unset environment variables ?

2001-12-14 Thread J.F.Kishor
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

[PHP] Re: Any easy way of finding yesterday...?

2001-11-13 Thread Harry Lau
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

[PHP] Re: Any easy way of finding yesterday...?

2001-11-13 Thread Harry Lau
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

[PHP] Re: Any easy way of finding yesterday...?

2001-11-13 Thread Henrik Hansen
[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 --

[PHP] Re: Any easy way of finding yesterday...?

2001-11-13 Thread _lallous
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?

[PHP] Is there a way not to pop up the default login window?

2001-11-01 Thread Zhu George-CZZ010
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

RE: [PHP] Is there a way not to pop up the default login window?

2001-11-01 Thread Jon Haworth
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

RE: [PHP] Is there a way not to pop up the default login window?

2001-11-01 Thread Zhu George-CZZ010
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

RE: [PHP] Is there a way not to pop up the default login window?

2001-11-01 Thread Jon Haworth
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

[PHP] is there a way of using fnctl locks from php?

2001-10-29 Thread Richard Hollis
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,

[PHP] Best [non-PHP] way to redirect a browser

2001-10-26 Thread René Fournier
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

Re: [PHP] Best [non-PHP] way to redirect a browser

2001-10-26 Thread Richard S. Crawford
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

Re: [PHP] Best [non-PHP] way to redirect a browser

2001-10-26 Thread Mike Eheler
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

Re: [PHP] Best [non-PHP] way to redirect a browser

2001-10-26 Thread Ashley M. Kirchner
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

Re: [PHP] Best [non-PHP] way to redirect a browser

2001-10-26 Thread Kurt Lieber
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

[Fwd: [PHP] Best [non-PHP] way to redirect a browser]

2001-10-26 Thread Mike Eheler
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

[PHP] Is there a way to override safe mode to be able to read a etc/passwd file

2001-09-22 Thread Richard Kurth
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.

[PHP] Programming PHP in a modular way

2001-04-30 Thread Andreas Pucko
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

RE: [PHP] Programming PHP in a modular way

2001-04-30 Thread Jason Beebe
. -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

Re: [PHP] Programming PHP in a modular way

2001-04-30 Thread Michael Hall
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

[PHP] Newsletter on the way..stuck in the moment!

2001-04-06 Thread Dhaval Desai
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);

Re: [PHP] Newsletter on the way..stuck in the moment!

2001-04-06 Thread Steve Werby
"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

RE: [PHP] Newsletter on the way..stuck in the moment!

2001-04-06 Thread Boaz Yahav
. 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

Re: [PHP] Newsletter on the way..stuck in the moment!

2001-04-06 Thread Miles Thompson
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 =

Re: [PHP] is there a way to set apache's auth_user from php?

2001-02-23 Thread Richard Lynch
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

[PHP] is there a way to set apache's auth_user from php?

2001-02-22 Thread Bob Mroczka
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

Re: [PHP] Is there a way to call php functions in perl? and vice versa

2001-02-08 Thread Richard Lynch
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

[PHP] Is there a way to call php functions in perl? and vice versa

2001-02-06 Thread david klein
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

Re: [PHP] Programming the Hard Way?

2001-01-27 Thread Rasmus Lerdorf
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

Re: [PHP] Programming the Hard Way?

2001-01-27 Thread Steve Werby
"[ 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

<    1   2   3   4   5