Jump to content
  • 0

L2 Off,need help with msql/web/easyphp.


Question

Posted

I spent few days on trying to setpup my website for the server. But everything went wrong while trying to access the data base on my server from the web. Some people told me I should use EasyPhp.

Wel I have installed it on my server pc,run it.

 

My config.inc.php look like this:

$cfg['Servers'][$i]['host'] = '127.0.0.1';

$cfg['Servers'][$i]['connect_type'] = '3306';

$cfg['Servers'][$i]['user'] = 'xxx';

$cfg['Servers'][$i]['password'] = 'xxx';

 

First of all how do I know what port should I use? Why not 80?

 

My main problem is to set up scripts like: Top pvp/pk list,raid boss list,7 signs etc. With easyphp I tried the script for server status on my server and this is the error that I get:

 

Fatal error: Call to undefined function

mssql_query() in c:\program files (x86)

\EasyPHP-5.3\www\pk.php on line 11

 

 

Now if we go to file pk.php to line 11 we can find the next info:

$query = msql_query("SELECT char_name, PK FROM dbo.user_data WHERE PK>0 ORDER BY PK DESC");

 

 

How can I fix it please?

 

3 answers to this question

Recommended Posts

  • 0
Posted

So...Let's Take It From The Start 1 by 1.

 

First Of All... Port 80 Is For The Website, That's Why You Can't Use It For The Scripts.

2nd at

$cfg['Servers'][$i]['host'] = '127.0.0.1';                -> Here You Add The IP That The Database Is On   
$cfg['Servers'][$i]['connect_type'] = '3306';                -> Here You Add The Port That Database Is Listening 
$cfg['Servers'][$i]['user'] = 'xxx';                         -> Here You Add Your Database Username 
$cfg['Servers'][$i]['password'] = 'xxx';                      -> And Here You Add Your Database Password 

So If You Want Your Site To Access Your Database, You Will Need To Open Port 3306 [iF YOUR SITE IS NOT AT THE SAME SERVER PC,OTHER WISE YOU DON'T NEED TO OPEN THE PORT.]

 

If You Need More Help [something That I Am Sure] Let Me Know.

 

PS: If You Wanna Start The Coding You Should Go And Learn Php  :D  :P

 

[move]*dns-A[/move]

  • 0
Posted

So...Let's Take It From The Start 1 by 1.

 

First Of All... Port 80 Is For The Website, That's Why You Can't Use It For The Scripts.

2nd at

$cfg['Servers'][$i]['host'] = '127.0.0.1';                -> Here You Add The IP That The Database Is On   
$cfg['Servers'][$i]['connect_type'] = '3306';                -> Here You Add The Port That Database Is Listening 
$cfg['Servers'][$i]['user'] = 'xxx';                         -> Here You Add Your Database Username 
$cfg['Servers'][$i]['password'] = 'xxx';                      -> And Here You Add Your Database Password 

So If You Want Your Site To Access Your Database, You Will Need To Open Port 3306 [iF YOUR SITE IS NOT AT THE SAME SERVER PC,OTHER WISE YOU DON'T NEED TO OPEN THE PORT.]

 

If You Need More Help [something That I Am Sure] Let Me Know.

 

PS: If You Wanna Start The Coding You Should Go And Learn Php  :D  :P

 

[move]*dns-A[/move]

 

First of all thanks for responding,I will try it later.

Im a pvp programer for sure,but I spent so much time,I got all the necessary scripts for my web. Most of the tests im doing on the server. OFC my website is not on the server.

I installed easyphp,I read about that on some forums,I enabled few extensions but not more then this. Most of the scripts working just with the first part >>> connecting to DB but not reading the DB name. I mean,for me it looks weired that there are no any steps for configuring this program. How the program supposed to know where is for example "lin2db" ? That is the reason all my scripts not working. I have MSQL server 2005,i have the user name,password but where the hell I must define it on EasyPhP?

I ran a simple script for test,which shows connection to DB and reading DB name and this is the result:

Connected successfully

Could not select database

 

It seems like I have to define the patch,and I didnt find any info about that. Some people told me to create file name my.cnf... I need here really someone who can give me the first "push" and the rest I will do by myself.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • he kept his promise! i think it's a good idea to unban his old account. he shares files with the community and could help both new and veteran l2off users! good job, Guytis!
    • the only thing you know how to do is to change drawings inside a lineage2 client and you decide to talk about the IQ of others? hahahaha
    • Web: https://cheatcenter.net/ Counter Strike 2 Nixware Hack With the Nixware cheat, you have powerful software in your hands for exciting battles in Counter-Strike 2! The perfect set of features for Rage and Semi-Rage games will provide you with confidence on the battlefield. Use antiaim to avoid being hit. Customize the world for yourself by adjusting the colors and the sky. Shoot through the walls and use other unique opportunities to defeat your rivals and become the leader of the team! Product Description LEGITBOT FOV Hitboxes Head Neck Chest Stomach Pelvis Smooth Shot delay Kill delay Lock target Lock mouse Draw FOV Disable when Smoke Flash Jump RAGEBOT Aimbot FOV changer Hitscan Head Neck Chest Stomach Pelvis HeadBody point scale Minimal damage Hitchance Force shoot PSilent Antiaim Autoscope Autostop (between shots) Bunnyhop Auto strafer with smooth adjustment Accurate walk ESP Box Glow Skeleton Footsteps Name Weapon name Health Health bar Ammo Chams Ragdoll chams Offscreen ESP Box Minimal and maximum radius customization Minimal and maximum size customization WORLD Bomb esp Timer Damage Name Weapons Icon Name Glow Grenades Color Trajectory Timer Grenade proximity warning SKINS Gloves Seed Paint kit Wear Knifes Seed Paint kit Wear Weapons Seed Paint kit Wear MISC View Model Editor View Model Chams Hand chams Glove chams Sleeve chams Weapon chams Auto Accept Show player money Spectator list World modulation (world, clouds, sky, sun) Spread circle TaserKnife range Hit markerHit effect Aspect ratio Third person REMOVALS Flash Smoke Visual recoil Scope borders Zoom Sniper crosshair check Team intro First person legs Model occlusion Shadows Fog Decals Particles Water effect Lightning  
    • Web: https://cheatcenter.net/ Counter Strike 2 Xone Hack Looking for a legit cheat for Counter-Strike 2? Xone is your perfect choice! Our product provides unsurpassed features that allow you to play legit and at the same time have an advantage over other players. Discover a new level of gaming efficiency with Xone! Product Description AIM Draw fov Draw target Only enemy Only visible Status Smooth Fov Hitbox Compensation Standalone Target switch Trigger Use aimbot Sticky mode Recoil compensation Delay Custom setting for all VISUAL Enable Box Skeleton Head Loot Health Weapon Name Defuser Bomb Visible check MISK Radar Only enemy Color Enemy/Team Scale Size Keybind Spectator list Bomb info  
  • Topics

×
×
  • Create New...