sc/magic.mime'
'--with-mysql=/usr/local' '--with-ncurses=/usr' '--with-ldap=/usr/local'
'--with-openssl=/usr' '--enable-overload' '--with-pcre-regex=yes'
'--enable-posix' '--with-pspell=/usr/local' '--with-readl
ple of weeks
now, at least.
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
anything else.
I don't need to supply 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 (htt
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 G
something stronger, you can use md5(). 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 Cablesy
Good day,
> In Perl you could print a block of information as it was
> written like this;
> print <
> This a whole bunch of HTML code!!!
>
> HTML_END
>
> The best part about this, was that you did not have to escape
> your " and you
> could mix in your variables making it easy to design and
Hope that helps.
========
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 PRO
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
You
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
w this might 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, Cana
bit simpler than the average PHP'er 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
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 G
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
If I ran 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
nd determine 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 P
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
cal/www 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.
==
terminate.
========
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
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
l request that the user's client not cache it. You can
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
t one would
have to write 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 P
nerates
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 Cablesyste
ask over there to
go get 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,
quot;Pragma: 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
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
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
T2
.
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
t way 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
sort() ) to sort the
results.
========
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
#x27;t have to worry
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, Ma
found 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 PROTEC
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
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
P
ructions 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
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
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,
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, C
TE_IP .
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 t
so in PHPs 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 [mai
yles from other elements. So, if you use a
stylesheet and say that you want text to be green, you need to specify that
is green, is green, etc.
A bigger explanation of the differences would be outside the scope of this
list.
========
Darren Gamble
Planner, Regional Services
Shaw
line 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 P
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.
=====
nd for someone
new to SSL.
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
using
user 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 Av
might 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, Regiona
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
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 Av
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
lar element out 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
T2
atever the client 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
T2
Good day,
The proper syntax is:
INTO TABLE
and not:
INTO
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:[EMAIL
d you 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]]
o, 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
-Origin
r library between 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
Planne
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
, or to quickly expire 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
P
(you would 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
site has very good documentation on the usage and appropriateness
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 A
e
documentation when appropriate (especially documentation as good 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
ded, the
ONLOAD 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
T2
ot; operator is evaluated 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 "+"
e to:
"" . (($i*8)+$j) . ""
then you'll 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
se manual for more information.
====
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
tively, if unpack() isn't supposed to support all of the options of
pack() (such as "H" and "h") then the documentation should state which
options it can support.
Is this a bug, or have I just missed something?
Darren Gamble
Planner, Regional Serv
a search
engine.
========
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] reg
the expression,, as you want.
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
Good day,
It's a bit difficult to determine what the problem is without more
information.
If you add before this:
echo "|$efa||$HTTP_REFERER|";
What is the output?
========
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
C
g.
=)
Question, though... 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)
ne/network 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:[EM
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
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
e in your script if you do so.
========
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
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 G
Actually
traversing said array isn't hard, 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?
===
t;]["bar"]["red"]["apple"] = $some_value1;
$myarray["foo"]["bar"]["red"]["car"] = $some_value2;
$myarray["foo"]["green"] = $some_value3;
Is there any way to easily do this in PHP? I could "cheat
e evidence 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,
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, Regiona
hear 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 PROT
d 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, 2001 2:35 PM
To: Darren Gamb
tion.
You 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).
========
Dar
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
page recently, but, by reading 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!
===
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,
rint out statements as it
progresses- 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 Cablesyst
84 matches
Mail list logo