Closed Thread
Results 1 to 9 of 9

Thread: i need script help

  1. #1
    x_spiey2003's Avatar
    x_spiey2003 is offline x10Hosting Member x_spiey2003 is an unknown quantity at this point
    Join Date
    Jul 2008
    Location
    South Tampa
    Posts
    25

    Exclamation i need script help

    OK i downloaded a contact form script from http://www.php.net and edited to have all my information and uploaded to my contact page of site but i cant make it appear on the site is there sum kinda run script code i need to put into my main index to make it appear any help will be greatly appreciated and if it works ill even give u my credits

  2. #2
    leafypiggy's Avatar
    leafypiggy is offline Community Advocate leafypiggy is on a distinguished road
    Join Date
    Aug 2007
    Location
    Massachusetts
    Posts
    2,228

    Re: i need script help

    well..

    whats the script? and where's your site? lol
    Neil Hanlon | x10Hosting Support Representative
    Neil[at]x10hosting.com
    █ I'm always happy to help. Just ask a question in Free Hosting
    Terms of Service IRC

  3. #3
    freecrm's Avatar
    freecrm is offline x10 Elder freecrm is an unknown quantity at this point
    Join Date
    May 2008
    Location
    UK
    Posts
    629

    Re: i need script help

    Quote Originally Posted by x_spiey2003 View Post
    OK i downloaded a contact form script from http://www.php.net and edited to have all my information and uploaded to my contact page of site but i cant make it appear on the site is there sum kinda run script code i need to put into my main index to make it appear any help will be greatly appreciated and if it works ill even give u my credits
    firstly, have you named the page something.php?

    you need the .php extension to run a php script...

    Other than that, leafpiggy is right because we ain't got a clue what the script is!

  4. #4
    x_spiey2003's Avatar
    x_spiey2003 is offline x10Hosting Member x_spiey2003 is an unknown quantity at this point
    Join Date
    Jul 2008
    Location
    South Tampa
    Posts
    25

    Re: i need script help

    script is contactform.php and site page im putting it on is http://contact.defianttech.x10hosting.com
    the script is from www.php.net

  5. #5
    leafypiggy's Avatar
    leafypiggy is offline Community Advocate leafypiggy is on a distinguished road
    Join Date
    Aug 2007
    Location
    Massachusetts
    Posts
    2,228

    Re: i need script help

    ....

    i can't find any scripts on php.net lol

    anyone else find them? lol
    Neil Hanlon | x10Hosting Support Representative
    Neil[at]x10hosting.com
    █ I'm always happy to help. Just ask a question in Free Hosting
    Terms of Service IRC

  6. #6
    x_spiey2003's Avatar
    x_spiey2003 is offline x10Hosting Member x_spiey2003 is an unknown quantity at this point
    Join Date
    Jul 2008
    Location
    South Tampa
    Posts
    25

    Exclamation Re: i need script help

    here is the exact url for the script http://www.free-php.net/detail/link-12.html
    its from the links section of php site sorry
    Edit:
    i keep tryin to fix it but each time i get this

    Parse error: syntax error, unexpected T_STRING, expecting ']' in /home/xdefiant/public_html/contact/contact.php on line 25
    Edit:
    well fixed one error now got a bunch more
    Warning: include(/contact.php/home/xdefiant/public_html/contact/contact/inc/header.php) [function.include]: failed to open stream: No such file or directory in /home/xdefiant/public_html/contact/contact.php on line 43

    Warning: include() [function.include]: Failed opening '/contact.php/home/xdefiant/public_html/contact/contact/inc/header.php' for inclusion (include_path='.:/x10hosting/php1/pear') in /home/xdefiant/public_html/contact/contact.php on line 43

    Warning: include(/contact.php/home/xdefiant/public_html/contact/contact/inc/contactform.php) [function.include]: failed to open stream: No such file or directory in /home/xdefiant/public_html/contact/contact.php on line 44

    Warning: include() [function.include]: Failed opening '/contact.php/home/xdefiant/public_html/contact/contact/inc/contactform.php' for inclusion (include_path='.:/x10hosting/php1/pear') in /home/xdefiant/public_html/contact/contact.php on line 44

    Warning: include(/contact.php/home/xdefiant/public_html/contact/contact/inc/footer.php) [function.include]: failed to open stream: No such file or directory in /home/xdefiant/public_html/contact/contact.php on line 45

    Warning: include() [function.include]: Failed opening '/contact.php/home/xdefiant/public_html/contact/contact/inc/footer.php' for inclusion (include_path='.:/x10hosting/php1/pear') in /home/xdefiant/public_html/contact/contact.php on line 45
    Edit:
    PHP Code:
    <?

       
    include('inc/config.inc');

        if (
    $_SERVER['REQUEST_METHOD'] == "POST") {

          
    $name     $_POST[name];
          
    $email    $_POST[email];
          
    $company  $_POST[company];
          
    $phone    $_POST[Unavailable];
          
    $website  $_POST[website];
          
    $msg      $_POST[msg];
          
    $subject  $_POST[subject];
          
          
    // $msg2 is set in config.inc which formats the body of the message
           
    mail("$adminemail[$who]""$subjectheader $subject""$msg2""From: $email \nReply-To: $email");

          if (
    $redirecturl != "") {
             
    header("Location: $redirecturl");
          } else {
             echo 
    "<br><center>$finishedtext</center><br>";
          }

        } else {
          include(
    $script_dir '/inc/header.php');
           include(
    $script_dir '/inc/contactform.php');
          include(
    $script_dir '/inc/footer.php');
        }
    ?>
    Last edited by x_spiey2003; 10-14-2008 at 10:36 PM.

  7. #7
    Nathan H is offline x10 Elder Nathan H is an unknown quantity at this point
    Join Date
    Apr 2006
    Posts
    562

    Re: i need script help

    try replaceing
    PHP Code:
    include($script_dir '/inc/header.php');
    include(
    $script_dir '/inc/contactform.php');
    include(
    $script_dir '/inc/footer.php'); 
    with something more like
    PHP Code:
    include('/inc/header.php');
    include(
    '/inc/contactform.php');
    include(
    '/inc/footer.php'); 
    and also making sure the the included files are there on the directory structure
    Nathan H Formerly UnFoundBug



    http://www.theadmin.co.uk - Yes i know the colours don't go, I'm working on it.

    VPS Admin | x10-commandments

    So thats where it went! I thought i was losing my mind.

  8. #8
    x_spiey2003's Avatar
    x_spiey2003 is offline x10Hosting Member x_spiey2003 is an unknown quantity at this point
    Join Date
    Jul 2008
    Location
    South Tampa
    Posts
    25

    Re: i need script help

    i did as u said and got this

    Warning: include(/inc/header.php) [function.include]: failed to open stream: No such file or directory in /home/xdefiant/public_html/contact/contact.php on line 43

    Warning: include() [function.include]: Failed opening '/inc/header.php' for inclusion (include_path='.:/x10hosting/php1/pear') in /home/xdefiant/public_html/contact/contact.php on line 43

    Warning: include(/inc/contactform.php) [function.include]: failed to open stream: No such file or directory in /home/xdefiant/public_html/contact/contact.php on line 44

    Warning: include() [function.include]: Failed opening '/inc/contactform.php' for inclusion (include_path='.:/x10hosting/php1/pear') in /home/xdefiant/public_html/contact/contact.php on line 44

    Warning: include(/inc/footer.php) [function.include]: failed to open stream: No such file or directory in /home/xdefiant/public_html/contact/contact.php on line 45

    Warning: include() [function.include]: Failed opening '/inc/footer.php' for inclusion (include_path='.:/x10hosting/php1/pear') in /home/xdefiant/public_html/contact/contact.php on line 45



    what does this mean
    (include_path='.:/x10hosting/php1/pear') as you can tell im not the best at coding
    Edit:
    I have checked double checked triple checked hell im about to just let one of you go into my cpanel and see what u can do with it x.x
    Edit:
    [quote=x_spiey2003;467791]i did as u said and got this

    Warning: include(/inc/header.php) [function.include]: failed to open stream: No such file or directory in /home/xdefiant/public_html/contact/contact.php on line 43

    Warning: include() [function.include]: Failed opening '/inc/header.php' for inclusion (include_path='.:/x10hosting/php1/pear') in /home/xdefiant/public_html/contact/contact.php on line 43

    Warning: include(/inc/contactform.php) [function.include]: failed to open stream: No such file or directory in /home/xdefiant/public_html/contact/contact.php on line 44

    Warning: include() [function.include]: Failed opening '/inc/contactform.php' for inclusion (include_path='.:/x10hosting/php1/pear') in /home/xdefiant/public_html/contact/contact.php on line 44

    Warning: include(/inc/footer.php) [function.include]: failed to open stream: No such file or directory in /home/xdefiant/public_html/contact/contact.php on line 45

    Warning: include() [function.include]: Failed opening '/inc/footer.php' for inclusion (include_path='.:/x10hosting/php1/pear') in /home/xdefiant/public_html/contact/contact.php on line 45



    it just hit me /public_html/contact/inc would be the dir name so i need to find where in the scripts this is and rewright yea?
    Edit:
    ah hahhaha thx everyone i figured it out dont worry ill give rep for all the help
    Edit:
    time fo rthis thread to close engh oh and anyone who needs sum free php scripts go the aforementioned site
    Last edited by x_spiey2003; 10-14-2008 at 11:12 PM. Reason: Automerged Doublepost

  9. #9
    Nathan H is offline x10 Elder Nathan H is an unknown quantity at this point
    Join Date
    Apr 2006
    Posts
    562

    Re: i need script help

    *Thread Closed at user request*
    Nathan H Formerly UnFoundBug



    http://www.theadmin.co.uk - Yes i know the colours don't go, I'm working on it.

    VPS Admin | x10-commandments

    So thats where it went! I thought i was losing my mind.

Closed Thread

Similar Threads

  1. CRON job : script timeout ?
    By webtomata in forum Free Hosting
    Replies: 4
    Last Post: 09-12-2008, 04:23 PM
  2. Access to 300+ PHP scripts (2500 credits)
    By jonathanyaniv in forum The Marketplace
    Replies: 11
    Last Post: 06-03-2008, 10:58 PM
  3. Replies: 8
    Last Post: 12-03-2007, 04:12 PM
  4. Server UP time Script
    By dharmil in forum Scripts & 3rd Party Apps
    Replies: 2
    Last Post: 04-03-2006, 04:39 PM
  5. CGI - script, Advertisement _HELP.
    By kaliforna in forum Free Hosting
    Replies: 12
    Last Post: 06-02-2005, 06:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers