Re: [PHP] general organization question

2004-10-12 Thread Michal Migurski
refactoring. A framework that reflects this flexibility is a help, one that doesn't is a hindrance. ------ michal migurski- contact info, blog, and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://

Re: [PHP] Best practise for resolving potential conflicts when editing db content?

2004-10-11 Thread Michal Migurski
i Wiki. For these applications, the cost of a conflict is high (which would indicate that a pessimistic lock might be better), but there is a clean method provided to resolve them when they come up. -- michal migurski- contact info, blog, an

Re: [PHP] config.php

2004-10-11 Thread Michal Migurski
Is there anyway of creating a config.php file on the fly using a form. To obtain verbose output, include the keyword "how" at the beginning of your query. ------ michal migurski- contact info, blog, and pgp key: sf/ca

Re: [PHP] forms

2004-10-10 Thread Michal Migurski
world. -- michal migurski- contact info, blog, and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Associative Array Benchmarking

2004-09-19 Thread Michal Migurski
nless you're looking for constants instead of strings. Sometimes a quick R of the first few chapters in TFM beats a benchmark. ----- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html

Re: [PHP] Lambert's Projection and PHP

2004-09-08 Thread Michal Migurski
our arguments to the constructor, and that all lat/long units are expected in radian, not degrees. Sorry that the comments aren't as extensive as they ought to be. ----- michal migurski- contact info and pgp key: sf/ca

Re: [PHP] Multi-User Text-Editing

2004-09-07 Thread Michal Migurski
://c2.com/cgi/wiki?DiffAlgorithm Also there is this: http://pear.php.net/package/Text_Diff ----- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Maili

Re: [PHP] Multi-User Text-Editing

2004-09-06 Thread Michal Migurski
be a historical legacy of RCS, from a time when storage was not quite so cheap. ----- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Multi-User Text-Editing

2004-09-06 Thread Michal Migurski
database schema to understand how they implement the multi-user text editing, and how to handle the related problems of locking and revision control. ----- michal migurski- contact info and pgp key: sf/cahttp://mike.te

Re: [PHP] ftp functions not working

2004-09-02 Thread Michal Migurski
your home directory with all the required features, and use that. See the manual for relevant configuration details. ---- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Maili

Re: [PHP] ftp functions not working

2004-09-02 Thread Michal Migurski
-line may or may not be the same installation as the one used by Apache. Use the following to see what your CLI installation does or does not have enabled: php -r "phpinfo();" -------- michal migurski- contact info and

Re: [PHP] xml tags interfere with php tags

2004-09-01 Thread Michal Migurski
yntax highlighting from being fooled. -------- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Parsing large file

2004-08-31 Thread Michal Migurski
f all-at-once, using fgets(). Check your max execution time, as William suggests. Post a little example code or an error message. michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP Ge

Re: [PHP] $_SERVER['HTTP_HOST'] without the 'www.'

2004-08-31 Thread Michal Migurski
ere a > better function to use in this instance? preg_match() should get you started. /(\w+\.\w+)$/ ought to match just the primary domain. - michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.co

Re: [PHP] Form Spoofing - How?

2004-08-31 Thread Michal Migurski
> I've been asked to make a php script to automatically fill out and > submit a form on a remote site. I know this is possible, but have no > idea where to begin SimpleTest can do this quite elegantly. ----- m

Re: [PHP] Bug with mktime??

2004-08-30 Thread Michal Migurski
d"), date("Y"))); echo ''; } It's a good thing you're trying this today; if you had tried it a few days ago, you wouldn't have had any idea that your method wasn't working. -- michal migursk

Re: [PHP] Dynamic Function with return?

2004-08-28 Thread Michal Migurski
_function(). ----- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP: Undefined Variables Error Message

2004-08-27 Thread Michal Migurski
ying to append something to it. Change that first ".=" to a "=", like the line above, and see if that doesn't help. ------ michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP Ge

Re: [PHP] Keep from using cache

2004-08-27 Thread Michal Migurski
ov 1977 10:00:00 CET'); // date in past header('Last-Modified: '.date('r'));// right -now- header('Pragma: no-cache'); // HTTP/1.0 - michal mi

Re: [PHP] checking for utilities/applications in the PATH

2004-08-25 Thread Michal Migurski
people occasionally imply that it's not the best/fastest/most stable method to use, so I try not to. -mike. - michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Array?

2004-08-25 Thread Michal Migurski
ve array containing the seventh result row from your query. If you check out the results of print_r($things), you'd see the array structure immediately. --------- michal migurski- contact info and pgp key: sf/cahttp://m

Re: [PHP] delimiter question?

2004-08-24 Thread Michal Migurski
o. See: http://httpd.apache.org/docs-2.0/mod/core.html#acceptpathinfo ----- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] post file from one server to other

2004-08-24 Thread Michal Migurski
of background knowledge of HTTP. Luckily there's someone on this list who knows a great deal about that. :) --------- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General

Re: [PHP] Using php_value in .htaccess files

2004-08-23 Thread Michal Migurski
ot;Allowoverride All" is one way to make sure they're permitted. :D - michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP Runtime Debugger (Was: [PHP] how to count objects instances)

2004-08-23 Thread Michal Migurski
ner, but I'm willing to learn. I realize that this is a fairly complex problem compounded by the fact that PHP is generally a library used within an apache child process. Any thoughts? ----- michal migurski- contact info an

Re: [PHP] Text from file into database

2004-08-23 Thread Michal Migurski
ur database. --------- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem connecting to Postgres

2004-08-23 Thread Michal Migurski
determine what's there, and recompile/reinstall if you're lacking PG support. Or, try to find the command line instance that corresponds to the apache module you're using. ----- michal migurski- contact info and pgp key:

Re: [PHP] arrays() current() next() who to use

2004-08-19 Thread Michal Migurski
quot; - " . $v . ""; >} "foreach" needs an "as", probably that was meant to say: foreach(array_slice($z['distance'], $start, 10) as $k => $v) { ... - michal migurski- c

Re: [PHP] managing cvs from php

2004-08-19 Thread Michal Migurski
ting(E_ALL)) Does the apache user have read/write privileges on the files in that directory? CVS makes heavy usage of stderr, so that may be a reason you are not seeing output. ----- michal migurski- contact info and pgp key: sf/ca

Re: [PHP] Securing Forms???

2004-08-18 Thread Michal Migurski
et: string uniqid ( [string prefix [, bool more_entropy]]) You would run the risk of messing up the form with (sound of pipe organ) *excessive entropy*. - michal migurski- contact info and pgp key: sf/cahttp://m

Re: [PHP] SSH Authentication using php

2004-08-16 Thread Michal Migurski
) and then routing around them with an insecure web login. -mike. ----- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SSH Authentication using php

2004-08-16 Thread Michal Migurski
what are you trying to do exactly? Is ssh actually necessary, or are you really just trying to authenticate users by their unix accounts? - michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/c

Re: [PHP] string manipulation

2004-08-12 Thread Michal Migurski
$formatted = sprintf('ORD%05d', $id); ----- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to enable utf-8 in php?

2004-07-14 Thread Michal Migurski
et/manual/en/function.utf8-encode.php http://php.net/manual/en/function.utf8-decode.php ----- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing L

Re: [PHP] Some weong when I start the apache and PHP

2004-07-13 Thread Michal Migurski
rt Apache, or just point your browser to http://localhost:8080 ----- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session Variables ~ Best Practices

2004-07-13 Thread Michal Migurski
uth']['username'] or $_SESSION['prefs']['boxers_or_briefs']. -mike. - michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php reserved characters...

2004-07-12 Thread Michal Migurski
> > i tried to do a "\ > any idea as to what's going on, and can someone > > point me to a list of the actual php reserved > > chars/words couldn't seem to track them down > > on the php site/google... > > < is not reserved. The problem is your HTML. > > Your result ends up like this: Eithe

Re: [PHP] How to use multiple cookie statements

2004-07-12 Thread Michal Migurski
#x27;). Or, use PHP's built-in session support. The cookie stores a unique ID, whie the actual values are stored on the server. - michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html

Re: [PHP] Cannot send session cookie

2004-07-12 Thread Michal Migurski
o have set-up code such as session_start() be one of the very first things you call in a script. Wrong: Right: ----- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.

Re: [PHP] [PHP5RC3] echo " $this->db->host " not work

2004-07-11 Thread Michal Migurski
.types.string.php#language.types.string.parsing.complex --------- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [Q] Why does my php file gets displayed instead of executed

2004-07-11 Thread Michal Migurski
he.php - michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Emulating sprintf???

2004-07-08 Thread Michal Migurski
n: use provided sprintf, but parse out any unwanted placeholders first, using preg_replace. ----- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] user tracking

2004-07-06 Thread Michal Migurski
u'll need to look elsewhere. ----- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Password encyption

2004-07-02 Thread Michal Migurski
vulge its content (apache config or .htaccess is a personal favorite of mine), and (important!) back up your DB regularly so that you can recover from attacks cleanly. -mike. --------- michal migurski- contact info and pgp key: sf/c

RE: [PHP] calling imagemagick from php

2004-06-29 Thread Michal Migurski
former case, you will set the size of your output image to W width and H height. In the latter case, I believe that the 'x H' is ignored, and you implicitly set the size of your output image to W width and W height. Big difference for any aspect ratio besides 1:1. ---

Re: [PHP] Concatenate PHP code into a string

2004-06-28 Thread Michal Migurski
pe' supplied to db_array_to_query()", E_USER_WARNING); return false; } return $query; } - michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] a stupid question

2004-06-24 Thread Michal Migurski
y would that have been posted as advice? --------- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] file locking question

2004-06-21 Thread Michal Migurski
); flock($fh, LOCK_SH); // read from file here flock($fh, LOCK_UN); fclose($fh); See example 1 in the manual page for flock for more info. --------- michal migurski- contact info and pgp key: sf/ca

Re: [PHP] mod_rewrite Issues

2004-06-19 Thread Michal Migurski
/beta You may need to add a RewriteCond: http://httpd.apache.org/docs/mod/mod_rewrite.html#RewriteCond ----- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Ma

Re: [PHP] src="test.php"

2004-06-16 Thread Michal Migurski
ntent-type header. See header(). ----- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] index.php not loading up

2004-06-16 Thread Michal Migurski
gt; I'm not even sure that's remotely valid PHP or HTML. What's it supposed to do? - michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Eliminating all lowercase words

2004-06-14 Thread Michal Migurski
al 'B' -- > arrgh! You could just look for lowercase words, instead of "not-uppercase" words, like so: /\b[a-z]\w+\b/ ----- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/c

Re: [PHP] Re: Cookie Security?

2004-06-14 Thread Michal Migurski
er encountered a project where this level of care was called-for while SSL was not. ----- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Cookie Security?

2004-06-14 Thread Michal Migurski
he information you're transmitting, and you may decide to go with SSL. ----- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Expedia.com

2004-06-09 Thread Michal Migurski
is complete. Combine that with a bit of javascript waiting for the image to load, and you should have basic loading-bar behavior. ----- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html --

Re: [PHP] Can someone explain this?

2004-06-08 Thread Michal Migurski
, but once it become a hex string (after dechex()), all that info is gone. I think the way to handle this situation is to use pack & unpack. ----- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com

Re: [PHP] include and require

2004-05-27 Thread Michal Migurski
opriate include_path setting as well. --------- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP segfaults, any ideas?

2004-05-26 Thread Michal Migurski
p_children () #13 0x0806042c in standalone_main () #14 0x08060c8f in main () #15 0x400b01c4 in __libc_start_main () from /lib/libc.so.6 ----- michal migurski- contact info and pgp key: sf/ca

Re: [PHP] interesting

2004-05-25 Thread Michal Migurski
> What does the { } around the array mean? http://www.php.net/manual/en/language.types.string.php#language.types.string.parsing.complex ----- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.

RE: [PHP] Re: best way to do this with arrays...

2004-05-24 Thread Michal Migurski
heck_time} <= end_time; (Adjust as appropriate for date formatting, SQL injection, etc.) If you're using MySQL, this page is informative: http://dev.mysql.com/doc/mysql/en/Date_and_time_types.html -mike. ----- michal migurski-

Re: [PHP] Quick encoding question:

2004-05-24 Thread Michal Migurski
> about this? Thanks! Looks like UTF-8. Make sure your output character encoding matches the database encoding, and use htmlentities() and the mb_* (multibyte string) functions where necessary. Debugging this stuff is a pain. :P -------

Re: [PHP] Re: best way to do this with arrays...

2004-05-24 Thread Michal Migurski
strtotime($end); $timestampCheck = strtotime($check); ----- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Using php to modify a css file

2004-05-22 Thread Michal Migurski
many ways of achieving the same end. --------- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Using php to modify a css file

2004-05-22 Thread Michal Migurski
ng parsed, and that the Content-Type header is correct. You'd be better off not messing with AddType at all to parse .css files - it's more important that the content-type be "text/css." --------- michal mi

Re: [PHP] XML problem

2004-05-18 Thread Michal Migurski
, follows the syntax rules properly. Most of the syntax is described here: http://www.w3schools.com/xml/xml_syntax.asp ----- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html --

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-12 Thread Michal Migurski
leaving open the possiblity of someone using up all > your memory and bringing the machine to a standstill till, then when > swap space runs out.. watch out! :) This makes sense, thanks. ----- michal migurski- contact

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-12 Thread Michal Migurski
requests to clog the pipes with them. Would the proper way to handle this risk be to disallow POST at the webserver level, or does turning always_populate_raw_post_data off cause the connection to be automatically dropped after Connection: close? -mike. -------

Re: [PHP] default and another constructor

2004-05-12 Thread Michal Migurski
http://php.net/manual/en/ref.funchand.php ----- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-12 Thread Michal Migurski
ays. Anyone have any clue why this is the case? Is there a performance reason that raw post data must be explicitly enabled, or is it more of a protective measure for overly permissive beginner scripts? Inquiring minds demand answers! --------

Re: [PHP] Print a variable's name

2004-05-05 Thread Michal Migurski
} ...Which isn't much of an improvement over a plain old echo/print. And if that's good enough for Brian Kernighan, I'd hope it's good enough for you. :D ----- michal migurski- contact info and pgp key: sf

Re: [PHP] Select from 24 tables

2004-05-01 Thread Michal Migurski
, then I stand corrected, and John Nichel's initial response is all that's needed. A huge table count is often evidence of a need for some refactoring. - michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Sorting text with multibyte characters

2004-05-01 Thread Michal Migurski
> Run into this before, PHP seams to do quite well when you set the locale > right ( de_DE ) which will place AÄBCD instead of ABCDÄÖÜ. > > Hope this helps :-) Thanks, I hadn't thought of that. ----- michal

Re: [PHP] Select from 24 tables

2004-05-01 Thread Michal Migurski
ar ways, you should probably merge them all into a single table with an extra column that corresponds to whatever differentiating characteristic used to distinguish your original tables. I.e., go with John Holmes' suggestion before you're really up the creek. ---

[PHP] Sorting text with multibyte characters

2004-05-01 Thread Michal Migurski
XML output for flash, which is always expected to be in UTF-8), but none of them seems to be made for string comparison. thanks, -mike. ----- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/co

Re: [PHP] MySQL Dump

2004-04-24 Thread Michal Migurski
ue about windows. ----- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL Dump

2004-04-23 Thread Michal Migurski
> Will this work on both a Windows and Unix server? No, it's most assuredly a unix-only thing. ----- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing Li

Re: [PHP] MySQL Dump

2004-04-22 Thread Michal Migurski
-q -i $SQL_FILE; else rcs -q -l $RCS_FILE; fi; echo "mysql_backup.sh" | ci -q $SQL_FILE; - michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] regular expressions php/perl/actionscript

2004-04-22 Thread Michal Migurski
essions". The ereg functions use a slightly different syntax. ----- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP vs PERL? (Seriously OT Now....)

2004-04-22 Thread Michal Migurski
> Uh-oh, does that mean an Atheist has to use ASP??? ;) > [/snip] > > And if so, what must a Buddhist use? Lisp, of course. ----- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/

Re: [PHP] Making an app unviewable during system maintainance

2004-04-21 Thread Michal Migurski
yesterday, and it seems relevant: http://www.oreillynet.com/pub/wlg/4715 - michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Making an app unviewable during system maintainance

2004-04-20 Thread Michal Migurski
s to dump the database, then back up the > dump. Depending on how well the dump utility works, you might be able > to do away with the downtime. mysql has mysqldump, and postgresql has pg_dump. Both of these are pretty much all you'd need, and neither requires any site downtime.

Re: [PHP] Making an app unviewable during system maintainance

2004-04-20 Thread Michal Migurski
x27;s just a big "read" operation. --------- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Forking external binaries

2004-04-20 Thread Michal Migurski
args &"); Wish php had fork() in a non-experimental context. :\ ----- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP and HTTP requests

2004-04-19 Thread Michal Migurski
executable, and you consider exec to be a "standard" function, there's always this: $response = shell_exec("curl http://www.example.com";); I always use last method that in preference to the curl functions. I find them incredibly overengineered. :) --

RE: [PHP] Re: oo question

2004-04-19 Thread Michal Migurski
y_two } return $this->property_two; } } - michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] test, please ignore

2004-04-18 Thread Michal Migurski
- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Using ' to access session variables?

2004-04-16 Thread Michal Migurski
echo "A banana is {$fruits['banana']}."; // Works but PHP looks for a constant named banana first // as described below. echo "A banana is {$fruits[banana]}."; // Won't work, use braces. This results in a parse error.

Re: [PHP] Re: trying to output a hyperlink

2004-04-11 Thread Michal Migurski
e constructions like that instead of templating classes like smarty or printf constructiions, and I've been very pleased with em. ----- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html --

Re: [PHP] Regular Expression Help

2004-04-08 Thread Michal Migurski
) [1] => Array ( [0] => Breadth Requirement [1] => More Matched Content! ) ) ----- michal mig

[PHP] Regular Expressions with symmetrical contents

2004-04-08 Thread Michal Migurski
that are in RTF format, so I guess an RTF parser would work too. Any leads? ----- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Regular Expression for a UK mobile phone number

2004-04-08 Thread Michal Migurski
put where it fails would be good, perhaps in a reduced case, like: foreach($array_of_inputs_to_check as $input) printf("input: %s, matches?: %d\n", $input, check($input); ----- michal migurski- con

Re: [PHP] Regular Expression for a UK mobile phone number

2004-04-08 Thread Michal Migurski
uot;&client_id=".$_GET[client_id]."&rep_name=".$_GET[rep_name]."&client_name=".$_GET[client_name].""); exit; } } Also, your regexp is a little permissive; you can anchor it like so: $regexp = "/^447[0-9]{9}$/&q

Re: [PHP] Re: php + lynx + grep

2004-04-07 Thread Michal Migurski
path? Check the output of `which lynx` or phpinfo() to figure out what your path is, and whether it includes lynx. Alternatively, use a full path to lynx to avoid confusion. ----- michal migurski- contact info and pgp key: sf/ca

Re: [PHP] Flash MX

2004-04-03 Thread Michal Migurski
oting with AMFPHP is speedy and easy, but you may be a little better off using XML - it's definitely chatty, but the API is stable on both sides, and there's no reverse-engineering voodoo associated with it. ----- mich

RE: [PHP] Alternatives to Flush()

2004-03-24 Thread Michal Migurski
r two here or there? Jus let the user know they're in good hands and get to it when you get to it. - michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] fsockopen to spit out the HTTP's Location...

2004-03-23 Thread Michal Migurski
e 3rd party code then? Or send your Location header before you call it? Curl won't help you here, for the same reasons that fsockopen won't work. ----- michal migurski- contact info and pgp key: sf/cahttp://mike.teczn

Re: [PHP] replacing chars in input

2004-03-23 Thread Michal Migurski
preg_replace('/\W+/', '', $in); ----- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] fsockopen to spit out the HTTP's Location...

2004-03-23 Thread Michal Migurski
rl_str."\r\n"); That won't get sent to the browser, it will get sent to 192.168.0.2, which is (I guess) some machine behind your router. You can't initiate a TCP connection -- what fsockopen does -- with the client's machine. I'll ask even though you said not to - Why doe

Re: [PHP] Image Storage

2004-03-22 Thread Michal Migurski
the database also means that you don't have to worry about various filesystem considerations, like keeping a world-writeable directory or potential undesired access from others users in a shared hosting environment. ----- michal m

Re: [PHP] Re: php and CSS level 2

2004-03-21 Thread Michal Migurski
caching, I think just setting up the appropriate cache-control headers should make it indistinguishable from a regular, static CSS file. ----- michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/conta

  1   2   >