Jump to content

griffon

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

griffon's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Here's a script you might find useful to adapt ... http://www.blazonry.com/scripting/upload-size.php
  2. No.  I'm with ntl actually.  But thanks for your post.  I think now I've had some success with uploading code onto my web site's server, I can test development code there rather than doing it on my local PC.  I guess that's what most of you must do anyway.  :)
  3. I'm almost the newest PHP newbie with all of five days experience and I found a simple little book called PHP with MySQL by Nat McBride ISBN: 0340905565.  It cost me £10 in Oxford, UK and it's a great little introduction to the subject.  Now I know there's lots of info on the net but sometimes it's nice to sit down away from the PC and look over a book because, when you're starting out, it's good to have an overview of a subject rather than diving into the detail of a particular problem.  I know there are more technical books on the subject, and probably better ones overall, but this little paperback covers most of the things you asked about I think.  
  4. [font=Verdana]"I guess I'll just have to upload the php to my web server and try it out there."[/font][color=red][/color] So, I did just that and my code works.  Just like that! Thanks to all who had a go at helping me out.
  5. OK.  Thanks.  That certainly seems to explain why this question often posed in help forums never seems to find an answer.  There's some talk of people putting an e-mail server up on their PC to get around this problem.  Which sounds a bit of a hassle.  I guess I'll just have to upload the php to my web server and try it out there. Pity.  I'd like to be able to test everything locally.
  6. thanks for helping.  I have looked around the net and loads of people have had this or similar problems but no one seems to post the solution.  Either they can't be bothered once they find it or they die solving it.  LOL
  7. Doesn't work I'm afraid.  Same error.  I believe the smtp I'm using is right.  Could be the port number, I suppose.  25 seems right but how can I check what it wants I wonder? 
  8. OK. Presumamby I insert this after the SMTP line below do I? [mail function] ; For Win32 only. SMTP = smtp.myisp.com ; for Win32 only smtp_port = 25 sendmail_from = myemaill@myisp.com ; for Win32 onl
  9. Hi - I'm a newbie to PHP programing (about 3 days) so please forgive me if this is a really silly question. I want to write a php page to send reply e-mails to people contacting my website. I want to fully test any code on my local pc before uploading it to my website's server. So far I've succesfully downloaded, installed and configured PHP and Apache on my Windows xp machine. I've also written little test pages in php and they seem to work.  So far so good. However, when I try to test a simple php page designed to simply send an email to myself it fails with the following error. [color=red]Warning: mail() [function.mail]: Failed to connect to mailserver at "smtp.myisp.com" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Program Files\Apache Group\Apache2\htdocs\PHP tests\send.php on line 3[/color] [color=purple]*please note myisp and e-mails changed below[/color] From the error message, and reading around on the internet, it looks like the php can't get into my own ISP.  I've tried modifying the php.ini file which initially looked like this: [mail function] ; For Win32 only. SMTP = localhost ; for Win32 only smtp_port = 25 sendmail_from= me@localhost.com ; for Win32 only    to: [mail function] ; For Win32 only. SMTP = smtp.myisp.com ; for Win32 only smtp_port = 25 sendmail_from = myemaill@myisp.com ; for Win32 only OK - I can't see how this can access my isp to send the e-mail because there appears to be no way to include my isp password.  Just in case you ask - firewall configured to give apache access and, yes, apache was set to running. I'd be very grateful for any advice. Thanks :-)
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.