RE: [PHP] installing php3 and php4 on the same server

2002-01-17 Thread Alex Dowgailenko
Question is, why would you want to? php3 scripts will work fine under php4. > -Original Message- > From: Manu Verhaegen [mailto:[EMAIL PROTECTED]] > Sent: January 18, 2002 2:39 AM > To: [EMAIL PROTECTED] > Subject: [PHP] installing php3 and php4 on the same server > > > Hi, > We have i

[PHP] Give people a break!

2002-01-20 Thread Alex Dowgailenko
Hi list... I'm new here and was reading all these posts on RTFM. Heres how I figure it, there are always going to be lazy people asking advanced (or who they think may be advanced) users of PHP to write out their code. I know, I used to be one of these people when I was trying to figure out *gig

RE: [PHP] Re: eval()

2002-01-20 Thread Alex Dowgailenko
After getting very frustrated with arrays, I ended up using eval() in the following way: function top10() { $i = 0; $res = mysql_query("SELECT orders.pid, products.pid, orders.amount, products.pname FROM orders, products WHERE orders.uid!='' AND orders.pid=products.pid") or die(my

RE: [PHP] Re: eval()

2002-01-20 Thread Alex Dowgailenko
s angry and depressed that I wasn't getting paid enough for what I was doing so I took the easy way out. It's the only time I ever used eval() in PHP. > -Original Message- > From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] > Sent: January 20, 2002 11:22 PM > To: Alex Do

RE: [PHP] insert & select image in mySQL

2002-01-20 Thread Alex Dowgailenko
Try this code. It assumes you are already connected to the database. Usually, I put that script in something like database.inc and just do an include. pid is the picture id. I'll assume you'll have an index or something in your database setup. Now, type is based on the extension of the file rea

[PHP] Just something some people mind find useful

2002-01-20 Thread Alex Dowgailenko
http://www.isi.edu/in-notes/iana/assignments/media-types/media-types has been a great help for me and will probobally be a great help to a bunch of other people designing web applications. It's a fairly long list of content types with their RFC codes and whatnot. Just thought I'd contribute somet

RE: [PHP] Error notification and pretty error page

2002-01-21 Thread Alex Dowgailenko
Create a function like error_handling() in it have it do echo "We're sorry, we are currently experiencing technical difficulties" blah blah blah and have it email you whatever mysql_error() says. then do: mysql_query("SELECT whatever FROM whatever") or die(error_handling()); > -Original Me