php-windows Digest 9 Jun 2004 06:56:16 -0000 Issue 2277

Topics (messages 23933 through 23940):

Re: PHP extensions (dll's)
        23933 by: William CANDILLON
        23934 by: Gerardo Rojas
        23935 by: Svensson, B.A.T. (HKG)
        23936 by: Svensson, B.A.T. (HKG)
        23937 by: David Elliott

Re: select top 1 *  WAS: [PHP-WIN] [ANNOUNCEMENT] ODBTP 1.1.1 Released
        23938 by: Gryffyn, Trevor

Re: Arrrrrrrrrrrg. Session management expert needed.
        23939 by: Gryffyn, Trevor

PHP IMAP_HEADERINFO problem getting all 'to' addresses.
        23940 by: Brent

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

if (dl(php_mssql.dll) == TRUE) {
echo "php_mssql.dll has been loaded";
}

?>

-----Message d'origine-----
De�: Gerardo Rojas [mailto:[EMAIL PROTECTED] 
Envoy�: mardi 8 juin 2004 15:37
��: [EMAIL PROTECTED]
Objet�: [PHP-WIN] PHP extensions (dll's)

Is there a way to find out what extensions are loaded, at runtime?  I want
to know if a certain dll is loaded or another one is loaded, so I can write
my code accordingly.  

To be specific:  I want to know if the php_mssql.dll is loaded or the
php_odbtp_mssql.dll has been loaded?  Any input would be appreciated.


--
Gerardo S. Rojas
mailto: [EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
I guess the best way is to do this:

extension_loaded -- Find out whether an extension is loaded

Thanks for pointing me in the right direction!

--
Gerardo S. Rojas
mailto: [EMAIL PROTECTED]


-----Original Message-----
From: William CANDILLON [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 08, 2004 8:54 AM
To: Gerardo Rojas; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] PHP extensions (dll's)


<?

if (dl(php_mssql.dll) == TRUE) {
echo "php_mssql.dll has been loaded";
}

?>

-----Message d'origine-----
De�: Gerardo Rojas [mailto:[EMAIL PROTECTED] 
Envoy�: mardi 8 juin 2004 15:37
��: [EMAIL PROTECTED]
Objet�: [PHP-WIN] PHP extensions (dll's)

Is there a way to find out what extensions are loaded, at runtime?  I want
to know if a certain dll is loaded or another one is loaded, so I can write
my code accordingly.  

To be specific:  I want to know if the php_mssql.dll is loaded or the
php_odbtp_mssql.dll has been loaded?  Any input would be appreciated.


--
Gerardo S. Rojas
mailto: [EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
If you have Visual C++ DevStudio you can use DLL spy.

n Tue, 2004-06-08 at 15:36, Gerardo Rojas wrote:
> Is there a way to find out what extensions are loaded, at runtime?  I
> want to know if a certain dll is loaded or another one is loaded, so I
> can write my code accordingly.  
> 
> To be specific:  I want to know if the php_mssql.dll is loaded or the
> php_odbtp_mssql.dll has been loaded?  Any input would be appreciated.
> 
> 
> --
> Gerardo S. Rojas
> mailto: [EMAIL PROTECTED]
> 

--- End Message ---
--- Begin Message ---
Sorry, I didn't read the complete message... :(

On Tue, 2004-06-08 at 15:56, Svensson, B.A.T. (HKG) wrote:
> If you have Visual C++ DevStudio you can use DLL spy.
> 
> n Tue, 2004-06-08 at 15:36, Gerardo Rojas wrote:
> > Is there a way to find out what extensions are loaded, at runtime?  I
> > want to know if a certain dll is loaded or another one is loaded, so I
> > can write my code accordingly.  
> > 
> > To be specific:  I want to know if the php_mssql.dll is loaded or the
> > php_odbtp_mssql.dll has been loaded?  Any input would be appreciated.
> > 
> > 
> > --
> > Gerardo S. Rojas
> > mailto: [EMAIL PROTECTED]
> > 

--- End Message ---
--- Begin Message ---
Hello Gerardo

On 08 June 2004 at 08:36:53 -0500 (which was 14:36 where I live) Gerardo
Rojas cleared their throat and spoke

GR> Is there a way to find out what extensions are loaded, at runtime? 
GR> I want to know if a certain dll is loaded or another one is loaded, so I
GR> can write my code accordingly.  

GR> To be specific:  I want to know if the php_mssql.dll is loaded or
GR> the php_odbtp_mssql.dll has been loaded?  Any input would be appreciated.

Try this. :)

=============8<=============================================================
<html>
<head>
<title>PHP info checkup</title>
</head>
<body>
<table width=100% cellspacing=0 border=0>
<td>
<table width=100%>
<tr><td>php version:</td><td><b><?= print @phpversion()?></b></td></tr>
<tr><td>server api:</td><td><b><?= print @php_sapi_name()?></b></td></tr>
<tr><td>loaded extensions:</td><td><b><?php $extensions = @get_loaded_extensions(); 
print count($extensions)?></b></td></tr>
<tr><td>system:</td><td><b><?= print @php_uname()?></b></td></tr>
</table>
</td>
<td align=right valign=top><?= print gmdate("r") ?>&nbsp;</td>
</tr>
<tr>
<td><b>activated extensions:</b></td>
<td><b><?= @strtolower($HTTP_GET_VARS["ext"]) ?> function list:</b></td>
</tr>
<tr>
<td valign=top width=50%>
<table width=100%>
<?
 @sort($extensions);
 foreach($extensions as $extension)
 {
   print "<tr><td width=30%>$extension</td><td><a href=\"?ext=$extension\">function 
list</a></td></tr>\n";
 }
?>
</table>
</td>
<td valign=top width=50%>
<table>
<?
 if(isset($HTTP_GET_VARS["ext"]))
 {
   $functions = @get_extension_funcs($HTTP_GET_VARS["ext"]);
   @sort($functions);
   foreach($functions as $function)
   {
     print "<tr><td><a 
href=\"http://www.php.net/manual/function.".str_replace("_","-",$function).".php\" 
target=\"_blank\">$function</a></td></tr>\n";
   }
 };
?>
</table>
</td>
</tr>
</tr>
</table>
</body>
</html>
=============8<=============================================================


-- 
 BBFN,                     _______________________________________________
  David                   |    David  Elliott    |   Software Engineer    |
 _________________________|  [EMAIL PROTECTED] | PGP Key ID 0x650F4534  |
| Rush Limbaugh: The world's most gifted idiot.                           |

--- End Message ---
--- Begin Message ---
If you have access (not sure if this is universal READ or if my db
admins just didn't secure this properly) you can do this:

select * from INFORMATION_SCHEMA.COLUMNS where TABLE_NAME = '$tablename'


All the information about the table you'd need should be in there.

-TG

> -----Original Message-----
> From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, June 03, 2004 4:46 PM
> To: '[EMAIL PROTECTED]'
> Subject: [PHP-WIN] RE: select top 1 * WAS: [PHP-WIN] 
> [ANNOUNCEMENT] ODBTP 1.1.1 Released
> 
> 
> Does anybody know if that is faster than doing
> SELECT * FROM <some table> WHERE 1 = 2 ?
> 
> -----Original Message-----
> From: Gerardo Rojas
> To: Robert Twitty; [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Sent: 3-6-2004 17:14
> Subject: RE: [PHP-WIN] [ANNOUNCEMENT] ODBTP 1.1.1 Released
> 
> Robert,
> 
> Do you have an example of pulling the Column types from an MS 
> Sql query?
> For example: select top 1 * from mytablename.
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

--- End Message ---
--- Begin Message ---
Just a shot in the dark, do you have your session variables expiring or
something like that? (check "session_cache_expire").

It's going to be something little and stupid... Maybe you're unsetting
something, or something's expiring.  See if it does it at regular
intervals (5 minutes every time or something) or if it's totally random.

-TG

> -----Original Message-----
> From: Ross Honniball [mailto:[EMAIL PROTECTED] 
> Sent: Sunday, June 06, 2004 8:16 PM
> To: php windows
> Subject: [PHP-WIN] Arrrrrrrrrrrg. Session management expert needed.
> 
> 
> Sessions are driving me crazy.
> 
> I am tracking screens a user has visited using an array within the 
> $_SESSION array.
> 
> And it nearly works.
> 
> I call session_start() before any output in each script and 
> before trying 
> to access any $_SESSION data.
> 
> The huge headache I am having is that php seems to fire up a 
> NEW session in 
> certain situations (the result being that it can NOT find the 
> previous 
> screens a user has visited).
> 
> Anyone had any similar problems and found a solution?
> 
> Regards ... Ross
> .
> . Ross Honniball. JCU Bookshop Cairns, Qld, Australia.
> .
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

--- End Message ---
--- Begin Message ---
Hi Group,
I am using IMAP to access a POP3 mailbox.
Everything works fine but I cannot seem to get all the to: emails. I ref the
to[0] to get the 1st one and that works fine.
But I cannot seem to get the to[1] or to[2] etc values. It works fine for
the cc: array but not the to: array.
I'm using PHP on a windows platform using IIS. Anyone else ever had this
problem. Please see code below.
The code below just looks for 4 to: emails addresses etc.

$mbox = imap_open ("{$mboxip:$mboxport/pop3}INBOX", "$mboxuname",
"$mboxpass") or die("Could not open Mailbox - try again later!");
$tsthead=imap_headerinfo ($mbox,5);
$tom=$tsthead->to;
for ($i = 0; $i <= 3; i++)
{
   echo"<br>pfrom :";echo$tom[$i]->personal;
   echo"<br>mbfrom :";echo$tom[$i]->mailbox;
   echo"<br>adlfrom :";echo$tom[$i]->adl;
   echo"<br>hostfrom :";echo$tom[$i]->host;
}

Thanks Heaps,
Brent.

--- End Message ---

Reply via email to