Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [MySQL][PHP]Ten sam skrypt na różnych serwerahc inaczej działa
Bojakki
post
Post #1





Grupa: Zarejestrowani
Postów: 379
Pomógł: 0
Dołączył: 18.08.2004

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


Domyśla się może ktoś dlaczego ten sam skrypt zainstalowany na 2 różnych serwerach róznych dostawców działa inaczej. Chodzi o to, że na jednym z nich za każdym razem gdy zapisuje dane dodają się znaki "\" przed cudzysłowiami i innymi sleszami. I jak 4 razy edytuje ten sam artykuł to sie tych sleszy robi dzisiątki. Ktoś ma pomysł skąd ta różnica w działaniu?


--------------------
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 3)
nospor
post
Post #2





Grupa: Moderatorzy
Postów: 36 557
Pomógł: 6315
Dołączył: 27.12.2004




Bo masz włączone magic_quotes.


--------------------

"Myśl, myśl, myśl..." - Kubuś Puchatek || "Manual, manual, manual..." - Kubuś Programista
"Szukaj, szukaj, szukaj..." - Kubuś Odkrywca || "Debuguj, debuguj, debuguj..." - Kubuś Developer

Go to the top of the page
+Quote Post
Bojakki
post
Post #3





Grupa: Zarejestrowani
Postów: 379
Pomógł: 0
Dołączył: 18.08.2004

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


Gdy próbuje to wyłączyc w .htaccess to wyskakuje błąd:
Cytat
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.


Cały plik wygląda tak:

Cytat
Options +FollowSymLinks
RewriteEngine On

RewriteBase /

RewriteRule ^([^*]*),([^*]*).html$ index.php?id=$1&s=$2 [L]

RewriteRule ^([^*]*).html$ index.php?id=$1[L]

RewriteRule ^index.html$ index.php [L]

# www.adresstrony.pl/tytul-artykulu,d20.html
# RewriteRule ^[a-z0-9\-]+,d([0-9]+)\.html$ ?a=dokument&documentId=$1

php_flag magic_quotes_gpc Off


--------------------
Go to the top of the page
+Quote Post
nospor
post
Post #4





Grupa: Moderatorzy
Postów: 36 557
Pomógł: 6315
Dołączył: 27.12.2004




Widocznie serwer nie pozwala na takie wyłączenie w .htaccess. Zapytaj się admina serwera jak to wyłączyć.

Możesz to też "wyłączyć" w php
http://pl.php.net/manual/pl/security.magic...s.disabling.php
Przykład #2 Disabling magic quotes at runtime


--------------------

"Myśl, myśl, myśl..." - Kubuś Puchatek || "Manual, manual, manual..." - Kubuś Programista
"Szukaj, szukaj, szukaj..." - Kubuś Odkrywca || "Debuguj, debuguj, debuguj..." - Kubuś Developer

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: 21.08.2025 - 19:02