[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

09/01/2009 at 01:46AM PDT, ID: 24697278
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.0

PHP?APACHE Problem with SQL SERVER EXPRESS Connection

Asked by Camarosa in Apache Web Server, PHP for Windows, SQL Server 2005

I Have a problem with a connection from PHP to SQL Server Express. Sometimes it functions and sometimes not.

I have php 5.2.5 with apache 2.2.3 on windows XP (Apache/2.2.3 (Win32) mod_ssl/2.2.3 OpenSSL/0.9.8d PHP/5.2.5). Windows XP has service pack 2

Windows XP runs on VMWARE FUSION.

I Try to connect to a SQLEXPRESS 2005 database server on localhost\SQLEXPRESS

If I try to connect the APACHESERVER crashes. In the Apache Error Log I see this error code:

"Parent: child process exited with status 3221225477 -- Restarting."

The version of NTWDBLIB.DLL is 2000.80.194.0


I made a testscript:

<?php
ini_set("display_errors","on");
echo 'Startscript' . '<br>';
$server = 'localhost\SQLEXPRESS';
//$server = 'dbserv';
$user = 'sa';
$pass = 'xxxxxxxx';
$db = 'HORA_DUNAMARE';
echo 'pre-connect' . '<br>';
ob_flush();
$mshandle = mssql_connect($server, $user, $pass) or die("Couldn't connect to SQL Server on ".$server." ".mssql_get_last_message());

echo 'post-connect' . '<br>';
ob_flush();

$selected = mssql_select_db($db, $mshandle) or die("Couldn't open database ".$db);
echo 'post-select' . '<br>';
ob_flush();

$query = mssql_query("SELECT TOP 10 * FROM AFDELING");
echo 'post-query' . '<br>';
ob_flush();

$data = mssql_fetch_array($query,MSSQL_ASSOC);

echo 'pre-print' . '<br>';
echo '<pre>';
print_r($data);
echo '</pre>';
echo 'post-print' . '<br>';
?>


Sometimes it runs OK and sometimes it doesn't. If Apache has crashed and I restart Apache and try to run this testscript it fails. But if I, after a restart of Apache, run the script first with a false password and after that with the right password it runs again.

Can someone shed some light on this strange behavior
[+][-]09/01/09 04:06 PM, ID: 25237032

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Apache Web Server, PHP for Windows, SQL Server 2005
Sign Up Now!
Solution Provided By: RQuadling
Participating Experts: 1
Solution Grade: B
 
 
[+][-]10/13/09 01:31 PM, ID: 25564209

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20090824-EE-VQP-74 - Hierarchy / EE_QW_3_20080625