OCR Optical Character Reading

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.


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 View Related

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 View Related

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.

} †

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 View Related

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 View Related

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 View Related

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 View Related

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 View Related

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 View Related

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 View Related

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 View Related

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 View Related

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 View Related

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 View Related

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 View Related

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 View Related

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 View Related

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 View Related


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 View Related

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 View Related

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 View Related

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 View Related

Reading XML

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




View 10 Replies View Related

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 View Related

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 View Related

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 View Related

Cannot Use [] For Reading?

In one of my scripts, I try to do the following

However, PHP does not allow me to do this, giving me this error

Fatal error: Cannot use [] for reading in /file.php on line 55

The self::get function return either a bool, or an object.

Edit: The get function creates a new object which again loads data from a mysql database.

View 2 Replies View Related

Reading A TXT

I have a huge TXT with a list of streets:

street 1
street 2
street 3

I would like the php to read them and place them in the same order as they appear in the database inside the street column.
I know how to do it when txt looks like

street 1, street 2, street 3

but don't know how to handle with the line breaks. Any hints?

View 11 Replies View Related

The Character '

well i've made a form and when i type something with an ' in it like "it's" then i get an error like this: You have an error in your SQL syntax near 's a shiny day at line 2
the colum type is text.

View 1 Replies View Related

Character ¬

The character ¬ shows up multiple times on my parsed strings. I tried to get
rid of it with the following code without success. Is that character
represented by anything else? Thanks

$bad_chars = array(chr(194), '¬');
str_replace($bad_chars, '', $parsed_string)

View 2 Replies View Related

Add A Character

I have inherited some data from a client with one particularly irksome field, namely, the "birthdate" field. They have the dates formatted as "mmdd" with no character to separate the mm from the dd. What I would like to do is to simply add a dash ("-") after the 2nd character in the string. Is there a way to do this in PHP 5?

View 2 Replies View Related

Character Instead Of #

Is it possible to do something like wordwrap, but inserting a new line after a certain character (in my case: >), instead of after a certain number of characters.

View 1 Replies View Related

What Does The @ Character Do In It

Possible Duplicates:Reference - What does this symbol mean in PHP? What does @ mean in PHP? I have a line in my code which looks like this:

@mysql_select_db($dbname) or die( "Error: Unable to select database");

It works, but I want to know what the @ does and why it is there.

View 3 Replies View Related

Reading Categories

I have a text file called cat.dat which contains the username and the categories they have selected. Another file users.dat is for username and password.

Now, my authentication part is working fine, but I can't read the cat.dat file to get their selected items.

View 3 Replies View Related

Reading A Timestamp

I am having problems converting a timestamp....it stored as 14 digits like this:

and i use the following to convert it:
$add = date("F d, Y, h:ia T",time($added));

but i always get the current time rather than the converted time from the timestamp....any ideas?

View 8 Replies View Related

Reading And Writing With Php

In my script i have 1 seperate fopen() sequence to read the file, so it can put it into a textarea.
Then i have another fopen() sequence that will the values i have in the textarea, but for some odd reason it doesn't work! I hope I did an OK job at explaing this. But heres my code! PHP CODE:

View 7 Replies View Related

Reading In Multiarray

I wrote some code to read in a file

and I'm curious as to is this is a decent way to do it or if there is a much
more elegant way. Essentially I want to convert a text file that into a ul
in html for my nav menu. This way I can easily add and remove links without
messing with any other code(Except of course where the link points to).

Anyways, the code works as far as getting the links into a multi-array that
I can work with but not sure if its the best way or not.


View 4 Replies View Related

Reading Array

I have an array with N values, I want read it from the position X to
the end of array...

View 2 Replies View Related

Reading Folders

If I had several folders full of images, how can I get PHP to open the
folder, read the image names and save the image names (inc extension) to a
MySQL database?

What I am trying to do is create an image gallery using PHP/MySQL, so that
everytime i take a load of pics, all I would have to do is get PHP to read
the contents of the folder and add the filenames to a MySQL database rather
than having to manually input the names into the database

View 11 Replies View Related

PHP Reading Of JAvascript

I am new to PHP. But this seems like a terrific language. I have been
using JavaScript up to now but it looks like I will be changing to PHP.
Seems to have more potential.

I am confused about using data in a JavaScript cookie in a PHP file.

The JavaScript Cookie

document.cookie = "order=" + escape("website = " + website + "*" + "sale = "
+ sale + "*" + "name = " + name + "*" + "addr1 = " + addr1 + "*" + "addr2 =
" + addr2 + "*" + "city = " + city + "*" + "countycode = " + countycode +
"*" +"state = " + state + "*" + "zip = " + zip + "*" + "mr = " + mr + "*" +
"fname = " + fname + "*" + "lname = " + lname + "*" + "dept = " + dept + "*"
+ "phone = " + phone + "*" + "ext = " + ext + "*" + "email = " + email + "*"
+ "#");
variable: website =

value: website

delimiter: *

End of cookie: #

Is there a command to convert a JavaScript cookie to a PHP cookie?
I have tried to read the cookie in PHP with no success.



How do I pick out the variables and values in PHP from the JavaScript

View 3 Replies View Related

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