php-general Digest 15 May 2008 08:51:05 -0000 Issue 5460
Topics (messages 274334 through 274358):
Re: Tracking down the elusive "expecting T_PAAMAYIM_NEKUDOTAYIM"
274334 by: mike
274337 by: Boyd, Todd M.
274338 by: Daniel Brown
274340 by: Tyson Vanover
274348 by: Gabriel Sosa
Re: Mic check 1, 2, 3...
274335 by: tedd
274336 by: Bastien Koert
274339 by: Daniel Brown
274342 by: Tyson Vanover
Variable Scope from child to parent
274341 by: Tyson Vanover
274351 by: Gabriel Sosa
Re: Good HTML parser needed
274343 by: Shelley
274345 by: Yi Wang
274352 by: Yi Wang
Validating Form input
274344 by: Chris W
274346 by: Yi Wang
274347 by: Dan Joseph
274350 by: Robert Cummings
274355 by: Adam Richardson
Using SVN w/ Zend Studio for Eclipse
274349 by: Steve Finkelstein
274358 by: Colin Guthrie
Can I install a newer version of php over an older version
274353 by: Tony M
Re: Scottish Devs
274354 by: Manuel Lemos
SCanning text of PDF documents
274356 by: Angelo Zanetti
274357 by: David Otton
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
I've got that before and I am not using a Hebrew version of PHP :)
On 5/14/08, Daniel Brown <[EMAIL PROTECTED]> wrote:
> You're using a Hebrew version of PHP?
>
> That means something along the lines of "two times the two marks" in
> Hebrew.
--- End Message ---
--- Begin Message ---
In your code, it appears you forgot to close a pair of parentheses:
---
foreach($set as $key=>value)
{
if (array_key_exists($key,$this->titles)
{
$this->a[$key] = $value;
}
}
---
It looks like that 3rd line should be:
---
if (array_key_exists($key,$this->titles))
---
I hope that helps. Having another set of eyes take a look at it usually
does. ;)
Todd Boyd
Web Programmer
--- End Message ---
--- Begin Message ---
On Wed, May 14, 2008 at 4:51 PM, mike <[EMAIL PROTECTED]> wrote:
> I've got that before and I am not using a Hebrew version of PHP :)
Yeah, just a joke. I forgot to put the Trademark ;-P in its place.
The etymology of that message could be attributed to the fact that
Zeev and Andi are Israeli. Just taking a guess at it though.
--
</Daniel P. Brown>
Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just
$59.99/mo. with no contract!
Dedicated servers, VPS, and hosting from $2.50/mo.
--- End Message ---
--- Begin Message ---
Daniel Brown wrote:
<?php
foreach($set as $key => $value) { // You just missed the $ before value.
?>
This seems to be the culprit.
Also, check this line:
<?php
if (array_key_exists($key,$this->titles)
?>
You're missing a ')' to close the if() statement. It's not
causing this problem, but it will cause a problem afterward.
Thanks for catching that.
--- End Message ---
--- Begin Message ---
On Wed, May 14, 2008 at 5:43 PM, Daniel Brown <[EMAIL PROTECTED]> wrote:
> On Wed, May 14, 2008 at 4:05 PM, Tyson Vanover <[EMAIL PROTECTED]> wrote:
>> I have a class that is throwing the error:
>> syntax error, unexpected ')', expecting T_PAAMAYIM_NEKUDOTAYIM ...
>
> You're using a Hebrew version of PHP?
not necessary should be the hebrew PHP version.
by definition even in the english version T_PAAMAYIM_NEKUDOTAYIM is
used to name "::"
>
> That means something along the lines of "two times the two marks" in
> Hebrew.
>
> However, in your case, you're checking the error on the wrong
> line. Look at your foreach() statement. It should instead read as
> follows:
>
> <?php
> foreach($set as $key => $value) { // You just missed the $ before value.
> ?>
>
> Also, check this line:
>
> <?php
> if (array_key_exists($key,$this->titles)
> ?>
>
> You're missing a ')' to close the if() statement. It's not
> causing this problem, but it will cause a problem afterward.
>
> --
> </Daniel P. Brown>
> Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just
> $59.99/mo. with no contract!
> Dedicated servers, VPS, and hosting from $2.50/mo.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Los sabios buscan la sabiduría; los necios creen haberla encontrado.
Gabriel Sosa
--- End Message ---
--- Begin Message ---
At 1:50 PM -0700 5/14/08, Jim Lucas wrote:
Just wondering if the mailing list is working. I have not received
anything from this list today.
--
Jim Lucas
If you don't receive this, please let me know.
Cheers,
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
--- End Message ---
--- Begin Message ---
On Wed, May 14, 2008 at 4:56 PM, tedd <[EMAIL PROTECTED]> wrote:
> At 1:50 PM -0700 5/14/08, Jim Lucas wrote:
>
>> Just wondering if the mailing list is working. I have not received
>> anything from this list today.
>>
>> --
>> Jim Lucas
>>
>
> If you don't receive this, please let me know.
>
> Cheers,
>
> tedd
>
> --
> -------
> http://sperling.com http://ancientstones.com http://earthstones.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
check check
--
Bastien
Cat, the other other white meat
--- End Message ---
--- Begin Message ---
On Wed, May 14, 2008 at 4:50 PM, Jim Lucas <[EMAIL PROTECTED]> wrote:
> Just wondering if the mailing list is working. I have not received anything
> from this list today.
I saw a response from you come through to the "elusive" thread.
So it looks like it's working both ways for you now.
--
</Daniel P. Brown>
Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just
$59.99/mo. with no contract!
Dedicated servers, VPS, and hosting from $2.50/mo.
--- End Message ---
--- Begin Message ---
tedd wrote:
At 1:50 PM -0700 5/14/08, Jim Lucas wrote:
Just wondering if the mailing list is working. I have not received
anything from this list today.
--
Jim Lucas
If you don't receive this, please let me know.
Cheers,
tedd
Wait... the recursive not testing of that statement just crashed my
brain servers.
But I hope it is working for you Jim.
--- End Message ---
--- Begin Message ---
I am trying to get a child class to pass an array of valid keys to it's
parent when the constructor is run, and the parent appends the data to
one of it's array of valid keys. Then it walks through an array pulling
out values that have valid keys, and putting them in an array for
processing later. I have tried explicitly stating the variable scope.
abstract class parentclass
{
protected $vkeys= array('title1','title2','title3');
protected $a;
function __construct($set = NULL, $special = NULL)
{
self::$this->vkeys= array_merge(self::$this->vkeys, $special);
foreach($set as $key=>$value)
{
if (in_array($key,self::$this->vkeys))
{
$this->a[$key] = $value;
}
}
print_r(self::$this->vkeys); //output below
print_r(self::$this->a); //output below
}
}
class childclass extends parentclass
{
protected $vkeys= array('titleA', 'titleB', 'TitleC');
function __construct($set, $special = NULL)
{
parent::__construct($set, self::$this->vkeys);
unset(self::$this->vkeys);
}
}
Unfortunately it seems to duplicate the child's array instead of
appending. Explicitly stating scope does not seem to help.
print_r(self::$this->vkeys);
Array (
[0] => titleA
[1] => titleB
[2] => titleB
[3] => titleA
[4] => titleB
[5] => titleB
)
print_r(self::$this->a);
Array()
Any thoughts?
--- End Message ---
--- Begin Message ---
tyson
i never saw
self::$this->vkeys
doing this you actually are callig the var inside $this->vkeys
do self::$vkeys as static or $this->vkeys as object don't mix
regards
On Wed, May 14, 2008 at 7:33 PM, Tyson Vanover <[EMAIL PROTECTED]> wrote:
> I am trying to get a child class to pass an array of valid keys to it's
> parent when the constructor is run, and the parent appends the data to one
> of it's array of valid keys. Then it walks through an array pulling out
> values that have valid keys, and putting them in an array for processing
> later. I have tried explicitly stating the variable scope.
>
> abstract class parentclass
> {
> protected $vkeys= array('title1','title2','title3');
> protected $a;
>
> function __construct($set = NULL, $special = NULL)
> {
> self::$this->vkeys= array_merge(self::$this->vkeys, $special);
> foreach($set as $key=>$value)
> {
> if (in_array($key,self::$this->vkeys))
> {
> $this->a[$key] = $value;
> }
> }
> print_r(self::$this->vkeys); //output below
> print_r(self::$this->a); //output below
> }
> }
>
> class childclass extends parentclass
> {
> protected $vkeys= array('titleA', 'titleB', 'TitleC');
>
> function __construct($set, $special = NULL)
> {
> parent::__construct($set, self::$this->vkeys);
> unset(self::$this->vkeys);
> }
> }
>
> Unfortunately it seems to duplicate the child's array instead of appending.
> Explicitly stating scope does not seem to help.
>
>
> print_r(self::$this->vkeys);
> Array (
> [0] => titleA
> [1] => titleB
> [2] => titleB
> [3] => titleA
> [4] => titleB
> [5] => titleB
> )
>
> print_r(self::$this->a);
> Array()
>
> Any thoughts?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Los sabios buscan la sabiduría; los necios creen haberla encontrado.
Gabriel Sosa
--- End Message ---
--- Begin Message ---
Yeah, you are right, friend. Because users' input should be in <body> tag
only.
On Wed, May 14, 2008 at 11:06 PM, Robert Cummings <[EMAIL PROTECTED]>
wrote:
>
> On Wed, 2008-05-14 at 18:50 +0800, Shelley wrote:
> > Thank you all.
> > I have made it working excellent for me now.
> > The solution is here: http://phparch.cn
>
> Ah, there you go... "show_body_only". I was too lazy when I used tidy a
> while back to look through every option, so a quick preg stripping
> sufficed :)
>
> Cheers,
> Rob.
> --
> http://www.interjinn.com
> Application and Templating Framework for PHP
>
>
--
Regards,
Shelley
--- End Message ---
--- Begin Message ---
Can anyone provide some code that can't be stripped by strip_tags?
On 5/15/08, Eric Butera <[EMAIL PROTECTED]> wrote:
> On Wed, May 14, 2008 at 11:38 AM, Robert Cummings <[EMAIL PROTECTED]> wrote:
> >
> >
> > On Wed, 2008-05-14 at 11:18 -0400, Eric Butera wrote:
> > > On Tue, May 13, 2008 at 4:07 AM, James Dempster <[EMAIL PROTECTED]>
> wrote:
> > > > http://htmlpurifier.org/
> > > >
> > > > --
> > > > /James
> > > >
> > >
> > > This is the only real solution.
> >
> > That depends... if I'm the webmaster and I want to input arbitrary HTML,
> > then htmlpurifier is unnecessary.
> >
> >
> >
> > Cheers,
> > Rob.
> > --
> > http://www.interjinn.com
> > Application and Templating Framework for PHP
> >
> >
>
>
> OP said "users." Strip tags doesn't bother with tag attributes so
> that is a security hole. Any regex type solution will encounter the
> same set of issues.
>
> Htmlpurifier actually strips down and re-builds your html from the
> ground against a nice whitelist filtering system that you can
> customize to your needs. No nasty tags/attributes will get through
> unless you want them to.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Regards,
Wang Yi
--- End Message ---
--- Begin Message ---
Gabriel Sosa wrote:
this one
strip_tags('%3C%68%31%3E%68%65%6C%6C%6F%20%77%6F%72%6C%64%3C%2F%68%31%3E');
aka <h1>hello world</h1> using urlencode from http://ha.ckers.org/xss.html
take care the possible xss
saludos
gabriel
On Wed, May 14, 2008 at 11:56 PM, Yi Wang <[EMAIL PROTECTED]> wrote:
Can anyone provide some code that can't be stripped by strip_tags?
On 5/15/08, Eric Butera <[EMAIL PROTECTED]> wrote:
On Wed, May 14, 2008 at 11:38 AM, Robert Cummings <[EMAIL PROTECTED]> wrote:
>
>
> On Wed, 2008-05-14 at 11:18 -0400, Eric Butera wrote:
> > On Tue, May 13, 2008 at 4:07 AM, James Dempster <[EMAIL PROTECTED]> wrote:
> > > http://htmlpurifier.org/
> > >
> > > --
> > > /James
> > >
> >
> > This is the only real solution.
>
> That depends... if I'm the webmaster and I want to input arbitrary HTML,
> then htmlpurifier is unnecessary.
>
>
>
> Cheers,
> Rob.
> --
> http://www.interjinn.com
> Application and Templating Framework for PHP
>
>
OP said "users." Strip tags doesn't bother with tag attributes so
that is a security hole. Any regex type solution will encounter the
same set of issues.
Htmlpurifier actually strips down and re-builds your html from the
ground against a nice whitelist filtering system that you can
customize to your needs. No nasty tags/attributes will get through
unless you want them to.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Regards,
Wang Yi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yes, this raw string can't be stripped by strip_tags. But actually, how
the string take xss? The string has been urldecoded before we use it.
for example:
assuming url is
test.php?test_string=%3C%68%31%3E%68%65%6C%6C%6F%20%77%6F%72%6C%64%3C%2F%68%31%3E
<?php
var_dump( strip_tags( $_GET[ 'test_string' ] ) );
?>
should be produce "string(11) "hello world"".
--- End Message ---
--- Begin Message ---
I was wondering what others think of my approach to form validation. I
know many use Java script to do various validation. However, since
there is no way to be sure the data sent to the server is actually
valid, you have to check it in your php code on the server anyway.
Granted you don't have to, but if you don't, you are just asking for
someone to hack your system, or at the very least screw up your data.
So my question is since you have to do a validity check on the server,
why bother with the Java script? The only advantage I can see to doing
it with Java script is it will cut down on the errors in data that get
to the server and then in turn reduce the number for resubmits and keep
traffic down a little. However since none of the projects I have worked
on are very high traffic sites, that hasn't been much of a concern.
Any thoughts?
--
Chris W
KE5GIX
"Protect your digital freedom and privacy, eliminate DRM,
learn more at http://www.defectivebydesign.org/what_is_drm"
Ham Radio Repeater Database.
http://hrrdb.com
--- End Message ---
--- Begin Message ---
client validation is a way to provide quick response to the user for
whether their input is correct or not. It doesn't guarantee
correctness of the posted data. Because everything from client can't
be trusted.
On 5/15/08, Chris W <[EMAIL PROTECTED]> wrote:
> I was wondering what others think of my approach to form validation. I know
> many use Java script to do various validation. However, since there is no
> way to be sure the data sent to the server is actually valid, you have to
> check it in your php code on the server anyway. Granted you don't have to,
> but if you don't, you are just asking for someone to hack your system, or at
> the very least screw up your data. So my question is since you have to do a
> validity check on the server, why bother with the Java script? The only
> advantage I can see to doing it with Java script is it will cut down on the
> errors in data that get to the server and then in turn reduce the number for
> resubmits and keep traffic down a little. However since none of the
> projects I have worked on are very high traffic sites, that hasn't been much
> of a concern.
>
> Any thoughts?
>
>
> --
> Chris W
> KE5GIX
>
> "Protect your digital freedom and privacy, eliminate DRM, learn more at
> http://www.defectivebydesign.org/what_is_drm"
>
> Ham Radio Repeater Database.
> http://hrrdb.com
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Regards,
Wang Yi
--- End Message ---
--- Begin Message ---
On Wed, May 14, 2008 at 10:48 PM, Chris W <[EMAIL PROTECTED]> wrote:
> I was wondering what others think of my approach to form validation. I
> know many use Java script to do various validation. However, since there is
> no way to be sure the data sent to the server is actually valid, you have to
> check it in your php code on the server anyway. Granted you don't have to,
> but if you don't, you are just asking for someone to hack your system, or at
> the very least screw up your data. So my question is since you have to do a
> validity check on the server, why bother with the Java script? The only
> advantage I can see to doing it with Java script is it will cut down on the
> errors in data that get to the server and then in turn reduce the number for
> resubmits and keep traffic down a little. However since none of the
> projects I have worked on are very high traffic sites, that hasn't been much
> of a concern.
>
> Any thoughts?
>
>
> --
> Chris W
> KE5GIX
>
> "Protect your digital freedom and privacy, eliminate DRM, learn more at
> http://www.defectivebydesign.org/what_is_drm"
>
> Ham Radio Repeater Database.
> http://hrrdb.com
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
I think you'll find most people on this list in agreement. PHP level
validation is a must, as JavaScript is unreliable at best.
Now, the only real advantage I've seen with JS validation is just to have
that first line of validation to save the end user some time in between
submits. If you don't want to bother with it, don't. I tend to just for
that first layer.
--
-Dan Joseph
www.canishosting.com - Plans start @ $1.99/month. Reseller plans and
Dedicated servers available.
"Build a man a fire, and he will be warm for the rest of the day.
Light a man on fire, and will be warm for the rest of his life."
--- End Message ---
--- Begin Message ---
On Wed, 2008-05-14 at 21:48 -0500, Chris W wrote:
> I was wondering what others think of my approach to form validation. I
> know many use Java script to do various validation. However, since
> there is no way to be sure the data sent to the server is actually
> valid, you have to check it in your php code on the server anyway.
> Granted you don't have to, but if you don't, you are just asking for
> someone to hack your system, or at the very least screw up your data.
> So my question is since you have to do a validity check on the server,
> why bother with the Java script? The only advantage I can see to doing
> it with Java script is it will cut down on the errors in data that get
> to the server and then in turn reduce the number for resubmits and keep
> traffic down a little. However since none of the projects I have worked
> on are very high traffic sites, that hasn't been much of a concern.
>
> Any thoughts?
I ignore JavaScript validation unless I think the round trip is an
issue. Since I'm not working on any million hit per day systems, it's
not an issue. When it becomes an issue... it's simple enough to add the
JavaScript.
Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP
--- End Message ---
--- Begin Message ---
I completely agree, server-side validation does always have to exist.
That said, I like providing feedback on the validity of a form before
the user leaves the page AND I hate duplicating the validation logic
in Javascript when it's already present in my PHP.
What I did in my PHP framework (probably framework 2 billion and 1)
was set it up so you can use REST-ful calls to the PHP page that
contains the validation so you can retrieve the results of the
validation, allowing you to render whatever feedback you'd like on the
calling page through AJAX, or allow the request to proceed if it was
valid. Additionally, I've set my framework up so it chunks web pages
into various sections ('pipes'), allowing for REST-ful calls to the
PHP page that contains a pipe to easily render the HTML fragment
associated with a particular section, so you can progressively enhance
pages with javascript quite easily.
I'm pleased with this approach after using for it for a while now, and
I recommend it to others.
Adam
On May 14, 2008, at 10:48 PM, Chris W wrote:
I was wondering what others think of my approach to form
validation. I know many use Java script to do various validation.
However, since there is no way to be sure the data sent to the
server is actually valid, you have to check it in your php code on
the server anyway. Granted you don't have to, but if you don't, you
are just asking for someone to hack your system, or at the very
least screw up your data. So my question is since you have to do a
validity check on the server, why bother with the Java script? The
only advantage I can see to doing it with Java script is it will cut
down on the errors in data that get to the server and then in turn
reduce the number for resubmits and keep traffic down a little.
However since none of the projects I have worked on are very high
traffic sites, that hasn't been much of a concern.
Any thoughts?
--
Chris W
KE5GIX
"Protect your digital freedom and privacy, eliminate DRM, learn more
at http://www.defectivebydesign.org/what_is_drm"
Ham Radio Repeater Database.
http://hrrdb.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Adam Richardson
Envision Internet Consulting, LLC
Phone: (517)623-0485
Services and insight for building effective, user-oriented websites.
--- End Message ---
--- Begin Message ---
Hey all,
Apologies ahead of time if this isn't the appropriate forum for my
inquiry. I'm evaluating Zend Studio for Eclipse and it's certainly
making some features that I'd hope would be trivial, extremely
onerous. I'm simply trying to take an existing project which I started
in TextMate and import it into ZS for Eclipse with Subversion controls
attached to the project. I do not want to copy the project into a new
directory as the existing directory is where Apache's DocumentRoot is
set. And although that's simple to change, I really don't think any
IDE should mandate where I set my project's directory on the
filesystem. Also, if I try to create a new project from an SVN
Repository, it doesn't allow me to select what directory I want the
code checked out in. Otherwise I'd just cringe and let it overwrite
what's in my existing document root, since that's all versioned code
anyhow. If I just create a new project, and import the directory of
the code base (which is under version control already), it doesn't
pick up the subversion controls in the IDE itself.
If any of you have run into similar frustrations, I'd love to hear it.
So far I've spent the better part of the evening fiddling with
extremely rudimentary features which no IDE in any programming
environment I've ever worked with has imposed on me. Perhaps this
thing isn't ready for mainstream yet, or perhaps I'm missing something
obvious.
Thanks for any insight.
</rant>
/sf
--- End Message ---
--- Begin Message ---
Steve Finkelstein wrote:
If any of you have run into similar frustrations, I'd love to hear it.
So far I've spent the better part of the evening fiddling with
extremely rudimentary features which no IDE in any programming
environment I've ever worked with has imposed on me. Perhaps this
thing isn't ready for mainstream yet, or perhaps I'm missing something
obvious.
Not had much experience with ZS for eclipse but working with IIRC PDE or
some such name, I did use exiting projects (e.g. svn checkouts) and
import them into an Eclipse project and everything worked out fine. I
was able to override the location and I was able to join in Subclipse to
the project for SVN capabilities.
I know this is not particularly useful to you but certainly it is
possible with Eclipse generally. Whether ZS somehow masks this I can't say.
Col
--- End Message ---
--- Begin Message ---
Can I install a newer version of php over an older version ?
I am new to php and am in the process of installing it and reading various
tutorials.
I installed version php-5.2.5-win32-installer.msi
I have just downloaded php-5.2.6-win32-installer.msi
can I install over the first one or must I uninstall the
php-5.2.5-win32-installer.msi version first.
TIA
Tony M
--- End Message ---
--- Begin Message ---
Hello,
on 05/14/2008 01:37 PM Nathan Rixham said the following:
> Just had word of a freelance project on for the next 4 weeks, start
> immediately, basically 1 static site (design already done) - an easy
> job, and 1 static site + a bit of PHP, breadcrumb, site search - it's
> £200 GBP a day (so about £4k for the next 4 weeks), ideally for somebody
> who can pop into edinburgh to meet the client/agency and maybe work on
> site?
>
> I was offered but I'm committed at the minute, it's through a reputable
> recruitment agency for a top edinburgh design house - so worth going for
> if you have the time free.
You may want to take a look here to see if you find qualified PHP
developers in that region:
http://www.phpclasses.org/professionals/country/uk/
--
Regards,
Manuel Lemos
PHP professionals looking for PHP jobs
http://www.phpclasses.org/professionals/
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
--- End Message ---
--- Begin Message ---
Hi All.
This is a quick question.
A client of ours wants a solution that when a PDF document is uploaded that
we use PHP to scan the documents contents and save it in a DB.
I know you can do this with normal text documents using the file commands
and functions.
Is it possible with PDF documents?
My feeling is NO, but perhaps someone will prove me wrong.
Thanks in advance.
Angelo
Web: http://www.elemental.co.za
--- End Message ---
--- Begin Message ---
2008/5/15 Angelo Zanetti <[EMAIL PROTECTED]>:
> A client of ours wants a solution that when a PDF document is uploaded that
> we use PHP to scan the documents contents and save it in a DB.
>
> I know you can do this with normal text documents using the file commands
> and functions.
>
> Is it possible with PDF documents?
>
> My feeling is NO, but perhaps someone will prove me wrong.
There's a good chance your installation already has pdf2ps and ps2ascii
--- End Message ---