Nitsan Bin-Nun schreef:
Hi lista,
I have been trying to figure this out for the last couple of hours but I'm
lack of luck.
Take a look at these regex's, the string that was inputed into the
preg_replace (using Uis modificators) and the results:
(the lists have correspondence to each other)
On Sat, Mar 7, 2009 at 2:37 PM, Jochem Maas joc...@iamjochem.com wrote:
Nitsan Bin-Nun schreef:
Hi lista,
I have been trying to figure this out for the last couple of hours but
I'm
lack of luck.
Take a look at these regex's, the string that was inputed into the
preg_replace (using
There is no reason to share the code because it happens with almost ALL the
regex's I'm using :(
But I worked this out using Todd's solution.
Thank you all for trying to help.
On Sat, Mar 7, 2009 at 11:06 AM, 9el le...@phpxperts.net wrote:
On Sat, Mar 7, 2009 at 2:37 PM, Jochem Maas
---
Use FreeOpenSourceSoftwares, Stop piracy, Let the developers live. Get
a Free CD of Ubuntu mailed to your door without any cost. Visit :
www.ubuntu.com
--
Yes you can ;)
and I'm using ubuntu :P
On Sat, Mar 7, 2009 at 12:08 PM, 9el le...@phpxperts.net wrote:
---
Use FreeOpenSourceSoftwares, Stop piracy, Let the developers live. Get
a Free CD of Ubuntu mailed to your door
thanks a thousand
A thousand? That's a bit stingy - usually it's thanks a million...
:-)
--
Richard Heyes
HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari:
http://www.rgraph.net (Updated February 28th)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Sat, Mar 7, 2009 at 4:10 PM, Nitsan Bin-Nun nit...@binnun.co.il wrote:
Yes you can ;)
and I'm using ubuntu :P
There's a fun joke in My Mothertongue Bangla (5th most spoken in the world
by about 300million).
Anis dis na = Take but never giveaway
Anis is a common arabic name but in
I found another implementation in PHP to validate EU-VAT-numbers here:
http://www.acc.bg/vat-validation.html VAT number validation
It also shows company name and address for some member states.
Can someone help how to implement?
THX
Clara
--
View this message in context:
On Sat, Mar 7, 2009 at 4:11 PM, Richard Heyes rich...@php.net wrote:
thanks a thousand
A thousand? That's a bit stingy - usually it's thanks a million...
In this particular case I guess thousand is a larger value than million :D
takes a longer to type
:-)
--
Richard Heyes
HTML5
I believe this validator is the original one:
http://ec.europa.eu/taxation_customs/vies/
HTH, Cor
- Original Message -
From: Clara frechd...@gmail.com
To: php-general@lists.php.net
Sent: Saturday, March 07, 2009 11:19 AM
Subject: Re: [PHP] VAT number validation
I found another
Thanks a lot,
I will better set an iframe to the official validator as a start :)
Clara.
cr.vegelin wrote:
I believe this validator is the original one:
http://ec.europa.eu/taxation_customs/vies/
HTH, Cor
- Original Message -
From: Clara frechd...@gmail.com
To:
On Sat, 2009-03-07 at 02:12 -0500, Paul M Foster wrote:
On Sat, Mar 07, 2009 at 11:29:41AM +1100, Clancy wrote:
On Fri, 6 Mar 2009 08:53:44 -0500, danbr...@php.net (Daniel Brown) wrote:
On Fri, Mar 6, 2009 at 00:12, Clancy clanc...@cybec.com.au wrote:
snip
Then you'll be
On Fri, 6 Mar 2009 21:32:53 +0200, Nitsan Bin-Nun wrote:
Hi lista,
I have been trying to figure this out for the last couple of hours but I'm
lack of luck.
Take a look at these regex's, the string that was inputed into the
preg_replace (using Uis modificators) and the results:
(the lists
On Thu, 2009-03-05 at 19:58 -0800, Michael A. Peters wrote:
PJ wrote:
Nathan Rixham wrote:
Chris wrote:
PJ wrote:
And again, this works:
if (strlen($_POST[first_nameIN]) == 0 ) {
$obligatoryFieldNotPresent = 1; ...
this does not:
if (strlen($_POST[first_nameIN]) 0
In some earlier thread (I really don't want to dig to find it) I argued
for running mysql_real_escape_string right on the _POST
I must concede I was definitely wrong about that.
The right place to do it is in a database abstraction class that does
the actual insert for you, so that if you
Ashley Sheridan wrote:
On Thu, 2009-03-05 at 19:58 -0800, Michael A. Peters wrote:
PJ wrote:
Nathan Rixham wrote:
Chris wrote:
PJ wrote:
And again, this works:
if (strlen($_POST[first_nameIN]) == 0 ) {
$obligatoryFieldNotPresent = 1; ...
this does not:
if
Hi,
Anywhoo, that being said, does anyone have a suggestion for a good database
abstraction class?
Ooh, I think you'll get the odd one or two...
Preferably one that already has decent support for several open source
databases?
PEAR::DB was good, but IIRC it's now been deprecated in favour
On Sat, Mar 7, 2009 at 05:49, Clara frechd...@gmail.com wrote:
Thanks a lot,
I will better set an iframe to the official validator as a start :)
Clara,
In the future, please just start a new thread as opposed to
hijacking on that is six months old. It'll get more attention and
keep
On Sat, 2009-03-07 at 13:42 +, Nathan Rixham wrote:
Ashley Sheridan wrote:
On Thu, 2009-03-05 at 19:58 -0800, Michael A. Peters wrote:
PJ wrote:
Nathan Rixham wrote:
Chris wrote:
PJ wrote:
And again, this works:
if (strlen($_POST[first_nameIN]) == 0 ) {
On Sat, Mar 7, 2009 at 02:12, Paul M Foster pa...@quillandmouse.com wrote:
Someone would add gotos to a language *on purpose*?!
Keep in mind that, unlike BASIC, the PHP implementation of GOTO
will go to a label. Don't worry, you don't have to start line
programming.
?php
10:
Ashley Sheridan wrote:
On Sat, 2009-03-07 at 13:42 +, Nathan Rixham wrote:
Ashley Sheridan wrote:
On Thu, 2009-03-05 at 19:58 -0800, Michael A. Peters wrote:
PJ wrote:
Nathan Rixham wrote:
Chris wrote:
PJ wrote:
And again, this works:
if (strlen($_POST[first_nameIN]) == 0 ) {
On Sat, 2009-03-07 at 14:06 +, Nathan Rixham wrote:
Ashley Sheridan wrote:
On Sat, 2009-03-07 at 13:42 +, Nathan Rixham wrote:
Ashley Sheridan wrote:
On Thu, 2009-03-05 at 19:58 -0800, Michael A. Peters wrote:
PJ wrote:
Nathan Rixham wrote:
Chris wrote:
PJ wrote:
And
Richard Heyes wrote:
Hi,
Anywhoo, that being said, does anyone have a suggestion for a good database
abstraction class?
Ooh, I think you'll get the odd one or two...
Preferably one that already has decent support for several open source
databases?
PEAR::DB was good, but IIRC it's now
Ashley Sheridan wrote:
I'm more a fan of lining up opening and closing brackets so they are at
the same indent level. It prevents one of the most popular errors caused
by omitting a bracket, brace or other in the wrong place. A few extra
line breaks in the code are not going to make a
Hi,
Never used pear before, but I seem to recall there being some issues where
pear did not provide very good forward support when moving to new versions
of php causing a need to recode. Is that still an issue?
Don't really know. I've not really had a problem with the stuff that
I've written.
Paul M Foster wrote:
On Fri, Mar 06, 2009 at 10:49:12AM -0600, haliphax wrote:
snip
I would go about it like this:
$sql1 = select concat_ws(' ', first_name, last_name) as Author_Name
from author where first_name = '$first_nameIN' and last_name =
'$last_nameIN';
If you already know the
Jim Lucas wrote:
PJ wrote:
9el wrote:
On Sat, Mar 7, 2009 at 5:37 AM, PJ af.gour...@videotron.ca
mailto:af.gour...@videotron.ca wrote:
I've done some rethingking and this may be the direction to go:
What I need to wind up with is something like this:
$sql = INSERT
Michael A. Peters wrote:
Ashley Sheridan wrote:
I'm more a fan of lining up opening and closing brackets so they are at
the same indent level. It prevents one of the most popular errors caused
by omitting a bracket, brace or other in the wrong place. A few extra
line breaks in the code are
Seems it should be simple, but how does one extract values from an array
and assign them to a variable?
foreach ($categoriesIN as $category) {
echo $categorybr;
}
or
if(!empty($_POST['categoriesIN'])){
foreach( $_POST['categoriesIN'] as $key = $value) {
echo value = $valuebr;
}
Nathan Rixham wrote:
actually much of this discussion is null and voided by using a decent
IDE, certainly eclipse, netbeans, zend ide all handle much of the
formatting and indenting - the one gripe I have is that PDT2 is lacking
the format source option which is a vast time-saver when using
PJ schreef:
Seems it should be simple, but how does one extract values from an array
and assign them to a variable?
foreach ($categoriesIN as $category) {
1. if $categoriesIN comes from a POST, use $_POST['categoriesIN'] instead.
better yet use the filter extension (part of the core) to
On Sat, Mar 07, 2009 at 05:52:55AM -0500, Robert Cummings wrote:
On Sat, 2009-03-07 at 02:12 -0500, Paul M Foster wrote:
On Sat, Mar 07, 2009 at 11:29:41AM +1100, Clancy wrote:
On Fri, 6 Mar 2009 08:53:44 -0500, danbr...@php.net (Daniel Brown) wrote:
On Fri, Mar 6, 2009 at 00:12,
On Sat, Mar 07, 2009 at 02:13:11PM +, Ashley Sheridan wrote:
snip
And spaces instead of tabs! That's heresy!
No, it's python. ;-}
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sat, Mar 7, 2009 at 8:04 AM, Michael A. Peters mpet...@mac.com wrote:
In some earlier thread (I really don't want to dig to find it) I argued for
running mysql_real_escape_string right on the _POST
I must concede I was definitely wrong about that.
The right place to do it is in a database
I'm personally using CI DB abstraction layer, also used zend_db, they both
good but as Eric said, I think PDO is a better option.
On Sat, Mar 7, 2009 at 7:34 PM, Eric Butera eric.but...@gmail.com wrote:
On Sat, Mar 7, 2009 at 8:04 AM, Michael A. Peters mpet...@mac.com wrote:
In some earlier
Daniel Brown wrote:
On Fri, Mar 6, 2009 at 08:53, Stuart stut...@gmail.com wrote:
1.) We use regular open tags to be compatible with all stock
PHP configurations.
2.) We echo out the response from dirname() so that it's
output to the HTML source.
3.) We use dirname() twice,
On Sat, 2009-03-07 at 11:39 -0500, Paul M Foster wrote:
On Sat, Mar 07, 2009 at 05:52:55AM -0500, Robert Cummings wrote:
On Sat, 2009-03-07 at 02:12 -0500, Paul M Foster wrote:
On Sat, Mar 07, 2009 at 11:29:41AM +1100, Clancy wrote:
On Fri, 6 Mar 2009 08:53:44 -0500,
They probably thought you couldn't handle the responsibility... and if
you can't think for yourself then they may be right ;)
Once we have goto, it's a short slide down a slippery slope to setjmp
and longjmp. And thence, the apocalypse. ;-}
Or maybe nirvana is just over the horizon! You
On Sun, 2009-03-08 at 01:54 +0600, 9el wrote:
They probably thought you couldn't handle the responsibility... and if
you can't think for yourself then they may be right ;)
Once we have goto, it's a short slide down a slippery slope to setjmp
and longjmp. And thence, the apocalypse.
On Sat, Mar 7, 2009 at 15:23, Robert Cummings rob...@interjinn.com wrote:
?php
for( ; ; )
{
echo You can make an endless loop in many, many ways.\n;
}
?
?php while(1) echo Yup.\n; ?
--
/Daniel P. Brown
daniel.br...@parasane.net || danbr...@php.net
http://www.parasane.net/ ||
Jim Lucas wrote:
PJ wrote:
9el wrote:
On Sat, Mar 7, 2009 at 5:37 AM, PJ af.gour...@videotron.ca
mailto:af.gour...@videotron.ca wrote:
I've done some rethingking and this may be the direction to go:
What I need to wind up with is something like this:
$sql = INSERT INTO book_categories (
On Sat, Mar 07, 2009 at 12:34:40PM -0500, Eric Butera wrote:
snip
PDO. :) Anything else is a waste of cpu cycles.
I've looked into PDO, and I just didn't find it as feature-rich as the
native (non-OO) function assortment for database types like MySQL and
PostgreSQL. Can PDO be extended?
On Sat, Mar 7, 2009 at 5:07 PM, Paul M Foster pa...@quillandmouse.com wrote:
On Sat, Mar 07, 2009 at 12:34:40PM -0500, Eric Butera wrote:
snip
PDO. :) Anything else is a waste of cpu cycles.
I've looked into PDO, and I just didn't find it as feature-rich as the
native (non-OO) function
Daniel Brown wrote:
On Sat, Mar 7, 2009 at 15:23, Robert Cummings rob...@interjinn.com wrote:
?php
for( ; ; )
{
echo You can make an endless loop in many, many ways.\n;
}
?
?php while(1) echo Yup.\n; ?
?php
echo 'yup' . PHP_EOL;
include __FILE__;
?
--
PHP General Mailing List
On Sun, 8 Mar 2009 01:54:22 +0600, le...@phpxperts.net (9el) wrote:
They probably thought you couldn't handle the responsibility... and if
you can't think for yourself then they may be right ;)
Once we have goto, it's a short slide down a slippery slope to setjmp
and longjmp. And thence,
Eric Butera wrote:
On Sat, Mar 7, 2009 at 5:07 PM, Paul M Foster pa...@quillandmouse.com wrote:
On Sat, Mar 07, 2009 at 12:34:40PM -0500, Eric Butera wrote:
snip
PDO. :) Anything else is a waste of cpu cycles.
I've looked into PDO, and I just didn't find it as feature-rich as the
native
Jochem Maas wrote:
PJ schreef:
Seems it should be simple, but how does one extract values from an array
and assign them to a variable?
foreach ($categoriesIN as $category) {
1. if $categoriesIN comes from a POST, use $_POST['categoriesIN'] instead.
It does, but results are the same. Maybe it
On Sat, Mar 7, 2009 at 5:20 PM, Nathan Rixham nrix...@gmail.com wrote:
Eric Butera wrote:
On Sat, Mar 7, 2009 at 5:07 PM, Paul M Foster pa...@quillandmouse.com
wrote:
On Sat, Mar 07, 2009 at 12:34:40PM -0500, Eric Butera wrote:
snip
PDO. :) Anything else is a waste of cpu cycles.
Dear All,
I have written a back end php program that update live stream database and
this data is streamed 24 hours a day. Please, what is the best way to make
sure this program execute or runs 24 hours day.
Best Wishes
Andrew Williams
www.willandy.co.uk
cronjob or deamon to execute the php file
On Sun, Mar 8, 2009 at 4:56 AM, Andrew Williams
andrew4willi...@gmail.comwrote:
Dear All,
I have written a back end php program that update live stream database and
this data is streamed 24 hours a day. Please, what is the best way to make
sure
I'm new to the list, so maybe I've missed something. Please disregard if
I'm blathering idiotically.
What OS are you using?
Do you mean that you want to run the job repetitively (again and again) or
do you mean that you want to check that the job is still running and start,
if it stopped?
On
On Sat, 2009-03-07 at 06:23 -0800, Michael A. Peters wrote:
Ashley Sheridan wrote:
I'm more a fan of lining up opening and closing brackets so they are at
the same indent level. It prevents one of the most popular errors caused
by omitting a bracket, brace or other in the wrong place. A
On Sat, Mar 7, 2009 at 7:10 PM, Sashikanth Gurram sashi...@vt.edu wrote:
Hello everyone,
I am using a WAMP server for my coding purposes. My MySQL Version is
5.0.51b, PHP version is 5.2.6 and Apache version is 2.2.8
I have created a database with one of the tables containing a location of
I am just storing the location of the image(as a varchar type), not the
image itself. For example for a particular image, the location is stored
as C:\wamp\bin\apache\apache2.2.8\htdocs\Bldgs_lots\Burruss.jpg
-sashi
Nathan Nobbe wrote:
On Sat, Mar 7, 2009 at 7:10 PM, Sashikanth Gurram
On Sat, Mar 7, 2009 at 3:20 PM, PJ af.gour...@videotron.ca wrote:
Jochem Maas wrote:
PJ schreef:
Seems it should be simple, but how does one extract values from an array
and assign them to a variable?
foreach ($categoriesIN as $category) {
1. if $categoriesIN comes from a POST, use
On Sat, Mar 7, 2009 at 8:12 PM, Sashikanth Gurram sashi...@vt.edu wrote:
I am just storing the location of the image(as a varchar type), not the
image itself. For example for a particular image, the location is stored as
C:\wamp\bin\apache\apache2.2.8\htdocs\Bldgs_lots\Burruss.jpg
echo
On Sat, Mar 7, 2009 at 3:56 PM, Andrew Williams
andrew4willi...@gmail.comwrote:
Dear All,
I have written a back end php program that update live stream database and
this data is streamed 24 hours a day. Please, what is the best way to make
sure this program execute or runs 24 hours day.
is
PJ wrote:
This is probably a mysql question, but their list is rather dull - I
think they don't appreciate my humor. Beside this list is fun ... and
informative.
Anyway, I can't figure this out. I am trying to verify inputs on a form
and even if I have all the required fields right, I still get
The thing is, I do not have a website or a place where I am storing my
images. I am storing the images on my local PC in folder as mentioned in
my earlier post. I have tried using only the
else {
header('Content-Type: image/jpeg');
imagejpeg($img);
imagedestroy($img);
}
Which you have
On Sat, Mar 7, 2009 at 9:36 PM, Sashikanth Gurram sashi...@vt.edu wrote:
The thing is, I do not have a website or a place where I am storing my
images. I am storing the images on my local PC in folder as mentioned in my
earlier post. I have tried using only the
else {
header('Content-Type:
I'm interfacing PHP with an Asterisk server, and would like to pipe
audio into PHP, through sox, and back out, in real-time, thus with
*minimal* overhead in PHP.
Any suggestions on what would be the best architecture?
--
Some people ask for gifts here.
I just want you to buy an Indie CD for
I want to index the files on a website recursively. The program will run in the
site root
directory, which GETCWD reports as D:/Websites/Website_1. I can open any file
in the root
directory simply using its file name; Joe.dat, for example, and I can opendir
for any
subdirectory; eg
On Sat, Mar 7, 2009 at 10:35 PM, Richard Lynch c...@l-i-e.com wrote:
I'm interfacing PHP with an Asterisk server, and would like to pipe
audio into PHP, through sox, and back out, in real-time, thus with
*minimal* overhead in PHP.
Any suggestions on what would be the best architecture?
not
On Sun, Mar 08, 2009 at 03:03:33PM +1100, Naz wrote:
Generally, the approach I take is as follows:
$errors = array();
if (empty($_POST['name']))
array_push($errors, 'A name was not entered.');
if (empty($_POST['address']))
array_push($errors, 'An address was no supplied.');
if
On Sat, Mar 07, 2009 at 05:12:28PM -0500, Eric Butera wrote:
On Sat, Mar 7, 2009 at 5:07 PM, Paul M Foster pa...@quillandmouse.com wrote:
On Sat, Mar 07, 2009 at 12:34:40PM -0500, Eric Butera wrote:
snip
PDO. :) Anything else is a waste of cpu cycles.
I've looked into PDO,
( Sorry Eric - forgot to change the email address again :( )
Eric Butera wrote:
On Sat, Mar 7, 2009 at 8:04 AM, Michael A. Peters mpet...@mac.com wrote:
In some earlier thread (I really don't want to dig to find it) I argued for
running mysql_real_escape_string right on the _POST
I must
66 matches
Mail list logo