Search found 13 matches

by speedmonk
Tue Mar 06, 2007 4:43 pm
Forum: PHP - Code
Topic: Basic question about using SendMail()
Replies: 2
Views: 409

I have not sent that many emails. Perhaps 300 over the course 10 hours, and to a wide variety of domains. If that triggers spam action.... switch($_REQUEST['req']) { case "send_email": $mailer = &new Email; $mailer->ToMail = $_REQUEST['email_1']; $mailer->FromMail = "blah@blah.com...
by speedmonk
Mon Mar 05, 2007 9:33 pm
Forum: PHP - Code
Topic: Basic question about using SendMail()
Replies: 2
Views: 409

Basic question about using SendMail()

I made myself a small application to quickly generate emails to people with a bunch of standard messages. 3 different subjects, and 3 different messages. I just pick the combination I want and hit send. Is using SendMail any different that sending mail from my POP account? Does it 'look' different t...
by speedmonk
Thu Mar 01, 2007 9:09 am
Forum: General Discussion
Topic: Just like to thank everyone on this forum
Replies: 15
Views: 2786

Just like to thank everyone on this forum

I have learned so much just reading your answers to other people's questions it's amazing.

Anyway I helped someone else the other day with a PHP problem, I felt like I had graduated or something... LOL

Thanks for all your time and effort.

sm
by speedmonk
Tue Feb 20, 2007 6:54 pm
Forum: PHP - Code
Topic: Approach for building a Directory? [SOLVED]
Replies: 0
Views: 691

Approach for building a Directory? [SOLVED]

Forget it....


Brain just needed coffee

8O
by speedmonk
Mon Feb 19, 2007 12:13 am
Forum: PHP - Code
Topic: Opening sessions too much?
Replies: 13
Views: 897

Ok, so am I the one doing something naughty?

I too have a template that includes a session start on each page.

But I DON"T have the flushing object do-hickey in my footer.

Will my server melt?
by speedmonk
Mon Nov 20, 2006 3:30 pm
Forum: PHP - Code
Topic: Uploading jpg works in IE but not FF
Replies: 2
Views: 293

Ahhh! Cool.

I misunderstood what was happening.

I thought the mime type was based on my server, and that information was provided by PHP 'looking' at the file that was uploaded.

getimagesize() will actually look at what was uploaded I guess.

Thank you very much!!!!
by speedmonk
Mon Nov 20, 2006 2:31 pm
Forum: PHP - Code
Topic: Uploading jpg works in IE but not FF
Replies: 2
Views: 293

Uploading jpg works in IE but not FF

Hello, I have a script that works when you use IE, but when you use FF. It just uploads a jpg and saves it in a gallery. I check to see if it is a JPG. If the file is uploaded with FF, I can't get past this part. :( if ($_FILES['upload']['type'] == "image/pjpeg") { copy ($_FILES['upload'][...
by speedmonk
Tue May 30, 2006 3:20 pm
Forum: PHP - Code
Topic: dealing with a giant URL string
Replies: 2
Views: 244

dealing with a giant URL string

Hi, I have a flash app that lets users create a diagram with objects. This data that makes up this diagram is spat out via a URL string I want to stick into a mysql database. I am curious what I should do to it, if anything before it it is entered into the database. I have been using strip_tags and ...
by speedmonk
Tue May 16, 2006 2:11 pm
Forum: PHP - Code
Topic: Controlling an image size pasted via URL??
Replies: 1
Views: 317

Controlling an image size pasted via URL??

Hi, I am trying to prevent thread assassins in a forum from posting giant images via url. Is it possible to grab that images size by 'looking at it' when you have the URL? So I am thinking of disabling the ability to add images and edit HTML in the editor, but have a seperate text input for the URL ...
by speedmonk
Sun May 14, 2006 5:21 pm
Forum: PHP - Code
Topic: Quirky PHP question (variables in MYSQL statements)
Replies: 7
Views: 716

Wow, thanks for the info guys. I have some reading to do! My original question, perhaps I was not clear. I have cases where I have to change $book_id so it looks like either below in order for the query to work at all. For example, on works the other does not. But in both cases! I can't see any diff...
by speedmonk
Sat May 13, 2006 4:11 pm
Forum: PHP - Code
Topic: Quirky PHP question (variables in MYSQL statements)
Replies: 7
Views: 716

Quirky PHP question (variables in MYSQL statements)

Hi there, I have an odd question. When does one use '{}' around the variable in a MYSQL statement? Sometimes I need to do it, othertimes I don't.. I just can't figure out when or what the difference is. mysql_query("SELECT * FROM books WHERE book_id= $book_id") mysql_query("SELECT * F...
by speedmonk
Thu Apr 06, 2006 12:41 pm
Forum: PHP - Code
Topic: Am I insane to try and make my own forum?
Replies: 2
Views: 313

mysql_real_escape_string on all input going into the database. striptags is used when taking data OUT of the database, not while putting it in. Yes, verify ALL input from $_COOKIE, $_GET, $_POST, $_SERVER... don't trust any of it. A year and a half ago, I tried to create my own CMS / Blog / Forum s...
by speedmonk
Thu Apr 06, 2006 11:41 am
Forum: PHP - Code
Topic: Am I insane to try and make my own forum?
Replies: 2
Views: 313

Am I insane to try and make my own forum?

I am still pretty new to PHP/MYSQL. I want to make a very very simple forum, mostly to learn from. I have been reading articles on PHP security, but each time it seems to add more questions and makes me want to hide under my bed. I guess I have two concerns. I striptags() on all form input, and it i...