RE: [PHP] REPLY NEEDED

2003-04-04 Thread Sysadmin
I know this is OT, but I caught a story somewhere about the American Embassy in Nigeria actually having to REGULARLY rescue Americans who go over there to claim their moneythat's just sad. -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03,

[PHP] MySQL Insert with Auto-Increment

2003-04-04 Thread Sysadmin
Ok, here's what I have. I want to insert some values into a table with an auto_increment field, but I want to get the Serial of the record I just inserted so I can name an image $Serial.jpg. I could just select the serial of the last record entered but what happens (and I know it's unlikely

RE: [PHP] MySQL Insert with Auto-Increment

2003-04-04 Thread Sysadmin
Wonderful! Thanks! -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 8:18 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] MySQL Insert with Auto-Increment use mysql_insert_id(), it keeps its value per connection so you

RE: [PHP] BIT OT - preventing double submit

2003-04-04 Thread Sysadmin
What happens when the refresh? How about this...when the form loads the first time it generates a unique_id, and when you submit the form it has to match that unique_id. That would stop people from being able to refresh because once the unique_id is submitted, it won't accept any more

RE: [PHP] chill out

2003-04-03 Thread Sysadmin
It's really funny that this happened because not more than one week ago I was discussing the professionalism of this list with one of my co-workers. I've been very happy with it, but I remember when I first joined it I asked a pretty dumb question and got slammed by a bunch of people because

RE: [PHP] Humour in programming?

2003-04-01 Thread Sysadmin
Yeah...check out the phpinfo() function on your machine ? phpinfo(); ? -Original Message- From: Liam Gibbs [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 3:36 PM To: php list Subject: [PHP] Humour in programming? Sorry if this is OT, but... heheheh... has anyone taken a

RE: [PHP] Humour in programming?

2003-04-01 Thread Sysadmin
Yeah, same thing happened to me last year. I was freaking out, thought my box had been hacked. Then it hit me...April Fools day... -Original Message- From: Aaron Gould [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 3:37 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL

RE: [PHP] Humour in programming?

2003-04-01 Thread Sysadmin
By PHP? The HTML source points to my.server.com/script.php?=PHPE9568F36-D428-11d2-A769-00AA001ACF42 -Original Message- From: Kevin Stone [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 3:43 PM To: Aaron Gould; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject:

RE: [PHP] Checkbox

2003-03-26 Thread Sysadmin
I agree...and like John said, as long as you don't accept any changes when you process the form you should be good to go... -Original Message- From: Tim Burden [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 2:25 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Checkbox Just using

RE: [PHP] can't make str_replace work with single quote

2003-03-24 Thread Sysadmin
Try str_replace(chr(39),.. -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 2:23 PM To: DomIntCom Cc: [EMAIL PROTECTED] Subject: Re: [PHP] can't make str_replace work with single quote works for me: echo str_replace('2003','2002',

RE: [PHP] Loop Problem

2003-03-18 Thread Sysadmin
Yes, my apologies. I call the script by scriptname.php?MasterPage=1 or 2 or whatever... -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED] Sent: Monday, March 17, 2003 4:45 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Loop Problem [EMAIL PROTECTED]

[PHP] Loop Problem

2003-03-17 Thread Sysadmin
Ok, here's what I got. I'm trying to create an entire site that grabs all it's information (Page content, titles, link info, etc.) from a MySQL database. In this site I would like to have sub pages of master pages. For instance, Page 1 is a master page, Page 2 is a sub page of Page 1, and

RE: [PHP] http-https-http redirection causes browser to show alert dialog

2003-03-13 Thread Sysadmin
Why don't you just leave them in https? Is this a performance issue? -Original Message- From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 9:07 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] http-https-http redirection causes browser to show

RE: [PHP] Hacker problem

2003-03-12 Thread Sysadmin
Yes, theoretically...you could require it to be posted data. In order to do this you would have to make sure registered_globals is set to off in your php.ini and then for each variable posted from your form you will need to do something like this $name=$_POST[name]; This will only post

RE: [PHP] Hacker problem

2003-03-12 Thread Sysadmin
How would one go about doing this? -Original Message- From: Dan Hardiker [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 8:44 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] Hacker problem This could still be faked easily with a telnet

RE: [PHP] Hacker problem

2003-03-12 Thread Sysadmin
Swear filtering is easy, I want to know how to make sure the data is coming from MY formI'm just picky like that. :-) -Original Message- From: Adam Voigt [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 8:55 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [PHP]

RE: [PHP] Hacker problem

2003-03-12 Thread Sysadmin
So we aren't actually validating where the data is coming from, we are just validating the data? -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 8:57 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Hacker problem

RE: [PHP] Hacker problem

2003-03-12 Thread Sysadmin
Thanks! That's all I needed to know. -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 9:04 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Hacker problem That's just not possible. [EMAIL PROTECTED] wrote: Swear

[PHP] Shipment Tracking/UPS

2003-03-11 Thread Sysadmin
Ok, here's what I've got and it's driving me insane. What I want to do is take a tracking number and grab the tracking data from the UPS web site. I have a couple of questions though First of all, does anyone know if this is against UPS' TOS? I read it but I didn't really see anything,

[PHP] Escape Characters

2003-02-27 Thread Sysadmin
Hi All, I'm running a script that reads the contents of images and stores them in a MySQL database. The problem I'm running into is that my server is seeing \ as escape characters and stripping them out. I assume this has something to do with Magic Quotes or something of that nature but I'm

RE: [PHP] Preventing the hijacking of pictures

2003-02-27 Thread Sysadmin
What about using a MySQL database? Insert the picture into a field in a table, then use a php script to call the data. I've been working on something like this. Is it practical, or am I barking up the wrong tree? -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED]

RE: [PHP] output problem

2002-05-23 Thread Sysadmin
You could try something like this(did not test) ? echo date(Y-m-d); print $date; mysql_connect(servername,user,password) or die(Connect failed); $query = select user from log_request where date='$date' and status = 'open'; $result =

RE: [PHP] uh, oh errors?

2002-05-16 Thread Sysadmin
What are some benefits to using output buffering versus just letting it generate as it goes? -Original Message- From: Kevin Stone [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 1:24 PM To: PHP-general Subject: Fw: [PHP] uh, oh errors? Don't feel bad about this. This is

RE: [PHP] Creating mail account on Linux server

2002-05-07 Thread Sysadmin
I'm curious about the same thing. RedHat 7.2 with default IMAP. -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 07, 2002 10:06 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Creating mail account on Linux server On Tuesday 07 May 2002 22:02, Rosen wrote:

RE: [PHP] Creating mail account on Linux server

2002-05-07 Thread Sysadmin
I can create the popuser account, but my problem comes with setting the password. I realize that when you do a useradd command you can specify a -p option for password, but it hasn't worked for me. Is there a better way then calling system commands? -Original Message- From: Jason

RE: [PHP] Creating mail account on Linux server

2002-05-07 Thread Sysadmin
Ok, so it's a bad idea :-) I'm aware of the security risks I'm dealing with here, but thanks to all those who gave me some ideas to go with. This WILL NOT be on a production machine, it's on my internal network and I'm just playing with it to see what I can do. Have a nice day and thanks

RE: [PHP] Self Destruct code

2002-05-07 Thread Sysadmin
Or you could set up an automated IMAP Account Creater. That should pretty much take care of things from the way things sound around here:-) -Original Message- From: Cal Evans [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 07, 2002 11:15 AM To: PHPCoder; php-general Subject: RE: