Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [php/html] bledy z ulozeniem
icetab
post 9.04.2008, 19:39:00
Post #1





Grupa: Zarejestrowani
Postów: 226
Pomógł: 3
Dołączył: 3.04.2007

Ostrzeżenie: (50%)
XXX--


witam jak to powino byc poprawnie ?
  1. <?php
  2. <textarea>"show_source(@readf($file));"</textarea>
  3. ?>
Go to the top of the page
+Quote Post
mike
post 9.04.2008, 19:41:09
Post #2





Grupa: Przyjaciele php.pl
Postów: 7 494
Pomógł: 302
Dołączył: 31.03.2004

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


  1. <textarea><?php show_source(@readf($file)); ?></textarea>
O to chodziło?
Go to the top of the page
+Quote Post
icetab
post 9.04.2008, 19:58:35
Post #3





Grupa: Zarejestrowani
Postów: 226
Pomógł: 3
Dołączył: 3.04.2007

Ostrzeżenie: (50%)
XXX--


niestety wtedy skrypt nie wyswietla mi kodu tylko puste pole

hmm a ten jeak powinien byc ?

  1. <?php
  2. function show_source(readf(.$kod.)){
  3. ?>
Go to the top of the page
+Quote Post
mike
post 9.04.2008, 19:59:37
Post #4





Grupa: Przyjaciele php.pl
Postów: 7 494
Pomógł: 302
Dołączył: 31.03.2004

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


A może powiesz co chcesz osiągnąć? Fusy mi się do wróżenie skończyły.
Go to the top of the page
+Quote Post
pyro
post 9.04.2008, 20:02:36
Post #5





Grupa: Zarejestrowani
Postów: 2 148
Pomógł: 230
Dołączył: 26.03.2008

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


poza tym wszystko co tu napisales nie ma sensu ^^


--------------------
ET LINGUA EIUS LOQUETUR IUDICIUM
Go to the top of the page
+Quote Post
icetab
post 9.04.2008, 20:03:35
Post #6





Grupa: Zarejestrowani
Postów: 226
Pomógł: 3
Dołączył: 3.04.2007

Ostrzeżenie: (50%)
XXX--


no to jak do tego edytora dodac kolorowanie php ?
  1. <?php
  2. if($action=="cod"){
  3. function writef($file,$data){
  4. $fp = fopen($file,"w+");
  5. fwrite($fp,$data);
  6. fclose($fp);
  7. }
  8. function readf($file){
  9. if(!$le = fopen($file, "r")) $contents="error"; else {
  10. $contents = fread($le, filesize($file));
  11. fclose($le);}
  12. return htmlspecialchars($contents);
  13. }
  14. if(@$_POST['save'])writef($file,$_POST['cod']);
  15. echo "<form method=\"POST\">
  16. <input type=\"hidden\" name=\"action\" value=\"edytor\">
  17. <input type=\"hidden\" name=\"file\" value=\"".$file."\">
  18. <textarea name=\"cod\" rows=\"40\" cols=\"180\">".@readf($file)."</textarea><br>
  19. <input type=\"submit\" name=\"save\" value=\"Zapisz\"><input type=\"reset\" value=\"Resetuj\"></form>";
  20. }
  21. ?>
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: 20.07.2025 - 12:39