RE: [PHP] User-friendly URI's

2002-01-03 Thread Opec Kemp
You will need to use the following techniques: * In Apache you will need to enable mod_rewrite module http://httpd.apache.org/docs/mod/mod_rewrite.html this allows you to "remap" URI to any script, in your case you'd probably want and request to "/news" to be mapped to for example /news.php etc.

RE: [PHP] Sending Broadcast Email - will a large loop cause a crash?

2001-09-06 Thread Opec Kemp
Hi, You'd be better off running this process from a command line, i.e. not through your Web Browser as I'm more than certain that it will timeout if you are to send 3000+ emails in a loop :). And then you'll have to start again , and I'm sure your client won't be so happy if they were to get multi

RE: [PHP] Capitalize Function ??

2001-07-23 Thread Opec Kemp
The function that you want is called: ucfirst() http://www.php.net/manual/en/function.ucfirst.php To make sure that string are consistant you might want to convert all characters in the string to Lower case first then call this function. This will ensure that stuff like "JoHn sMITH" gets convert

RE: [PHP] The need for strong typing...

2001-07-12 Thread Opec Kemp
> I will look into JSP. > > Even on the same website, we could have two different languages: Maybe > we'll use JSP for the transaction stuff, and PHP for customer support > pages, where things are less critical. Incidentally, PHP4 can also use some Java Serverlet or Bean. Check out this bit from

RE: [PHP] The need for strong typing...

2001-07-12 Thread Opec Kemp
> Also obviously, this capability isn't needed for most of what PHP is > used for, and so maybe it doesn't belong in PHP, and maybe those of us > who are writing more sensitive aps should look into other things. Any > sugestions? I suppose that if you *really* do need strongly typed language tha

RE: [PHP] PC MAG article

2001-05-09 Thread Opec Kemp \( Ozemail \)
Lol :) Obviously they didn't even look at the ODBC functions part of PHP :) Besides I don't know what they're bitching about DB abstraction layer anyway. I mean Oracle SQL and MS SQL and MYSQL and Interbase SQL is not exatcly compatible :) So even if you use the DB Abstraction layer to connect to

RE: [PHP] mySQL Question....

2001-04-17 Thread Opec Kemp \( Ozemail \)
> if i perform a SELECT query (say) like the following: > > SELECT email_addr FROM myTable WHERE x = 1 > > in this query i want to pull-out (or list) all email > addresses where x equals 1, however, suppose i don't want any > duplicate email addresses... would i use ORDER BY and COUNT(*) to get l

RE: [PHP] L?

2001-04-09 Thread Opec Kemp \( Ozemail \)
Try this site http://www.cod.edu/people/faculty/lawrence/romaindx.htm > -Original Message- > From: Kurth Bemis [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 10, 2001 10:14 AM > To: [EMAIL PROTECTED] > Subject: [PHP] L? > > > what does the roman numeral L mean? > > can someone po

RE: [PHP] Decrypt Function?

2001-03-25 Thread Opec Kemp \( Ozemail \)
Unix "Crypt" function is a one way encrypytion algorithm therefore you can not technically decrupted as such. The way that you can check to see if the given uncrypted value is equals to its crypted value is to 1) Crypt the string with the same "salt" 2) Compare this with the crypted version If t

RE: [PHP] Munging hidden/form variables

2001-03-01 Thread Opec Kemp \( Ozemail \)
I can think of one way that you can take in an attempy to prevent this. It is not totally fool proof but it will make it more difficult to send spoof data: 1) Check your HTTP refereer when the form is submitted. If the referer is not from your host then don't process the form. Of course this can

RE: [PHP] Passing values from ASP to PHP

2001-03-01 Thread Opec Kemp
Hi, To enumerate the key/value in ASP from the form you'd do this <% dim element dim objForm dim strURL '/* We're creating an object so that it won't matter which ' * HTTP method the previous form uses. ' */ If LCase(Server.Request("HTTP_METHOD")) = "post" Then Set objForm = Request.Fo

RE: [PHP] -----s--- bit

2001-02-22 Thread Opec Kemp \( Ozemail \)
Hi, Why do you want to access /etc/shadow from your PHP?. As a general rules of thumb that's a pretty bad idea. The reason for this is that /etc/shadow is owned by Root and it's *should* only be readable by Root and noone else. Now in answer to your question "Why your PHP" script can't read /etc

Re: [PHP] SSH file transfer

2001-01-10 Thread Opec Kemp
Humm... that's a bit difficult. There are easier solution: 1) Get your users to learn and usr SCP :) (not likely :)) 2) Get a better FTP Server. There are better FTP servers out there other than Wu-FTPD :). Try Pro-FTPD 3) SSH server to forward the FTP port (21). This will pass the "command" c