[PHP] Re: PHP - mssql

2002-03-20 Thread Joe Webster
I doubt msSQL differs from MySQL -- $link = mssql_connect( $host, $user, $pass ) or die( "Can't connect to the DB!" ); mssql_select_db( $dbname, $link ) or die( "Can't select database" ); $query = "SELECT * FROM members WHERE user='$user' AND pass='$pass';"; $result = mssql_query( $query, $link

Re: [PHP] Making a simple borderless pop up window with a "Close" button

2002-03-20 Thread Joe Webster
) and will also work in Mozilla and Netscape 6. I > don't know about the JavaScript implementation in Opera, but if it > supports JS it is likely to support these options too (or at least > ingores them). > > bvr. > > > Joe Webster wrote: > > >It only works in IE

Re: [PHP] Making a simple borderless pop up window with a "Close" button

2002-03-19 Thread Joe Webster
It only works in IE -- it makes use of the 'Full Screen' (F11) option and tricks IE into doing so... hope you don't want it to work in NS, Opera... or anything else =) -Joe "Erik Price" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > On Tuesday, March 19, 2

Re: [PHP] Hi! Is there any equivalent function with header?

2002-03-19 Thread Joe Webster
I wouldn't say you NEED a full url, it should handle relative URL's as well. I don't know if it's part of the specification, but it will work. As far as your problem I hope that line break isn't in the string and it's just there because of the email. -Joe "Jason Wong" <[EMAIL PROTECTED]> wrote i

[PHP] Re: Search for words

2002-03-19 Thread Joe Webster
if(stristr( $file_data, $word )) die( "word found" ); that will work for one word -- for many words -- I would use: if(preg_match("/word1|word2|word3/i", $file_data)) die( "one or more words found" ); However, that does use preg -- which is MUCH faster than EREG but neither is as fast as a stra

[PHP] Re: Variable Variables and Mulitdimensional Arrays

2002-03-16 Thread Joe Webster
You seem to have three different ideas/questions... let me attempt to answer them: > Hi. I want to be able to access a key in a multidimensional array at some > depth "n" without knowing before runtime what the keys are. let's take a multidimensional array $x $x = array( "somevar", array

[PHP] Re: vectoring/switchyard php file

2002-03-14 Thread Joe Webster
RewriteRule ^([[:digit:]]+)(/*)$ /__obj.php\?id\=$1 [QSA] We use this rule to rewrite /1234 to become __obj.php?id=1234 and pass and Query String Arguments (QSA) like ?foo=bar and so on. -Joe "Dennis Gearon" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTEC

Re: [PHP] Targetted redirection?

2002-03-13 Thread Joe Webster
If you were going to use javascript to do that, use _parent as the target -- that should reuse the window rather than making a new window. -Joe "Erik Price" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > On Wednesday, March 13, 2002, at 03:15 PM, Ben Che

[PHP] Re: Checking for characters in string

2002-01-04 Thread Joe Webster
This one had me for a min, thank god for the lookahead =) $password_string being the password in quesiton, $is_valid = true when it is valid, false when it's not valid. $is_valid = preg_match("/(?=.*\d)(?=.*[a-z])(?=.*[A-Z])./", $password_string); I've said it before and I'll say it again, preg

[PHP] Re: More on images...

2002-01-03 Thread Joe Webster
$GLOBALS[ "HTTP_REFERER" ]; "Matthew Walker" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Related to my last question about the cookies in images, is there any way to get the referrer from the calling page without passing it as an argument to the image genera

[PHP] Re: PHP dependent on connection speed?

2002-01-03 Thread Joe Webster
Uh no, Php is completely server-side. Any kind of request will be built up, processed, and sent out to be sent to the user. If the user has a slow connection it will take longer to get that information, but PHP is done. -Joe "Charlesk" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]"

Re: [PHP] INI file parsing

2002-01-02 Thread Joe Webster
that php in Windows and IIS reloads the ini every time a page is requested? > > Charles Killmer > > -- Original Message ---------- > From: "Joe Webster" <[EMAIL PROTECTED]> > Date: Wed, 2 Jan 2002 15:46:32 -0500 > > no

[PHP] Re: Test

2002-01-02 Thread Joe Webster
dork "John Monfort" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Test: cannot send mail, but can read. > Please ignore. > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMA

[PHP] Re: Regular Expression

2002-01-02 Thread Joe Webster
preg_match("/]*)/i", $html, $args); $body_props = $args[1]; preg is much faster/better than ereg. note the /i at the end of the preg, that makes it case insative, drop the i if you want it to be case sensative on the match. -Joe "John Monfort" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECT

[PHP] Setting PHP vars in Apache Directives

2002-01-02 Thread Joe Webster
php_value, php_flag, php_admin_value, php_admin_flag but these are only for INI settings. Thanks for any help before I attempt to modify mod_php ;) Joe Webster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL P

[PHP] Re: Extract a string from a string

2002-01-02 Thread Joe Webster
$find = "hi"; $contents = implode(null, file($logfile)); $contents = preg_replace("/($find)/i", "\\1", $contents); echo $contents; that will replace any $find with your highlighted b. Notice the i at the end preg expression, that tells it to ignore case. The nice part about that is that if you se