Closed Thread
Results 1 to 5 of 5

Thread: Php help for comment scripts

  1. #1
    nickaang is offline x10Hosting Member nickaang is an unknown quantity at this point
    Join Date
    Jul 2009
    Posts
    12

    Php help for comment scripts

    Hi,
    I've a php comment script and I upload it to a folder under public_html and I want the comment script to appear in my Index.html file.
    But I've no idea how to include the comment or call the comment function on my index.html file!
    Please help me!

    Regards

  2. #2
    faba5594 is offline x10Hosting Member faba5594 is an unknown quantity at this point
    Join Date
    Jul 2009
    Posts
    13

    Re: Php help for comment scripts

    You can't do it through HTML, but if you make it index.php instead of index.html, you can include the file that comments are handled through, which then allows you to call whatever functions are in that file.

    Edit: you can also include it if you want whatever the comment file displays to be put into the index page.
    Last edited by faba5594; 08-21-2009 at 03:51 PM.

  3. #3
    nickaang is offline x10Hosting Member nickaang is an unknown quantity at this point
    Join Date
    Jul 2009
    Posts
    12

    Unhappy Re: Php help for comment scripts

    Thanks for your reply.
    I should mention that the scripts contain several php files and folders.

    I just want if there is any command that I can paste in my index.html or index.php so that the comments will appear perfectly!

  4. #4
    galaxyAbstractor's Avatar
    galaxyAbstractor is offline Community Advocate galaxyAbstractor is on a distinguished road
    Join Date
    Oct 2007
    Location
    Land of Null and Insanity
    Posts
    5,495

    Re: Php help for comment scripts

    Quote Originally Posted by nickaang View Post
    Thanks for your reply.
    I should mention that the scripts contain several php files and folders.

    I just want if there is any command that I can paste in my index.html or index.php so that the comments will appear perfectly!
    Does the comments appear when you watch the php file in your browser? If so, you could do an iframe, if you really don't want to rename your index file to index.php, which I suggest you should. Then you just do

    <?php include("comments.php"); ?>

    Where comments.php should be changed to the name of the script.

  5. #5
    nickaang is offline x10Hosting Member nickaang is an unknown quantity at this point
    Join Date
    Jul 2009
    Posts
    12

    Re: Php help for comment scripts

    The comment script is working fine and now I'm gonna check whether this command will work or not.

    Thanks a lot!

    I want to request one more thing that is if I rename the index.html to index.php then what will be the corresponding command?

    _

Closed Thread

Similar Threads

  1. Best PHP Mailing Scripts ??
    By jeyam in forum Scripts & 3rd Party Apps
    Replies: 4
    Last Post: 11-10-2008, 10:02 PM
  2. Nuevo en x10? Lee el Tema Principal
    By ZharkD in forum Noticias y Anuncios
    Replies: 7
    Last Post: 10-21-2008, 12:43 PM
  3. Access to 40+ PHP clones and scripts! 500 points
    By paysurf in forum The Marketplace
    Replies: 62
    Last Post: 06-03-2008, 10:57 PM
  4. PHP scripts not working
    By nick600rr in forum Free Hosting
    Replies: 3
    Last Post: 10-28-2007, 10:40 PM
  5. PHP + Javascript Scripts
    By HabSite in forum The Marketplace
    Replies: 1
    Last Post: 10-02-2007, 10:49 PM

Tags for this Thread

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