[PHP] CGI PHP processing .shtml

2002-01-23 Thread Christian Cresante
i want to have php process .shtml files. i tried appending the following to .htaccess, but to no avail: AddType application/x-httpd-php .shtml is it because php is running as a cgi program? how would i go about getting this to work. its php 4.0.6 running on a sparc, if that matters. thank

Re: [PHP] Looping?

2001-12-14 Thread Christian Cresante
Hello. The easiest and cleanest way to do is use something like: function start($times) { for loop { ?> //END php tag // Spit out the HTML. wrote: > Hello, I don't know if I'm in the right newsgroup > but I'll give it a try... > :-) > > How can I make the following work: > > function

Re: [PHP] Javascript question

2001-10-29 Thread Christian Cresante
hello. javascript has a toLowerCase() method. just call this method using onsubmit. --- Rosen <[EMAIL PROTECTED]> wrote: > Hi, > This is not a PHP question, but can someone help me > how to convert in lowercase the text into "INPUT" > statment online ? > (i.e. when the user press a key , the

Re: [PHP] browser detection

2001-09-25 Thread Christian Cresante
hello. you can use the $HTTP_USER_AGENT variable for that. for example: $spacerheight = 2; // default if (strstr($HTTP_USER_AGENT, "Mac")) { $spacerheight += 4; } hope that helps. --- wm <[EMAIL PROTECTED]> wrote: > hi all, > > anybody know the function for browser detection? > > wh

Re: [PHP] PHP INSTALL

2001-08-07 Thread Christian Cresante
seems all the php files are everywhere. would --force take care of this? i really want to do the smallest work possible. thanks again. --- Tim <[EMAIL PROTECTED]> wrote: > As far as I know, you need to build from source to > accomplish that. > > - Tim > > On 07 Aug 2

[PHP] PHP INSTALL

2001-08-07 Thread Christian Cresante
I posted this yesterday and got no response. i know somebody out there went thru this. I have php4.0.4pl1 installed from redhat 7.1 binary cd along w/ apache 1.3.19, mysql, ldap, etc. everything works fine, but now i want support for pdf and swf. i looked for a configure script for php b

[PHP] configuring php from a binary install

2001-08-06 Thread Christian Cresante
I have php4.0.4pl1 installed from redhat 7.1 binary cd along w/ apache 1.3.19 and a couple other stuff from the cd. everything works fine, but now i want support for pdf and swf. i looked for a configure script for php but none was found. how would i go about doing this? i would hate to ins

Re: [PHP] alternate pattern match

2001-03-28 Thread Christian Cresante
if all you want to know is the browser's version, why not use get_browser() http://www.php.net/manual/en/function.get-browser.php --- Costas <[EMAIL PROTECTED]> wrote: > How do i extract the position (integer counting from > the left) of the letter > M (beginning 'MSIE'. > > $str = "Mozilla/4.

Re: [PHP] Active-X

2001-03-28 Thread Christian Cresante
you need to use VBscript. if its mac IE 5+, you can use the plugins object from javascript. the vbscript is fairly simple. --- AJDIN BRANDIC <[EMAIL PROTECTED]> wrote: > Off topic but does anyone know how to detect if > user/visitor has ActiveX > OFF and if so then load a designated page. > >

Re: [PHP] delete an element from an array

2001-03-05 Thread Christian Cresante
Since its the last element, just pop it out: array_pop() --- kaab kaoutar <[EMAIL PROTECTED]> wrote: > Hi! > how can i decrement the length of an array! > In fact i'm trying to delete an element from an > array , i'v put the content > of i in i-1 (loop) and i tried to decrement the > array legnt

Re: [PHP] concatenating strings and \n's for mail...

2001-02-14 Thread Christian Cresante
You need to use "\n" for interpolation. --- Larry Rosenman <[EMAIL PROTECTED]> wrote: > Greetings, > I was trying to build up a multi-line body to > use with the mail > command, using code similar to: > $mailbody = $mailbody . '\n' . > $HTTP_POST_VARS["somefield"]; > > when I sent the

Re: [PHP] what is wrong with this sniplet?

2001-01-16 Thread Christian Cresante
I think it should be ... onClick='javascript:self.history.back()'... --- "Jacky@lilst" <[EMAIL PROTECTED]> wrote: > Hi people > Looking for a piece of advice about what is wrong > with this sniplet and what is the right one. I > tried to write the html using print(""); as below: > print(""); > p