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

arj154

New Member
Messages
19
Reaction score
0
Points
0
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:
<?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!
 

LHVWB

New Member
Messages
1,308
Reaction score
0
Points
0
Try renaming your 'index2.htm' file to 'index2.php'. PHP code is only parsed in .php files, your html will still work fine.
 

arj154

New Member
Messages
19
Reaction score
0
Points
0
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:

akkudreamz

New Member
Messages
183
Reaction score
0
Points
0
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
 

arj154

New Member
Messages
19
Reaction score
0
Points
0
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:
<?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:
Top