[PHP] Still can't talk to the Oracle

2001-02-13 Thread Kristofer Widholm
I'm setting up a back end production system for a television show, and have been given space on a development server with PHP 4 and Oracle support compiled in (but not the OCI libraries). The Oracle admin have given me my user name (let's say ora_user), a TNS name (tns_name), and a password (o

[PHP] Re-engineering print()

2001-01-10 Thread Kristofer Widholm
Hi, I'm involved in a conundrum that is a little difficult to explain with plain English. Perhaps some PHP code will help you understand what I am attempting: #Option 1: code I wish worked $s = include("phpcode.php"); #Option 2: also code I wish worked $s = sprintf("%s", include('template.php'

[PHP] Re-engineering print()

2001-01-10 Thread Kristofer Widholm
Hi, I'm involved in a conundrum that is a little difficult to explain with plain English. Perhaps some PHP code will help you understand what I am attempting: #Option 1: code I wish worked $s = include("phpcode.php"); #Option 2: also code I wish worked $s = sprintf("%s", include('template.php'

Re: [PHP] Re-engineering print()

2001-01-10 Thread Kristofer Widholm
Here's what you wrote, 01-01-11: > > $s = sprintf("%s", implode("\n", file('template.php'))); > >Why this??? It's redundant, isn't it? Wouldn't > >$s= implode("\n", file('template.php')); do it? > >Gfunk Gfunk, and Mr. Murray, I guess I didn't write my query very clearly. What I am looking for

Re: [PHP] Re-engineering print() - PHP 4 required

2001-01-10 Thread Kristofer Widholm
Here's what you wrote, 01-01-10: >Try this: > >function my_eval($code) { >ob_start(); >eval($code); >$retval = ob_get_contents(); >ob_end_clean(); >return $retval; >} > >$str = my_eval("echo 2+2;"); >echo $str; Mr. Lerdorf, Mr. McClahahan, Mr. Butzon et al, Thank you for you

Re: [PHP] mixing HTML and PHP code

2001-01-14 Thread Kristofer Widholm
unction to connect as much as you want on a page you're spitting out results from. Or am I missing something? Kristofer -- __________ Kristofer Widholm Web Pharmacy [EMAIL PROTECTED] 191 Grand Street, Brooklyn NY 11211 718.599.4893 __

[PHP] Re: Another q, this time eregi_replace

2001-01-14 Thread Kristofer Widholm
,,,") Will remove all tags from a user submission except Bold, Italics, Anchor tags, Emphasis, and Cite. Kristofer ps. Strip Tags is not available in PHP prior to 3.018 in the CGI version. I know it's available in the 3.015 version of the Apache module. -- ______

[PHP] Re: Searching a MySQL database?

2001-01-14 Thread Kristofer Widholm
an $sql = "SELECT * FROM table_name WHERE towns LIKE \"%$town%\" "; The % is more fuzzy. Look it up in the MySQL manual for more details on %. <http://www.mysql.com/doc/> Kristofer -- __ Kristofer Widholm Web Pharmacy [

Re: [PHP] :: MySql and PHP Book

2001-01-15 Thread Kristofer Widholm
ection than I did in the two other PHP only books I bought. I think, given the complexity of database design (if you want to do it right), that it's worth it to really study MySQL in and of itself. Kristofer -- ______ Kristofer Widholm Web Pharmacy [EMAIL

[PHP] Re: [PHP-DEV] cookies and sessions security

2001-01-15 Thread Kristofer Widholm
start ;) > >--Toby Wow, I never thought of using the remote IP! Thanks for the tip. I am going to use it today for an authentication system I'm building. Kristofer -- __ Kristofer Widholm Web Pharmacy [EMAIL PROTECTED] 191 Grand Street, Brook

Re: [PHP] Re: [PHP-DEV] cookies and sessions security

2001-01-15 Thread Kristofer Widholm
, the system would still be more secure than if I weren't using IP verification at all. Does anyone one know of a class or function that's been already built to do this? Kristofer -- __ Kristofer Widholm Web Pha

Re: [PHP] url hide

2001-01-23 Thread Kristofer Widholm
t; the user still to see www.blah.co.uk. This is just for aesthetic reasons >> since ones the user finishes the search for houses (on > > www.foo.co.uk/house-search/) he/she will return to www.blah.co.uk. -- __ Kristofer Widholm Web Pharmacy [EMAIL PR

RE: [PHP] Search Engines and PHP

2001-01-23 Thread Kristofer Widholm
variables? Kristofer -- ______ Kristofer Widholm Web Pharmacy [EMAIL PROTECTED] 191 Grand Street, Brooklyn NY 11211 718.599.4893 __ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For a

RE: [PHP] Search Engines and PHP

2001-01-23 Thread Kristofer Widholm
e a different page from <http://domain/script.php/value3/value1/value2>, whereas using variable declarations in the URL like so <http://domain/script.php?value2=foo&value3=bar&value1=barfly> means you can put them in any order you like. Kristofer --

[PHP] RE: "Authenticating" across sites/servers

2001-01-23 Thread Kristofer Widholm
auth came from from server A, and then gives

[PHP] Re: Using PHP to do centralized site authentication

2001-01-27 Thread Kristofer Widholm
;ve totally misunderstood your situation. Kristofer -- ______ Kristofer Widholm Web Pharmacy [EMAIL PROTECTED] 191 Grand Street, Brooklyn NY 11211 718.599.4893 __ -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] PHP and Oracle resources

2001-01-27 Thread Kristofer Widholm
s, resources, books, etc, to point me to? EVERYTHING I see is MySQL, MySQL, MySQL, and all I get for Oracle are lists of unexplained PHP function calls. Just point me in the right direction. I can walk there myself. Thanks for the help. Kristofer -- __________ K

Re: [PHP] Invoke PHP script from onLoad handler?

2001-01-29 Thread Kristofer Widholm
vaScript, without the need for any database query. Kristofer -- ______ Kristofer Widholm Web Pharmacy [EMAIL PROTECTED] 191 Grand Street, Brooklyn NY 11211 718.599.4893 __ -- PHP General Mailing List (http://www.php.net/) To unsu

[PHP] Re: Cookie with Netscape

2001-01-30 Thread Kristofer Widholm
ot;") with an integer (0). The domain at the end, according to spec, should start either with www or with a period (.mydomain.com). See if that helps. Kristofer -- __ Kristofer Widholm Web Pharmacy [EMAIL PROTECTED] 191 Grand Street, Brooklyn NY 1

Re: [PHP] Editor

2001-01-30 Thread Kristofer Widholm
elegant, and incredibly customizable. It has PHP syntax coloring too. Also, BBEdit only includes PHP syntax coloring in version 6.0 and above. Kristofer -- ______ Kristofer Widholm Web Pharmacy [EMAIL PROTECTED] 191 Grand Stre

[PHP] Re: Text fading with PHP?

2001-03-24 Thread Kristofer Widholm
work latency. The best thing to do is to work with JavaScript and CSS. Look into the setTimeout() function in JavaScript and use it to step through different color values for your text using CSS. Or, just use an animated gif. K -- ______ Kristofer Widholm Web Pha

[PHP] Strange Error Reporting

2001-03-25 Thread Kristofer Widholm
reporting(32+16+8+4+2+1); and that's pretty picky error reporting. Still, I don't get what's wrong. K -- __________ Kristofer Widholm Web Pharmacy [EMAIL PROTECTED] 191 Grand Street, Brooklyn NY 11211 718.599.4893 _

[PHP] "Here Document" function AWOL

2001-03-30 Thread Kristofer Widholm
Dear PHPers. I have tried to get the "Here Document" functionality to work, all to no avail. I am writing the following code: $body = <

Re: [PHP] "Here Document" function AWOL

2001-03-30 Thread Kristofer Widholm
or the closing identifier. I did have a trailing white space after the opening identifier. Removing it solved the problem. Thanks for your help. -- __ Kristofer Widholm Web Pharmacy [EMAIL PROTECTED] 191 Grand Street, Brooklyn NY 11211 718.599.4893