Jump to content
php.lv forumi

HLTV Script


Puika1
 Share

Recommended Posts

man ir šāda problēma te viss rādās šķībi

http://morgss.com/demo.php (tā nau reklāma)

un es izmantoju šo kodu

 

<?php
if ($handle = link('http://morgss.com/demo/')) {
while (false !== ($file = readdir($handle))) {
if (strlen($file) > 4)
{
$gabali = explode("-", $file);
$date = $gabali[1];
$mape = $gabali[2];
$mapesgabali = explode(".", $mape);
$name = $mapesgabali[0];
$year = substr($date,0,2);
$month = substr($date,2,2);
$day = substr($date,4,2);
$hour = substr($date,6,2);
$minute = substr($date,8,2);
echo "<center> $day.$month.$year             $hour:$minute             $name            
<a href=\"demo/$file\">Novilkt</a></br></center>";
}
}
closedir($handle);
}
?>

Es ļoti būtu pateicīgs ja kāds palīdzētu dabūt tā lai viss būtu vienā rindā un lai b utu pa lapam piem viena lapa kadi 20 demo un tad nakosa utt help ludzu

Link to comment
Share on other sites

Tev par agru gribēt dalīt ierakstus pa lapām.

Ieteiktu sākt ar kādu HTML pamatu pamācību. Apskaties, ko nozīmē <br> tags. Tu pie tam to nekorekti pieraksti. Ir nevis </br> bet gan <br/>.

Un tiec vaļā no tām   entītēm. Tabulas veidā izkārtojamiem datiem lieto <table> tagu.

Link to comment
Share on other sites

pareizi es sapratu

man jaliek ta

 

<?php
if ($handle = link('http://morgss.com/demo/')) {
while (false !== ($file = readdir($handle))) {
if (strlen($file) > 4)
{
<table>$gabali = explode("-", $file);</table>
<table>$date = $gabali[1];</table>
<table>$mape = $gabali[2];</table>
<table>$mapesgabali = explode(".", $mape);</table>
<table>$name = $mapesgabali[0];</table>
<table>$year = substr($date,0,2);</table>
<table>$month = substr($date,2,2);</table>
<table>$day = substr($date,4,2);</table>
<table>$hour = substr($date,6,2);</table>
<table>$minute = substr($date,8,2);</table>
echo "<center> $day.$month.$year;</table>
<a href=\"demo/$file\">Novilkt</a></br></center>";
}
}
closedir($handle);
}
?>

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   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.

Loading...
 Share

×
×
  • Create New...