Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Shaiya > Shaiya Private Server > Shaiya PServer Guides & Releases
You last visited: Today at 19:28

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[RELEASE] Secure PHP Web Registration Script

Discussion on [RELEASE] Secure PHP Web Registration Script within the Shaiya PServer Guides & Releases forum part of the Shaiya Private Server category.

Reply
 
Old 07/04/2011, 02:22   #121
 
abrasive's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 262
Received Thanks: 812
Quote:
Originally Posted by Svinseladden View Post
i have tried backwards php. back to 5.2.9.

i get this all the time:

error log:
[04-Jul-2011 01:56:23] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\ext\php_mssql.dll' - The specified module could not be found.
in Unknown on line 0
[04-Jul-2011 01:56:23] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\ext\php_oci8.dll' - The specified module could not be found.
in Unknown on line 0
[04-Jul-2011 01:56:23] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\ext\php_pdo_mssql.dll' - The specified module could not be found.
in Unknown on line 0
[04-Jul-2011 01:56:23] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\ext\php_pdo_oci.dll' - The specified module could not be found.
in Unknown on line 0
[04-Jul-2011 01:56:23] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\ext\php_pdo_oci8.dll' - The specified module could not be found.
in Unknown on line 0
[04-Jul-2011 01:56:23] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\ext\php_pdo_pgsql.dll' - The specified module could not be found.
in Unknown on line 0
[04-Jul-2011 01:56:23] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\ext\php_pdo_sqlite_external.dll' - The specified module could not be found.
in Unknown on line 0
[04-Jul-2011 01:56:23] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\ext\php_pgsql.dll' - The specified module could not be found.
in Unknown on line 0
[04-Jul-2011 01:56:23] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\ext\php_pspell.dll' - The specified module could not be found.
in Unknown on line 0
[04-Jul-2011 01:56:23] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\ext\php_sybase_ct.dll' - The specified module could not be found.
in Unknown on line 0

and they are enabled..

i use iss 7.5 windows server 2008r2 sql 2008r2

what can i do please? this is making me go insane soon..
I see you posted the error messages, but you didn't mention if those files exist at the path where it is looking for them?
abrasive is offline  
Thanks
1 User
Old 07/04/2011, 02:37   #122
 
Svinseladden's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 675
Received Thanks: 240
i said and they are enabled... sorry and yes they are in the dir ext. have the same on jyst c/:PHP/ext.
Svinseladden is offline  
Old 07/04/2011, 03:15   #123
 
abrasive's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 262
Received Thanks: 812
What have you tried? Have you tried any of the solutions that come up when you do a search for that error message?
abrasive is offline  
Thanks
1 User
Old 07/04/2011, 12:32   #124
 
Svinseladden's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 675
Received Thanks: 240
i have had 3 that has working php in there server looking at it. i have tried to change PHP. PHP path from just C:/ to installing the PHP.exe on auto path.

changed 127.0.0.1 to local ip and i have added ,1433 for port.

only i now havend tried is running obdc connect instedd os mssql connect.

when i install xwamp the server will not start or go online so i can add what need to be added.

i have tried turning off all security i can find just to check.

now i don't know what to try next..


one new i tried running sreg. so i don't have to manyaly put in all the stuff in sql. but when i try to use that i get an error.

can not insert when Users_master when IDENTY_INSERT is set off. but i have used this:

SET IDENTITY_INSERT tableName ON Users_Master yes. and it said updates one row. and still i get this. could this be the error?


info about the error:


See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Data.SqlClient.SqlException: Cannot insert explicit value for identity column in table 'Users_Master' when IDENTITY_INSERT is set to OFF.
at System.Data.SqlClient.SqlConnection.OnError(SqlExc eption exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndW arning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQuer yTds(String methodName, Boolean async)
at System.Data.SqlClient.SqlCommand.InternalExecuteNo nQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at WindowsApplication1.Form1.button2_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5444 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
WindowsApplication1
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/Administrator/Desktop/sreg.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5442 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_64/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Transactions
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_64/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_64/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


i have set it off and on again. same error.

i'm running iss 7.5 and sql 2008r2.
Svinseladden is offline  
Old 07/04/2011, 20:57   #125
 
abrasive's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 262
Received Thanks: 812
It sounds like you have the UserUID column set to identity, but you are also trying to tell it what the UserUID is. Basically you told the database you wanted it to keep track of incrementing UserUID, but then you are trying to force you own UserUID on it, which it doesn't like.

Make sure you turn the SET IDENTITY_INSERT on Users_Master back to off. Then you will want to make a modification to your registration script's insert query to no longer try to insert a UserUID, like below:

So instead of doing something like this example:
Code:
INSERT INTO PS_UserData.dbo.Users_Master
(UserUID, UserID, Pw)
VALUES(2,'bubba','bubba1')
You want to do something like this example:
Code:
INSERT INTO PS_UserData.dbo.Users_Master
(UserID, Pw)
VALUES('bubba','bubba1')
abrasive is offline  
Old 07/04/2011, 21:09   #126
 
Svinseladden's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 675
Received Thanks: 240
i'll try that thanks
Svinseladden is offline  
Old 07/04/2011, 21:15   #127
 
Svinseladden's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 675
Received Thanks: 240
Quote:
Originally Posted by abrasive View Post
It sounds like you have the UserUID column set to identity, but you are also trying to tell it what the UserUID is. Basically you told the database you wanted it to keep track of incrementing UserUID, but then you are trying to force you own UserUID on it, which it doesn't like.

Make sure you turn the SET IDENTITY_INSERT on Users_Master back to off. Then you will want to make a modification to your registration script's insert query to no longer try to insert a UserUID, like below:

So instead of doing something like this example:
Code:
INSERT INTO PS_UserData.dbo.Users_Master
(UserUID, UserID, Pw)
VALUES(2,'bubba','bubba1')
You want to do something like this example:
Code:
INSERT INTO PS_UserData.dbo.Users_Master
(UserID, Pw)
VALUES('bubba','bubba1')
i am using your webregister files. have problems there too. gave this becouse it mabe help you see the problem. but yours using userid?
Svinseladden is offline  
Old 07/04/2011, 21:58   #128
 
abrasive's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 262
Received Thanks: 812
Quote:
Originally Posted by Svinseladden View Post
i am using your webregister files. have problems there too. gave this becouse it mabe help you see the problem. but yours using userid?
I don't understand what you are saying. You are getting this error yes?
Quote:
Originally Posted by Svinseladden View Post
can not insert when Users_master when IDENTY_INSERT is set off
Are you getting that error with my registration files? I assumed you modified them because this is the query from the registration files:
Code:
$sql = "INSERT INTO PS_UserData.dbo.Users_Master
(UserID,Pw,JoinDate,Admin,AdminLevel,UseQueue,Status,Leave,LeaveDate,UserType,Point,EnPassword,UserIp)
VALUES ('{$username}','{$password}',GETDATE(),0,0,0,0,0,GETDATE(),'N',0,'','{$user_ip}')";
Which it does not try to insert UserUID.

It is not clear to me in what specific situation you are getting the error.
abrasive is offline  
Old 07/04/2011, 23:45   #129
 
Svinseladden's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 675
Received Thanks: 240
Quote:
Originally Posted by abrasive View Post
I don't understand what you are saying. You are getting this error yes?


Are you getting that error with my registration files? I assumed you modified them because this is the query from the registration files:
Code:
$sql = "INSERT INTO PS_UserData.dbo.Users_Master
(UserID,Pw,JoinDate,Admin,AdminLevel,UseQueue,Status,Leave,LeaveDate,UserType,Point,EnPassword,UserIp)
VALUES ('{$username}','{$password}',GETDATE(),0,0,0,0,0,GETDATE(),'N',0,'','{$user_ip}')";
Which it does not try to insert UserUID.

It is not clear to me in what specific situation you are getting the error.
no he he i used a program that's called sreg. attached. this is givving me this error. but normaly i try to use yours and i get the:

You must have the php_mssql library for Apache installed and enabled to connect to an MSSQL database. Uncomment the line that says extension=php_mssql.dll in your php.ini (XAMPP/WAMP only). This requires a restart of the Apache service to take effect.
User Name

when i try to type in the username from a website.

but this is a workaround so i don't have to manualy type in all the stuff with data joined, and so on and so on. untill i get the register to work..
Attached Files
File Type: rar sreg.rar (17.3 KB, 112 views)
Svinseladden is offline  
Old 07/05/2011, 11:43   #130
 
Svinseladden's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 675
Received Thanks: 240
castor. please.

i asked for help with my register in a register dev selection under the place i have files from. i just gave you all of this in this so you might understand what my prob is.

if you look in any of the dev relese there is questions about how to make it work.

i just added this becouse yes i don't understand much about php. and i have tried about all i can. but if you could help with what i can try or something like that, and not just have fun that i'm not as good as you that would be great ty.

i am running stuff just to try and get errors you and me can understand or you can tell me. so we can isolate the problem.

i don't have apache installed. do i need to? like i have said alot of times now i have iss 7.5 with php manager installed. sql 2008r2

all of my ext are installed.

but the thing is. i have tried alot. and this is not what i'm going to use. i'm not letting this file go out on my website. just something i was trying for my self.

if you get 1 error and none can or will help you. i have to try even more to get errors you or my self can understand so i can isolate the real problem, and yes i did everything abrasive's said exept xampp ? becouse i asked and there was no need for 2. so i skipted that part. i del the first row in the userdata so i just have 1 UserUid is the first i have and not rowid like it was. and i have set the auto-increment to it.

if you could point me to the right dir of what i can try next that would be great. and not just trying to call me a moron and a noob. we all now i'm one. don't need to put that in every post now. we know.. or the complete pvper's know. that i even have a server is insane yes i know and all that.

what is this code?

when i go in the error loggs i get that some dll.s that can't be found..

C:\PHP\ext\php5apache.dll' - The specified module could not be found.
in Unknown on line 0

and 10 others. but i have all in that dir.
Svinseladden is offline  
Old 07/05/2011, 12:29   #131
 
JohnHeatz's Avatar
 
elite*gold: 150
Join Date: Apr 2010
Posts: 9,739
Received Thanks: 8,981
Quote:
Originally Posted by Svinseladden View Post
if you look in any of the dev relese there is questions about how to make it work.
Well, those questions are there, and they did help to make those guides better, yet, they still are on wrong section....


Quote:
Originally Posted by Svinseladden View Post
what is this code?
when i go in the error loggs i get that some dll.s that can't be found..
C:\PHP\ext\php5apache.dll' - The specified module could not be found.
in Unknown on line 0

and 10 others. but i have all in that dir.

That is telling you that you don't have that specific .dll file, if you have it somewhere else just copy/paste it on that directory that it is telling you, but it seems like you are just missing that file....and the 10 other files that you mentioned there
JohnHeatz is offline  
Old 07/05/2011, 13:05   #132
 
Svinseladden's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 675
Received Thanks: 240
Quote:
Originally Posted by JohnHeatz View Post
Well, those questions are there, and they did help to make those guides better, yet, they still are on wrong section....





That is telling you that you don't have that specific .dll file, if you have it somewhere else just copy/paste it on that directory that it is telling you, but it seems like you are just missing that file....and the 10 other files that you mentioned there
i ahve all of the dll file that's what i don't get.:-( i have them in that dir but they keep saying they are not there..

i have manualy search'ed for them and they are all there..

well new installing of PHP + alot of googeling. i'm now at this:

[05-Jul-2011 15:28:12] PHP Fatal error: Call to undefined function mssql_connect() in C:\inetpub\wwwroot\config.php on line 6
[05-Jul-2011 15:28:40] PHP Fatal error: Call to undefined function mssql_connect() in C:\inetpub\wwwroot\config.php on line 6
[05-Jul-2011 15:31:24] PHP Fatal error: Call to undefined function mssql_connect() in C:\inetpub\wwwroot\pvp-rank.php on line 10
[05-Jul-2011 15:46:11] PHP Fatal error: Call to undefined function mssql_connect() in C:\inetpub\wwwroot\Whoisonline.php on line 6

line 6 is then the mssql_connect. so the connection for the sql. but i have the connections above.

like this:

<?php
//User defined variables
$host = "127.0.0.1"; //Database Host. (IP to DB)
$user = "Shaiya"; //Database Username
$pass = "shaiya123"; //Database Password
$link = mssql_connect($host,$user,$pass) or die('Connection Error.');

(yes i have changed my password he he so try connection if you want)

this is one of them. the config file : [05-Jul-2011 15:28:12] PHP Fatal error: Call to undefined function mssql_connect() in C:\inetpub\wwwroot\config.php on line 6

is there any idea to just try and input the ip user and password in after mssql_connect?

i know i use the correct username and password
Svinseladden is offline  
Old 07/05/2011, 13:32   #133
 
RebeccaBlack's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 520
Received Thanks: 1,289
If you get the following (only look at the bold part):
Code:
MSSQL Function Tests

MSSQL functions existing...and connections are possible!
[B]ODBC functions existing...and connections are possible![/B]
PHP version: 5.2.17
Then just either rewrite the script to use ODBC or sql_srv

I'll attach an ODBC rewrite of Abrasive's. Don't thank me, thank him.
Attached Files
File Type: rar abrasive_registrationODBC.rar (8.9 KB, 169 views)
RebeccaBlack is offline  
Thanks
3 Users
Old 07/05/2011, 15:01   #134
 
Svinseladden's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 675
Received Thanks: 240
Quote:
Originally Posted by tnelis View Post
If you get the following (only look at the bold part):
Code:
MSSQL Function Tests

MSSQL functions existing...and connections are possible!
[B]ODBC functions existing...and connections are possible![/B]
PHP version: 5.2.17
Then just either rewrite the script to use ODBC or sql_srv

I'll attach an ODBC rewrite of Abrasive's. Don't thank me, thank him.
now i'm stating to love you too:-)

BUT when i use this my status is 0. that has to be 4 right?

NM i changed it in the php. was set to 0 just changed it to 4. sorry.

but ty so much. i mean it ty so so much. finaly something that workes..
Svinseladden is offline  
Old 07/05/2011, 15:10   #135
 
Svinseladden's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 675
Received Thanks: 240
Quote:
Originally Posted by castor4878 View Post
My remark regarding the choice to post in this thread or in a new one was mostly for me - I do prefer clean threads for releases, and quick & dirty but throwable thread for specific (and time limited) issue, but this is *my* preference only, I didn't say I'm right.

that said. my list of questions wasn't there to overwhelm you but really to try to understand the issue since there are several contradictory points.
you're right to explain what you tried (and readers will expect that indeed you did some tries) but please do not try all and every things, a collection of failures is not that helpful.

<<i don't have apache installed. do i need to? like i have said alot of times now i have iss 7.5 with php manager installed. sql 2008r2>>

ok, it wasn't that clear (neither) because of the previous statement: <<You must have the php_mssql library for Apache installed ...>>.

so if you're using IIS (Internet Information Services, not ISS), you shall use the PHP preprocessor compiled with VC9 - yeah who give a sheet about the used compiler, the issue comes from the runtime of the MS compilers; simply consider that this version is the right one.

* installation of PHP over IIS 7+
I won't copy all details, the full installation is

- note you will need the or the w/o install if you prefer. and optionally the

I just re-install the whole thing (IIS 5.1 & PHP 5.3.6) from scratch on my XP (I'm using Apache of course) and it requires 5 mn.
Of course, you must test the IIS svr with a dummy index.html page to be sure it works after activating the w3svc service and test the PHP ISAPI module with a dummy index.php file.
Only point that may cause error (on IIS 5.1, not sure about 7) is the "cgi.force_redirect flag in php.ini (it must be set to 0 as indicated in the install page).

* access to MSSQL server

and to MSSQL only ... your previous post listed OCixxx file (for Oracle), sqlite (for SQLite) etc, etc, let focus and what you wanna acheive instead of adding useless stuff, if errors still occur at least they will be relevant for what you are trying to do.

w/o rewriting the full story, accessing to MSSQL (and to MySQL too for some aspects) has always been paintfull because of incomplete package (due to no redistribuable libs or other details).

the good news is that M$ itself does provide an efficient native client to connect to the SQL svr, and this time it's a fully functional package (no missing libs, no boring (.net) overhead)).

and .

Execute the downloaded .exe and give the "ext" folder of your PHP install when it prompts you for the target directory.

It copies several files named: php_pdo_sqlsrv_5?_[n]ts_vc?.dll in this folder. There is also a "SQLSRV_Help.chm" file that you will want to put in the middle of your desktop.

So, summary of previous points: we have install PHP 5.*3* and we run IIS (so VC*9*), and we prefer a thread safe ('ts') module, the only module that needed to be loaded thru php.ini is so: php_sqlsrv_53_ts_vc9.dll

in the "Dynamic Extensions" section add:

extension=php_sqlsrv_53_ts_vc9.dll

let all other modules commented - you don't need them.
(php_gd2.dll & php_curl.dll can also be useful but they aren't DB-modules solet forget them right now).

you can also define the full path of your ext directory with the "extension_dir" directive, set it for better reliability, it's suppose to use "./ext" as default, but a guaranty is better.

so, full php.ini settings are:

Code:
[PHP]

;;;;;;;;;;;;;;;;;;;;
; Language Options ;
;;;;;;;;;;;;;;;;;;;;

engine = On
short_open_tag = On
asp_tags = Off

;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

doc_root =
user_dir =
extension_dir ="D:\net\php\5.3.6\ext"

cgi.force_redirect = 0
cgi.fix_pathinfo=1
fastcgi.impersonate = 1;
fastcgi.logging = 0

;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;

extension=php_sqlsrv_53_ts_vc9.dll
(all other options / directives left with their default values)

3 additional mn spent on that install.

* connect to MSSQL

restart IIS to make sure it reloads PHP with the new settings and test dummy connection:

index.php:
Code:
<html>
<head>
	<meta HTTP-EQUIV="Content-Type" Content="text-html; charset=Windows-1252">
</head>

<body>
<h2>Welcome to IIS with PHP and MSSQL **</h2>
<?
	$connectionInfo = array(
		'UID' => 'Shaiya',
		'PWD' => 'Shaiya123',
		'Database' => 'PS_UserData'
	);

	$conn = sqlsrv_connect('127.0.0.1', $connectionInfo);
	$smt = 'SELECT UserID FROM Users_Master';
	$set = sqlsrv_query($conn, $smt);

	echo "<ul>\n";
	while ($row = sqlsrv_fetch_array($set)){
		echo "<li>$row[0]</li>\n";
	}
	echo "</ul>\n";

	sqlsrv_free_stmt($set);
	sqlsrv_close($conn);
?>
</body>
</html>
IIS-based php/mssql server fully functional is less than 10 mn. (functional, i didn't say useful).

Edit: M$SQL 2008 R2 was already installed on the machine - with all dev modules including the support of the native driver - may be you can miss some files at this point (depending of your SQL2k8 install), if it's the case, restart the install wizard & add those modules (mainly the "native driver support").

* checking libs

if at one point, you have a "Unable to load dynamic library 'foo.dll'" message; as indicated in my previous post, when a lib failed to load, it is *not* in 99% of cases because it isn't present in the given directory - "i have manualy search'ed for them and they are all there." is a bad response (unless you deliberately do stupid things of course)
but it's because the lib relies on other libs that can not be found in the scanned dir. (system, env. path, ...)

so , download it, unzip in your \dev\bin\tools favorite folder and drag the lib that refuses to load on it, you will know which (other) dll is missing, then u will google it or check your install to figure out a mispelled directory name or config file.
ty for this castor. i'll try that one. ty
Svinseladden is offline  
Reply

Tags
mssql, php, script, shaiya script mssql sql


Similar Threads Similar Threads
[Release] SSE php Registration page script!
06/25/2013 - SRO PServer Guides & Releases - 38 Replies
Hello there, i'm not much using this forum, but as i recently helped out the owners of server G-Sro by making this automatic account registration page, decided to release for everyone. Hope you like it. For live preview go to: Demo Page DOWNLOAD LINK: http://www.multiupload.com/65ZMM3N7C0 Feel free to edit it however you want, but don't re-release it on other communities. Features:
[Release] Secure BHop Script
08/08/2010 - Counter-Strike Hacks, Bots, Cheats & Exploits - 5 Replies
You can't get banned for using this Script because it's only presses the Space button = no injection into the game = No VAC Ban + it's secured. Btw it's an Private BHop script so when you leech it please give the credits. Info: How to use press "^" to start and "^" to stop Virus Scan:
[Release] Simple CoEmu V2 - Registration Script
03/07/2010 - CO2 PServer Guides & Releases - 39 Replies
http://i42.tinypic.com/1qlcnd.png Download Simply open settings.php and edit it to your settings, and it'll run smoothly.
[RELEASE]Registration Script (ENG)
05/16/2009 - Dekaron Private Server - 12 Replies
I just created this registration script so enjoy. Unlike the others that are posted around, this one is built from the ground up by me. Enjoy and dont forget to say thanks! Uses mssql(); Please post your comments and suggestions!!!! Ill have more tools on the way. ~Quick tut to get it working~ 1. Download the rar 2. Extract it to a place where you can easily edit the files 3. Open up includes/db.php 4. Edit your information for your SQL server 5. Save and upload to a directory inside...



All times are GMT +1. The time now is 19:28.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.