php-general Digest 15 May 2008 08:51:05 - 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
php-general Digest 15 May 2008 21:26:39 - Issue 5461
Topics (messages 274359 through 274394):
the class as a namespace
274359 by: Iv Ray
274364 by: Iv Ray
Re: SCanning text of PDF documents
274360 by: Frank Arensmeier
274366 by: Eric Butera
Re: Using SVN w/
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
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
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
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
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
Is there a notion of the class as a namespace?
My understanding is that the namespaces are intended to help organize
the classes in large projects (and are not perfect).
Is it considered good style to use a class simply to box related functions?
For instance, a class called files, contains
Tony M wrote:
Can I install a newer version of php over an older version?
Perhaps what you need is this -
Upgrading PHP with the Install
To upgrade, run the installer either graphically or from the command
line as normal. The installer will read your current install options,
remove your old
A reliable solution depends partly on the pdf document itself.
Consider if your pdf document contains roted text or text that spans
about several different blocks/pages. My experience with ps2acsii and
other ghostscript related tools is that sometimes it works quite
well, sometimes the
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.
I use PDT, and there is no problem
What technique can I use to take an 8-byte double precision value, as
stored internally, and assign its value to a PHP float variable without
having the bytes misinterpreted as a character string.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Richard Heyes wrote:
That's a common use of static classes. Eg:
HTTP::Redirect($url);
In fact this (from the article I've read) is exactly how namespaces will
look like. So in the above example, HTTP could be either a namespace or
a class.
Right. Namespaces do look similar. And PEAR
On Wed, May 14, 2008 at 10: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
On Thu, May 15, 2008 at 4:19 AM, Angelo Zanetti [EMAIL PROTECTED] wrote:
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
Ok, I forgot to reply-all to the list. Here we go again.
On Wed, May 14, 2008 at 6: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
Make certain your steam is compressed http://www.whatsmyip.org/mod_gzip_test/
Per Jessen wrote:
Robin Vickery wrote:
2008/5/14 Per Jessen [EMAIL PROTECTED]:
The issue is - I'd like this page to appear to be as real time as
possible, and the occasional delay caused by the conditional get
On 15/05/2008, Al [EMAIL PROTECTED] wrote:
Make certain your steam is compressed
http://www.whatsmyip.org/mod_gzip_test/
Compressed steam can be dangerous:
http://en.wikipedia.org/wiki/2007_New_York_City_steam_explosion
-robin
--
PHP General Mailing List (http://www.php.net/)
To
On Tue, May 13, 2008 at 6:06 AM, Per Jessen [EMAIL PROTECTED] wrote:
Shelley wrote:
I want to know whether there are some good HTML parsers written in
PHP.
That is,
the parser checks whether html tags like table, tr, td, div, dt, dl,
dd, script, ul, li, span, h1, h2, etc. are nested
Per Jessen a écrit :
René Leboeuf wrote:
The user sending emails is trusted by sendmail, and the sending
program is located on the sendmail machine.
No need to use SMTP then. You should just be calling sendmail to drop
the emails into the queue. And that should not be slowing down.
At 9:48 PM -0500 5/14/08, 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
John Gunther wrote:
What technique can I use to take an 8-byte double precision value, as
stored internally, and assign its value to a PHP float variable without
having the bytes misinterpreted as a character string.
Does it get misinterpreted, or do you just want to be sure?
The
Since I keep getting off-list and on-list replies, apparently not
everyone reads the threads as they should. As you'll see from the
message below, I'm aware that it's in all languages. It was meant
jokingly, but I forgot to type in the smiley face.
Otherwise, thanks (to the eleven or so
Al wrote:
Make certain your steam is compressed
http://www.whatsmyip.org/mod_gzip_test/
The files I was having the problem with are GIFs, so already LZW
compressed.
/Per Jessen, Zürich
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
René Leboeuf wrote:
Per Jessen a écrit :
René Leboeuf wrote:
The user sending emails is trusted by sendmail, and the sending
program is located on the sendmail machine.
No need to use SMTP then. You should just be calling sendmail to
drop
the emails into the queue. And that should
Iv Ray wrote:
John Gunther wrote:
What technique can I use to take an 8-byte double precision value, as
stored internally, and assign its value to a PHP float variable without
having the bytes misinterpreted as a character string.
Does it get misinterpreted, or do you just want to be
On Thu, 2008-05-15 at 10:33 -0400, John Gunther wrote:
Iv Ray wrote:
John Gunther wrote:
What technique can I use to take an 8-byte double precision value, as
stored internally, and assign its value to a PHP float variable without
having the bytes misinterpreted as a character
John Gunther wrote:
Example: I extract the 8 bytes 40 58 FF 5C 28 F5 C2 8F from
an external file
You mean you extract 40 58 FF 5C 28 F5 C2 8F, so to speak, as a
string, right?
Sorry, for asking, but somehow I do not the case.
--
--
PHP General Mailing List (http://www.php.net/)
To
On 15/05/2008, John Gunther [EMAIL PROTECTED] wrote:
Iv Ray wrote:
John Gunther wrote:
What technique can I use to take an 8-byte double precision value, as
stored internally, and assign its value to a PHP float variable without
having the bytes misinterpreted as a character
Hi,
How do I open a file and flush all it's contents to insert new ones and
close again ?
I've browsed through the fopen function aguments and didn't find one
that do this (or I misunderstood one of them).
Any help would be appreciated.
Warm Regards,
Mário Gamito
--
PHP General Mailing
Hello, first of all, sorry for this plug, I am looking for interested
developers.
I just want to let you know about my open source project that uses over
15 pear classes and uses pear installer as the primary means to install it
I also wrote a web-based interface for using pear installer to
Try by not LZW compressing and the use ob_start() and flush() so your files are gzip compressed. I
don't know if Firefox knows how to readily handle LZW on the fly. It does know how to handle gzip.
Per Jessen wrote:
Al wrote:
Make certain your steam is compressed
On Thu, May 15, 2008 at 11:20 AM, Mário Gamito [EMAIL PROTECTED] wrote:
Hi,
How do I open a file and flush all it's contents to insert new ones and
close again ?
I've browsed through the fopen function aguments and didn't find one that do
this (or I misunderstood one of them).
Any help
I used soap to perfect the Windows service call and resolved the issue so
simple it kills me. Not happy with the huge upgrade of php process but happy
with final results.
Resolution:
?php
$wsdl= http://user:[EMAIL PROTECTED]/WebService/service.asmx?WSDL;
$soap = new soapclient($wsdl,wsdl);
Page Not Found.
Hello, first of all, sorry for this plug, I am looking for interested
developers.
I just want to let you know about my open source project that uses over
15 pear classes and uses pear installer as the primary means to install it
I also wrote a web-based interface for
Al wrote:
Per Jessen wrote:
Al wrote:
Make certain your steam is compressed
http://www.whatsmyip.org/mod_gzip_test/
The files I was having the problem with are GIFs, so already LZW
compressed.
Try by not LZW compressing and the use ob_start() and flush() so your
files are gzip
On May 14, 2008, at 854PM, Tony M wrote:
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 always suggest using XAMPP (http://xampp.org) or a similar package
that will install MySQL, PHP
this one bugs me for a while. how to change order.
I have a list of tasks. by status, task could be 1 (todo) or 0 (done) -
status value stored in mysql. I can list tasks per status or all.
order number is stored in mysql too.
the easiest way to change order is to have form for each task where you
afan pasalic wrote:
this one bugs me for a while. how to change order.
I have a list of tasks. by status, task could be 1 (todo) or 0 (done) -
status value stored in mysql. I can list tasks per status or all.
order number is stored in mysql too.
the easiest way to change order is to have form
Iv Ray wrote:
afan pasalic wrote:
this one bugs me for a while. how to change order.
I have a list of tasks. by status, task could be 1 (todo) or 0 (done) -
status value stored in mysql. I can list tasks per status or all.
order number is stored in mysql too.
the easiest way to change
On Thu, May 15, 2008 at 2:49 PM, afan pasalic [EMAIL PROTECTED] wrote:
Iv Ray wrote:
afan pasalic wrote:
this one bugs me for a while. how to change order.
I have a list of tasks. by status, task could be 1 (todo) or 0 (done) -
status value stored in mysql. I can list tasks per status or
Eric Butera wrote:
On Thu, May 15, 2008 at 2:49 PM, afan pasalic [EMAIL PROTECTED] wrote:
Iv Ray wrote:
afan pasalic wrote:
this one bugs me for a while. how to change order.
I have a list of tasks. by status, task could be 1 (todo) or 0 (done) -
status value stored in
On May 15, 2008, at 11:58 AM, afan pasalic wrote:
Eric Butera wrote:
I use this:
http://developer.yahoo.com/yui/examples/dragdrop/dd-reorder.html
This one is good too.
But, actually, I need something more simple. Nothing fancy :D.
for something very simple how about add a drop down
afan pasalic wrote:
this one bugs me for a while. how to change order.
I have a list of tasks. by status, task could be 1 (todo) or 0 (done) -
status value stored in mysql. I can list tasks per status or all.
order number is stored in mysql too.
the easiest way to change order is to have form
A) validating username in php
as part of a registration form a user fills there desired username and this
is stored in a mysql. there are certain conditions for the username.
a) the username should only begin either letters or numbers, and Underscore
character
example = user123, 123user,
On Thu, May 15, 2008 at 2:09 PM, afan pasalic [EMAIL PROTECTED] wrote:
this one bugs me for a while. how to change order.
I have a list of tasks. by status, task could be 1 (todo) or 0 (done) -
status value stored in mysql. I can list tasks per status or all.
order number is stored in mysql
Hello,
I use fsockopen and fputs to call a distant URL, but I have the following
error :
The requested URL /registration/test was not found on this server.
This is my code:
$req =
'username=' . $usr . 'password=' . $pass .
'date_of_birth=' . $year . - . $month . - . $day .
your validation looks good enough to me. If you only allow
alphanumerical chars, then your should not be worried about sql injection
also use addslashes($username) before you insert into database and you
should be fine.
Usually addslashes is enough to prevent this, but the validation that
you
Dmitri wrote:
your validation looks good enough to me. If you only allow
alphanumerical chars, then your should not be worried about sql injection
also use addslashes($username) before you insert into database and you
should be fine.
Usually addslashes is enough to prevent this, but the
On 5/15/08, Eric Butera [EMAIL PROTECTED] wrote:
On Wed, May 14, 2008 at 10: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
Angelo Zanetti wrote:
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
On Thu, 2008-05-15 at 20:17 -0500, Ray Hauge wrote:
One thing you'll have to watch is that if the PDF was created by a
scanner, then the text on the PDF is actually just an image and cannot
be read without OCR. I got stumped on that one for a while when I was
doing something similar :)
Sudhakar wrote:
A) validating username in php
If you do what needs to be done to prevent sql injection, it doesn't
matter what you let users have for their user name.
B) preventing sql injection
htmlentities
this has nothing to do with sql injection it just is needed so when you
afan pasalic wrote:
this one bugs me for a while. how to change order.
I have a list of tasks. by status, task could be 1 (todo) or 0 (done) -
status value stored in mysql. I can list tasks per status or all.
order number is stored in mysql too.
the easiest way to change order is to have form
Hi,
I've just installed PHP 5.2.4 on a FC 7 with a web server.
$ php -v
PHP 5.2.4 (cli) (built: Sep 18 2007 08:50:58)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
It seems some PHP module might be missing, I tested it with a page1.php:
$ php -v
PHP 5.2.4 (cli) (built: Sep 18 2007 08:50:58)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
This shows the php command line version, not the webserver php version.
To do that, look at a phpinfo() page. They may indeed be the same
Hey,
Have just started screwing around with wordpress and I must say... it has a lot
of really really nice bits and pieces... two of my favourites are widgets and
plugins... not a hundred percent certain exactly what the diff is though! :)
Anyway, was thinking it would be a great way to
57 matches
Mail list logo