Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php] tabela zależna od istnienia pliku pomocy gdzi
Piotrwusek
post 16.06.2007, 19:14:49
Post #1





Grupa: Zarejestrowani
Postów: 399
Pomógł: 7
Dołączył: 11.06.2007
Skąd: Poznan

Ostrzeżenie: (20%)
X----


chcę żeby tabela była zależna od pliku i nie zrobiłem skrypt ale nie działa nie wiem co zrobić

proszę o pomoc i o odpowiedż


  1. <?php
  2. /*
  3.  
  4. Copyright Š 2007 Piotrwusek
  5.  
  6. Released under the GNU General Public License
  7. */
  8.  
  9.  
  10. function url_exists($url) {
  11. $x = fopen($url, "r");
  12. if($x == False) {
  13. return False;
  14. } else {
  15. return True;
  16. }
  17. }
  18.  
  19.  
  20.  
  21.  
  22. include("includes/language/polish.php");
  23. ?>
  24. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
  25. <html>
  26. <head>
  27. <meta name="verify-v1" content="<?php echo GOOGLE; ?>" />
  28. <link rel="SHORTCUT ICON" href="<?php echo IKONA; ?>">
  29. <meta http-equiv="content-type" content="<?php echo KODOWANIE; ?>" />
  30. <meta name="author" content="<?php echo AUTOR; ?>" />
  31. <meta name="description" content="Strona klasy 3a gimnazjum" />
  32. <meta name="keywords" content="<?php echo KEYWORDS; ?>" />
  33. <meta name="copyright" content="<?php echo PRAWA; ?>" />
  34. <meta http-equiv="content-language" content="pl" />
  35. <meta name="distribution" content="GLOBAL" />
  36. <link rel="stylesheet" href="stylesheet.css" type="text/css" />
  37. <title><?php echo TITLE; ?></title>
  38. </head>
  39. <body leftmargin="0" rightmargin="0" bottommargin="0" topmargin="0" background="images/strona/tlo.bmp">
  40. <table border="0" width="908" height="" align="CENTER" valign="TOP" cellspacing="0" cellpadding="0" bgcolor="white">
  41. <tr>
  42. <td background="images/strona/tabela-prawo.bmp" width="11"></td>
  43. <td><?php require("includes/header.php"); ?>
  44. <table border="0" align="CENTER" valign="TOP" cellspacing="0" cellpadding="0" leftmargin="0" rightmargin="0" bottommargin="0" topmargin="0">
  45. <tr>
  46. <?
  47. $a = url_exists("http://www.zsp3a.za.pl/includes/kolumna-lewa.php");
  48.  
  49. if($a == False) {
  50. echo("<td width="3"></td>
  51. <td width="201"><?php require("includes/kolumna-lewa.php"); ?></td>
  52. <td width="700"></td>
  53. <td width="3"></td>");
  54. } else {
  55. echo("<td width="3"></td>
  56. <td width="201"><?php require("includes/kolumna-lewa.php"); ?></td>
  57. <td width="500"></td>
  58. <td width="201"></td>
  59. <td width="3"></td>");
  60. }
  61. ?>
  62. </tr>
  63. </table>
  64.  
  65. <?php require("includes/stopka.php"); ?></td>
  66.  
  67. <td background="images/strona/tabela-lewo.bmp" width="11"></td>
  68. </tr>
  69. <tr background="images/strona/tabela-dol_1.bmp" height="10" widht="201"></tr>
  70. <td ></td>
  71. <td></td>
  72. </table>
  73. <br />
  74. </body>
  75. </html>
Go to the top of the page
+Quote Post

Posty w temacie


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: 15.06.2025 - 07:55