Re: [PHP] sending array

2003-01-15 Thread Gerald Timothy Quimpo
to the other URL as a GET param. you would also have a reaper program (maybe running through crontab if you're on Unix, or some windows scheduler otherwise) that deletes array files that are more than, say, 5 minutes old. tiger -- Gerald Timothy Quimpo tiger*quimpo*org gqui

Re: [PHP] fopen with nasty pathnames

2003-01-11 Thread Gerald Timothy Quimpo
slashes just for displaying? or are they actually there in the filename on disk? if the backslashes are actual parts of the filename (they shouldn't be, but the world is weird) then you'll need to escape them. "\\". tiger -- Gerald Timothy Quimpo tiger*quimpo*org gquimpo*sni

Re: [PHP] How I can get one line from a file?

2003-01-11 Thread Gerald Timothy Quimpo
, grep, etc). if you're on windows and don't have access to those tools, well, you're on your own. you would probably be able to get better performance by writing the program to get the line in C/C++ or some other compiled language and just popen that from php. tiger -- Gerald T

Re: [PHP] count characters without space

2003-01-11 Thread Gerald Timothy Quimpo
he number of non-space (not distinct) characters in the input string. tiger -- Gerald Timothy Quimpo tiger*quimpo*org gquimpo*sni-inc.com tiger*sni*ph Public Key: "gpg --keyserver pgp.mit.edu --recv-keys 672F4C78" Veritas liberabit vos. Dovery

Re: [PHP] Encrypt in Javascript and Decrypt in PHP????

2003-01-10 Thread Gerald Timothy Quimpo
side, you would then take the password from the database (or wherever), decrypt it (if it's encrypted), append or prepend the extra characters, hash the whole thing, and compare the hashes. tiger -- Gerald Timothy Quimpo tiger*quimpo*org gquimpo*sni-inc.com tiger*sni*ph Public Key: "g

Re: [PHP] Too many open files

2003-01-10 Thread Gerald Timothy Quimpo
o do in there that could lead to opening lots of files? e.g., do you have a loop that opens files, does something with them, then continues the loop (opening more files without closing the previously opened files that you don't need anymore)? tiger -- Gerald Timothy Quimpo tiger*q

Re: [PHP] Second (Bizarre) Question regarding PHP and ASP

2003-01-04 Thread Gerald Timothy Quimpo
takes the hash as above, and compares the hash generated with the hash passed in. if they don't match, don't reply. if they match, then the request comes from process.php (unless you're really paranoid, in which case, add some more hoops for process.php to jump through :). tiger

Re: [PHP] way to insert timer / pause?

2003-01-03 Thread Gerald Timothy Quimpo
hen the outermost table is complete. there may also be quirks in browsers, proxies or servers that affect this, but i don't know any details. tiger -- Gerald Timothy Quimpo tiger*quimpo*org gquimpo*sni-inc.com tiger*sni*ph Public Key: "gpg --keyserver pgp.mit.edu --recv-keys 672F4C78&

Re: [PHP] parse error

2003-01-02 Thread Gerald Timothy Quimpo
e are. e.g., php -l syntaxErrorTest.php will show you syntax errors in there. tiger -- Gerald Timothy Quimpo tiger*quimpo*org gquimpo*sni-inc.com tiger*sni*ph Public Key: "gpg --keyserver pgp.mit.edu --recv-keys 672F4C78" Veritas liberabit vos. Dovery

Re: [PHP] Code contents of a function

2003-01-02 Thread Gerald Timothy Quimpo
t do you need this for? :) tiger -- Gerald Timothy Quimpo tiger*quimpo*org gquimpo*sni-inc.com tiger*sni*ph Public Key: "gpg --keyserver pgp.mit.edu --recv-keys 672F4C78" Veritas liberabit vos. Doveryai no proveryai. -- PHP General Mailing List (ht

Re: [PHP] PHP memory usage

2003-01-02 Thread Gerald Timothy Quimpo
, or you're storing the all the rows of an SQL query in an array or something similar (i've seen a lot of that with programmers i work with, they store entire result sets in arrays to make them easier to work with, without considering just how much RAM such arrays would eat if the resul

Re: [PHP] Some questions regarding pfsocketopen()

2003-01-02 Thread Gerald Timothy Quimpo
the particular web server process. tiger -- Gerald Timothy Quimpo tiger*quimpo*org gquimpo*sni-inc.com tiger*sni*ph Public Key: "gpg --keyserver pgp.mit.edu --recv-keys 672F4C78" Veritas liberabit vos. Doveryai no proveryai. -- PHP General Maili

Re: [PHP] makeing an array

2003-01-02 Thread Gerald Timothy Quimpo
string and, using the variable variable syntax, ask PHP what the value was of the string which was contained in the variable "variable_name". this is a neat feature and helpful in many situations, but for readability i'd go with naming the fields as array entries "comment[1]&quo

Re: [PHP] Include Problems

2002-12-26 Thread Gerald Timothy Quimpo
directories where include files can be found. e.g., a good minimal include_path might be: include_path=".:..:/var/lib/www/standard_php_includes" or something similar (i made up the last part, replace with wherever you put standard includes that you use). i like having the current dire

Re: [PHP] Populating textboxes and listboxes from a query result of a database table

2002-12-26 Thread Gerald Timothy Quimpo
out needing to have them understand PHP. they can edit just the templates, and as long as they follow your convention on templates to be replaced and field naming, the programming group and the graphic designers can work separately and in parallel. tiger -- Gerald Timothy Quimpo tiger

Re: [PHP] Undefined Functions

2002-12-23 Thread Gerald Timothy Quimpo
m with it. it works as expected with no undefined function problems. now, if i were to have an elseif ($b==9) b9(); in there, then i'd expect that error. can you distill the problem to a runnable example which demonstrates the problem for you and post the example? tiger -- Gerald Timo

Re: [PHP] Question about the exit() command

2002-12-19 Thread Gerald Timothy Quimpo
, etc. the real solution would be to remember what the previous page "looked" like, and redisplay it. this may involve remembering the state of the page (static template, contents of the textfields, textboxes, checkboxes, etc), and then just redisplaying the page with the data *in* th