Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> bład xlst_create
Kimi2007
post 17.12.2009, 19:17:25
Post #1





Grupa: Zarejestrowani
Postów: 11
Pomógł: 0
Dołączył: 1.03.2009

Ostrzeżenie: (0%)
-----


Witam wyskakuje mi taki oto bład:

Fatal error: Call to undefined function xslt_create() in /home/f1pit/domains/kimi.cal.pl/public_html/rFactorParser/resultsFiles_transform.php4 on line 33


Oto cała zawartosc pliku:

  1. <? include("./config.php"); ?>
  2.  
  3. <!--HEADER-->
  4. <center>
  5. <hr color="Red" width="90%" size="1" align="center">
  6. <table border="0" width="100%" cellpadding="0" cellspacing="0">
  7. <tr>
  8. <td width="240px">
  9. <img src="./images/rFactor.gif" border="0" align="middle">
  10. </td>
  11. <td width="*" align="center">
  12. <font class="serverName"><? echo $serverName ?></font>
  13. </td>
  14. <td valign="bottom" width="170px" align="right">
  15. <? echo $copyright_zeXav ?>
  16. </td>
  17. </tr>
  18. </table>
  19. <hr color="Red" width="90%" size="1" align="center">
  20. </center>
  21. <!--END HEADER-->
  22.  
  23. <br><br>
  24.  
  25. <?php
  26. $file=$_GET['file'];
  27. $chemin=$dir_ResultsFiles.$file;
  28.  
  29. if(file_exists($chemin) and eregi(".xml",$chemin)){
  30.  
  31. $ficXsl="rFactorParser_zeXav.xsl";
  32.  
  33. $xh = xslt_create();
  34. //xslt_set_encoding($xh,"ISO-8859-1");
  35.  
  36. $file=fopen($chemin,"r");
  37. $xml=fread($file,filesize($chemin));
  38. fclose($file);
  39.  
  40. $file=fopen($ficXsl,"r");
  41. $xsl=fread($file,filesize($ficXsl));
  42. fclose($file);
  43.  
  44. $xml=str_replace('encoding="utf-8"','encoding="ISO-8859-1"',$xml);
  45.  
  46. //Caractčres ŕ la fin du fichier
  47. $xml=ereg_replace("/rFactorXML>.*","/rFactorXML>",$xml);
  48. $arguments = array(
  49. '/_xml' => $xml,
  50. '/_xsl' => $xsl
  51. );
  52.  
  53. $result = xslt_process($xh, 'arg:/_xml', 'arg:/_xsl', NULL, $arguments);
  54.  
  55. if (!$result) {
  56. die(printf("<center>! Error present XML file : <b>$chemin</b> --- [%d]: %s !</center>",xslt_errno($xh), xslt_error($xh)));
  57. }
  58.  
  59. xslt_free($xh);
  60.  
  61. print "$result";
  62.  
  63. }else{
  64. die("<center>! Error find XML file : <b>$chemin</b> !</center>");
  65. }
  66.  
  67.  
  68. ?>



czy zna ktos rozwiazanie problemu ?

Pozdrawiam
Go to the top of the page
+Quote Post
Blame
post 17.12.2009, 21:32:27
Post #2





Grupa: Zarejestrowani
Postów: 678
Pomógł: 124
Dołączył: 26.09.2009

Ostrzeżenie: (0%)
-----


Skrypt nie może znaleźć funkcji xslt_create(). Jesteś pewien, że dołączyłeś wszystkie pliki?


--------------------
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 22.05.2025 - 15:06