Wuu Posted January 13, 2008 Report Share Posted January 13, 2008 Kā iedarbināt php iekš .xml? Link to comment Share on other sites More sharing options...
bubu Posted January 13, 2008 Report Share Posted January 13, 2008 Kā tas jāsaprot? Tavs jautājums ir aptuveni ekvivalents ar "Kā iedarbināt php iekš html"? Ja uz to vari atbildēt, tad tā pati atbilde derēs arī tavam xml jautājumam. Link to comment Share on other sites More sharing options...
Kavacky Posted January 13, 2008 Report Share Posted January 13, 2008 Kā tu Apache konfigā norādi, lai "PHP iedarbinās iekš .php"? Link to comment Share on other sites More sharing options...
Wuu Posted January 13, 2008 Author Report Share Posted January 13, 2008 (edited) Nu re nestrādā iekš .xml ko darīt? http://www.uo.ilva.lv/images.xml Kā tu Apache konfigā norādi, lai "PHP iedarbinās iekš .php"? ne php ne apache ini neatradu neko kas uz to norādītu Edited January 13, 2008 by Wuu Link to comment Share on other sites More sharing options...
Val Posted January 13, 2008 Report Share Posted January 13, 2008 pagooglē pēc addtype php xml Link to comment Share on other sites More sharing options...
Kavacky Posted January 13, 2008 Report Share Posted January 13, 2008 Kāpēc viņam googlēt pēc addtype xml, ja viņš var atrast addtype .php un no tā izsecināt, ko pamainīt, lai būtu arī xml? Link to comment Share on other sites More sharing options...
Val Posted January 13, 2008 Report Share Posted January 13, 2008 un no tā izsecināt, ko pamainīt viņš nevarēs izsecināt Link to comment Share on other sites More sharing options...
Wuu Posted January 13, 2008 Author Report Share Posted January 13, 2008 (edited) viņš nevarēs izsecināt Ojj psc.. Kā man var ienākt prāta ka .htaccess failā jāraksta <Files *xml> ForceType application/x-httpd-php </Files> Tad vel httpd.conf # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride All ehh.. :) Edited January 13, 2008 by Wuu Link to comment Share on other sites More sharing options...
Kavacky Posted January 13, 2008 Report Share Posted January 13, 2008 WTF? Kāpēc man šķiet, ka viss slēpjas rindiņā: "AddType application/x-httpd-php .php" Link to comment Share on other sites More sharing options...
Wuu Posted January 13, 2008 Author Report Share Posted January 13, 2008 WTF? Kāpēc man šķiet, ka viss slēpjas rindiņā: "AddType application/x-httpd-php .php" A ja uz servera tas nav ierakstīts ,tad meklē adminu kas to izdarīs (Ja vel izdarīs) utt... Tāpēc ērtāk .htaccess Link to comment Share on other sites More sharing options...
Kavacky Posted January 14, 2008 Report Share Posted January 14, 2008 Ak tur tā sāls... Link to comment Share on other sites More sharing options...
mixis Posted January 14, 2008 Report Share Posted January 14, 2008 Priekškam sarežģīt dzīvi. Vai tad ar .php vienu pašu nevar iztikt, tikai pirmz izvades norādot pareizos header parametrus? header("Content-Type: application/xml; charset=utf-8"); Link to comment Share on other sites More sharing options...
Aleksejs Posted January 14, 2008 Report Share Posted January 14, 2008 mixis - uzstādījums laikam bija, ka faili ar paplašinājumiem xml jāparsē ar PHP. Link to comment Share on other sites More sharing options...
marcis Posted January 14, 2008 Report Share Posted January 14, 2008 Izmanto rewrite un varēsi pat .jpg'ā lietot php Link to comment Share on other sites More sharing options...
Kavacky Posted January 14, 2008 Report Share Posted January 14, 2008 Man gan izskatās, ka izmantot url_rewrite, lai dabūtu it kā izparsētus .XXX failus ir totāls marazms, ja to var panākt ar vienu elementāru rindiņu konfigā bez kaut kāda lieka pisiena. Link to comment Share on other sites More sharing options...
Recommended Posts