Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [PHP]co jest źle z serwerem
efect1
post
Post #1





Grupa: Zarejestrowani
Postów: 28
Pomógł: 0
Dołączył: 19.06.2008

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


wyskakuje mi error gdy chę wykonać pewien skrypt
oto skrypt
  1. <?php
  2. function assign_key () {
  3. return 'd' ;
  4. }
  5. $foo['a']=;
  6. $foo['b']=;
  7. $foo['c']=;
  8. $foo[assing_key()]=;/*okreslamy wartośc klucza d*/
  9. ?>
  10. <? 
  11. /*teraz wartosc$foo['b'] =1+3 czyi 4 */
  12. print $foo['b'] = $foo['a'] +$foo['c'] ;
  13. ?>


komunikat serwera

  1. <?php
  2. Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
  3.  
  4. Fatal error: Unknown: Failed opening required 'C:/Program Files/WebServ/httpd/www/php/listing 2/2.2 -operacja na wartościach zapisywanej tablicy.php' (include_path='.;C:php5pear') in Unknown on line 0
  5. ?>


o co chodzi ?

Ten post edytował efect1 31.07.2008, 13:03:32
Go to the top of the page
+Quote Post
neverever
post
Post #2





Grupa: Zarejestrowani
Postów: 278
Pomógł: 44
Dołączył: 17.02.2004
Skąd: Wieliczka

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


Jeżeli chodzi o kod, to masz literówke.
zamiast
  1. <?php
  2. $foo[assing_key()]=;/*okreslamy wartośc klucza d*/
  3. ?>

ma być
  1. <?php
  2. $foo[assign_key()]=;/*okreslamy wartośc klucza d*/
  3. ?>


--------------------
neverever
Go to the top of the page
+Quote Post
efect1
post
Post #3





Grupa: Zarejestrowani
Postów: 28
Pomógł: 0
Dołączył: 19.06.2008

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


tak był bład ale to nie to to coś z pear .
Go to the top of the page
+Quote Post
webdice
post
Post #4


Developer


Grupa: Moderatorzy
Postów: 3 045
Pomógł: 290
Dołączył: 20.01.2007




Proszę dodać tag do tematu oraz poprawić bbcode na poprawne ([php][/php]). W innym wypadku temat zostanie zamknięty.
Go to the top of the page
+Quote Post
efect1
post
Post #5





Grupa: Zarejestrowani
Postów: 28
Pomógł: 0
Dołączył: 19.06.2008

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


ok
poprawiłem smile.gif
dodam
, że skrypty działają mi na hostingach cal.pl , home.pl
ale na domowych serwerach nie sad.gif
próboweałem na webserv i xampp problem ten sam ....

nikt nie wie ?
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 Aktualny czas: 20.08.2025 - 21:29