Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [Php]Shuffle nie generuje img, serwer postawiony pod win xp php 5
infolearn
post
Post #1





Grupa: Zarejestrowani
Postów: 36
Pomógł: 0
Dołączył: 17.09.2007

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


  1. <?php
  2. $obrazki = array('tires.jpg','oil.jpg','swieca.jpg',
  3.  'redcar.jpg','wheel.jpg',
  4.  'parts1.jpg','redcar1.jpg',
  5.  'parts2.jpg','eye.jpg');
  6.  
  7. shuffle($obrazki);
  8.  
  9. ?>

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4.  
  5. <title>strona 107 3.1 Welcome Store front Page</title>
  6. <link href="external.css" rel="stylesheet" type="text/css" />
  7. </head>
  8. <!-- Body -->
  9.  
  10. <div id="center">
  11. <h1> Welcome in our store</h1>
  12. </div>
  13. <div id="shuffle">

  1. <?php
  2. for ( $i = 0; $i <3; $i++ )
  3. {
  4. echo '<div id="shuffle"><img src="/img/';
  5. echo $obrazki[$i];
  6. echo 'width="400" height="400"></div>';
  7. }
  8.  
  9. ?>

  1. </div>
  2. </body>
  3. </html>


Zrodlo strony to tylko h1 img sa umieszczone w katalogu img mysalem moze ze sciezka zla do img ale skopiowalem plik php do folderu img i to samo pusta strona z zawartoscia h1

Ten post edytował infolearn 4.10.2007, 16:48:04
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 25.08.2025 - 08:01