Jump to content
  • 0

Pws Mporw Na Perasw Php Arxeia Se Html?


Question

Posted

Paidia mipws 3erei kaneis pws mporw na perasw arxeia .php se html... Ta arxeia php ta exw to mono pou 8elw einai na ta balw mesa stin selida mou...! An mporei kapoios as mou pei ton kodika html pou prepei...Thx

15 answers to this question

Recommended Posts

  • 0
Posted (edited)
<html>
<head>
</head>
<body>
<?php

include("test.php");

?>
</body>
</html>

if you mean something like this.

Edited by Cr1MsOn
  • 0
Posted (edited)

php and html are to differents files, you can have png/gif together? no you cant, that means you cant!
 
config_sql,php
 

<?php
////////////MySQL Infos///////////////////
    $server = 'localhost'; //Server Address - if is localhost use localhost if not then use Internet Protocol
    $User  = 'root'; //Username
    $Password    = ''; //Password mysql
    $Database    = ''; //Database Name
    $Connection = mysql_connect($server, $User, $Password) or die(mysql_error());
               mysql_select_db($Database, $Connection) or die(mysql_error());           
function total($tab, $cond = NULL) {
    $sql = mysql_query("SELECT COUNT(*) AS total FROM ".$tab." ".$cond."") or die(mysql_error());
    $c = mysql_fetch_array($sql);
    return $c['total'];
}
?>

 
Index,php
 

<?php
include('configs/config_sql.php');
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
</body>
</html>
Edited by FirefoxAurora
  • 0
Posted

 

php and html are to differents files, you can have png/gif together? no you cant, that means you cant!

 

config_sql,php

 

<?php
////////////MySQL Infos///////////////////
    $server = 'localhost'; //Server Address - if is localhost use localhost if not then use Internet Protocol
    $User  = 'root'; //Username
    $Password    = ''; //Password mysql
    $Database    = ''; //Database Name
    $Connection = mysql_connect($server, $User, $Password) or die(mysql_error());
               mysql_select_db($Database, $Connection) or die(mysql_error());           
function total($tab, $cond = NULL) {
    $sql = mysql_query("SELECT COUNT(*) AS total FROM ".$tab." ".$cond."") or die(mysql_error());
    $c = mysql_fetch_array($sql);
    return $c['total'];
}
$loginserver = @fsockopen($server, 2106, $errno, $errstr, 1);
$gameserver = @fsockopen($server, 7777, $errno2, $errstr2, 1);
?>

 

Index,php

 

<?php
include('configs/config_sql.php');
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
</body>
</html>

And now i have 2 php files right??? config_sql.php and Index.php

  • 0
Posted (edited)

it won't work in l2

reason?

 

 

>Login Server: <?php echo $loginserver ? '<img src="images/on.gif">' : '<img src="images/off.gif">'; ?>  

              Game Server: <?php echo $gameserver ? '<img src="images/on.gif">' : '<img src="images/off.gif">'; ?>  

Players Online: </a> <?php echo $funcao_ons ?>

Edited by FirefoxAurora
  • 0
Posted

reason?

 

 

>Login Server: <?php echo $loginserver ? '<img src="images/on.gif">' : '<img src="images/off.gif">'; ?>  

              Game Server: <?php echo $gameserver ? '<img src="images/on.gif">' : '<img src="images/off.gif">'; ?>  

Players Online: </a> <?php echo $funcao_ons ?>

 

It wont work in L2, basically the L2 HTMLs are String "instructions" that make the C part of the client construct an HTML, but its not really an HTML, the features it provides are very limited, it has only the basic instructions of HTML, nothing else

  • 0
Posted

<?php

$L2JBS_config["mysql_host"]="localhost"; // MySQL Host  ["localhost"]  ->>> HERE NEED TO PUST IP ADRESS FROM HOSTING?<<< 

$L2JBS_config["mysql_port"]="3306"; // MySQL Port ["3306"]

$L2JBS_config["mysql_db"]="l2jdb"; // MySQL Database ["l2jdb"]

$L2JBS_config["mysql_login"]="root"; // MySQL User ["root"]

$L2JBS_config["mysql_password"]="master"; // MySQL Password

 

["root"]

$facepcs="20"; // Count of Face PCs

include("_config_procs.php");

error_reporting(0);

?>

  • 0
Posted (edited)

attachicon.giferr.png  re pedia kapios help exw prob otan paw na valw players online auto m vgazi..

Έχεις καταλάβει ότι αυτό το topic το έχει φτιάξει άλλος για να πάρει βοήθεια και αυτά που κάνεις post είναι off-topic;

 

Θα πρέπει να ανοίξεις δικό σου topic αν θες βοήθεια.

Edited by MikeJ

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Hello i need one developer for make one l2 server
    • Wholesale buyers - special terms!   Looking for a profitable bulk deal? We’ll let you choose numbers from our pool - and find the ones that fit your needs perfectly.   Message us here 👉 [https://t.me/vibe_sms_admin] - we’ll discuss, agree on the price, and offer a discount if needed!   Our website: https://vibe-sms.net/ Our Telegram channel: https://t.me/vibe_sms
    • 🎉 **OPENING — Lineage 2 x17 MULTIPROF COMFORT SERVER!** 🔥 **October 31, 2025 at 20:00 (MSK)** (OBT starts **October 27, 2025 at 20:00**) 💎 **Multeria** invites you to join the brand-new **Multiprof server** — built with care, balance, and community feedback in mind! ⚔️ **COMFORT RATES:** • EXP ×17 (with PA ×25.5) • SP ×8.5 (with PA ×17) • Drop / Spoil ×1 (with PA ×2.5) • Adena ×1 (with PA ×2) 🚀 **WHAT’S NEW:** • New max level — **100** • **100% Craft System** for armor, weapons, belts (incl. Power Belt), bracelets & talismans • New epic accessory — **Frintezza’s Necklace** • **Mass skills cooldown reduced ×10** (Defense Instinct, Magic Impulse, Fanatic, etc.) • Fair play — HWID limits on global instances and rebirth-based party checks • **New 90+ dungeons** (60/120 min time limits) • **New PvP zones:** Varka, FoG, LoA, Stakato (battle zones active) • **Extra game window** available for in-game currency (Gold Einhasad) 💬 Everything you love about Lineage 2 — **balance, comfort, and fairness**. 🔗 More info: https://hf.multeria.world/
    • Hello everyone, we now have Adena for these projects: l2rebon signature x1 - 1kk = $0.8 l2reborn x10 - 500kk = $3.5 E-Global x Lu4 - 1kk = $1.8 ElmoreLab x5 - 1kk = $1.7 DISCORD - GODDARDSHOP
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock