OCR Optical Character Reading

Sep 1, 2005

Asking the impossible but does anyone know of any code that will allow the text to be pulled from images?

I am trying to create a document management system that will allow a user to upload a scanned document, categorize the document and the system will OCR the document and put all the text it finds in the database. Then the text in the image can be searchable.

View 1 Replies


Optical Character Recognition?

I need to use a OCR class in PHP. What class should I use. Does any one know any good class to do this kind of task?

View 4 Replies

Reading Text File Character By Character?

i m trying to store a text file into database below format of text file i hv text file like this:

0100102001110271 0409141151I1476201
0100102001110125 0409141351O1476301
0100101300000030 0409141630O1476401


how can store it into my database table att0310 my table fileds: cardno date time IO(in-out) and serial no 0100102001110271 this is card no 040914 for date
1151 for time I for IO 1476201 for serial no till date data is inserted correctly into database but next data not stored into database. because of there is no space b/w those digits. hw can i store that into database.... i tried so many times. i used fopen function to read file character by character but i only display dat on browser not into database .

if (!$con)


View 3 Replies

Recognizing And Reading A New Line Character?

In my program I have an if else statement where I'm trying to see if that line is a skipped line. My text is like this:


So it has to be able to know to skip to the next line if theres no text in that line.

if ($invalidcheck[0]=='

but it doesn't seem to be reading it. Does anyone know how I can fix this? Also I was wondering if it is reasonable to try to do something like if the character isn't a-z, A-Z, and all symbols.

View 6 Replies

Reading Character From Lines From A File

I'm using file() to create an array of the lines from a .txt file. I guess i have two questions.

1) how to I refer to each line individually after the array is created.

ie. do action A to line 5.

2) how would I search through that line in order to fine a specific character.

ex. 1 Product Name: Macromedia Director MX 2004 Bible so I want to loop through to ':' so I can cut of that part of the line and then display the rest of the line.

View 4 Replies

Excel - Character Encoding When Reading XLS Files?

I'm using the PHP-Excel-Reader library to read some XLS files and immediately have hit this issue:

PHP Notice: iconv() [function.iconv]: Detected an incomplete multibyte character in input string in C:webdocshousingexcel_reader2.php on line 1718

The line in question is this:

$result = iconv('UTF-16LE', $this->_defaultEncoding, $string);

And I've added some debugging info before that to help diagnose the problem:


I've tried changing to the _defaultEncoding to any number of random charsets but it obviously hasn't helped.

View 3 Replies

Detected An Illegal Character In Input String When Reading Xls File And Converting It Into Csv?

I am getting error iconv() [function.iconv]: Detected an illegal character in input string when i am reading xls file and converting it into csv. I am using php-excel-library and i get this error in line:

case 'iconv' :
$result = iconv('UTF-16LE', $this->_defaultEncoding, $string);

View 1 Replies

Get The Length Of A String Containing Character References While Counting The Character References As One Single Character?

How can I get the length of string that also contains character references? I want to count only the number of characters which will be displayed in the browser. Like

$raw = "Stack&#00f9" = Length = 6
$raw = "Stack12345" = Length = 10
$raw = "Stack&#00f9&#00f9" = Length = 7

View 5 Replies

Expensive For Template Reading: Database Query Or File Reading?

My question is fairly simple; I need to read out some templates (in PHP) and send them to the client.

For this kind of data, specifically text/html and text/javascript; is it more expensive to read them out a MySQL database or out of files?

inb4 security; I'm aware.

PS: I read other topics about similar questions but they either had to do with other kind of data, or haven't been answered.

View 3 Replies

Html - Replace Certain Character With A Defined Character For It In A String Using Script?

I have a question that can I replace a certain character like # with &#35; in a string. I have all the character checkers and their replacer in an array. Like this--

$string_check = array(
"#" => "&#35;",
.... and so on (list is too big)

View 3 Replies

Regex - Preg_replace Regular Expression / Remove Anything Before A Given Character And Anything After A Given Character?

How to remove anything before a given character and anything after a given character with preg_replace using a regular expression? Of course this could be done in many other ways like explode and striping the string. But I am curious about preg_replace and regex.

So the only thing I need from the string below is 03b and remove every thing before/and slash (/) and after/and dot (.)

$string = 'rmbefore/03b.rmafter'

View 4 Replies

Regex To Get String After A Character Ending With Another Optional Character And Not Matching It?

I'm struggling with a regex, here's an example of the input string


i need to get "string" no matter what's inside it (including special charso but bviously not including the '=') it's always preceded by the '#' character, but i don't need it included. The word ahead of it ('test' in this case), is also optional.

The '=' is optional, but if it's there i need it to be ignored. I've been using something like this


But i can't manage to handle the optional '='

View 3 Replies

Use Preg_replace To Replace Character Unless An Escape Character Precedes

i'm trying to do the following hope there's a reg_ex expert around to shed some light. I need to replace the character [ in my code and make it a {. But there is cases where the [ needs to remain a [ and not change. So the way i figured it is i need to use the

preg_replace("[", "{", $string);

function with a suitable regular expression that will result the [ characters that are not preceded by the escape character to be used lets say . So how can i get to replace this "[" and not this "["?

View 2 Replies

Match The First Character In String, AFTER A Certain Character?

I want to match the first character AFTER a hyphen. See below.Language: PHP or JavaScript.example:my-first-nameI

View 4 Replies

Check Whether A Character Is A Unicode Character Or Not?

How can I check whether a character is a Unicode character or not with PHP?

View 7 Replies

File Write Character By Character?

I want write file character by character...i tried this but this wasnt working

$str="Hello world printing every character in a new line";

View 7 Replies

Reading A Gif

I want to read a gif and display it on the browser.the code i use is as follows..
$fp = fopen("../images/Powered1.gif","rb");
$size = filesize("../images/Powered1.gif");
for($i=0 ; $i<$size ; ++$i)
echo fgetc($fp);
but the gif is not shown.well i guess in the binary mode when i use feof() it reads the end-of-file character before the end!!

View 5 Replies

Reading XML With PHP

First of all I want to say I do not have very clear understanding of
XML and PHP and what you can do with those two.
Now the problem I have is:
There is that booking company that sends data to me via XML and I have
in my server to read that XML and store it in a DB.
What I have no Idea how to do is read that XML.
To start with, I though they were using $_POST to upload an XML file,
but it seems they do not as when I get a request in my script I
print_r the $_POST and it is empty. The same with $_GET, empty.

Do you have any idea of other ways that they might send the XML data
and how can I read them with a PHP4 script?

View 4 Replies


I must read an HTML-free web page. The only documentation I have is this : :

temp: This request will return an HTML-free web page, consisting of a
simple ASCII string of pipe-delimited data. The data will be in the
format of :


How can I do ?

View 5 Replies

Reading PDF Help

I have download the latest verion of pdflib (pdflib 6.0) from http://www.pdflib.com/ and I configure the php to support pdflib. The following is phpinfo() return

PDF Support enabled
PDFlib GmbH Version 6.0.1p1
PECL Version 2.0.3
Revision $Revision: $


Configure Command list below

'./configure' '--build=i586-mandrake-linux-gnu' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--enable-discard-path' '--disable-force-cgi-redirect' '--enable-shared' '--disable-static' '--disable-debug' '--disable-rpath' '--enable-pic' '--enable-inline-optimization' '--enable-memory-limit' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--with-pear=/usr/share/pear' '--enable-magic-quotes' '--enable-debugger' '--enable-track-vars' '--with-exec-dir=/usr/bin' '--with-versioning' '--with-mod_charset' '--with-regex=php' '--enable-track-vars' '--enable-trans-sid' '--enable-safe-mode' '--enable-ctype' '--enable-ftp' '--with-gettext=/usr' '--enable-posix' '--enable-session' '--enable-sysvsem' '--enable-sysvshm' '--enable-yp' '--with-openssl=/usr' '--without-kerberos' '--with-ttf' '--with-freetype-dir=/usr' '--with-zlib=/usr' '--with-zlib=/usr' '--with-zlib-dir=/usr' '--without-pear'

I try the following code copied from php.net for testing.....

View 1 Replies

Not Reading Php.ini

I am running Redhat ES Release 3, Apache 2.0.46, PHP 5.0.5. I used the --with-config-file-path option to set the path to php.ini. After installation, I run phpinfo() and see my php.ini file in the correct location. However, none of my other settings, like max_execution_time, are showing up correctly. Still getting the default value of 30. There is only one php.ini file on the entire server. Restarted apache, even re-built.

View 2 Replies

Reading IE's

Probably completely wrong forum to ask this in, but wasn't sure where to start. Is it possible to read/get the favourites/bookmarks that someone has in their internet explorer favourites folder? maybe using php/javascript or something.

View 5 Replies

Reading XML

I have a XML file and I want to read this and add each node to a variable. ie




View 10 Replies

Reading Xml (using 4.3.11)

For testing purposes, I would like to read from a xml document and put the data read from the .xml file onto a web page. However, the example the book provided is for 5.x (as I found out with these messages)

Warning: domdocument() expects at least 1 parameter, 0 given in /home/exlluhz/public_html/books/xmlread.php on line 5

Fatal error: Call to undefined function: load() in /home/exlluhz/public_html/books/xmlread.php on line 6

Does anyone know of a way to read a xml file and then display it using php 4.3.11? Code:

View 9 Replies

Reading A Url

For a long time I have been trying to find a way to read contents of a url while keeping session alive. To explain what I need I bring an example. We know there are two version of this site. one when you haven't logged in and one when you have. If I use fopen and fread I get the version as I haven't logged in. I asked somewhere else and they suggested curl function manual but I think it was too complecated for me.

View 5 Replies

Reading Id From URL?

My question is pertaining to extracting information from the URL using PHP.I've three pages in the website I am building




The schema is as follows. The user will choose a file to download from catalogues.html for eg

a href="form_userdata.php?id=1026&name=Vibrating Feeder - Heavy duty -VFH" target="_blank"

This id & name will be passed to form_userdata.php and after entering the details in form_userdata.php page, the page passes control to mail.php, that will check if the fields are all true and valid.My question is how can I use the ID & name specified in "a href" in my code.I am passing the ID and name from catalogues->form_userdata and collecting it in mail.php

View 5 Replies

Copyrights 2005-15 www.BigResource.com, All rights reserved