Jump to content

Help, No Errors but Can This Be Done


bunnybiz

Recommended Posts

I want to use php code (listed below) in html file. I am very new at this.

 

I have edited the .htaccess file. I have added

 

Addhandler application/x-httpd-php5 .html .php

AddType application/x-httpd-php5 .html .php

 

This should allow me to parse through php code. However, it doesn't work for this include

 

<!-- Discover Open Road Card PID=156 --><?php include "http://icommdata.com/suretext.php?a=00000&s=&c=&pt=156&R1=ffffff&R2=600&R3=110x70&R4=10&R5=php&R6=&R7=2&R8=bar&R9=0&R10=1&R12=htmlnotab&R13=00FFFF&R14="; ?>

 

This is what I was given from my affiliate program. It use to work if I rename my html file to .php extension. Now it is not working anymore with renaming. I cuts off all php code. This is all I see

 

<!-- Discover Open Road Card PID=156 -->

 

It used to work but my domain has migrated to a new server. It has an .htaccess editor but I really do not understand what I need to do with it.

 

Is there any other way of getting this to be seen on my website without renaming it. I just wondering if it was written correctly. I have used a test file and uploaded to my server where I have the .htaccess at root directory. It does show the test file without any errors. However, I can't see the Discover card.

 

Can you help me?

 

Thank you for your time.

 

BB

Link to comment
https://forums.phpfreaks.com/topic/157023-help-no-errors-but-can-this-be-done/
Share on other sites

You mean the discover card file? It is their the affiliate program file. No it is not on my server. Is it possible to put on my server? Like I said I am new at this and confused. When I renamed my testphp.php with discover card in it, it did work. It must been because my domain was not fully migrated yet is why it didn't work yesterday.

 

I did find php under CGI Scripting.

 

You stated that the file needs to be on my server.  I saved the credit card file page, renamed it with .php extension and uploaded to the server. I received this error

 

Parse error: syntax error, unexpected T_INCLUDE in /usr/local/psa/home/vhosts/creditcards-rwolf.com/httpdocs/testphp.html on line 6.

 

 

Is there anyway without renaming all my files with extension .php to have credit card file show up on my site? Can I change anything in php.ini file?

 

Thank you for your help.

 

BB

I already figured out the syntax error. And it is working with me renaming the files then uploading to the server.  :) This won't take as long as renaming hundreds of files in several domains. Thank you for time.

 

Just one question. Will these credit card files (now in php) in my website be recognized by the search engines? I know that java script is not recognized.

 

Thank you again for your help.

 

BB

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.