[PHP] PHP5: Will register_globals be an option or not - or hasn't it beendecided yet?

2003-07-28 Thread Tommy Ipsen
Hi I would like to know if it has been decided whether or not register_global will continue to be an option in PHP5. Cheers, Tommy Ipsen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] variable in function parameter

2003-07-28 Thread 386-DX
Hello. Let's say I have something like this: function aa($test) { $a = 8; echo $test; } $a = 2; aa("a is ". ($a>5?"greater":"equal to or less"). " than 5".); I want this to output "a is greater than 5".. how can i modify the code so that the function parameter is evaluated inside the fu

[PHP] $_GET['sort'] & argument separator

2003-07-28 Thread Ow Mun Heng
Hi, I have this problem, which could easily be solved through a name change but I would like to learn more. There's a table set up from a MySQL query like this row1) Eval # Title # Heads My Findings row2) P1000 Title16 This is my f

[PHP] using SESSIONS to store page 2 page variables

2003-07-28 Thread Ow Mun Heng
Hi, Is it advisable to use SESSIONS to store variable from one page to another page instead of using something like a hidden field? eg: $_SESSION['sql_sort_cat'] $_SESSIOn['sql_sort_dir'] instead of > Cheers, Mun Heng, Ow H/M Engineering Western Digital M'sia DID : 03-7870 5168 --

[PHP] Re: Set Cookie in PHP and call with Perl

2003-07-28 Thread TWSC HQ
Hi - Sorry - by caling I meant to echo the cookie value on a .pl page - and include it (the cookie value)then in an email. Any help would be appreciated because the PERL list people said I must try a PHP list - Thanks August >Is this possible : >How do i call the cookie value (surname) with Per

Re: [PHP] using SESSIONS to store page 2 page variables

2003-07-28 Thread Marek Kilimajer
No problem, but remember the user might want to bookmark the page. Ow Mun Heng wrote: Hi, Is it advisable to use SESSIONS to store variable from one page to another page instead of using something like a hidden field? eg: $_SESSION['sql_sort_cat'] $_SESSIOn['sql_sort_dir'] instead of

Re: [PHP] $_GET['sort'] & argument separator

2003-07-28 Thread Nicholas Robinson
What happens if you use a non-breaking html space instead? I.e EvalĀ # HTH Nick On Monday 28 Jul 2003 9:06 am, Ow Mun Heng wrote: > Hi, > > I have this problem, which could easily be solved through a name > change but I would like to learn more. > > There's a table set up from a MySQL query

Re: [PHP] Re: Set Cookie in PHP and call with Perl

2003-07-28 Thread Jason Wong
On Monday 28 July 2003 13:52, TWSC HQ wrote: > Sorry - by caling I meant to echo the cookie value on a .pl page - and > include it (the cookie value)then in an email. > > Any help would be appreciated because the PERL list people said I must try > a PHP list - A cookie is a cookie regardless of w

[PHP] IMAP and NNTP

2003-07-28 Thread {R}ichard Ashton
The manual says that the majority of IMAP commands can be used for NNTP access. This code works fine. $status = imap_status($nntp,"{news.gradwell.net:119/nntp}#news.gradwell. lists.test",SA_ALL); if($status) { print("Messages: ". $status->messages )."\n"; print("Recent: ". $status->

Re: [PHP] variable in function parameter

2003-07-28 Thread Marek Kilimajer
www.php.net/variables.scope You need "global $a;" as the first line in your function. 386-DX wrote: Hello. Let's say I have something like this: function aa($test) { $a = 8; echo $test; } $a = 2; aa("a is ". ($a>5?"greater":"equal to or less"). " than 5".); I want this to output "a is g

RE: [PHP] Half solved...............what the @#%# is PHPSESSID?

2003-07-28 Thread Ford, Mike [LSS]
> -Original Message- > From: Ryan A [mailto:[EMAIL PROTECTED] > Sent: 26 July 2003 21:16 > > Hey John, > I dont think its the browser because I have tried this with > opera 6,opera 7, > IE and NN with the same results... > But when i checked the phpinfo() it says that cookies are > enabl

RE: [PHP] incrementing string value

2003-07-28 Thread Ford, Mike [LSS]
> -Original Message- > From: Curt Zirzow [mailto:[EMAIL PROTECTED] > Sent: 26 July 2003 01:14 > > * Thus wrote Curt Zirzow ([EMAIL PROTECTED]): > > * Thus wrote Jeremy ([EMAIL PROTECTED]): > > > let me make sure I understand... > > > > > > $var = 'a'; > > > $var++ > > > print($var); > > >

RE: [PHP] replacing & but not special chars

2003-07-28 Thread Ford, Mike [LSS]
> -Original Message- > From: Shawn McKenzie [mailto:[EMAIL PROTECTED] > Sent: 27 July 2003 08:36 > > I have some URLs in hrefs that have an &. This does not > validate HTM4.01 > transitional, so I want to replace them with & > > So I buffer the output and do a replace, but suppose there

[PHP] Mail Authentication or redirection of SMTP server

2003-07-28 Thread Ron Allen
Here is my problem. When I send emails locally theough the Exchange Server I have no problems sending mail. When I try to send emails to another site through the MTA funtion_mail pops up. One of two things came to mind. First is that we have anonymous forwarding of emails turned off for security

php-general Digest 28 Jul 2003 09:50:14 -0000 Issue 2202

2003-07-28 Thread php-general-digest-help
php-general Digest 28 Jul 2003 09:50:14 - Issue 2202 Topics (messages 157105 through 157149): Re: Recompiling the PHP Binary with PCNTL 157105 by: DvDmanDT 157127 by: Jason Wong Flash Variables 157106 by: Taylor Smith 157108 by: skate Re: Your E-Book

RE: [PHP] Sessions GET vs. Cookies

2003-07-28 Thread Ford, Mike [LSS]
> -Original Message- > From: Nicholas Robinson [mailto:[EMAIL PROTECTED] > Sent: 27 July 2003 23:40 > > Many thanks, that's fixed it! > > On Sunday 27 Jul 2003 10:42 pm, Chris Shiflett wrote: > > --- Nicholas Robinson <[EMAIL PROTECTED]> wrote: > > > I've noticed that links in my pages ar

[PHP] php ncurses - colors not working

2003-07-28 Thread rainman
Hello, I have been working with php ncurses for an IRC client and I have a problem with using colors. I have been able to find the example php-4.3.2/ext/ncurses/example1.php, and that does work. It seems to use ncurses_color_set() for setting the color. However, my application uses 3 windows.

[PHP] HELP WITH ODBC freetds

2003-07-28 Thread Nabil
Hiya all; I have been trying so hard to get that done.. and i posted many here. but with no hope.. here is a summury of what i did: - I tried FreeTDS as a driver with unixODBC ... - Tried to remove mysql- apache - php and recomplied them with : iodbc - Tried to try openlink driver. - tried to upg

[PHP]IE6 back button problems

2003-07-28 Thread Jim McNeely
Here's a puzzler, I've searched the archives and couldn't find a satisfactory answer, and it would be nice to have one in the archives. I'm working on a web app that draws a search screen with fields coming from settings in a database. When you do the search, it works fine, but in IE 6 on WinXP

[PHP] Re: Mail Authentication or redirection of SMTP server

2003-07-28 Thread Pete Morganic
I used to have similar problem and that was when I was using the php mail() command.. Have a look at phpmailer http://phpmailer.sourceforge.net/ This deals witha lot of the peculiarities with mail servers.. Pete Ron Allen wrote: Here is my problem. When I send emails locally theough the Exchang

[PHP] javascript & php

2003-07-28 Thread Roman Duriancik
I have problem with variables in javascript and php. I have code in php and in this code I insert some values from javascript.: $color = " "; when I write command echo $color - result is correct. but when i need insert or select some values from d

RE: [PHP] using SESSIONS to store page 2 page variables

2003-07-28 Thread Ow Mun Heng
I think it's OK since users needs to be authenticated. Cheers, Mun Heng, Ow H/M Engineering Western Digital M'sia DID : 03-7870 5168 -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 4:46 PM To: Ow Mun Heng Cc: [EMAIL PROTECTED] Subject: Re:

[PHP] Re: javascript & php

2003-07-28 Thread Thomas Seifert
On Mon, 28 Jul 2003 12:48:04 +0200 [EMAIL PROTECTED] (Roman Duriancik) wrote: > I have problem with variables in javascript and php. > I have code in php and in this code I insert some values from javascript.: > > $color = " >"; > > >

RE: [PHP] $_GET['sort'] & argument separator

2003-07-28 Thread Ow Mun Heng
Nope.. Still does not work.. Cheers, Mun Heng, Ow H/M Engineering Western Digital M'sia DID : 03-7870 5168 -Original Message- From: Nicholas Robinson [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 4:53 PM To: Ow Mun Heng; [EMAIL PROTECTED] Subject: Re: [PHP] $_GET['sort'] & argu

[PHP] Re: javascript & php

2003-07-28 Thread Kristin Schesonka
Hi Roman, I'm not sure if I understand what you want to do - but if you try to set your PHP-Variable with JavaScript it couldn't work. JavaScript is Clientside interpreted and PHP is Serverside interpreted, that means your PHP-Code is done before the JavaScript-Code. So the Webserver reads your $c

Re: [PHP] Array help

2003-07-28 Thread skate
>because in reality I don't have just these 4 fields > but 43 fields in one table that have to be taken. "Select *..." seems a much > easier way to get it > you have 43 fields in 1 table? if you are seriously considering offering hosting packages, then i'm guessing your wanting to be half prof

[PHP] Dynamically generate a drop down list

2003-07-28 Thread Mukta Telang
Hi, I want to dynamically generate a drop down list of "authors" by querying a database. What I am doing at present is: function init_auth_list($auth_list) { $auth_list=" select the name of t he author"; $query="select name from author order by name"; $result=pg_exec($GLOBA

Re: [PHP] Dynamically generate a drop down list

2003-07-28 Thread skate
> Is it possible to have a function which echoes the values as they are > read from the database? something like function init_auth_list() { print " select the name of the author"; $query="select name from author order by name"; $result=pg_exec($GLOBALS["db"],$quer

Re: [PHP] $_GET['sort'] & argument separator

2003-07-28 Thread Marek Kilimajer
If your table column is named Eval #, you need to use backtick quotes: `Eval #` Ow Mun Heng wrote: Hi, I have this problem, which could easily be solved through a name change but I would like to learn more. There's a table set up from a MySQL query like this row1) Eval # Title

Re: [PHP] $_GET['sort'] & argument separator

2003-07-28 Thread John W. Holmes
Ow Mun Heng wrote: Hi, I have this problem, which could easily be solved through a name change but I would like to learn more. There's a table set up from a MySQL query like this row1) Eval # Title # Heads My Findings row2) P1000 Title16

RE: [PHP] Problem setting variables.

2003-07-28 Thread Ralph Guzman
//Find User Configuration $sql = mysql_query("SELECT field_name FROM config WHERE show_field=1") OR die("Could not query database: ".mysql_error().""); while($result = mysql_fetch_array($sql, MYSQL_ASSOC)){ $field_name_array[] = $result['field_name'] } // Iterate through array and print fields

RE: [PHP] Problem setting variables - Correction

2003-07-28 Thread Ralph Guzman
Correction...Forgot a ; //Find User Configuration $sql = mysql_query("SELECT field_name FROM config WHERE show_field=1") OR die("Could not query database: ".mysql_error().""); while($result = mysql_fetch_array($sql, MYSQL_ASSOC)){ $field_name_array[] = $result['field_name']; } // Iterate throu

[PHP] replacing \ with - in a string

2003-07-28 Thread Merlin
Hi there, I am trying to replace a backslash inside a string. Somehow nothing workes, not the str_replce, not preg_replace, not erreg_replace. Can anybody please help? Thanx you in advance, Merlin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

Re: [PHP] Dynamically generate a drop down list

2003-07-28 Thread sven
... or even shorter (since php 4.1.0): function init_auth_list() { print " select the name of the author"; $query="select name from author order by name"; $result=pg_exec($GLOBALS["db"],$query); while ($row = pg_fetch_row($result)) { print "$row[0]"; } print "";

Re: [PHP] replacing \ with - in a string

2003-07-28 Thread John W. Holmes
Merlin wrote: I am trying to replace a backslash inside a string. Somehow nothing workes, not the str_replce, not preg_replace, not erreg_replace. $new_str = str_replace('\','-',$old_string); or $new_str = str_replace("\\",'-',$old_string); But this begs the question of why do you think you need to

Re: [PHP] replacing \ with - in a string

2003-07-28 Thread Merlin
oh.. you are right, I ment slash. Workes now. Thanx for the hint :-)) --