[PHP] Problems with imagecreatefromjpeg ?

2003-09-29 Thread Darren Gamble
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

[PHP] Problems with php.net

2003-01-28 Thread Darren Gamble
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

[PHP] PHP socket connections with SSL

2002-10-08 Thread Darren Gamble
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

RE: [PHP] Agh! trim (#$@#@^%!!!)

2002-08-21 Thread Darren Gamble
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

RE: [PHP] mcrypt

2002-08-01 Thread Darren Gamble
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

RE: [PHP] Is there a way?

2002-07-16 Thread Darren Gamble
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

RE: [PHP] Undefined variables

2002-05-31 Thread Darren Gamble
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

RE: [PHP] gd project question

2002-05-31 Thread Darren Gamble
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

RE: [PHP] Undefined variables

2002-05-30 Thread Darren Gamble
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

[PHP] Entering password on a command line

2002-05-27 Thread Darren Gamble
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

[PHP] Web hoster solution?

2002-05-09 Thread Darren Gamble
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

RE: [PHP] file() and macintosh line break

2002-05-01 Thread Darren Gamble
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

RE: [PHP] Regex

2002-04-22 Thread Darren Gamble
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

RE: [PHP] Nasty DoS in PHP

2002-04-18 Thread Darren Gamble
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

RE: [PHP] chown ..opperation not permitted

2002-04-15 Thread Darren Gamble
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

RE: [PHP] Exit();

2002-04-04 Thread 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

RE: [PHP] Really slow include

2002-04-02 Thread Darren Gamble
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. ==

RE: [PHP] XSLT; XML => PHP code

2002-03-28 Thread Darren Gamble
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

RE: [PHP] XSLT; XML => PHP code

2002-03-28 Thread Darren Gamble
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

RE: [PHP] Loading Images

2002-03-28 Thread Darren Gamble
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

RE: [PHP] running commands as root from a script

2002-03-28 Thread Darren Gamble
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

RE: [PHP] How is code in PHP interpreted,from 1st line to last? i do nt think so

2002-03-28 Thread Darren Gamble
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

RE: [PHP] How is code in PHP interpreted,from 1st line to last? i do nt think so

2002-03-28 Thread Darren Gamble
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,

RE: [PHP] preventing "back" button usage?

2002-03-27 Thread Darren Gamble
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

RE: [PHP] Nevermind I figured it out

2002-03-27 Thread Darren Gamble
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

RE: [PHP] syntax

2002-03-27 Thread Darren Gamble
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

RE: [PHP] syntax

2002-03-27 Thread Darren Gamble
. 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

RE: [PHP] sorting data from a field

2002-03-26 Thread Darren Gamble
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

RE: [PHP] sorting data from a field

2002-03-26 Thread Darren Gamble
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

RE: [PHP] OT - number of chars in querystring

2002-03-26 Thread Darren Gamble
#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

RE: [PHP] Regular Expressions? Help!

2002-03-25 Thread Darren Gamble
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

RE: [PHP] undefined variable when using if ($var) {}

2002-03-25 Thread Darren Gamble
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

RE: [PHP] what's "undefined index" ?

2002-03-25 Thread Darren Gamble
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

RE: [PHP] cron with php as apache module

2002-03-22 Thread Darren Gamble
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

RE: [PHP] strlen() gives a wrong count

2002-03-19 Thread Darren Gamble
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

RE: [PHP] Two easy HTML/CSS questions

2002-03-18 Thread Darren Gamble
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

RE: [PHP] Parse Error Suggestions?

2002-03-18 Thread Darren Gamble
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

RE: [PHP] How to get the IP of a visitor

2002-03-18 Thread Darren Gamble
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

RE: [PHP] Driving me nuts, need one second of your time

2002-03-15 Thread Darren Gamble
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

RE: [PHP] Netscape vs. IE/Mozilla

2002-03-08 Thread Darren Gamble
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

RE: [PHP] php, text file, and mysql

2002-03-07 Thread Darren Gamble
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

RE: [PHP] Re: time limit ?

2002-03-04 Thread Darren Gamble
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. =====

[PHP] Using SSL - slightly OT

2002-02-28 Thread Darren Gamble
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

RE: [PHP] using a mysql temporary table.

2002-02-25 Thread Darren Gamble
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

RE: [PHP] Next and Preview Row

2002-02-22 Thread Darren Gamble
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

RE: [PHP] preg_replace("/^\//".. doesnt work?

2002-02-20 Thread Darren Gamble
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

RE: [PHP] argv and argc

2002-02-19 Thread Darren Gamble
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

RE: [PHP] Sorting an array of arrays....

2002-02-14 Thread Darren Gamble
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

RE: [PHP] how a function 'return' statement works

2002-02-13 Thread Darren Gamble
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

RE: [PHP] Re-Importing .CSV file into Database

2002-02-13 Thread Darren Gamble
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

RE: [PHP] Re-Importing .CSV file into Database

2002-02-13 Thread Darren Gamble
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

RE: [PHP] PHP and CGI

2002-02-12 Thread Darren Gamble
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]]

RE: [PHP] PHP and CGI

2002-02-12 Thread Darren Gamble
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

[PHP] Installing PHP 4.1.1 on Redhat w/ RPMs

2002-02-04 Thread Darren Gamble
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

RE: [PHP] Tables Loading Slow

2002-01-30 Thread Darren Gamble
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

RE: [PHP] browser back button - "Page has Expired.. " problem

2002-01-28 Thread Darren Gamble
, 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

RE: [PHP] mailing to 19000 users

2002-01-28 Thread Darren Gamble
(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

RE: [PHP] break statement usage

2002-01-25 Thread Darren Gamble
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

RE: [PHP] RTFM

2002-01-18 Thread Darren Gamble
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

RE: [PHP] how to send to URL on if statement?

2002-01-18 Thread 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

RE: [PHP] bug in echo function?

2002-01-18 Thread Darren Gamble
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 "+"

RE: [PHP] bug in echo function?

2002-01-18 Thread Darren Gamble
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

RE: [PHP] sql question

2002-01-15 Thread Darren Gamble
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

[PHP] Possible bug: Using "h" and "H" with unpack()

2002-01-10 Thread Darren Gamble
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

RE: [PHP] regular expression: THANK YOU!!!!!!

2001-12-19 Thread Darren Gamble
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

RE: [PHP] regular expression

2001-12-19 Thread Darren Gamble
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

RE: [PHP] http referer problems

2001-12-13 Thread Darren Gamble
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

RE: [PHP] RE: @file problems w/ remote files

2001-12-11 Thread Darren Gamble
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)

RE: [PHP] Using @file

2001-12-10 Thread Darren Gamble
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

RE: [PHP] Using @file

2001-12-10 Thread Darren Gamble
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

RE: [PHP] Using @file

2001-12-10 Thread Darren Gamble
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

RE: [PHP] php as cron

2001-12-10 Thread Darren Gamble
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

RE: [PHP] php as cron

2001-12-10 Thread Darren Gamble
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

RE: [PHP] Multidimensional array construction

2001-12-04 Thread Darren Gamble
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? ===

[PHP] Multidimensional array construction

2001-12-03 Thread Darren Gamble
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

RE: Re[8]: [PHP] Re: system(), flush() and so on...

2001-11-30 Thread Darren Gamble
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,

RE: Re[6]: [PHP] Re: system(), flush() and so on...

2001-11-30 Thread Darren Gamble
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

RE: Re[4]: [PHP] Re: system(), flush() and so on...

2001-11-30 Thread Darren Gamble
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

RE: Re[2]: [PHP] Re: system(), flush() and so on...

2001-11-30 Thread Darren Gamble
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

RE: [PHP] Re: system(), flush() and so on...

2001-11-30 Thread Darren Gamble
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

RE: [PHP] chown/chgrp not working

2001-11-30 Thread Darren Gamble
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

[PHP] Memory leaks with LDAP?

2001-11-29 Thread Darren Gamble
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! ===

RE: [PHP] Displaying content on the fly

2001-11-23 Thread Darren Gamble
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,

[PHP] Displaying content on the fly

2001-11-23 Thread Darren Gamble
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