php-windows Digest 17 May 2004 14:03:11 -0000 Issue 2251

Topics (messages 23735 through 23737):

Re: Windows speed issue
        23735 by: Andrew Staples

Script to test mail connectivity
        23736 by: Marvin Cummings

Session troubles
        23737 by: Ron.Herhuth.tatumpartners.com

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 ---
 

-----Original Message-----
From: Gryffyn, Trevor [mailto:[EMAIL PROTECTED] 

>>Good luck though..  It's going to end up being something silly that you're
going to kick yourself for.. Hah..


Yes, kicks are in order.  I changed from using php4isapi.dll to php.exe, and
instant success.  Here I thought the dll would be faster...(using php
4.3.6).  I'd be interested in others feedback.

Andrew


> -----Original Message-----
> From: Andrew Staples [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 13, 2004 2:26 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Windows speed issue
> 
> 
> I'm fairly new to php, hoping someone can help.  I have a webpage that 
> displays records from a table.  The problem is that viewing the page 
> on via any browser other than a browser directly on the server gives 
> me a timeout error.  When run on the server, it's extremely fast.  
> What am I doing wrong?
> (I tried indexing the city fields).  This is on a win2003 server.
> 
> The code is below.  
> 
> <?
> // open database connection
> db_connect();
> // generate and execute query
> $query = "SELECT * FROM milage ORDER BY city"; $result = 
> mysql_query($query) or die ("Error in query: $query. " .
> mysql_error());
> // if records present
> if (mysql_num_rows($result) > 0)
> {
>       // iterate through resultset
>       // print title with links to edit and delete scripts
>       while($row = mysql_fetch_object($result))
>       {
>       ?>
>       <tr><td>
>       <font size="2"><b><? echo $row->city; ?></b></font></td>
>       <td>
>       <font size="2"><b><? echo $row->miles; ?></b></font></td>
>       <td><font size="2"><a href="edit.php?id=<? echo $row->cityid; 
> ?>">Edit</a></td>
>       <td><a href="delete.php?id=<? echo $row->cityid; 
> ?>">Delete</a></font></td>
>       </tr>
>       <?
>       }
> }
> // if no records present
> // display message
> else
> {
> ?>
>       <font size="-1">No Locations Listed</font><p> <?
> }
> // close connection
> ?>
> 
> --

--- End Message ---
--- Begin Message ---
Is there a script that allows you to test whether your mail server is
processing mail? 

 

Thanks


--- End Message ---
--- Begin Message ---
For some reason I am not able to get sessions to work.
This is the code I have entered on the first page:

session_start();
$row['id']=545;

$_SESSION['individual_id'] = $row['id'];
header("location:dataFilterExpander.php");



On page two this is the code I'm using:

session_start();

if(empty($_SESSION['individual_id']))
{
header("location:dataLogin.php?status=nosession");
}


On the second page I get the error:
Notice: Undefined index: individual_id in...

I have the appropriate permissions set, and I have Reg Globals turned on
and sessions enabled in the ini...why oh why is it not working??

Thanks for any help you might be able to provide.
Ron







--- End Message ---

Reply via email to