+ Reply to Thread
Results 1 to 5 of 5

Thread: SSI PHP problem i get [an error occurred while processing this directive]

  1. #1
    arj154 is offline x10Hosting Member arj154 is an unknown quantity at this point
    Join Date
    Jul 2008
    Posts
    18

    SSI PHP problem i get [an error occurred while processing this directive]

    Hi

    I've been trying to add this php script to this site for a while but all i get is "[an error occurred while processing this directive]". I want to add this;
    PHP Code:
    <?php
    $olderror_reporting 
    =error_reporting(0);
    include (
    "http://rssfeedreader.com/rss3/rss.php?url=http%3A%2F%2Farj154.blogspot.com%2F&newpage=1&chead=&atl=1&desc=1&owncss=&eleminate=&auth=&dts=1&width=600&max=20&tlen=0&rnd=&bt=0&bs=None&nmb=&ntb=&naf=&nst=&nwd=0&nht=0&dlen=0&lstyle=8&lc=Blue&bg=%23A7BCCF&bc=White&spc=&ims=&tc=White&ts=11&tfont=Verdana,+Arial,+Sans-serif&rf=".$HTTP_SERVER_VARS['SERVER_NAME'].$HTTP_SERVER_VARS['PHP_SELF']."&phpout=1");
    error_reporting($olderror_reporting);
    ?>
    but it wont let me. Heres the site im trying to add it to and heres the instructions the site provided. I really dont know anything about PHP so please help!

  2. #2
    LHVWB's Avatar
    LHVWB is offline Lord Of The Keys LHVWB is an unknown quantity at this point
    Join Date
    Jan 2008
    Location
    Australia
    Posts
    1,308

    Re: SSI PHP problem i get [an error occurred while processing this directive]

    Try renaming your 'index2.htm' file to 'index2.php'. PHP code is only parsed in .php files, your html will still work fine.

  3. #3
    arj154 is offline x10Hosting Member arj154 is an unknown quantity at this point
    Join Date
    Jul 2008
    Posts
    18

    Re: SSI PHP problem i get [an error occurred while processing this directive]

    Quote Originally Posted by LHVWB View Post
    Try renaming your 'index2.htm' file to 'index2.php'. PHP code is only parsed in .php files, your html will still work fine.
    are you sure thats the only way? the instructions on the site says that you dont need to change it to .php but i guess i could try it. I have a blog feed on all the sites so i dont want to rename every webpage.
    Edit:
    ok i tried it but nothing happend really i tried inserting the php directly onto the webpage but nothing happend still
    Last edited by arj154; 03-22-2009 at 06:46 AM. Reason: Automerged Doublepost

  4. #4
    akkudreamz's Avatar
    akkudreamz is offline x10 Sophmore akkudreamz is an unknown quantity at this point
    Join Date
    Jan 2009
    Location
    Jaipur, Rajasthan, India
    Posts
    183

    Re: SSI PHP problem i get [an error occurred while processing this directive]

    i don't see how you can use a php include() in an html file... :O

    although i tried it and looks like RSS reader's code is not working currently
    Be safety conscious. 80% of people are caused by accidents.
    My Weblog

  5. #5
    arj154 is offline x10Hosting Member arj154 is an unknown quantity at this point
    Join Date
    Jul 2008
    Posts
    18

    Re: SSI PHP problem i get [an error occurred while processing this directive]

    Quote Originally Posted by akkudreamz View Post
    i don't see how you can use a php include() in an html file... :O

    although i tried it and looks like RSS reader's code is not working currently
    hmm, i guess i could generate it again and hope it works again.

    edit;
    I feel quite stupid now :S i didnt actualy use the rss feed. I've got it now but it still isnt working. This is the proper code;
    PHP Code:
    <?php
    $olderror_reporting 
    =error_reporting(0);
    include (
    "http://rssfeedreader.com/rss3/rss.php?url=http%3A%2F%2Farj154.blogspot.com%2Ffeeds%2Fposts%2Fdefault&newpage=1&chead=1&atl=1&desc=1&owncss=&eleminate=&auth=&dts=1&width=600&max=20&tlen=0&rnd=1&bt=0&bs=None&nmb=&ntb=&naf=&nst=&nwd=0&nht=0&dlen=0&lstyle=-1&lc=Blue&bg=%23A7BCCF&bc=%23A7BCCF&spc=&ims=1&tc=%232E536D&ts=11&tfont=Verdana,+Arial,+Sans-serif&rf=".$HTTP_SERVER_VARS['SERVER_NAME'].$HTTP_SERVER_VARS['PHP_SELF']."&phpout=1");
    error_reporting($olderror_reporting);
    ?>
    Last edited by arj154; 03-22-2009 at 08:10 AM.

+ Reply to Thread

Similar Threads

  1. PHP Problem in Lotus?
    By ezdookie in forum Free Hosting
    Replies: 0
    Last Post: 01-23-2009, 08:49 PM
  2. PHP Processing Failure!
    By john22395 in forum Free Hosting
    Replies: 1
    Last Post: 08-26-2008, 10:08 PM
  3. Replies: 3
    Last Post: 03-10-2008, 12:22 PM
  4. Problem with PHP support ticket system (Fantastico)
    By Jarryd in forum Free Hosting
    Replies: 4
    Last Post: 03-10-2008, 01:35 AM
  5. [an error occurred while processing this directive]
    By sridefender in forum Free Hosting
    Replies: 2
    Last Post: 12-09-2007, 06:00 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