Jump to content
php.lv forumi

Ka var taisit PHP majaslapas?


armags

Recommended Posts

nu ja esmu visas shitastris lieta salicis ka bija teikts http://imo.popular.lv/apache+php+mysql/ ,bet vienalga kad ielieku E:\web\Apache2\htdocs failinu iztaisu index.php , ielieku tani ieksha shito kas bija teikts , nekas nesanak, paradas tas viss ieliktais parlukprogramma un nekas cits.

 

<?php

$host = "localhost";

$user = 'root';

$pass = 'te mana parole';

$link = mysql_connect($host, $user, $pass);

if (!$link) {

die('Could not connect: ' . mysql_error());

}

echo 'Connected successfully<br>Pieejams datu baazes:<br>';

$db_list = mysql_list_dbs($link);

 

while ($row = mysql_fetch_row($db_list)) {

echo $row[0]."<br>";

}

mysql_close($link);

?>

 

bet kas man jadara , kapec neiet?

Link to comment
Share on other sites

Nestrādā PHP!

šito pieliki apache konfiguracijas faila ?

ScriptAlias /php/ "e:/web/php/"
Action application/x-httpd-php "/php/php-cgi.exe"
AddType application/x-httpd-php .php

 

Izlasi vēlreiz to visu un dari lēnām domājot ko dari, ja savādāk nevar.

Edited by MakaTaNaw
Link to comment
Share on other sites

nu es nezinu vai man isti strada vai nnestarda , kam vaajdzet radities kad ieliek shito failu

<?php

$host = "localhost";

$user = 'root';

$pass = 'te mana parole';

$link = mysql_connect($host, $user, $pass);

if (!$link) {

die('Could not connect: ' . mysql_error());

}

echo 'Connected successfully<br>Pieejams datu baazes:<br>';

$db_list = mysql_list_dbs($link);

 

while ($row = mysql_fetch_row($db_list)) {

echo $row[0]."<br>";

}

mysql_close($link);

?>

 

ka index.php kam vajadzetu radities?

Link to comment
Share on other sites

×
×
  • Create New...