.
So, [^]* instead of .* should do it, I believe.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
-Original Message-
From: Wakan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday
.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
-Original Message-
From: Wakan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 10:21 AM
To: Darren Gamble
Subject: RE: [PHP] regular expression
.
Is this a bug, or have I just missed something?
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED
.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
-Original Message-
From: Janet Valade [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 3:04 PM
To: Wolf-Dietrich von
get the desired result.
Rule of thumb: Use parenthesis whenever you have a complex operation to
ensure the result is what you want.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
before the
* operator, which in turn is evaluated before the + operator.
Perhaps it would be easier to understand if you thought of the . operator
like the exponent operator in math- it is evaluated before * or + is.
Darren Gamble
Planner, Regional Services
Shaw
triggers and does its work.
I don't have the code on me, but this should be a good enough push in the
right direction.
Hope this helps,
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
as it is
with PHP). But I, for one, would much rather have a friendly community such
as this one to encourage and support the use of PHP for all.
My two cents CND (one cent USD).
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta
for switch, break and continue. I would highly recommend you take a
look, if you have not already.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
-Original Message-
From: Erik
use
whatever program you use) that would add 500 people to the BCC list at a
time and pass the text of the e-mail to the program via a pipe.
It was about a 15 minute job. I would recommend it, as it's easy to convert
if you have to switch MTAs.
Darren Gamble
Planner
it. You should check
the page source for such headers.
I know it is tempting to trash-talk IE, but in this situation, regardless of
the problem, most likely the browser is just doing what the user or web page
has instructed it to do.
Darren Gamble
Planner, Regional Services
experience only IE supports the width style attribute of these.
You will also have to ensure that PHP is flushing the output as it displays
it.
And, you could also optimize your data structure so that the results are
returned quicker. =)
Darren Gamble
Planner, Regional
an
extremely minor version number (is that even supposed to happen?), which is
what I think is causing me the problem.
I'm not quite sure how to proceed. Has anyone else on the list done this
yet?
Thanks to all who reply,
Darren Gamble
Planner, Regional Services
Shaw
, if the extension is .cgi , your web server should understand that it's
a cgi program and exec it appropriately.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
-Original Message
try to run the script?
What error did you receive?
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
-Original Message-
From: Michael R @ Spy [mailto:[EMAIL PROTECTED]]
Sent
Good day,
The proper syntax is:
INTO TABLE table
and not:
INTO table
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
-Original Message-
From: Thomas Edison Jr. [mailto
is (be it PHP or
whatever).
You should really take this conversation over to a MySQL list, since you
need help with MySQL and not PHP.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
of the
array. If that's the case, just use something like:
return $current_page_name[-1]
to return the last element in the array.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
Good day,
uasort() should do what you need.
http://www.php.net/manual/en/function.uasort.php
There's an example for the usort function that does something similar to
what you want, in fact.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd
Good day,
The array $argv contains what you're looking for (I'm not sure if this is
deprecated in 4.1.0, though) so you'll have to flip through the manual and
release notes.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary
Good day,
The first argument should just be a normal regular expression, not a
replacement regular expression.
I'm not at my server right now, but I would guess that it'll work once you
get rid of the last / in the first expression.
Darren Gamble
Planner, Regional
also be worthwhile to note that this code can be made into one
query with the UNION statement. However, MySQL doesn't support that part of
SQL either (although the documentation says that it's provided in version
4.X ).
Darren Gamble
Planner, Regional Services
Shaw
input.
I can't immediately find a reference to this, though.
As a workaround, you could execute two separate queries and store all of the
results in a 2-D array in memory.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary
.
Thanks,
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Good day,
That won't submit the form, unfortunately. It'll just redirect the user to
the page without submitting the contents of the form.
If the browser supports it, one can use javascript to submit the form after
a certain amount of seconds have elapsed.
Darren
feeds and so forth, the TEXT field is definately the way
to go.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]]
Sent
elements. So, if you use a
stylesheet and say that you want text to be green, you need to specify that
p is green, td is green, etc.
A bigger explanation of the differences would be outside the scope of this
list.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
FAQ list.
http://www.php.net/manual/en/faq.databases.php .
Hope this helps,
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
-Original Message-
From: cosmin laslau [mailto:[EMAIL
.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
-Original Message-
From: Ulrik Witschass [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 18, 2002 9:57 AM
To: [EMAIL PROTECTED]
Subject: [PHP] How to get the IP
Good day,
It's not really possible to have an error reporting function on a parse
error. If there is a parse error, then the program can not be run, period.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
Good day,
Just to clarify, yes, you can set the size of a text field, as well as its
color, text font, border, and so on. This is also done with css and is
outside the scope of this mailing list.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630
Good day,
Could you post this mystery string so that we could help you?
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
-Original Message-
From: Gil Disatnik [mailto:[EMAIL
are on php's site.
On a sour note, FreeBSD's package does not include the executable.. =(
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
-Original Message-
From: Paul Roberts [mailto
Good day,
The error message refers to the KundeRemark in $val[KundeRemark], not
$KundeRemark which you are trying to assign the result to. The former is
(if it existed) an index, the latter is a variable.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems
Good day.
What is this message that you get, that you don't want?
A cursory glance of the code reveals two else statements attached to the
same if statement. You should address that.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
about popen()
with PHP's documentation.
Try that instead.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
-Original Message-
From: Walker, Roy [mailto:[EMAIL PROTECTED]]
Sent
about the client caching it.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 26, 2002 9:41 AM
.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
-Original Message-
From: Chuck Barnett [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 03, 2002 1:50 PM
To: PHP General List
would be to have a first name and last name field. This
addresses situations where people have their family name first and their
given name second.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403
.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
-Original Message-
From: John Fishworld [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 27, 2002 10:55 AM
To: Php-General-List
Good day,
In this situation, you should use an array to store the results.
Please check PHP's documentation for more information on how to use arrays.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
Good day.
As you may have guessed by now, the .= operator does what you want.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
-Original Message-
From: David Johansen [mailto
: no-cache);
You can also do some fancy redirection with Location headers.
As a failsafe, you should have the processing page make sure that the user
isn't submitting the same thing more than once.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue
that image.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
-Original Message-
From: Moschitz Martin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 8:58 AM
an image someplace, referenced by your main program. This will cause the
image to be generated before the rest of the code is executed. But, then
you'll have to worry about cleaning it up later.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd
it CGI-like instead of via the server module.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
-Original Message-
From: Ken Nagorski [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March
make it more difficult for the user by supplying a Javascript override
function to be executed when the user uses their right-mouse button over the
image.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
Good day,
To have PHP evaluate string contents as an expression, use eval().
The usual disclaimer comes with this function... be careful.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781
.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 3:20 PM
To: Darren Gamble
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP
on your filesystem , then you could
say:
require(/usr/local/www/header/html).
If you don't put in a leading slash, it will look in the current directory.
What you were doing in your second example is asking PHP to look in the file
under your root directory.
Darren Gamble
Good day,
As the documentation says, exit() will end your script.
http://www.php.net/manual/en/function.exit.php
Use return() to end a function.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403
and
layout the HTML. Is
there a similiar way to do this in PHP?
Yeppers. It's lmost the same.
echo MULTILINE
...
MULTILINE;
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
--
PHP
if there is a
safer, more secure way of doing what you want.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
-Original Message-
From: John Weez [mailto:[EMAIL PROTECTED]]
Sent: Monday
the script a few times, all of the
memory of the machine would be used up, and I'd have to kill off Apache to
get it back.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
-Original
Good day,
Just off the top of my head, try:
/.+\@.*([^\.]*\.[^\.]*)$/
Might not have the exact syntax, but, you get the idea.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
Good day,
Calm down, the excessive !'s are a bit unnecessary.
One possible solution is to read the entire thing into one string, and then
use the split or preg_split function on the \r against it. This will give
you an array with one line per entry.
Darren Gamble
on
this list. =)
Thanks,
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
be accomplished?
In the meantime I'll just put the password in the program, but, I'd like to
learn how this could be done.
Thanks in advance,
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
should use $HTTP_POST_VARS or $_POST, depending on your version. Check the
docco for more info on those.
If you really have to check variables using this method, use isset() to see
if the variables ... have been set. =)
Darren Gamble
Planner, Regional Services
Shaw
upwards. Adjust the sign or switch the
functions around if your gauge is different.
Note that the functions operate in radians (2*pi radians == 360 degrees).
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P
.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
-Original Message-
From: Christopher J. Crane [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 30, 2002 8:06 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP
(). The examples on php's
documentation for this function should help you if you're interested in
having other programs use it (to have it the right format and length).
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P
Good day,
Well, for one, you are discarding the results of trim().
Check out the online manual page for trim(). The trim'ed string is
returned. It does not say it modifies the string it is passed.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630
- and if there is a problem, the user will be able to identify
where it failed.
There doesn't appear to be a php.ini directive that does this, though...
Thanks in advance,
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
Good day,
Thanks for the reply! I was not quite sure how this would be phrased
(searching for on the fly on the page causes an error to be returned).
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
the posting
guidelines on that page it seems that there is a good chance that no one
will even look at it. I'm hoping that someone on this list has encountered
something similar and would be able to share their resolution.
Thanks to all who respond!
Darren Gamble
Planner
Good day,
What user is the application running as? Only the superuser can use these
functions (this is documented with both of these functions).
For security reasons, you may want to use an external sudo script to
accomplish this. Be very, very careful...
Darren
may want to try popen instead. This gives you a pipe to the process, so
you _should_ be able to read in lines of the output and display them as they
appear, whilst using flush() (although I have never tried this myself so I
can not vouch for it).
Darren Gamble
information about your O/S and PHP version?
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
-Original Message-
From: faeton [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 30
from anyone else on the list, you may want to try posting
a bug report.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
-Original Message-
From: faeton [mailto:[EMAIL PROTECTED
Good day,
For whatever reason, your traceroute command is returning results very
quickly. It may be functioning normally.
Perhaps you should try a command that will take much longer to execute, such
as du / --max-depth=1.
Darren Gamble
Planner, Regional Services
as to the
cause of the problem.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
-Original Message-
From: faeton [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 30, 2001 3:57
way to easily do this in PHP? I could cheat and use eval(),
but there is probably a better way. I have thought of using each() or
references, but nothing has come to mind so far.
Any ideas? Should I just use eval() ?
Darren Gamble
Planner, Regional Services
Shaw
, as you pointed out.
foreach() doesn't work, as it just uses a copy of the original array. I
think there might be some way to use variable references, but I haven't
gotten one to work yet.
Any other suggestions?
Darren Gamble
Planner, Regional Services
Shaw Cablesystems
Good day,
Doesn't having the statement #!/usr/local/bin/php -q at the start of the
program makes running php (rather than the script itself) redundant? Why
not just call the script in the crontab?
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630
.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 10, 2001 12:12 PM
To: Darren Gamble
Cc: '[EMAIL
Good day,
The error means that it can not resolve the name.
Replace the comma in the name with a period.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
-Original Message
Good day,
Again, this error means that the server can not resolve a name.
Please ensure that the name www.myserver.com can be DNS resolved. Please
contact your DNS administrator if it can not.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd
to correct this problem and take this discussion off the PHP
list.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
-Original Message-
From: Jeff Lewis [mailto:[EMAIL PROTECTED]]
Sent
... if the host is resolvable, but the file does not exist,
does the function print an error (with the @ character)?
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
-Original Message
Good day,
It's a bit difficult to determine what the problem is without more
information.
If you add before this:
echo pre|$efa|/prepre|$HTTP_REFERER|/pre;
What is the output?
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
return address is valid, but this also appears to
be broken, as no such e-mail is ever received.
If anyone can pass this along, or even suggest where this could be sent,
that would be great. This problem has been present for a couple of weeks
now, at least.
Thanks,
Darren
a client certificate, if that helps any...
Thanks in advance,
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
missing something simple, but I don't know what
it could be. I didn't find anything in the mailing list archives, and
Googling for the error message just shows pages and pages of actual broken
web pages.
Thanks in advance for any help,
Darren Gamble
Planner, Regional
84 matches
Mail list logo