php-windows Digest 15 Mar 2006 17:26:41 -0000 Issue 2911

Topics (messages 26754 through 26757):

Market Picks
        26754 by: Porfirio Boyle

Global variables
        26755 by: Alf Stockton
        26756 by: Alf Stockton

PHP 4.4.x and TIDY
        26757 by: phpWalter

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:
        php-windows@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
Big News Just Out! More expected Thurs
Nanoforce Inc. (NNFC), 
This really moved on Monday!
Went Crazy on Tuesday!
Wend Should do even Better!

Big News Just Out 
Monday March 13, 2006 (PRIMEZONE)
Nanoforce Technologies Inc.'s Patent Position Expands Again With Issuance of 
Patent for Producing Improved Catalyst


SYMBOL: N N F C
NANOFORCE INC. (NNFC)  - Current Price: 1.17
Up over .72 cents in last 5 days alone
Tuesday Was GREAT Wend Will Be BETTER!

Before we start with the profile of NNFC we would like to mention something 
very important: There is a Big PR Campaign just started. We are already seeing 
movement it will go all week so it would be best to get in NOW

Nanoforce Inc. (NNFC) appears to be on an upward trend. Is not the time to buy ?
With current marketing campaign we expect NNFC to climb thru mid March
Get In Now!

 
NANOFORCE INC. (NNFC)  COMAPNY INFORMATION
 
Nanoforce, Inc. is a company founded to support the development, and 
acquisition of exciting new products that integrate fundamental developments in 
Nanotechnology. The Nanotechnology industry is in its infancy and provides a 
wealth of opportunity for companies that position themselves well now to profit 
from the burgeoning opportunities that will be provided by nanotech produced 
products in the near future.
 

NANOFORCE INC. (NNFC)  RECENT NEWS
(For Complete News Detail, check your current stock site.)
March 13 Nanoforce Technologies Inc.'s Patent Position Expands Again With 
Issuance of Patent for Producing Improved Catalyst 
March 7, 2006: Nanoforce Inc. Hires Local Management Team to Head Refinery 
Science Corp.'s El Paso Office
February 13, 2006:  Nanoforce Acquires Unique package of Nanotech. Ips
December 16, 2005: Nanoforce Acquires Refinery Science Corp.
December 16, 2005: Nanoforce approves 10 for 1 split of Refinery Science.
 
CHECK OUT NANOFORCE (NNFC) TODAY!

--- End Message ---
--- Begin Message ---
The following scenario has me confused. In my main program I have:-
<?php
$link = '';
.....snip......
?>
in an included function I have
<?php
function PMConnect() {
global $dbservertype, $servername, $dbusername, $dbpassword, $dbname, $link;

    $link = mssql_connect("$servername", "$dbusername", "$dbpassword");
    if (!$link) {
sprintf($Message, "At %d in %s Could not connect to %s at %s as %s",__LINE__, __FILE__, $dbname, $servername, $dbusername);
        trigger_error(E_USER_ERROR, $Message);
        }
    if (!(mssql_select_db("$dbname", $link))) {
sprintf($Message, "At %d in %s Could not select %s at %s as %s",__LINE__, __FILE__, $dbname, $servername, $dbusername);
        trigger_error(E_USER_ERROR, $Message);
        }
    echo "In PMConnect() link = $link<br>";
    }
?>
and here the echo shows that $link contains data but now in another included function I have
<?php
function GetActive($Datum) {
    global $link;
    echo "In GetActive() link = $link<br>";
.....snip......

this echo shows that $link is empty.

NB. All my functions are contained within .inc files that are incorporated via something similar to include('includes/PMConnect.inc');
What am I misunderstanding ?

--
Regards,
Alf Stockton            www.stockton.co.za

Man is the only animal that blushes -- or needs to.
                -- Mark Twain

My email disclaimer is available at www.stockton.co.za/disclaimer.html

--- End Message ---
--- Begin Message ---
Now if in PMConnect() I return $link(see example below); it works for me.

<?php
function PMConnect() {
global $dbservertype, $servername, $dbusername, $dbpassword, $dbname, $link;

    $link = mssql_connect("$servername", "$dbusername", "$dbpassword");
    if (!$link) {
sprintf($Message, "At %d in %s Could not connect to %s at %s as %s",__LINE__, __FILE__, $dbname, $servername, $dbusername);
        trigger_error(E_USER_ERROR, $Message);
        }
    if (!(mssql_select_db("$dbname", $link))) {
sprintf($Message, "At %d in %s Could not select %s at %s as %s",__LINE__, __FILE__, $dbname, $servername, $dbusername);
        trigger_error(E_USER_ERROR, $Message);
        }
    echo "In PMConnect() link = $link<br>";
    return $link;
    }
?>

Alf Stockton wrote:
The following scenario has me confused. In my main program I have:-
<?php
$link = '';
.....snip......
?>
in an included function I have
<?php
function PMConnect() {
global $dbservertype, $servername, $dbusername, $dbpassword, $dbname, $link;

    $link = mssql_connect("$servername", "$dbusername", "$dbpassword");
    if (!$link) {
sprintf($Message, "At %d in %s Could not connect to %s at %s as %s",__LINE__, __FILE__, $dbname, $servername, $dbusername);
        trigger_error(E_USER_ERROR, $Message);
        }
    if (!(mssql_select_db("$dbname", $link))) {
sprintf($Message, "At %d in %s Could not select %s at %s as %s",__LINE__, __FILE__, $dbname, $servername, $dbusername);
        trigger_error(E_USER_ERROR, $Message);
        }
    echo "In PMConnect() link = $link<br>";
    }
?>
and here the echo shows that $link contains data but now in another included function I have
<?php
function GetActive($Datum) {
    global $link;
    echo "In GetActive() link = $link<br>";
.....snip......

this echo shows that $link is empty.

NB. All my functions are contained within .inc files that are incorporated via something similar to include('includes/PMConnect.inc');
What am I misunderstanding ?



--
Regards,
Alf Stockton            www.stockton.co.za

Tempt not a desperate man.
                -- William Shakespeare, "Romeo and Juliet"

My email disclaimer is available at www.stockton.co.za/disclaimer.html

--- End Message ---
--- Begin Message ---
I *really* need to get this going on my PHP 4 XP box.

Anyone have any ideas?

I have 2 DLLs:
 * php_tidy.dll  24.0 KB  Thursday, February 16, 2006, 10:54:02 AM

 * php_tidy.dll  7.30 KB  Wednesday, March 15, 2006, 10:43:10 AM

Neither file will not generate an error

Neither file will show up in my phpinfo.php file.

Neither file will work, based upon examples on the tidy page...

   http://us2.php.net/tidy

Yes, I used the PHP4 refence code near the bottom, not the examples in the
"real" docs, as they are for PHP5 only.

I added this to my php.ini file...

   extension=php_tidy.dll

Is this the wrong place to put this, or the wrong code to turn TIDY on?

Any ideas?

Walter

--- End Message ---

Reply via email to