php-windows Digest 10 Oct 2001 07:16:39 -0000 Issue 797

Topics (messages 9769 through 9774):

setcookie problem
        9769 by: Angie Tollerson

InstallShield coulnd't find OCX control...
        9770 by: Jon Grover
        9774 by: _lallous

Mysql and mysql_fetch_array
        9771 by: Darko
        9772 by: Mark

session open failed and header() don't redirect
        9773 by: Web user

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 ---
I am using phpauction scripts with have authentication using session cookies.  The 
strangest thing is happening...there is a line when you successfully login that sets a 
cookie:
     setcookie("authenticated","1",0,"","",0);
But the rest of the pages fail to stay logged in becase the cookie doesn't get named 
"authenticated" as shown above..instead, it gets named "YA_SESSION_ID"  Does anyone 
know why this is happening? something in my php.ini file maybe?
Angie

--- End Message ---
--- Begin Message ---
I'm sure a bunch of people here have seen this issue before; at the end of
the InstallShield wizard, I get a message saying that IIS couldn't be
configured because it failed to find an OCX control.  I know that I can
download the binaries and go through the install.txt, but it looks a little
daunting... does anybody know how to fix the OCX issue?  I'm running IIS 5
on Win2K Server SP2.

Last, but not least:  I don't want to get one single reply from Mark.
You're a no-good troll, and I'm not interested in a single thing you've got
to say.  If you've got so many problems w/ IIS, don't go into the @#%*
Windows newsgroup... you're not of any use to us here.

Thanks for any help that can be provided,
- Jon


--- End Message ---
--- Begin Message ---
get the PHP binaries and unzip them, then get the text file that tells you
how to do manual configuration...that's how it worked with me with same
system as you.

"Jon Grover" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm sure a bunch of people here have seen this issue before; at the end of
> the InstallShield wizard, I get a message saying that IIS couldn't be
> configured because it failed to find an OCX control.  I know that I can
> download the binaries and go through the install.txt, but it looks a
little
> daunting... does anybody know how to fix the OCX issue?  I'm running IIS 5
> on Win2K Server SP2.
>
> Last, but not least:  I don't want to get one single reply from Mark.
> You're a no-good troll, and I'm not interested in a single thing you've
got
> to say.  If you've got so many problems w/ IIS, don't go into the @#%*
> Windows newsgroup... you're not of any use to us here.
>
> Thanks for any help that can be provided,
> - Jon
>
>


--- End Message ---
--- Begin Message ---
Hello.
This script gives me every data  twice in print if I have database with
names on database output look like this:

John John Doe Doe Phone Phone 1234 1234

Why?


<?php
    $link = mysql_connect("mysql_host", "mysql_login", "mysql_password")

        or die ("Could not connect");
    print ("Connected successfully");
    mysql_select_db ("my_database")
        or die ("Could not select database");

    $query = "SELECT * FROM my_table";
    $result = mysql_query ($query)
        or die ("Query failed");

 // printing HTML result

 print "<table>\n";
 while($line = mysql_fetch_array($result)){
  print "\t<tr>\n";
  while(list($col_name, $col_value) = each($line)){
   print "\t\t<td>$col_value</td>\n";
  }
  print "\t</tr>\n";
 }
 print "</table>\n";

    mysql_close($link);
?>



--- End Message ---
--- Begin Message ---
On Tue, 09 Oct 2001 20:27:07 +0200, Darko wrote:
>Hello.
>This script gives me every data  twice in print if I have database
>with
>names on database output look like this:
>
>John John Doe Doe Phone Phone 1234 1234
>
>Why?

check out the second argument to mysql_fetch_array():
http://www.php.net/manual/en/function.mysql-fetch-array.php

><?php
>  $link = mysql_connect("mysql_host", "mysql_login",
>"mysql_password")
>
>    or die ("Could not connect");
>  print ("Connected successfully");
>  mysql_select_db ("my_database")
>    or die ("Could not select database");
>
>  $query = "SELECT * FROM my_table";
>  $result = mysql_query ($query)
>    or die ("Query failed");
>
> // printing HTML result
>
> print "<table>\n";
> while($line = mysql_fetch_array($result)){
> print "\t<tr>\n";
> while(list($col_name, $col_value) = each($line)){
>  print "\t\t<td>$col_value</td>\n";
> }
> print "\t</tr>\n";
> }
> print "</table>\n";
>
>  mysql_close($link);
>?>
>
>
>
>


--
Mark, [EMAIL PROTECTED] on 10/08/2001


--- End Message ---
--- Begin Message ---
Hi,
There are problems with session and header();
Please give me some advice.
Thank you!
Mike


System: PHP4.06 + Apache 1.3.20 Win32 + Win98 (the session configurations
are default in php.ini)
when the 1.php is running, the IE shows 2 errors  as below:

Warning: open(/tmp\sess_5176646ce5a800db9101970b80d507f6, O_RDWR) failed: m
(2) in c:\program files\apache group\apache\htdocs\web1\1.php on line 2

Warning: Cannot add header information - headers already sent by (output
started at c:\program files\apache group\apache\htdocs\web1\1.php:2) in
c:\program files\apache group\apache\htdocs\web1\1.php on line 6

-------------------------------
The scripts of 1.php: (1.php and 2.php are under the same base directory)
<?
session_start();
require("html-head.inc");
$name="user";
session_register("name");
header("Location: 2.php"); /* let the IE automatically turn to the 2.php */
require("html-foot.inc");
?>
-------------------------------
The scripts of html-head.inc:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>page title</title>
</head>
<body>

 -----
 The scripts of html-foot.inc:
</body>
</html>











--- End Message ---

Reply via email to