[PHP] PHP / MYSQL security bug

2002-02-05 Thread Gerard Onorato
Maybe I missed the thread but I was wondering if anyone has seen this report or done any testing on it. We tested it and it seems a pretty valid problem. Can anyone comment on a fix that may be in the works? Gerard -

RE: [PHP] Swapping BR for \n... ?

2002-01-29 Thread Gerard Onorato
On this page at php.net http://www.php.net/manual/en/function.nl2br.php# You will find a function by [EMAIL PROTECTED] which is a great implimentation of replacing the /n in a line. I would suggest you take a look. Gerard At 03:19 PM 1/30/2002 +1100, Jason Murray wrote: Isn't there a

Re: [PHP] How to copy a substring of a string

2001-12-29 Thread Gerard Onorato
http://www.php.net/manual/en/function.substr.php On Sat, 29 Dec 2001 18:28:57 -0600, Carlos Fernando Scheidecker Antunes wrote: Hello All, I've been searching on the online documentation and I'm pretty sure I've done it before but I don't recall how. The problem is. I have a string with 17

Re: [PHP] Only one instance of a script at a time !

2001-12-28 Thread Gerard Onorato
There may be a much easier method however why not write a file and then check for it's existence on the next execution. Delete the file at the end of execution to clear the way for the next pass. Quick and dirty so probably at least on typo ? $pidFile = path/to/file/filename; if (!is_file

Re: [PHP] Only one instance of a script at a time !

2001-12-28 Thread Gerard Onorato
Nicolas, You could try something like ? $pifFile = /path/to/file/filename; if(file_exists($pifFile)) { $fp = fopen($pifFile, r); flock($fp, 2); // your code fclose($fp); } Note: Just wrote it, not tested. Note: You would probably want to do somethig more graceful then simply

Re: [PHP] Show only few words that var contains

2001-12-26 Thread Gerard Onorato
Daniel, Here is a rather inelegant way to do this. I am sure there is a better way and I would love for someone to point it out to us. This function simply pulls out the first N words using the space as a delimiter. function firstN($string, $N) { // remove all double and more spaces

[PHP] Question

2001-12-26 Thread Gerard Onorato
for a little input on how you all would feel about this. I apologize for posting something a bit off topic here. Thanks, Gerard Onorato -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

Re: [PHP] Mailling Lists

2001-12-26 Thread Gerard Onorato
Ben, These aren't pure PHP however if you are using qmail I would tell you to take a look at ezmlm (http://www.ezmlm.org/) and if your using sendmail you may want to try majordomo (http://www.ualberta.ca/CNS/MAJORDOMO/). If your using something else... well I honestly have no clue. :) Gerard

[PHP] PEAR E-mail

2001-12-22 Thread Gerard Onorato
Hello All, I was wondering if anyone could point me towards some good documentation on the PEAR e-mail functions. I was unable to turn up anything. Thanks, G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] SSL Connection with cURL

2001-12-20 Thread Gerard Onorato
Roman, This is certainly not the exact answer you are looking for however... We had a lot of trouble using the PHP curl commands directly. We are currently doing a large volume of transactions using cURL with great success by shelling to it. I am attaching a very simple example of what we are

Re: [PHP] MS Word text pasted into forms

2001-12-20 Thread Gerard Onorato
Jim, Have you tried a regular expression. Something like ereg_replace([^[:alnum:]|[:space:]|[:punct:]@], , $string); to clean the string? Gerard O On Thu, 20 Dec 2001 17:02:58 -0500, jimtronic wrote: Occasionally, I have a problem dealing with some of the special characters from text

[PHP] HTML Email

2001-12-18 Thread Gerard Onorato
Okay I know I must be overlooking somethign super obvious but I am trying to send a simple HTML email. It works in Netscape mail, Pegasus etc however in Outlook and Outlook express it actually places the Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 7bit in the

Re: [PHP] HTML Email

2001-12-18 Thread Gerard Onorato
Eureka! That seems to have fixed the problem. Now to test on the Mac clients. G On Tue, 18 Dec 2001 23:11:31 +0100, TD - Sales International Holland B.V. wrote: On Tuesday 18 December 2001 15:51, you wrote: Ok, just a guess here I'm not that familiar with writting my own headers What

[PHP] fgets and eval

2001-12-18 Thread Gerard Onorato
Hello all, Okay here is the situation. I am reading a file using fgets up until I hit a certain delimiter within the text. No problem there. This text file may or may not contain php in the format ? blah ?. So I now have two variables $header and $footer which may or may not contain some php

RE: [PHP] using variables

2001-12-16 Thread Gerard Onorato
David, Your code should read: html body img src=? echo($ulo); ? /body /html -Original Message- From: David Killingsworth [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 16, 2001 2:39 AM To: [EMAIL PROTECTED] Subject: [PHP] using variables I'm trying to determing why this won't

RE: [PHP] Re: ordered alpabeticaly list

2001-12-13 Thread Gerard Onorato
Okay, haven't tested this but it should work. I would let mysql do some of the work here. In your select add something like Something like $result = mysql_query('select ucase(left(name,1)) as foo, name from userlist order by name'); $lastletter = ''; while ($data =

[PHP] Apache restart env - i issues as concerns PHP

2001-12-06 Thread Gerard Onorato
I have a question about PHP under apache. I was playing with some PHP4.0.6 apps running under apache 1.3.20 on a vanilla RedHat 7.1 box. I was logged in as 'xyz' on the box via SSH. I 'su'd to root to restart apache (/etc/init.d/httpd restart) a few times during testing. In one of my tests I

RE: [PHP] in_array error

2001-11-29 Thread Gerard Onorato
Steve, What version of PHP are you running. in_array is = 4.0. is_array was in 3.0 so this may be an issue for you. Gerard -Original Message- From: Steve Osborne [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 29, 2001 3:08 PM To: PHP-General (E-mail) Subject: [PHP] in_array error

[PHP] Trainers / Instructors

2001-11-02 Thread Gerard Onorato
. If Anyone out there is interested, please e-mail me directly and I will forward it on to them. Thanks very much, Gerard Onorato -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

[PHP] curl and HTTPS

2001-10-29 Thread Gerard Onorato
Hello all, Okay I have figured out that I will not be able to use fsockopen with https to submit a form. Now I am on to using CURL with openssl. Does anyone know of a sample of how to do this? I have seen mentions of it being done but can not find any examples. Thanks in advance. Gerard --

RE: [PHP] Excel to MySQL

2001-10-27 Thread Gerard Onorato
Another idea that may work... and I say may because I have never done it myself. Is to use MyODBC drivers and do the import code native to Access. I would be interested to hear if others have done this. Gerard -Original Message- From: Jeff Gannaway [mailto:[EMAIL PROTECTED]] Sent:

[PHP] php-mysql question

2001-10-26 Thread Gerard Onorato
this function would be appreciated! Thanks. #2) Does anyone know of a convention / conference which will have any PHP coverage in the North East? Thanks, Gerard Onorato -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: [PHP] Re: Error: Can't redeclare already declared function (PHP 3.0.15)

2001-10-26 Thread Gerard Onorato
Hi, Another solution I have used when I have to do conditional includes which may cause the same page to be included twice At the top of the code to be included (the separate file) put something like: if ($theFileAlreadyInclude != 1) { and at the bottom you may put: }

[PHP] Posting form variables with http authentication

2001-06-21 Thread Gerard Onorato
for authentication. Before I even try this I was wondering if someone out there had ever done this or could point me in the right direction of some documentation in this area. If it can't be done I would appreciate knowing that as well. Thanks! Gerard Onorato -- PHP General Mailing List (http

RE: [PHP] should be simple

2001-05-20 Thread Gerard Onorato
Richard, Forgive me for stating the obvious. How are you filling the variable $cheader? If you are simply putting an echo command without pulling the info from the database first you will obviously be getting nothing. Gerard -Original Message- From: Richard Kurth [mailto:[EMAIL

[PHP] strange files in my upload_tmp_dir

2001-03-08 Thread Gerard Onorato
be? Thanks very much! Gerard Onorato -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]