![]() |
|
#1
|
|||
|
|||
need helpI have a question..and will be happy if anyone can help me.
The problem is in the function addSlashes() I work with PHP4, OS - winXP, mySQL 4.1.x at home, here everythin'g ok but the function works incorrectly under win2000, maybe it's because of the Iternet Explorers old version which is in the win2000. beforehand thanks. |
|||
|
#2
|
|||
|
|||
|
What do you mean the function works incorrectly? Surely if it's executed correctly one one operating system it'll work in any other situation, cos php.exe is used to execute the script?
How are you executing the php? |
|
#3
|
|||
|
|||
|
thanks for reply.
incorrectly-i mean when i use it before putting the string into the data base on my OS i don't see the added slashes in the database, and that's right, but on the other OS i can see the added slashes in the db. for example before putting string "_files\catalogues\maths\mathematical_physics.pdf" into the db i used addSlashes(), ad everything was ok, in the database it looked like the same string. But on the University's PC the result in the database was "_files\\catalogues\\maths\\mathematical_physics.p df" I removed addSlashes() and only then i got rid of the first slashes. I just wonder what's the matter with it. if i'm not mistaken i must use addSlashes() in order to quote string with special symbols.. ps. magic_quotes_gpc is off in both cases thanks :] |
Recent GIDBlog
Programming ebook direct download available by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The