atari Posted September 21, 2005 Report Share Posted September 21, 2005 Probleema laikam Jums liksises vienkaarsha,bet man nekas nesanaak, nevaru ielikt HTML kodaa, php kodu, lai tas straadaatu. Php kods sheit http://paste.php.lv/2553 Meegjinaaju likt visu php kodu iekshaa - nedarbojas, tad ar <? include - nedarbojas, tad to html kodu paarsaukt par php - tas php kods darbojaas, bet neder tas ja tas ir paarsukts par php,vajag lai tas ir .html Link to comment Share on other sites More sharing options...
bubu Posted September 21, 2005 Report Share Posted September 21, 2005 Kas tieši nedarbojās (kas nesanāk, kāda kļūda,...) ? Link to comment Share on other sites More sharing options...
atari Posted September 21, 2005 Author Report Share Posted September 21, 2005 (edited) Kas tieši nedarbojās (kas nesanāk, kāda kļūda,...) ? 22760[/snapback] Nu tad php kodam jaarad random bildes ar linkiem, bet tas neraada neko, t.b. kur jaabuut taam bildeem ir tukshums(tipa nav bildes),bildes apakshaa paraadaas: " . $row["my_description"] . "" ; } ?> , ja to liek ar <? include - vispaar pat tuksha bilde neparaadaas, it kaa taads kods vispaar nebuutu tajaa htmlaa iekshaa, ja to .html paarsauc par php - tad viss darbojas, pie katra refresha taas bildes randomaa mainaas. Laikam nesakariigi , tas staav uz lokaalaa servera, taa vareetu linku ielikt. Edited September 21, 2005 by atari Link to comment Share on other sites More sharing options...
atari Posted September 21, 2005 Author Report Share Posted September 21, 2005 (edited) Nu tad php kodam jaarad random bildes ar linkiem, bet tas neraada neko, t.b. kur jaabuut taam bildeem ir tukshums(tipa nav bildes),bildes apakshaa paraadaas: " . $row["my_description"] . "" ; } ?> , ja to liek ar <? include - vispaar pat tuksha bilde neparaadaas, it kaa taads kods vispaar nebuutu tajaa htmlaa iekshaa, ja to .html paarsauc par php - tad viss darbojas, pie katra refresha taas bildes randomaa mainaas. Laikam nesakariigi , tas staav uz lokaalaa servera, taa vareetu linku ielikt. 22762[/snapback] Bet nomainiit uz php nevar, vajag,lai paliek .html Edited September 21, 2005 by atari Link to comment Share on other sites More sharing options...
PheliX Posted September 21, 2005 Report Share Posted September 21, 2005 Ja pareizi sapratu probleemu - tev apache konfigaa jaaraksta nevis "AddType application/x-httpd-php .php" bet "AddType application/x-httpd-php .html" Link to comment Share on other sites More sharing options...
bubu Posted September 21, 2005 Report Share Posted September 21, 2005 Ja godīgi - es joprojām nesaprotu... Link to comment Share on other sites More sharing options...
atari Posted September 21, 2005 Author Report Share Posted September 21, 2005 Veel vienkaarshaak - vajag to php kodu dabuut iakshaa html kodaa: <table width=100% cellpadding=2 border=0><tr> <td width=15% align=top valign=left> <table border="0" width=100%> un sheit tas php kods </table> Link to comment Share on other sites More sharing options...
Delfins Posted September 21, 2005 Report Share Posted September 21, 2005 Ja godīgi - es joprojām nesaprotu... 22765[/snapback] => Bet nomainiit uz php nevar, vajag,lai paliek .html Atbilde jau bija: .. tikai ne AddType.. bet ForceType :) Link to comment Share on other sites More sharing options...
atari Posted September 21, 2005 Author Report Share Posted September 21, 2005 To AddType arii nevar tad php kodus raada kaa tekstu browserii. Link to comment Share on other sites More sharing options...
blackhalt Posted September 21, 2005 Report Share Posted September 21, 2005 A obligāti vajag PHP skriptus laist ar failos paplašinājumu .html ? <_< labāk izmanto .citu, ja jau negribi .php http://lv.php.net/manual/en/install.php Link to comment Share on other sites More sharing options...
goldy Posted September 21, 2005 Report Share Posted September 21, 2005 ja apache (vai nu kaads tev servers) nenoraadisi ka arii .html faili ir jaalaiz caur PHP, tad protams ka nekas nebuus, defaultaja konfiguraacija servers html failus raada pa tieso neaiztiekot PHP. Taapeec jau tev teica ka vajag AddType application/x-httpd-php .html Link to comment Share on other sites More sharing options...
atari Posted September 21, 2005 Author Report Share Posted September 21, 2005 Saprotat, ja uzlieku conf failaa sho AddType application/x-httpd-php .html tad kad browserii veru valjaa index.php tad raadaas vot shaadi: <? header("Location: list.php"); ?> tikai plain teksts ar php kodu Link to comment Share on other sites More sharing options...
Kavacky Posted September 21, 2005 Report Share Posted September 21, 2005 (edited) Ja tu esi uzlicis "AddType application/x-httpd-php .html", tad nav brīnums, ka failu index.php laiž pliku cauri. Ja gribi, lai parsē .php failu -> "AddType application/x-httpd-php .php" Edited September 21, 2005 by Kavacky Link to comment Share on other sites More sharing options...
Kristabs Posted September 21, 2005 Report Share Posted September 21, 2005 nee, vinjam vajag otraadaak, lai parsee .html kaa .php . Pameegjinaaji ForceType kaa Delfins teica taa AddType vietaa? Link to comment Share on other sites More sharing options...
Kavacky Posted September 21, 2005 Report Share Posted September 21, 2005 Jā, bet postu augstāk viņš atstāstīja veiktās darbības, kur tomēr mēģināja ar .php failu. Link to comment Share on other sites More sharing options...
Recommended Posts