Hi
Thank you for your reply.
My regexp was
/^([a-zA-Z]{3,}|[\W])/
Meaning match any string that is either
3 letters
or
1 word character
I'd like to change this to
3 letters
or
1 currency character
So I changed the regexp accordingly
/^([a-zA-Z]{3,}|[\p{Sc}])/u
And I tested with £
but it f
Hi,
Saturday, November 5, 2005, 11:30:29 PM, you wrote:
>> Start now and we'll check in on your progress in a years time :)
> You're joking, but I might actually do it. I was thinking about such
> forum before. It could be useful for many purposes.
It would be *extremely* useful, but I imagine
Andy,
you might want to check out
http://www.regular-expressions.info/unicode.html
Please note two things while using the described syntax:
1. You have to additionally use the u modificator.
2. While \p{Ll} for instance works in PHP, \p{Lowercase_Letter} doesn't.
Regards,
Niels
> Hi List
>
>
> in my index page, I firstly inlcude_once a A.php file, where i defined an
> array, secondly I include another .php file named B.php, where I want to use
> the array, I have claimed it as global type, but it seems I can't retrieve
> any value from the array.
When you include a PHP file, it will b
Leonard Burton wrote:
[[tag with db query]]
colnamecolnamecolname
%var1%%var2%%var3%
[[/tag with db query]]
I would like it to be able to parse the line with the %var1% (which is
the column name with % or some other indicator on each side) in it and
then have it generate how many ever rows as
Richard Davey wrote:
> php.net does not exist in any one location.
It's an interesting perspective. Thanks for an insightful reply.
> Start now and we'll check in on your progress in a years time :)
You're joking, but I might actually do it. I was thinking about such
forum before. It could be
On 11/5/05, Andy Pieters <[EMAIL PROTECTED]> wrote:
>
> I am doing some data validation and the following regexp fails
> [\W]
> When using characters like £ or €
> The script is encoded in UTF-8
Are you using the 'u' modifier to put PCRE in utf-8 mode?
preg_match( '/\W/u', $text);
-robin
Hi All,
On 11/5/05, Robert Cummings <[EMAIL PROTECTED]> wrote:
> On Sat, 2005-11-05 at 14:55, James Benson wrote:
> > Give smarty a try rather than re-inventing the wheel
> >
> > http://smarty.php.net
Reinventing the wheel is much better than either the LGPL or GPL.
Writing GPL or LGPL code on PH
HI All,
I use gmail and find it to deal with the threading quite nicely. And
as Richie suggests I can set the filter up very easily.
I think using gmail is much better than a forum but then again, if
someone were to come up with a solution to where a distributed fourm
could be created and have i
> I cant see this being an issue with PHP because it would do that for
> every function, have you tried using a different function, something
> simple say,
I've been trying it in various ways - for the simplest functions, it takes
hundreds of request to appear, for the more involved things whic
I now can get the php.ini file and use bbedit to edit it. I also have a
disk image for wwwroot and can see the files (on my Mac system at
NETWORK/MSHOME). These files are saved on the windows harddrive
How do I now configure so I can run the php files from Dreamweaver??
Ross
""Ross"" <[EMAIL P
Robert Cummings wrote:
On Sat, 2005-11-05 at 15:25, James Benson wrote:
Robert Cummings wrote:
On Sat, 2005-11-05 at 14:55, James Benson wrote:
Give smarty a try rather than re-inventing the wheel
http://smarty.php.net
What's wrong with re-inventing the wheel? I guess your car or bik
I'm afraid I'm going to have to agree with Rob Cummings on this one.
I have a comment and suggestion:
"Comment":
There is far too much 'spam' about a long-dealt with issue which keeps
flying around, clogging up mailing lists. It can sometime happens when
people either feel they need to have the
I now have a link wwwroot on the desktop how do I make it a 'document root'
so I can run php files that are in it??
""Ross"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello,
>
> I have a setup question for php for mac.
>
> I have shared my windows folder 'wwwroot' across th
On Sat, 2005-11-05 at 16:04, GamblerZG wrote:
> It is the main reason I think there are many other people
> who would also like to have web conference. Instead of «subscribe, post,
> wait
And how many of these "many" other people in your guesstimate have come
forward to support your notion?
Per
On Sat, 2005-11-05 at 15:24, GamblerZG wrote:
> Assuming something is not a logical fallacy, just like inability to use
> inductive logic is not a virtue, but rather an extreme case of sophism
> (I mean the original sophism, which was a name for a certain philosophy).
>
> > Well, it IS extra wo
Hi List
I am doing some data validation and the following regexp fails
[\W]
When using characters like £ or €
Obviously because they are technically more then one character, even though
they are only displayed as one.
The script is encoded in UTF-8
Anybody know a fix for this?
With kind reg
On Sat, 2005-11-05 at 15:25, James Benson wrote:
> Robert Cummings wrote:
> > On Sat, 2005-11-05 at 14:55, James Benson wrote:
> >
> >>Give smarty a try rather than re-inventing the wheel
> >>
> >>http://smarty.php.net
> >
> >
> > What's wrong with re-inventing the wheel? I guess your car or bik
Lester Caine wrote:
GamblerZG wrote:
I do not see anything horrible in my message. It's not like I'm
_demanding_ something, or suggesting to tear down mailing lists.
Neither did I suggest that mailing lists suck. In case of
php.internals they totally make sense. But I _do_ think that forum
e
Lester Caine wrote:
> Forums
> are even more restrictive than newsgroups so I don't see that they add
> anything that is not currently available, and this list has considerably
> less traffic than some of the others I am a moderator on ;)
--
PHP General Mailing List (http://www.php.net/)
To unsub
Robert Cummings wrote:
On Sat, 2005-11-05 at 14:55, James Benson wrote:
Give smarty a try rather than re-inventing the wheel
http://smarty.php.net
What's wrong with re-inventing the wheel? I guess your car or bike has
wooden wheels eh!? I mean if nobody had re-invented the wheel from the
wo
Assuming something is not a logical fallacy, just like inability to use
inductive logic is not a virtue, but rather an extreme case of sophism
(I mean the original sophism, which was a name for a certain philosophy).
> Well, it IS extra work.
If nobody needs forums, than the notion of the fact
I have shared my windows folder 'wwwroot' across the network but
when I
preview my .php file it connot find it because the specified php
folder on
the mac is http://127.0.0.1/~myname/Sites
Actually the folder is ~myname/Sites but the URL should just be
http://127.0.0.1/~myname You should n
On Sat, 2005-11-05 at 14:55, James Benson wrote:
> Give smarty a try rather than re-inventing the wheel
>
> http://smarty.php.net
What's wrong with re-inventing the wheel? I guess your car or bike has
wooden wheels eh!? I mean if nobody had re-invented the wheel from the
wooden version, that's all
Give smarty a try rather than re-inventing the wheel
http://smarty.php.net
James
Leonard Burton wrote:
Greetings,
HI All, I hope all is well.
I have set up a template parser. Basically, it parses the template
and finds tags with tag_name.dat file and then includes the
tag_name.dat fil
I cant see this being an issue with PHP because it would do that for
every function, have you tried using a different function, something
simple say,
function echo_this($param)
{
echo "$param";
}
Try that like your mquery function in both files and see what happens,
could be your s
Perhaps you could get inspirations and tips from:
http://pear.php.net/search.php?q=template&in=packages
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 5 Nov 2005, at 19:37, Ross wrote:
Hello,
I have a setup question for php for mac.
I have shared my windows folder 'wwwroot' across the network but
when I
preview my .php file it connot find it because the specified php
folder on
the mac is http://127.0.0.1/~myname/Sites
I suppose I h
Hello,
I have a setup question for php for mac.
I have shared my windows folder 'wwwroot' across the network but when I
preview my .php file it connot find it because the specified php folder on
the mac is http://127.0.0.1/~myname/Sites
I suppose I have to change the php.ini to include the net
GamblerZG wrote:
I do not see anything horrible in my message. It's not like I'm
_demanding_ something, or suggesting to tear down mailing lists. Neither
did I suggest that mailing lists suck. In case of php.internals they
totally make sense. But I _do_ think that forum efficient in case of
h
Greetings,
HI All, I hope all is well.
I have set up a template parser. Basically, it parses the template
and finds tags with tag_name.dat file and then includes the
tag_name.dat file. I have considered a few other options but as of
now I think I like what I have come up with.
The only problem
> It would also be helpful to see the mquery() script - maybe someone else
> may know more then!
Well, mquery is simply "mysql_query($query);", in the stipped-down version
I've had to resort to for testing. Basically, does nothing, since even
mysql_connect that USED to be at the start of func.
On Saturday 05 November 2005 08:58, the author Unknown Unknown contributed to
the dialogue on-
Re: [PHP] PGP 5 start up issue:
>On 11/5/05, Unknown Unknown <[EMAIL PROTECTED]> wrote:
>> On 11/4/05, Vizion <[EMAIL PROTECTED]> wrote:
>> > php 5 on windows xp with apache 2 and mysql 5.
>> >
>> >
Ok fair enough, I see your problem now, cant say ive had this and been
using 4.4.1 since the day it came out (compiled my own on debian
though), maybe you should try calling that function from the second file
but without actually defining the function for that file to see whether
you can access
Hi,
Saturday, November 5, 2005, 3:09:01 AM, you wrote:
> AFAIK, there are no "official" forums for PHP. Considering the fact
> that PHP is a web development tool, such distaste for message boards
> is ironic at the least. So why exactly there aren't any forums on
> php.net?
How about some good l
On Saturday 05 November 2005 17:49, James Benson wrote:
> > I've had a different set of scripts employing a different "func.php".
> > However, in both of those, mquery() is defined. But
> > they do *not* include anything else, and the
> So you defined mquery() in both files and one include's or re
On 11/5/05, Unknown Unknown <[EMAIL PROTECTED]> wrote:
>
>
>
> On 11/4/05, Vizion <[EMAIL PROTECTED]> wrote:
> >
> > php 5 on windows xp with apache 2 and mysql 5.
> >
> > Php start up unable to load dynamic library:
> > E:\php\ext\php_bz2.dll with error 'The specified module could not be
> > found
On 11/4/05, Vizion <[EMAIL PROTECTED]> wrote:
>
> php 5 on windows xp with apache 2 and mysql 5.
>
> Php start up unable to load dynamic library:
> E:\php\ext\php_bz2.dll with error 'The specified module could not be
> found'
> same for and php_yaz.dll
> I have php5ts.dll in both E:\php\ and E:\php
why not
extract($_POST);
and use your old code or somthing like that,
same thing really if code don't work
Max Belushkin wrote:
Try using require_once or include_once
Well, here's all the fun starting. This is relatively long, but please bear
with me.
First of all, yes, I did include_once, require_once, even resorted to "if (!
$inc_done) include_once("func.php")", and setting $inc_done in func.p
Forums and mailinglists like this are about the same. Forums has image
content though while mailing lists just have text content. You get the same
replies as you would with the other so be happy that they at least have this
mailing list and don't just say "Here is PHP and have fun learning it
w
> Try using require_once or include_once
Well, here's all the fun starting. This is relatively long, but please bear
with me.
First of all, yes, I did include_once, require_once, even resorted to "if (!
$inc_done) include_once("func.php")", and setting $inc_done in func.php.
No-go, was still gett
> One of the fallacies in your argument is that the lack of an
official
> forum on php.net implies "such distaste for message boards". I don't
> have a big screen TV but I have anything but distaste for them!
Well, let me give you a different example. I don't have a TV at
all, even though I c
Funny. I _ditched_ forums in order to sign onto this list. It's way too
much of an effort for me to log in to a website every time. Lists work
with quiet efficiency (not efficacy, I suppose) in the background
without needing me to refresh the page every 5 minutes.
My $0.2.
Pranav
www.concept-
It's simply a matter of echoing HTML/ JS statements in PHP. The easiest
way to integrate JS into a PHP page is like this -
")
// CONTINUE PHP CODE HERE
?>
All your JS code is to be put into the functions.js file. Watch for the
correct relative path.
You could also use this method -
Since when is a forum more efficent than this newsgroup, forums tend to
be more images/content and require more maintainance, this newsgroup is
perfect for me and many other people I imagine.
GamblerZG wrote:
AFAIK, there are no "official" forums for PHP. Considering the fact that
PHP is
Try using require_once or include_once
Max Belushkin wrote:
Hi list,
after upgrading to PHP 4.4.1, I'm having the following problem: Apache is
running in prefork mode. index.php includes func.php, which defines some
functions and connects to MySQL. For a while (1-2 requests) everything
Some companies charge for support and still make money from their open
source projects!
bruce wrote:
Hi,
Just a quick question. Had a conversation with a person who works for a
non-profit, and she was describing some of her dealings with obtaining
grants for the development of 'open source'
Try reading the PHP manual, people put in lots of effort for newcomers
to learn the PHP language.
http://php.net/array
To access a single array value:-
$myArray = array('email' => '[EMAIL PROTECTED]');
echo $myArray['email'];
Above would display:- [EMAIL PROTECTED]
James
shining wr
On 11/5/05, Paul Waring <[EMAIL PROTECTED]> wrote:
> On Sat, Nov 05, 2005 at 01:23:01PM +0200, Dotan Cohen wrote:
> > How can I shorten it to something like this:
> > > print $number." ".$number+2."\n";
> > ?>
>
> Try:
>
> print $number . ' ' . ($number + 2) . "\n";
> ?>
>
> I think putti
On Sat, Nov 05, 2005 at 01:23:01PM +0200, Dotan Cohen wrote:
> How can I shorten it to something like this:
> print $number." ".$number+2."\n";
> ?>
Try:
I think putting the $number + 2 in brackets will cause PHP to evaluate
that part of the expression before printing it.
Paul
--
Rogue Tory
I have a number that I need to display, and itself plus 2:
//
23 25
//
How can I shorten it to something like this:
Obviously, the above code doesn't do what I want, but I think that it
describes what I need! Thanks in advance.
Dotan Cohen
http://song-lirics.com/sl/artist/498/violent-femmes-li
John Taylor-Johnston wrote:
How do I rebuild this peice of code to be register_globals=off friendly?
Just when I thought I was getting good. This keeps up, I'm changing back
the php.ini myself.
John
If your code absolutley needs register_globals and you don't have the
time to rewrite it,
Hi,
I am php beginner, I have a question:
in my index page, I firstly inlcude_once a A.php file, where i defined an
array, secondly I include another .php file named B.php, where I want to use
the array, I have claimed it as global type, but it seems I can't retrieve
any value from the array.
So I
On 5 Nov 2005, at 00:25, Unknown Unknown wrote:
how do you reference the sessions? do you refrence them *with* the
old arrays? because that would obviously be a problem
No, obviously that would be dumb! There is no mention of the old
style HTTP_*_VARS arrays anywhere in my code. Smarty does
Hi
I am Software Engineer in hyderabad . if possible i
need some help in PHP.
we are developing one applet that will upload the
files/folders upto 2gb . the applet will send the file
in bytes stream via http . At server side the PHP has
to receive the file bytes stream and as to write the
file i
56 matches
Mail list logo