armags Posted December 29, 2005 Report Share Posted December 29, 2005 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 More sharing options...
Vebers Posted December 29, 2005 Report Share Posted December 29, 2005 (edited) 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 December 29, 2005 by MakaTaNaw Link to comment Share on other sites More sharing options...
armags Posted December 29, 2005 Author Report Share Posted December 29, 2005 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 More sharing options...
Recommended Posts