Results 1 to 4 of 4

Thread: Mail Script

  1. #1
    Join Date
    Sep 2006
    Posts
    204
    Thanks
    11
    Thanked 3 Times in 3 Posts

    Default Mail Script

    Hi there, is it possible for somebody to give me some pointers on the mail script I have on my site as I'm sure it used to work.
    If you take a look at
    http://www.chetnet.co.uk/contact.php you can see the fault, it used to have this http://www.chetnet.co.uk/mail/index.php embedded in there
    Could some show me how I can get this working please

    Thanks

  2. #2
    Join Date
    Mar 2005
    Location
    Isle of Man
    Posts
    1,261
    Thanks
    3
    Thanked 24 Times in 24 Posts

    Default

    Include the file path on the server, not the http path to it. something like this:
    PHP Code:
    include('mail/index.php'); 
    <edit>best ignore what I just said. it looks like the desired behaviour you want would be to use frames (or iframes), as it is a complete html page that mail/index.php generates. *Not that I want anyone to think I'm suggesting people use frames you understand , but it looks as though that's the way the code you are using was intended, and I'm guessing at some point support for php http included files has been droped by redfox. not tested it though.</edit>

  3. #3
    Join Date
    Feb 2004
    Posts
    4,903
    Thanks
    2
    Thanked 134 Times in 113 Posts

    Default

    allow_url_include is a new setting which PHP 5.2 defaulted to off - it wasn't reneabled because the ability to include files via URL opens up XSS attack opportunities in vunerable websites.

    http://blog.php-security.org/archive...l_include.html
    Warren Ashcroft
    Red Fox UK Limited - Pioneers in Internet Technology
    http://www.redfoxuk.com
    w.ashcroft [at] redfoxuk.com

    NOTE: Forum Private Messaging should not be used to contact staff with support queries.

  4. #4
    Join Date
    Sep 2006
    Posts
    204
    Thanks
    11
    Thanked 3 Times in 3 Posts

    Default

    thanks again for your replies, if I can not use this on my site what other form of contact us can I use that will also not let spam bots through

    Chet

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Email newsletter script
    By spire128 in forum ASP.NET
    Replies: 4
    Last Post: 18th July 2007, 08:25 AM
  2. Dating script recommendation
    By terraqueotenaz in forum Web Applications and Scripts
    Replies: 8
    Last Post: 14th March 2006, 11:36 AM
  3. ASP Server Side Mail script
    By Wise Webs in forum ASP (VBScript)
    Replies: 16
    Last Post: 11th January 2006, 09:39 PM
  4. forum script
    By Space Cowboy in forum Forum/Community Applications
    Replies: 23
    Last Post: 14th December 2005, 04:23 PM
  5. Hi..Question about Perl script
    By olearydc in forum Development Support
    Replies: 2
    Last Post: 23rd May 2005, 08:01 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •