Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 01:07

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

Advertisement



Small php tutorial

Discussion on Small php tutorial within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
danny-98's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 129
Received Thanks: 29
Small php tutorial

hay leute ich wollte mal hier für die php noobs unter uns nen Tutorial machen was speziell auf die mssql extension aufbaut

Okay die erste aufgabe ist es erstmal die mssql extension zu aktivieren.......

Gut wenn ihr das geschaft habt dann kann es los gehen

Ein php programm wird mit einem texteditor programmiert ich empfehle dafür Notepad++ ()

Gut wenn ihr das Installiert habt fangen wir mit unserem ersten programm an

Einen php blog fängt man wie folgt an

HTML Code:
<?php
oder

HTML Code:
<?
es macht im prinzip keinen unterschid was ihr verwendet

beenden tut man ein php programm mit

HTML Code:
?>
gut das ist das grundgelegende das schreiben wir jetzt auch mal in unseren editor also

HTML Code:
<?php

?>
als nächtes müsst ihr wissen was eine variable ist
eine Variable ist ein datenspeicher sie speichert einen wert ab den man ihr gibt das sieht dann so aus

HTML Code:
<?php
$sql = "Hallo";
?>
in die "" kommt der wert und nach jeder abfrage muss ein ; gesetzt werden sonst gibt es fehler

so jetzt geht es um den mssql_connect befehl

HTML Code:
mssql_connect('username', 'name', 'passwort');
so und das jetzt nicht bei jedem befehl zu machen brauchen wir den befehl
HTML Code:
include("")
als erstes erstelle wir einen ordner names inc im xampp ordner htdocs und erstellen dort die datei conf.php WICHTIG ist das ihr es als php datei abspeichert und nicht als txt

in die datei schreibt ihr dan folgendes rein

HTML Code:
<?
	$server = "PROGRAMMING-PC\SQLExpress";
	$user = "sa";
	$pass= "Zkowcvrzhtq5";
           mssql_connect($server,$user,$pass);
?>
die variablen müsst ihr natürlich mit euren daten füllen
jetzt erstellt ihr die datei index.php im hauptverzeichniss

da kommt folgendes rein erstmal

HTML Code:
<?php 
include("inc/conf.php");
mssql_query("SQL Befehl")
?>
sql befehle bekommt ihr z.B. von

mfg Basti

ich werde bei interresse dieses tutorial noch erweitern
und freut euch ich habe wieder interresse an flyff bekommen und werde euch hier mal ein bischen als php entwickler unterstützten das heißt ich werde demächt noch ein oder 2 hompages hochladen die sind jetzt gerade in der entwicklung und werden in den nächten wochen folgen
danny-98 is offline  
Old 03/13/2011, 19:33   #2
 
Jay Niize's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 4,851
Received Thanks: 3,417
schön gemacht :b dass es jetzt auch die letzten verstehn xD

#moverequest to Coder Tutorials
Jay Niize is offline  
Old 03/13/2011, 19:41   #3
 
danny-98's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 129
Received Thanks: 29
ne ist auf mssql aufgebaut und das benutzt man eh nicht daher gehört das hier rein für webseite fehler ausbügeln und so .....
danny-98 is offline  
Old 03/13/2011, 20:48   #4

 
elite*gold: 142
Join Date: Apr 2010
Posts: 859
Received Thanks: 428
ob
PHP Code:
<? 
?>
oder
PHP Code:
<?php
?>
macht sehrwohl einen unterschied da zb manche freehoster bei "<?" probleme machen.

ansonsten ist es wierklich ein "kleines" tutorial.
Solltest noch auf die mssql extension eingehen.

greetings
©ross is offline  
Old 03/13/2011, 20:59   #5

 
Deda94's Avatar
 
elite*gold: 21
Join Date: Nov 2010
Posts: 2,062
Received Thanks: 2,320
Hilft mir dennoch nicht weiter <.<
Deda94 is offline  
Old 03/14/2011, 20:42   #6
 
danny-98's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 129
Received Thanks: 29
@Cross in PHP 5 mit allen stanndartmäßigen einstellungen macht das keinen unterschied ich programmiere jetzt seit 1,5 jahren und bei mir hat das noch keine probleme auf meinen server gemacht
danny-98 is offline  
Old 03/14/2011, 22:37   #7

 
elite*gold: 142
Join Date: Apr 2010
Posts: 859
Received Thanks: 428
Quote:
Originally Posted by ToxicLibrary™ View Post
Hilft mir dennoch nicht weiter <.<
evtl solltest du dann dein Problem schildern?

Quote:
Originally Posted by danny-98 View Post
@Cross in PHP 5 mit allen stanndartmäßigen einstellungen macht das keinen unterschied ich programmiere jetzt seit 1,5 jahren und bei mir hat das noch keine probleme auf meinen server gemacht
War auch allgemein gesehn
Freehoster verwenden teils die sperre das nur <?php geht.
daher sollte man am besten pauschal auf <?php zurückgreifen, es sei denn man hat den Webserver selber aufgesetzt

greetings
©ross is offline  
Reply


Similar Threads Similar Threads
[Video Tutorial] - Very Easy Tutorial How to make your Own Wallhack in C++
09/01/2012 - Soldier Front Hacks, Bots, Cheats & Exploits - 16 Replies
Hello Everyone!Hellow Philippines - Mabuhay Pinoy Cheaters! Confidentials000 of GZP and Me Babyface21 ay iisa lang! Today i Will Teach you on How to Make Your Own Wallhack in C++ Very Simple By Video Tutorials Step by Step Part 1 - 3 Dont Ask me to Release my Private Wallhack coz i Need it to still Undetected
[cSRO] IPMana 1.0 - Tutorial & Video Tutorial
02/12/2011 - SRO Hacks, Bots, Cheats & Exploits - 6 Replies
Hi all, I'm just posting here for those that have problems setting up the IPMana. First normal tutorial, the Video Tutorial will be at the bottom of the thread. Whats IPMana ? IPMana is similar to QQdaili its just like a proxy program to reduce the lag in cSRO. How can i use IPMana ?
[TUTORIAL] Starter friendly tutorial to searching for Nuke casting time [TUTORIAL]
02/09/2011 - 9Dragons - 12 Replies
If you already have Cheat Engine and know how to use it, skip to part 4 of the tutorial. 1. Introduction This forum has helped me quite a bit, so I decided to give something back :) Now I've noticed there are quite a few who ask for nuke casting time hacks / address', and I've also noticed, that there are quite a few who are REALLY annoyed with these questions, so I decided to write this so both sides can benefit from it. 2. Getting started First off, you need to have Cheat Engine...
[Small tutorial] fixing the -300 error form the Dshop
08/24/2009 - Dekaron Private Server - 12 Replies
this error occurs when you manually input your data into your databse and as a result you enter the next user_no after the two entries already there which so happens to be 3. This is the problem simply avoid user_no's that begin with 3 and try to make them all begin with 6, it really doesnt matter what they are you could have 787230348 or 86349447. Simply change the number from 3 to any other number u can think of. And your problems solved.



All times are GMT +1. The time now is 01:09.


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.