[PHP] HELP - fwrite(...PHP code...)

2002-09-12 Thread Hankley, Chip
I have an application where I need to write PHP code to a file that will be used later...but it's not working the way I'd expect. When I issue the following: fwrite($fp, "http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Building a query on multiple variables, how to test for which variables are valid?

2002-08-28 Thread Hankley, Chip
Jay - How 'bout this? $init = 1; $query = "SELECT foo "; $query .= "FROM bar WHERE"; if ($init AND isset($var1)) { $query .= "WHERE thus = '" . $var1 . "' "; $init = 0;} if ($init AND isset($var2)) { $query .= "WHERE thus = '" . $var2 . "' "; $init = 0;} elseif (isset($var2)) { $query

RE: [PHP] whats wrong with this?

2002-08-28 Thread Hankley, Chip
you need to use "==" instead of "=" "==" is used when comparing values (i.e. is this "==" to that) "=" is used to set something's value (i.e. this "=" that) -chip -Original Message- From: Chris Barnes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 11:12 AM To: Php-General (

RE: [PHP] Re: Automatic Download using URL, HELP!

2002-08-26 Thread Hankley, Chip
Bogdan - Sorry for the delay to your follow-up. The total script is below... first let me explain a little more of what I'm doing for clarity's sake. I'm downloading a lot of data files from a site. The way the site works, you supply some information in a form regarding the data set you want.

[PHP] ODBC to MS-Access View?

2001-07-13 Thread Hankley, Chip
I'm trying to connect up w/ an Access database one of our db administrators set up. The Access file has an "adp" extension...the data is housed in a view, (essentially a read-only dump of some MS SQL Server tables). I've set up the file as a System DSN in ODBC (WinNT) When I issue the following

RE: [PHP] Security of PHP code

2001-07-04 Thread Hankley, Chip
OK, I'm pretty new to PHP, and have been reading this thread, and am just a little freaked. If I understand this right, the only way reason we can view the source code of those pages is that the web server on which the page resides essentially has a PHP page somewhere on their site that has some