* Thus wrote tkwright ([EMAIL PROTECTED]):
Just warming the timer
This Is HTML
###
# Total Time: 0.000114 seconds #
# Start Time: 1069732578.575586 seconds #
# Ending Time: 1069732578.575700 seconds #
On Tue, 2003-11-25 at 00:42, Joffrey Leevy wrote:
Would appreciate in anyone can help me.
Let's say I do a query in php, eg. $query = select
shed from structure; With the mysql_fetch_array
function and a loop I could see all the values stored
in the column, shed, using the command: echo
On Mon, Nov 24, 2003 at 09:42:30PM -0800, Joffrey Leevy wrote:
:
: Would appreciate in anyone can help me.
Some more code would be helpful.
: Let's say I do a query in php, eg. $query = select
: shed from structure; With the mysql_fetch_array
: function and a loop I could see all the values
Hello
options some of which ray has suggested. Others
include soap or writing
out objects using the XMLEncoder class (1.4+) and
decoding them with a
parser in your php.
this is also a possible solution but the java system
that does the processing is already written and
tested, the
header(Content-type: application/vnd.ms-excel);
header(Content-Disposition: attachment; filename=report.xls);
- Forwarded by Larry Li/APPLIED MATERIALS on 11/25/2003 03:40 PM -
Phillip Jackson [EMAIL PROTECTED]
11/25/2003 02:30 PM
To: [EMAIL PROTECTED]
cc:
Dale Hersh wrote:
I know that in php there are a bunch of basic functions for opening a
connection to a printer and then handling the printer queue and so forth. I
would like to know how to take a string and echo that to the printer in php.
The printer functions only work under Windows. From
On Tue, 25 Nov 2003, Burhan Khalid wrote:
Dale Hersh wrote:
I know that in php there are a bunch of basic functions for opening a
connection to a printer and then handling the printer queue and so forth. I
would like to know how to take a string and echo that to the printer in php.
The
On Monday 24 November 2003 04:02, Nigel Jones wrote:
Not to offend anyone BUT
What the is DHTML and JS (and VB for that matter) meant to do, we can
use PHP instead who needs onLoad=Gimmethedampopups() - not me anyway i
http://www.kryogenix.org/code/browser/sorttable/ is a neat bit of JS
--- Phillip Jackson [EMAIL PROTECTED] wrote:
i have developed my own register globals function that mimics
the action of register globals, but only for $_POST... i do this
to ensure that all incoming communication is escaped for use in
scripts to account for, and to avoid, SQL injection.
So,
Phillip Jackson wrote:
function escape(){
while (list($key, $value) = each($_POST)) {
$value = trim(mysql_escape_string($value));
global $$key;
$$key = $value;
}
}
1. The function does not detect if magic_quotes_gpc are on, post vars
would be double escaped then.
2. $value might be an
great point about the array; to make the script more portable i will most
definitely detect magic quotes.
Marek Kilimajer [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Phillip Jackson wrote:
function escape(){
while (list($key, $value) = each($_POST)) {
$value =
Personally, I think this is a bad approach, regardless of how well it is
implemented. I think you will give yourself a false sense of security.
what, then, do you yourself do in such an application requiring a response
from the user to massage the data? reject all input that doesn't conform to
Hi there,
I have a RH Linux Web server running apache and PHP.
I recently changed the system clock, the time zone and hardware clock.
The time and date are showing up correctly in Webmin and in the O/S itself.
But when I call a php function to display the date and time it shows it as
one hour
Eugene Lee wrote:
Try using more variables to make life a little easier to parse:
$colname = $_FORM['form']
$query = select {$colname} from structure;
$result = mysql_query($query);
while (($row = mysql_fetch_array($result)) !== false)
{
Fernando Melo wrote:
Hi there,
I have a RH Linux Web server running apache and PHP.
I recently changed the system clock, the time zone and hardware clock.
The time and date are showing up correctly in Webmin and in
the O/S itself.
But when I call a php function to display the date and
Thanks to all, it help me a lot
manisha
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi
bit confused!
here's what I want to do:
get a numeric value from a MySQL table, do a calculation, then on another
PHPpage update the numeric value in the table.
what I don't want is anyone else getting the same number from the table
before I've updated it.
what PHP would you use to do
Tony Crockford wrote:
Hi
bit confused!
here's what I want to do:
get a numeric value from a MySQL table, do a calculation, then on
another PHPpage update the numeric value in the table.
what I don't want is anyone else getting the same number from the table
before I've updated it.
what PHP
On Tue, 25 Nov 2003 13:50:36 +0100, Marek Kilimajer
[EMAIL PROTECTED] wrote:
Tony Crockford wrote:
get a numeric value from a MySQL table, do a calculation, then on
another PHPpage update the numeric value in the table.
what I don't want is anyone else getting the same number from the table
[snip]
is there a way I can get a number and increment it all in one query
then?
[/snip]
UPDATE tblFoo SET value = (value+1) WHERE conditions
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On way to do it would be to create a table called flags and update the
value in that
psuedo code
update flags set locked =1
get value to calculate
otheruesrs would check the page
select locked from flags
if NOT locked then do query
on the update page
update table set calculation = result
update
Another idea would ne to use an application variable..
This is like a Session variable but is site wide
http://0x00.org/php/phpApplication/
regards
Pete
Tony Crockford wrote:
Hi
bit confused!
here's what I want to do:
get a numeric value from a MySQL table, do a calculation, then on
[snip]
is there a way I can get a number and increment it all in one query
then?
UPDATE tblFoo SET value = (value+1) WHERE conditions
[/snip]
OR (forgot the PHP part)
$sqlUpdate = UPDATE tblFoo SET value = (value + $variable) WHERE
conditions ;
if(!($dbUpdate = mysql_query($sqlUpdate,
On Tue, 25 Nov 2003 07:15:10 -0600, Jay Blanchard
[EMAIL PROTECTED] wrote:
[snip]
is there a way I can get a number and increment it all in one query
then?
[/snip]
UPDATE tblFoo SET value = (value+1) WHERE conditions
Hmm.. my bad - I get that bit, but can I do:
SELECT value WHERE conditions
UPDATE tblfoo SET value= (value+1) WHERE conditions
Tony Crockford wrote:
On Tue, 25 Nov 2003 07:15:10 -0600, Jay Blanchard
[EMAIL PROTECTED] wrote:
[snip]
is there a way I can get a number and increment it all in one query
then?
[/snip]
UPDATE tblFoo SET value = (value+1) WHERE conditions
[snip]
[snip]
is there a way I can get a number and increment it all in one query
then?
[/snip]
UPDATE tblFoo SET value = (value+1) WHERE conditions
Hmm.. my bad - I get that bit, but can I do:
SELECT value WHERE conditions UPDATE tblfoo SET value= (value+1)
[/snip]
Essentially that is
Hi php-fans... here's a simple question for you
I have this HTML page in WIN (Busqueda.htm)
the page contains a textfield (textfield3)
and a button (submit1)
which calls a php file Buscador.php in a Linux server (RED HAT 8)
well, my php file which doesn't read
anything when I write this
echo
[snip]
Hi php-fans... here's a simple question for you
I have this HTML page in WIN (Busqueda.htm)
the page contains a textfield (textfield3)
and a button (submit1)
which calls a php file Buscador.php in a Linux server (RED HAT 8)
well, my php file which doesn't read
anything when I write this
Carlos A. Rodriguez wrote:
Hi php-fans... here's a simple question for you
I have this HTML page in WIN (Busqueda.htm)
the page contains a textfield (textfield3)
and a button (submit1)
which calls a php file Buscador.php in a Linux server (RED HAT 8)
well, my php file which doesn't read
Hi,
If i understand your project correctly all you need is for the php
script to do some elementary processing and pass some parameters to a
jsp or servlet. If so you do not need to delve too deeply into PHP at
all and i am sure learning the few functions needed to achieve this is
easier than
[snip]
is there a way I can get a number and increment it all in one query
then?
UPDATE tblFoo SET value = (value+1) WHERE conditions
Hmm.. my bad - I get that bit, but can I do:
SELECT value WHERE conditions UPDATE tblfoo SET value= (value+1)
[/snip]
I see where the confusion may be
On Tue, 25 Nov 2003 07:47:58 -0600, Jay Blanchard
[EMAIL PROTECTED] wrote:
[snip]
[snip]
is there a way I can get a number and increment it all in one query
then?
[/snip]
UPDATE tblFoo SET value = (value+1) WHERE conditions
Hmm.. my bad - I get that bit, but can I do:
SELECT value WHERE
Greetings!
I'm writing a script that will take the contents of a text file that has
several lines of user accounts and creates a shell script with chown
commands for each user in that text file. My problem is that when it
writes the shell script file it puts a line break after the colon in
Rodney Green wrote:
Greetings!
I'm writing a script that will take the contents of a text file that has
several lines of user accounts and creates a shell script with chown
commands for each user in that text file. My problem is that when it
writes the shell script file it puts a line break
John Nichel wrote:
Chances are, $buffer has the line break on it when you read it in from
the text file. Try striping off whitespace before you write...
while (!feof ($handle)) {
$buffer = rtrim ( fgets($handle, 1000) );
fwrite ($fhandle, chown $buffer:html
Hi there,
I have a RH Linux Web server running apache and PHP.
I recently changed the system clock, the time zone and hardware clock. The
time and date are showing up correctly in Webmin and in the O/S itself. But
when I call a php function to display the date and time it shows it as one
I have done all those checks. Thanks for trying though.
Anyone else have any suggestions please? :(
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 25 November 2003 16:06
To: [EMAIL PROTECTED]
Subject: AW: [PHP] Time
Hi Fernando,
first try date and date -u in
Jay Blanchard wrote:
[snip]
Hi php-fans... here's a simple question for you
I have this HTML page in WIN (Busqueda.htm)
the page contains a textfield (textfield3)
and a button (submit1)
which calls a php file Buscador.php in a Linux server (RED HAT 8)
well, my php file which doesn't read
Rodney Green wrote:
John Nichel wrote:
Chances are, $buffer has the line break on it when you read it in from
the text file. Try striping off whitespace before you write...
while (!feof ($handle)) {
$buffer = rtrim ( fgets($handle, 1000) );
fwrite ($fhandle, chown $buffer:html
John Nichel wrote:
Rodney Green wrote:
John Nichel wrote:
Chances are, $buffer has the line break on it when you read it in
from the text file. Try striping off whitespace before you write...
while (!feof ($handle)) {
$buffer = rtrim ( fgets($handle, 1000) );
fwrite ($fhandle,
--- Phillip Jackson [EMAIL PROTECTED] wrote:
Personally, I think this is a bad approach, regardless of how
well it is implemented. I think you will give yourself a false
sense of security.
what, then, do you yourself do in such an application requiring a
response from the user to massage
Chris Shiflett wrote:
Yes, that's it.
I know this may sound like a huge hassle compared to a nice
one-size-fits-all data filtering function, but I personally would never
rely on myself to be able to predict all of the different types of attacks
that people will come up with. There are many people
Marek Kilimajer wrote:
Tony Crockford wrote:
Hi
bit confused!
here's what I want to do:
get a numeric value from a MySQL table, do a calculation, then on
another PHPpage update the numeric value in the table.
what I don't want is anyone else getting the same number from the
table
Rodney Green wrote:
snip
Actually, I'm not having problems with that. The whitespace is still
there in between the commands and arguments, etc. I'm using fgets , not
fread. Not sure what the difference between the two is but I'll check it
out. The problem I am having however is that at the end
John Nichel wrote:
Rodney Green wrote:
snip
Actually, I'm not having problems with that. The whitespace is still
there in between the commands and arguments, etc. I'm using fgets ,
not fread. Not sure what the difference between the two is but I'll
check it out. The problem I am having however
Wouter van Vliet wrote:
I may be wrong here, but doesn't PHP let MySQL retain the locks when you've
connected with the mysql_pconnect(); function? (persistent connect, I would
expect locks to get released on a disconnect, which usually happens on a
page refresh (new mysql_connect() call).
That is
Hi,
I'm interesting in finding a PHP package that implements functions for
managing user names passwords controlling access to specific
parts of a
site.
Of course, free is best. But cheap is good. And, even not-so-cheap is
fine, as long as it provides good functionality.
Any pointers
Hello,
Is PHP able to access and use Windows Environment Variables? If so, is
there a function or a reference you can point me to?
Thanks,
Rod
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hi PHP folks,
i have a slight problem on PHP 4.3.4 and apache2filters
If i compile the apache2filter support into php all runs through an the
module works.
BUT ( hehe. this is what i get mad about ^_^ )
You cann put all kind of content in and any php code that is found is
getting parsed.
BUT
Hi,
How do I go about making a session last longer that the duration of the
browser?
Say I wanted to make a session last for 1 month, so that I could close the
browser as often I wanted, and the session would still be there. I found the
explanations of the session function on PHP.net quite
Correction: I meant to say: Are session variables stored server-side or
client-side like cookies?
Keith [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,
How do I go about making a session last longer that the duration of the
browser?
Say I wanted to make a session last for 1
Hi,
It would be nice if the moderator of this, and the other PHP-lists could fix
so the listserver automatically add a Reply-To header to all the mails.
When I hit Reply my message would then automatically reply to the list and
not the author. Less hassle for me when replying and less risk of
Thomas --
...and then Thomas Svenson said...
%
% Hi,
Hi!
%
% It would be nice if the moderator of this, and the other PHP-lists could fix
% so the listserver automatically add a Reply-To header to all the mails.
No it wouldn't. It would be a Bad Thing. This was just beaten to death
And mly opinion is it's _really_ _very_ useful (I just sent my message
to someone instead of the list! Gr Annoying!)
Sophie Mattoug wrote:
It's the way we do on [EMAIL PROTECTED], and everything is fine !
David T-G wrote:
Thomas --
...and then Thomas Svenson said...
% % Hi,
Hi!
% %
Correction: I meant to say: Are session variables stored server-side or
client-side like cookies?
The session data is stored on the server. The session cookie (if there
is one) is stored in the browser.
How do I go about making a session last longer that the duration of
the
browser?
Set the
On Nov 25, 2003, at 11:57 AM, Thomas Svenson wrote:
Hi,
It would be nice if the moderator of this, and the other PHP-lists
could fix
so the listserver automatically add a Reply-To header to all the mails.
When I hit Reply my message would then automatically reply to the list
and
not the
Hi,
I found the problem. If you change the time zone on your Linux server
running Apache and PHP, you need to Stop and then Start Apache else the PHP
(or Apache) will still pick up the old time zone.
Thanks anyway
-Original Message-
From: Wouter van Vliet [mailto:[EMAIL PROTECTED]
--- Thomas Svenson [EMAIL PROTECTED] wrote:
It would be nice if the moderator of this, and the other PHP-lists
could fix so the listserver automatically add a Reply-To header to
all the mails.
When I hit Reply my message would then automatically reply to the
list and not the author. Less
David T-G wrote:
%
% When I hit Reply my message would then automatically reply to the list and
% not the author. Less hassle for me when replying and less risk of forgetting
% it.
Much better for you to Do It Right, perhaps including changing to a real
mail program. See the archives for the
Video Populares Et Optimates wrote:
Hi!
I'm pondering on a problem here. Being a C/C++, Java and Visual Basic developer, the
aspect of reverse engineering code from (compiled) programs, hasn't occupied my mind
that much.
Now, developing PHP scripts on large scale I have started to think
Sophie -
...and then Sophie Mattoug said...
%
% And mly opinion is it's _really_ _very_ useful (I just sent my message
% to someone instead of the list! Gr Annoying!)
Since it was apparently intended for the list, I'll reply to all what I
sent to you:
Just because it's done badly
I wish to access native functionality in a native library from php. I
believe writing a php extension is the way to go about it.
(The lib I want to access is sufficiently complex that doing a system
call to execute it isn't a viable solution)
Can anyone point me to some useful guide?
I've found
Thomas Svenson said:
Hi,
It would be nice if the moderator of this, and the other PHP-lists could fix
so the listserver automatically add a Reply-To header to all the mails.
When I hit Reply my message would then automatically reply to the list and
not the author. Less hassle for me when
Hi,
Much better to just switch to a mail client that understands the
list headers
in the mail, and supports reply to list. KMail (KDE) and
Squirrelmail (web)
are two that spring to mind.
The only problem with that is not everyone has an option to switch clients.
However, I think
Dan, et al --
...and then Dan Joseph said...
%
% Hi,
Hiya!
%
% Much better to just switch to a mail client that understands the
...
%
% The only problem with that is not everyone has an option to switch clients.
Yes, but that subset is very, very small. There is almost always a
This is, I suppose, a completely off topic thread. However, I just
read the web page
http://www.unicom.com/pw/reply-to-harmful.html
and I was completely unconvinced. In all the years that I have belonged
to and run mailing lists, I have never experienced any difficulties.
Period. Never. It has
On Tuesday 25 November 2003 09:51 am, Dave G wrote:
snip
Telling people that they need to use proper email software and go
about things in the way they don't expect
which they are you refering to? i expect my reply button to reply to the
person who sent the initial message... not everyone
Good Morning/Afternoon.
I have a program that is trying to write to a directory on a Windows server
and I don't know how to setup the permissions to read/write/delete just from
this directory. I have it permissions set to 'Everyone' but that doesn't
work.
Help?!?!
Robin 'Sparky' Kopetzky
Black
Dave, et al --
...and then Dave G said...
%
% This is, I suppose, a completely off topic thread. However, I just
It sure is. And this has come up many times before. It's all in the
archives.
The only reason I bother to answer when the problem rears its head again
is to fight, tooth and
Hi!
I'm sifting through the possibilities with PHP and naturally one of the first things I
searched for was the possibility for OO development. Now, I found chapter LXXII in the
PHP manual (file generated Sun Oct 05 02:13:52 2003), but it has quite an ugly warning
clause in the top: Warning
--- Dave G [EMAIL PROTECTED] wrote:
If the over whelming majority of people expect a system to behave
one way, that's not evidence that they are brain dead, but that
it's very likely the expected behaviour is more natural for people,
and systems should match humans, not vice versa.
I will try
Chris Shiflett wrote:
Some Web sites I have visited think it is helpful to use some client-side
scripting to move the focus from the first text field to the second after
three numbers have been entered. So, when the user hits tab after entering
the first three numbers, the second text field is
Well first off all it is possible to post and get at the same time.
Dont know why you want to, but its kinda easy really :
Example :
form name=myform action=myscript.php?get1=aget2=b method=post
input type=hidden name=jalla value=balla
/form
You can submit this form several ways, with ordinary
Is it me or are everyone responding how to give a the date in here?
The timestamp is still time() and not date() isnt it?
Timestamp works in seconds, so 1 hour is : 60 seconds * 60 minutes.
$hour = 60*60;
$day = 24*$hour;
timestamp for 125 days into the future would then be,
Richard Cyganiak [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
is there a way to tell at runtime if PHP is running as an Apache module or
through CGI?
Replying to myself ... I found the answer, there's a function
php_sapi_name() for this purpose, see
Cesar Cordovez wrote:
Chris Shiflett wrote:
Some Web sites I have visited think it is helpful to use some
client-side scripting to move the focus from the first text field to
the second after three numbers have been entered.
I think this is the worst thing to do. If they are going to this
On Tue, 2003-11-25 at 11:57, Thomas Svenson wrote:
Hi,
It would be nice if the moderator of this, and the other PHP-lists could fix
so the listserver automatically add a Reply-To header to all the mails.
When I hit Reply my message would then automatically reply to the list and
not the
I need someone to tell me exactly what this regular-expression means:
if(ereg([^ \t\n],$val)) {
// do the job here
}
I'm looking for an intermittent bug, and I need to understand this to make
sure I have found the bug.
Thanks
--
PHP General Mailing List (http://www.php.net/)
To
On Tue, 2003-11-25 at 13:50, Chris Shiflett wrote:
[snip]
Some Web sites I have visited think it is helpful to use some client-side
scripting to move the focus from the first text field to the second after
three numbers have been entered. So, when the user hits tab after entering
the first
This condition is true if there is no space, new line or tabulator in $val
I need someone to tell me exactly what this regular-expression means:
if(ereg([^ \t\n],$val)) {
// do the job here
}
I'm looking for an intermittent bug, and I need to understand this to make
sure I have found
On Tue, Nov 25, 2003 at 04:57:41PM -, Thomas Svenson wrote:
:
: It would be nice if the moderator of this, and the other PHP-lists
: could fix so the listserver automatically add a Reply-To header to all
: the mails.
:
: When I hit Reply my message would then automatically reply to the list
On Tue, Nov 25, 2003 at 11:38:27AM +0100, Marek Kilimajer wrote:
: Eugene Lee wrote:
:
: Try using more variables to make life a little easier to parse:
:
: $colname = $_FORM['form']
: $query = select {$colname} from structure;
: $result = mysql_query($query);
: while
Hello,
consider the following code (content.txt is tab delimited).
$city = Ipswitch;
$content = fopen(content.txt, r);
$city_found = 0;
while (!feof($content) $city_found == 0)
{
$my_line = fgets($content, r);
$content_array = explode(\t,$my_line);
if ($content_array == $city)
Eugene Lee mailto:[EMAIL PROTECTED]
on Tuesday, November 25, 2003 12:47 PM said:
If you would stop using M$ Outlook and switch to a better mail client
that supports mailing lists, your problem would be solved.
The problem with your theory is that some of us are in corporate
environments
From: Eugene Lee [mailto:[EMAIL PROTECTED]
If you would stop using M$ Outlook and switch to a better
mail client that supports mailing lists, your problem would be solved.
Amusing--I've used Eudora.. I've used Mozilla.. I've used Netscape.. I don't see that
behaviour in any of those. So,
I had the same problem here until, I installed Netscape to handle my
personal mail (this list). Works great!
Chris: Why don't you give it a try?
Chris W. Parker wrote:
The problem with your theory is that some of us are in corporate
environments where personal email is not allowed and
On Wed, Nov 26, 2003 at 02:51:58AM +0900, Dave G wrote:
:
: Telling people that they need to use proper email software and go
: about things in the way they don't expect is not a path to sensible
: human interfaces. Computers, machines, systems, should match us, not
: us to them. In any case,
Hey thanks guys. Problem solved.
--- Eugene Lee [EMAIL PROTECTED] wrote:
On Tue, Nov 25, 2003 at 11:38:27AM +0100, Marek
Kilimajer wrote:
: Eugene Lee wrote:
:
: Try using more variables to make life a little
easier to parse:
:
:$colname = $_FORM['form']
:$query = select
[snip]
If you would stop using M$ Outlook and switch to a better mail client
that supports mailing lists, your problem would be solved.
[/snip]
As has been said several times, not all can do this.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
* Thus wrote Thomas Svenson ([EMAIL PROTECTED]):
Hi,
It would be nice if the moderator of this, and the other PHP-lists could fix
so the listserver automatically add a Reply-To header to all the mails.
When I hit Reply my message would then automatically reply to the list and
not the
Thanks Bronislav for your answer but this can't be it as the following test
code passes validation:
?Php
$val = \t test \n;
if(ereg([^ \t\n],$val)) {
echo 'In here!!';
}
echo 'BR' . nl2br($val);
?
Anyone has an idea?
Bronislav kluèka [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
This is simply impossible. This list is propagated to places other
than the mailing list (ie. news.php.net)
So? What negative impact would a Reply-To: header have on a newsgroup? It
doesn't affect followups...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hi,
^ inside [] means not the following chars, so your expression means:
if ($val contains no space , no tab \t and no newline \n) {
//do the job ...
}
Regards,
Matthias
Ben wrote:
I need someone to tell me exactly what this regular-expression means:
if(ereg([^ \t\n],$val)) {
//
[EMAIL PROTECTED]
Dave G:
This is, I suppose, a completely off topic thread. However, I just
read the web page
http://www.unicom.com/pw/reply-to-harmful.html
and I was completely unconvinced.
Yes, I do use OE which is completely broken. And no I don't have to. Oh
well. I still agree with
From: Bronislav Kluka [EMAIL PROTECTED]
I need someone to tell me exactly what this regular-expression means:
if(ereg([^ \t\n],$val)) {
// do the job here
This condition is true if there is no space, new line or tabulator in $val
Actually, the regular expression will match anything
On Tue, Nov 25, 2003 at 03:45:11PM -0500, Curtis Maurand wrote:
:
: Hello,
: consider the following code (content.txt is tab delimited).
:
: $city = Ipswitch;
: $content = fopen(content.txt, r);
: $city_found = 0;
: while (!feof($content) $city_found == 0)
: {
: $my_line =
That's it!
Thank you very much, you have the answer.
I wonder why the programmer did not write the following line instead:
if (strlen(trim($val))) {
// Do the job here
}
Anyways, you just proved that I did not fix the bug! Now I have to work even
more! :-P
Thanks
Matthias Nothhaft [EMAIL
Hi Folks
I was wondering (mostly because I came across some situations where I need
it) if PHP supplies any methods to bless an array or object to become some
other object. In perl, I can simply do:
my $SomeInstance = bless { item = 'value', 'Item2' = 'value2' },
'SomeObject';
And then
It Adds Nothing is absolutely false. Being able to automatically
respond to the list adds more naturally expected behaviour.
I remain steadfast in my opinion that automatically replying to the
list is a much more natural option.
My opinion is that this is a multi person discussion forum,
If you would stop using M$ Outlook and switch to a better mail client
that supports mailing lists, your problem would be solved.
I wouldn't mind that at all. What clients do you recommend for WindwosXP? I
want a small client (note: I have to use Outlook for business purposes, but
have the lists
1 - 100 of 135 matches
Mail list logo