php-windows Digest 17 Aug 2002 09:17:37 -0000 Issue 1293

Topics (messages 15317 through 15321):

Upgraded to PHP 4.2.2 and completely lost all GET and POST variables
        15317 by: james daily

Re: [PHP] Upgraded to PHP 4.2.2 and completely lost all GET and POST variables
        15318 by: Rasmus Lerdorf

Re: Getting Field Names in Microsoft SQL
        15319 by: Brad Thomas

SQL Server 2000
        15320 by: DAG

gd library with gif support for latest php build
        15321 by: Daniel Gustafsson

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---

RE: phpsecurityadmin-2002-07-24.zip and PHP 4.2.2

PLATFORM: win 98

BACKGROUND: in order to use the above classes i had to
upgrade to PHP 4.2.2

PROBLEM: when i upgraded to 4.2.2, all my old scripts
lost the GET or POST info being passed.

COMMENTS: everything except the phpsecurityadmin classes
worked as expected under PHP 4.0.

after upgrade, phpsecurityadmin classes work but any old
scripts that are accepting data from previous page via
GET or POST do not.

i can manually parse the GET query string, but this is foolish
and time consuming.

it's as if the automatic variables are not getting assigned
the data being passed.

QUESTION: has anybody else run across this and
what was the resolution?

---------------------------------------------
James Daily
Phone : 816 943 9891
Email : [EMAIL PROTECTED] (or hit reply button)
Web   : http://tellmama.com/
Philosophy:
                            4     2                              1000
( cos(ø - r) - sin ø ) * ( r  - 2r  cos(2ø + 2.4) + 0.9) + 0.62r)     < 0

Education is a progressive discovery of our own ignorance.
                                               Will Durant

--- End Message ---
--- Begin Message ---
Did you bother reading the documentation and release notes before
upgrading?

Edit your php.ini file and turn register_globals on.

-Rasmus

On Fri, 16 Aug 2002, james daily wrote:

>
> RE: phpsecurityadmin-2002-07-24.zip and PHP 4.2.2
>
> PLATFORM: win 98
>
> BACKGROUND: in order to use the above classes i had to
> upgrade to PHP 4.2.2
>
> PROBLEM: when i upgraded to 4.2.2, all my old scripts
> lost the GET or POST info being passed.
>
> COMMENTS: everything except the phpsecurityadmin classes
> worked as expected under PHP 4.0.
>
> after upgrade, phpsecurityadmin classes work but any old
> scripts that are accepting data from previous page via
> GET or POST do not.
>
> i can manually parse the GET query string, but this is foolish
> and time consuming.
>
> it's as if the automatic variables are not getting assigned
> the data being passed.
>
> QUESTION: has anybody else run across this and
> what was the resolution?
>
> ---------------------------------------------
> James Daily
> Phone : 816 943 9891
> Email : [EMAIL PROTECTED] (or hit reply button)
> Web   : http://tellmama.com/
> Philosophy:
>                             4     2                              1000
> ( cos(ø - r) - sin ø ) * ( r  - 2r  cos(2ø + 2.4) + 0.9) + 0.62r)     < 0
>
> Education is a progressive discovery of our own ignorance.
>                                                Will Durant
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
"R.S. Herhuth" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> I'm trying to build a dynamic script that basically extracts all of the
> fields in a MS SQL database...I just can't seem to figure out how to get
> at the field names themselves.  I am using the mssql_fetch_array
> followed by the $row['field_name'] in an array.  But I would like to
> make the field_name dynamic (i.e. not knowing the field_names ahead of
> time) which would make the script adaptable to any table in the
> database.  So if I get the field's value by $row['field_name'] how do I
> get at the field's name?
>
> thanks,
> Ron

Hey.

The best way to go about getting the name of fields in any given table is
this:

(connection to database assumed)

<?php
$query = select * from table;
$fields = mssql_num_fields ($query);

echo "<table border=\"1\">\n";
echo "<tr>\n";
for ($a = 1; $a < $fields; $a++)
{
  echo "<td>" . mssql_field_name ($a) . "</td>\n";
}
echo "</tr>\n";
echo "</table>\n";
?>

Hope this helps, I've just converted how I do it in MySQL to the functions
for mssql.

Brad



--- End Message ---
--- Begin Message ---
Hi, I'm running PHP over IIS and I want to connect to a SQL Server DB, can
you help me with that? I'm a newbie. Thnx in advance.
Daniel Astudillo
[EMAIL PROTECTED]



--- End Message ---
--- Begin Message ---
Is there a patched gd module available for windows somewhere?

I really need gif support.

What alternatives are there out there btw?

Any neat utility/module that can convert gif -> png (or whatever) on the fly?


--- End Message ---

Reply via email to