PHP is chopping off my Access Memo Fields
I've got a few simple web forms that usephp to read and write to an Access database (running on IIS), and I just spent the last few hours frantically trying to figure out why some of my Memo fields were being truncated around 4000 characters.
I know Memo fields "should" be able to contain up to 65536 characters, and I could verify this by inserting data directly into the database. However, when querying the database through PHP (using odbc), I could only retrieve 4000 characters.
The culprit? A tiny little setting called odbc.defaultlrl ! (lrl = long read length). This can be changed in php.ini, or you can use ini_set to modify this setting directly in your php script:<?php
I found this info on the discussion for the odbc_longreadlen function.
本文开发（php）相关术语:php代码审计工具 php开发工程师 移动开发者大会 移动互联网开发 web开发工程师 软件开发流程 软件开发工程师