PHP List,
This regular expression stuff is way tricky.
Thanks to help from this list, I have an expression that will select the
first word of a string, up to the first white space:
#^(.*)\s#iU
But after some consideration, I realized that I wanted to keep both
parts of the original text.
On Wed, 2006-08-09 at 15:30 +0900, Dave M G wrote:
PHP List,
This regular expression stuff is way tricky.
Thanks to help from this list, I have an expression that will select the
first word of a string, up to the first white space:
#^(.*)\s#iU
But after some consideration, I realized
On Wed, 2006-08-09 at 02:57 -0400, Robert Cummings wrote:
On Wed, 2006-08-09 at 15:30 +0900, Dave M G wrote:
PHP List,
This regular expression stuff is way tricky.
Thanks to help from this list, I have an expression that will select the
first word of a string, up to the first white
On Tue, 08 Aug 2006 17:01:13 +0200, Arno Kuhl wrote:
Is there anything in your error log that says why it failed? (whatever
error_log points to in php.ini, or maybe what ErrorLog points to in
httpd.conf)
Arno
Hi Arno, thanks for your reply.
However, the PHP-cli binary doesn't use the
On Tue, 08 Aug 2006 17:07:29 +0200, Ivo F.A.C. Fokkema wrote:
On Tue, 08 Aug 2006 10:01:41 -0500, Ray Hauge wrote:
On Tuesday 08 August 2006 09:01, Ivo F.A.C. Fokkema wrote:
On Tue, 08 Aug 2006 09:01:42 -0500, Ray Hauge wrote:
On Tuesday 08 August 2006 08:47, Ivo F.A.C. Fokkema wrote:
Robert,
Thank you for your quick response and helpful advice.
Use preg_match() and pay special attention to the manual as it refers to
the third parameter :) The expression you need follows:
#^([^\\s]*)\\s(.*)$#U
This works perfectly.
I now see that the preg_match() function returns an
Hi,
How do I add so that it checks for a comma , in this preg_match. I think the
documentation is not that good for the pref_match:
preg_match('/^[a-z0-9-_\'() +]*$/i', $s);
/Peter
On 09/08/06, Peter Lauri [EMAIL PROTECTED] wrote:
Hi,
How do I add so that it checks for a comma , in this preg_match. I think
the
documentation is not that good for the pref_match:
preg_match('/^[a-z0-9-_\'() +]*$/i', $s);
Check for a comma inside a range - use a comma!
--
Ivo F.A.C. Fokkema wrote:
SO: Loading the GTK library in your /etc/php4/cli/php.ini, KILLS the
PHP-cli functionality from cron. On Ubuntu Dapper, that is. Not sure about
other distros.
Thanks guys, for all of your suggestions!
Ahh it probably *needs* an X Server to work properly. I'll bet if
Peter Lauri wrote:
Hi,
How do I add so that it checks for a comma , in this preg_match. I think the
documentation is not that good for the pref_match:
it's a lot better than you spelling of preg_match. the subject of regexps is
very
complex, the documentation reflects that - but to
Hello,
I have a site that was coded a while ago. I was just told that the admin
side no longer works. I looked and the host recently put php 4.4.2 on the
site. I have tried a few things but nothing seems to work. The problem is
once you log in the admin page always kicks you back, doesn't
blackwater dev wrote:
Hello,
I have a site that was coded a while ago. I was just told that the admin
side no longer works. I looked and the host recently put php 4.4.2 on the
site. I have tried a few things but nothing seems to work. The problem is
once you log in the admin page always
Hello all!
This is a bit difficult to explain.
On a site I am building I sometimes use the GET method to forward values to
the next page. There are certain pages that you need to be logged in to to
be able to see data. So you arrive at the page, you realize that you are not
logged in, so you
Hi to all.
Have a web site on server where magic quote is turned On. Because of
problems with quotes within forms, I was thinking to turn it Off. I wonder
how much work I'll have to change code to accept new setting? Are we
talking about major changes or something that could be done in day or two
At 10:27 AM +1000 8/9/06, Ligaya Turmelle wrote:
jonathan wrote:
i was having a conversation and was wondering where in the source
code for php is the process for writing get'd and post'd data to
their corresponding arrays? Also, is there a way to view the source
code online?
thanks,
At the mometn I have this
function display_result($module_no) {
if ($module_no != ) {
$module_no =unserialize ($module_no);
foreach ($module_no as $number = $data) {
$count=$count+1;?
Q.?=$count; ?- span style=font-weight:bold?=$data;?/spanBR /
?
}
}
which outputs all the data in the
Sorry if you are getting this multiple times, email is acting a bit screwy.
Nope. still doesn't work. Sessions just aren't saved.
On 8/9/06, Jochem Maas [EMAIL PROTECTED] wrote:
blackwater dev wrote:
Hello,
I have a site that was coded a while ago. I was just told that the
admin
side
When u know the user is not logged in and you have to redirect him to
login page, get all variables that are in $_GET and in $_POST (if u have
data that u send in post also) and form a string with them as a return
context string like:
The code that you have to put in the page where you
Ross wrote:
At the mometn I have this
function display_result($module_no) {
$count = 0; //Of course you *should* initialize $count
$start = 1;
$end = 3;
if ($module_no != ) {
$module_no =unserialize ($module_no);
foreach ($module_no as $number = $data) {
$count=$count+1;
I think I solved the problem.
I've set the action of the login form to $_SERVER['REQUEST_URI'] instead of
$_SERVER['PHP_SELF']. It works fine.
May not be the proper way but hey ...
Sjef
Andrei [EMAIL PROTECTED] schreef in bericht
news:[EMAIL PROTECTED]
When u know the user is not logged in
It doesn't matter if I just surf to the page and they do seem to get the
same phpsessionid..interestingly enough the first three cars are 'BAD'. Not
sure if the path is writable through.
On 8/9/06, Jochem Maas [EMAIL PROTECTED] wrote:
blackwater dev wrote:
Sorry if you are getting this
On Wed, 2006-08-09 at 19:07 +0900, Dave M G wrote:
Robert,
Thank you for your quick response and helpful advice.
Use preg_match() and pay special attention to the manual as it refers to
the third parameter :) The expression you need follows:
#^([^\\s]*)\\s(.*)$#U
This works
On Aug 8, 2006, at 11:30 PM, Dave M G wrote:
PHP List,
This regular expression stuff is way tricky.
Thanks to help from this list, I have an expression that will
select the first word of a string, up to the first white space:
#^(.*)\s#iU
But after some consideration, I realized that I
? phpinfo(); ?PROMISE? phpinfo(); ?TO? phpinfo(); ?STOP? phpinfo();
?BREAKING? phpinfo(); ?IN? phpinfo();
?AND? phpinfo(); ?OUT? phpinfo(); ?OF? phpinfo(); ?PHP? phpinfo();
?TO? phpinfo(); ?OUTPUT? phpinfo();
?STRINGS? phpinfo(); ?TO? phpinfo(); ?THE? phpinfo(); ?BROWSER?
phpinfo();
On Wed, 2006-08-09 at 16:39 +0200, Jochem Maas wrote:
? phpinfo(); ?PROMISE? phpinfo(); ?TO? phpinfo(); ?STOP? phpinfo();
?BREAKING? phpinfo(); ?IN? phpinfo();
?AND? phpinfo(); ?OUT? phpinfo(); ?OF? phpinfo(); ?PHP? phpinfo();
?TO? phpinfo(); ?OUTPUT? phpinfo();
?STRINGS? phpinfo(); ?TO?
On Wed, 2006-08-09 at 08:11 -0700, Kevin Murphy wrote:
On Aug 8, 2006, at 11:30 PM, Dave M G wrote:
PHP List,
This regular expression stuff is way tricky.
Thanks to help from this list, I have an expression that will
select the first word of a string, up to the first white
PHP List,
In the last stage of my current script, I need to take a bunch of data
from the database and put it into a text file for the user to save to
their computer and import into an application.
The file being created is just a list of Japanese words and definitions
delineated by tabs.
This script is meant to download serialized data (array) from the db,
unserialize it and output it. It has stopped working (not outputing
anything).
I have been looking at it for an hour and cannot see why! It was working
earlier on - can you see the mistake?
?
global $submitted, $count,
Hello,
Generally (well, actually 100%) I just use whatever version of PHP is
included with a certain distro (Redhat pre-Fedora, Fedora Core, CentOS).
None of the versions I've used have come with PHP5 and I'd really like
to get with the times and use PHP5.
I know that Fedora Core 5 offers PHP
On Thu, 2006-08-10 at 01:20 +0900, Dave M G wrote:
PHP List,
In the last stage of my current script, I need to take a bunch of data
from the database and put it into a text file for the user to save to
their computer and import into an application.
The file being created is just a list
On Wed, 9 Aug 2006, Chris W. Parker wrote:
Hello,
Generally (well, actually 100%) I just use whatever version of PHP is
included with a certain distro (Redhat pre-Fedora, Fedora Core, CentOS).
None of the versions I've used have come with PHP5 and I'd really like
to get with the times and use
On Wednesday 09 August 2006 11:20, Dave M G wrote:
PHP List,
In the last stage of my current script, I need to take a bunch of data
from the database and put it into a text file for the user to save to
their computer and import into an application.
The file being created is just a list of
On Wednesday 09 August 2006 12:03, Jonathan Duncan wrote:
On Wed, 9 Aug 2006, Chris W. Parker wrote:
Hello,
Generally (well, actually 100%) I just use whatever version of PHP is
included with a certain distro (Redhat pre-Fedora, Fedora Core, CentOS).
None of the versions I've used have
Chris W. Parker wrote:
Hello,
Generally (well, actually 100%) I just use whatever version of PHP is
included with a certain distro (Redhat pre-Fedora, Fedora Core, CentOS).
None of the versions I've used have come with PHP5 and I'd really like
to get with the times and use PHP5.
I know that
Hi all:
I've been trying to create a multidimensional array with n depth in php.
Tried to use a recursive function passing array references by pointers but
seems like it's not possible or I still don't understand this subject
enough. Finally managed to get it going using the eval function. The
On Wednesday 09 August 2006 12:02, Chris W. Parker wrote:
I know that Fedora Core 5 offers PHP 5.1.2 but I've heard some
negative things about it in general (FC5).
What sort of negative things have you heard in general about (FC5)?
--
Jack Gates http://www.morningstarcom.net/
--
PHP General
Chris W. Parker wrote:
Hello,
Generally (well, actually 100%) I just use whatever version of PHP is
included with a certain distro (Redhat pre-Fedora, Fedora Core, CentOS).
None of the versions I've used have come with PHP5 and I'd really like
to get with the times and use PHP5.
I know
Gunter Sammet wrote:
Hi all:
I've been trying to create a multidimensional array with n depth in php.
Tried to use a recursive function passing array references by pointers but
seems like it's not possible or I still don't understand this subject
enough. Finally managed to get it going
Is it appropriate to post jobs on this list? I have many PHP Developer
positions available.
Brent Meshier
Director IT Operations
Global Transport Logistics
Garcia Co Fulfillment
http://www.garcia-co.com/
(877) 257-SHIP ext 23
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
MST Group, a rapidly growing marketing services firm located on the
northwest side of Indianapolis, is seeking an innovative and hard-working
person to become a key player on our talented and successful team. MST Group
is a leader in providing our world class Business-To-Business clients with
lead
Jochem Maas mailto:[EMAIL PROTECTED]
on Wednesday, August 09, 2006 11:05 AM said:
[snip useful stuff]
1. you can skip 'make test'
2. if in doubt do 'make clean' before 'make'
3. rinse and repeat 'configure', 'make', 'make install' as required
4. do './configure --help' to see all the
[snip] Is it appropriate to post jobs on this list? I have many PHP
Developer positions available.
[/snip]
Sure, or a link
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
My brain is really fried right now and I'm sure someone has a more indepth
answer/opinion on this subject, but it occurs to me that you can get away from
using eval() if you do some kind of recursive function using:
$temp[] = array($arrval1, $arrval2,...);
and $arrval1 could ==
My previous post said the script stopped working but it actually only fails
on the remote host, it works fine on localhost
Does unserialize() only work after a certain version of php?
The phpinfo() is here...
http://legalservicestraining.co.uk/test/info.php
--
PHP General Mailing List
Jay Blanchard wrote:
[snip] Is it appropriate to post jobs on this list? I have many PHP
Developer positions available.
[/snip]
Sure, or a link
not that Jay's up for doing any work anymore - he's a director these days ;-)
--
PHP General Mailing List (http://www.php.net/)
To
Jochem Maas wrote:
Jay Blanchard wrote:
[snip] Is it appropriate to post jobs on this list? I have many PHP
Developer positions available.
[/snip]
Sure, or a link
not that Jay's up for doing any work anymore - he's a director these days ;-)
Ah, so that's where Microsoft cronies go to
Ross wrote:
My previous post said the script stopped working but it actually only fails
on the remote host, it works fine on localhost
stopped working heh? is it plugged in? did a homeless guy move in next to
power unit and accidently unseat the IDE cable? did you p*** of your sys admin?
if
Brent Meshier wrote:
snip
Qualified candidates should e-mail their resume (Word, PDF, or Plain text
preferred) to [EMAIL PROTECTED]
Where should non-qualified candidates e-mail their resume?
--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
Jack Gates mailto:[EMAIL PROTECTED]
on Wednesday, August 09, 2006 10:16 AM said:
On Wednesday 09 August 2006 12:02, Chris W. Parker wrote:
I know that Fedora Core 5 offers PHP 5.1.2 but I've heard some
negative things about it in general (FC5).
What sort of negative things have you
[snip]
Brent Meshier wrote:
snip
Qualified candidates should e-mail their resume (Word, PDF, or Plain
text
preferred) to [EMAIL PROTECTED]
Where should non-qualified candidates e-mail their resume?
[/snip]
To me.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Wed, 2006-08-09 at 14:45 -0400, John Nichel wrote:
Brent Meshier wrote:
snip
Qualified candidates should e-mail their resume (Word, PDF, or Plain text
preferred) to [EMAIL PROTECTED]
Where should non-qualified candidates e-mail their resume?
Isn't it obvious??
[EMAIL
On Wed, 2006-08-09 at 14:27 -0500, Jay Blanchard wrote:
[snip]
Brent Meshier wrote:
snip
Qualified candidates should e-mail their resume (Word, PDF, or Plain
text
preferred) to [EMAIL PROTECTED]
Where should non-qualified candidates e-mail their resume?
[/snip]
To me.
Hahah,
Jay Blanchard wrote:
[snip]
Brent Meshier wrote:
snip
Qualified candidates should e-mail their resume (Word, PDF, or Plain
text
preferred) to [EMAIL PROTECTED]
Where should non-qualified candidates e-mail their resume?
[/snip]
To me.
Silly me.
--
John C. Nichel IV
Programmer/System
On Wed, 2006-08-09 at 14:14 -0400, [EMAIL PROTECTED] wrote:
My brain is really fried right now and I'm sure someone has a more indepth
answer/opinion on this subject, but it occurs to me that you can get away
from using eval() if you do some kind of recursive function using:
$temp[] =
[snip]
Qualified candidates should e-mail their resume (Word, PDF, or Plain
text
preferred) to [EMAIL PROTECTED]
Where should non-qualified candidates e-mail their resume?
[/snip]
To me.
Hahah, your post arrived before mine.
[/snip]
What is scary is that we are all on the same
[snip]
Sure, or a link
not that Jay's up for doing any work anymore - he's a director these
days ;-)
Ah, so that's where Microsoft cronies go to die. :-p
[/snip]
Yep...they make them management.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Jay Blanchard wrote:
[snip]
Sure, or a link
not that Jay's up for doing any work anymore - he's a director these
days ;-)
Ah, so that's where Microsoft cronies go to die. :-p
[/snip]
Yep...they make them management.
Sorry to hear about your demotion.
--
John C. Nichel IV
So,
When I echo out the results from the db I get the serialized data but when I
try and pass the serialized data to the function to unserialize the output
it doesn't work - no output what-so-ever. Also when the serialized data is
sent to the function and then echoed out before it is
Hi,
Recently, a client of mine was getting a ton of spam email from a site
called hotbox.com. I updated her form to one with more spam security,
but she is still receiving junk email.
Anyone feel like sharing code snippets that will help beef-up spam
protection for a contact script?
Do
Ross wrote:
So,
When I echo out the results from the db I get the serialized data but when I
try and pass the serialized data to the function to unserialize the output
it doesn't work - no output what-so-ever. Also when the serialized data is
sent to the function and then echoed out
On Wed, 2006-08-09 at 21:06 +0100, Ross wrote:
So,
When I echo out the results from the db I get the serialized data but when I
try and pass the serialized data to the function to unserialize the output
it doesn't work - no output what-so-ever. Also when the serialized data is
sent to
Chris W. Parker wrote:
Hello,
Generally (well, actually 100%) I just use whatever version of PHP is
included with a certain distro (Redhat pre-Fedora, Fedora Core, CentOS).
For my work, I build PHP 5.1.2 for CentOS 4.3. I'd be happy to share the
SRC or the built RPMs with you if that saves
On Wed, 9 Aug 2006, Chris W. Parker wrote:
Jack Gates mailto:[EMAIL PROTECTED]
on Wednesday, August 09, 2006 10:16 AM said:
On Wednesday 09 August 2006 12:02, Chris W. Parker wrote:
I know that Fedora Core 5 offers PHP 5.1.2 but I've heard some
negative things about it in general (FC5).
Jonathan Duncan wrote:
On Wed, 9 Aug 2006, Chris W. Parker wrote:
Jack Gates mailto:[EMAIL PROTECTED]
on Wednesday, August 09, 2006 10:16 AM said:
On Wednesday 09 August 2006 12:02, Chris W. Parker wrote:
I know that Fedora Core 5 offers PHP 5.1.2 but I've heard some
negative things
Here is a thought that a couple of us have shared off-list; why don't we
list denizens plan a get together? A face-to-face with the good, the bad
and the ugly. A mano y' mano curly brace holy war. Beers and meat. The
whole 9.2 Mb's.
So, what say you? Shall we start a more formal process? Set a
On Wed, August 9, 2006 6:26 pm, Jay Blanchard wrote:
Here is a thought that a couple of us have shared off-list; why don't
we
list denizens plan a get together? A face-to-face with the good, the
bad
and the ugly. A mano y' mano curly brace holy war. Beers and meat. The
whole 9.2 Mb's.
So,
On Wednesday 09 August 2006 19:24, Jochem Maas wrote:
Jonathan Duncan wrote:
On Wed, 9 Aug 2006, Chris W. Parker wrote:
Jack Gates mailto:[EMAIL PROTECTED]
on Wednesday, August 09, 2006 10:16 AM said:
On Wednesday 09 August 2006 12:02, Chris W. Parker wrote:
I know that Fedora Core
Jonathan Duncan mailto:[EMAIL PROTECTED]
on Wednesday, August 09, 2006 3:55 PM said:
If you want to really learn Linux, try Gentoo. If you just want a
very good and easy to use Linux, go with SuSE.
To keep this related to the question I asked...
Do either of the latest builds of these
tedd wrote:
At 10:27 AM +1000 8/9/06, Ligaya Turmelle wrote:
jonathan wrote:
i was having a conversation and was wondering where in the source
code for php is the process for writing get'd and post'd data to
their corresponding arrays? Also, is there a way to view the source
code online?
[snip]
Isn't that what the conferences are for???
I'm happy to host a small get-together in Chicago...
I'll throw in a couple kegs of beer and some munchies at Uncommon
Ground where I work. :-)
http://uncommonground.com/
[/snip]
Yes, but not everyone can get to or goes to conferences. And this
On Wed, 2006-08-09 at 18:54 -0500, Jay Blanchard wrote:
[snip]
Isn't that what the conferences are for???
I'm happy to host a small get-together in Chicago...
I'll throw in a couple kegs of beer and some munchies at Uncommon
Ground where I work. :-)
http://uncommonground.com/
[/snip]
[snip]
[snip]
Isn't that what the conferences are for???
I'm happy to host a small get-together in Chicago...
I'll throw in a couple kegs of beer and some munchies at Uncommon
Ground where I work. :-)
http://uncommonground.com/
[/snip]
Yes, but not everyone can get to or goes to
On Wed, August 9, 2006 3:17 pm, Micky Hulse wrote:
Recently, a client of mine was getting a ton of spam email from a site
called hotbox.com. I updated her form to one with more spam security,
but she is still receiving junk email.
If you are not already, PLEASE make sure that any headers you
[EMAIL PROTECTED] wrote:
Hi to all.
Have a web site on server where magic quote is turned On. Because of
problems with quotes within forms, I was thinking to turn it Off. I wonder
how much work I'll have to change code to accept new setting? Are we
talking about major changes or something that
Quick note to Kevin Waterson:
Hehe, I think all this talk about spam sent my response to your reply
into your spam filter... I got a bounce back. Thanks for help though...
let me know if there is any way I can re-send the email without a
bounce-back.
Richard Lynch wrote:
If you are not
On Wed, August 9, 2006 3:06 pm, Ross wrote:
When I echo out the results from the db I get the serialized data but
when I
try and pass the serialized data to the function to unserialize the
output
it doesn't work - no output what-so-ever. Also when the serialized
data is
sent to the function
Micky Hulse wrote:
Recently, a client of mine was getting a ton of spam email from a site
called hotbox.com. I updated her form to one with more spam security,
but she is still receiving junk email.
Hi all, thanks for the great responses (on/off list). I just realized
that the spammer is not
try to use this few lines of code.
function stripMagicQuotes($var)
{
if (get_magic_quotes_gpc()) {
$var= stripslashes($var);
}
return $var;
}
this way you don't really have to worry if magic quotes is on or off.
**
On 8/10/06, Chris [EMAIL PROTECTED] wrote:
[EMAIL
On Wed, August 9, 2006 11:20 am, Dave M G wrote:
How do I create a file that the user saves, and is not stored on the
server?
http://richadlynch.blogger.com
--
Like Music?
http://l-i-e.com/artists.htm
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Robert, Ray, Richard,
Thank you all for responding with helpful advice.
Robert said:
It's all about the headers...
header( Content-type: text/csv );
header( Content-disposition: inline; filename=$filename );
Ah... that's something I think I never would have figured out with
Micky Hulse wrote:
I just commented-out all of the PHP in the old script and added one
line: die(#%$#@ off!);
Actually... is there anything more I can do at this point to fight back?
Can I use something better than die()? Or, is it best just to let them
figure it out and go away?
--
PHP
J R wrote:
try to use this few lines of code.
function stripMagicQuotes($var)
{
if (get_magic_quotes_gpc()) {
$var= stripslashes($var);
}
return $var;
}
this way you don't really have to worry if magic quotes is on or off.
Then he has to modify all the code to call that
Chris wrote:
J R wrote:
try to use this few lines of code.
function stripMagicQuotes($var)
{
if (get_magic_quotes_gpc()) {
$var= stripslashes($var);
}
return $var;
}
this way you don't really have to worry if magic quotes is on or off.
Then he has to modify all the code
Robert,
Thank you for responding.
The extra slashes are to properly escape the backslash character since
you are using double quotes
As I said you may want the following pattern in cases where no space
exists:
'#^([^\s]*)\s?(.*)$#'
Thank you for your detailed explanation. Especially
here's an improvement jwith recursion:
function stripMagicQuotes($var)
{
if (get_magic_quotes_gpc()) {
if(!is_array($var)) {
$var= stripslashes($var);
} else {
array_walk($var, stripMagicQuotes);
}
}
return $var;
}
hth,
john
On 8/10/06,
Chris wrote:
Chris wrote:
J R wrote:
try to use this few lines of code.
function stripMagicQuotes($var)
{
if (get_magic_quotes_gpc()) {
$var= stripslashes($var);
}
return $var;
}
this way you don't really have to worry if magic quotes is on or off.
Then he has to modify
On Wed, 2006-08-09 at 18:54 -0500, Jay Blanchard wrote:
Yes, but not everyone can get to or goes to conferences. And this would
stand on its own don'tcha think? I think that Chicago is perfect,
because it is centrally located (kinda') and a neat place to boot.
Kinda...Chicago is a bit of a
87 matches
Mail list logo