You are here: Problem with addslashes « PHP Programming Language « IT news, forums, messages
Problem with addslashes

Posted by J�rn Dahl-Stamnes on 02/26/07 08:47

Hello folks,

I need some help/advice FAST.

I have problems with addslashes on my web-servers. After uploading a file, I
read the uploaded file, use addslashes on the read data and then insert it
into a blob field in a MySQL database.

The problem is that this works fine on my internal test web-server (running
under RedHat 7.3). But on my production web-server (running Fedora Core 4)
it "fails". The same function create different outputs on the two servers.
The data on the prod server is corrupted.

I added code to the upload script that dumps the data returned by addslashes
to a file. I then compared this file created on the two servers (based on
the same uploaded document). They are different both in content and length.

Both servers use the same version of Apache, PHP and MySQL. The only
difference is the OS.

I use PHP ver 4.3.9, Apache ver 2.0.52 and MySQL ver 4.1.8

--
Jørn Dahl-Stamnes
http://www.dahl-stamnes.net/dahls/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация