Hi,
I'm trying to connect phpmyfaq and a mimetex script. Unfortunately, it is not coming off. I've compiled a mimetex script in a directory where phpmyfaq is (faq/cgi-bin). Everything is working fine after running the mimetex script without phpmyfaq (iy.html ),but when a tag from the file iy.html (that is <img src="/faq/cgi-bin/mimetex.cgi?x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}">) is used, writing a new post in phpmyfaq results in a following error
Do I need to modify some files in phpmyfaq? Can you give me some advice?
Thank you in advance
A mimetex problem
Moderator: Thorsten
Hi,
I do not see an error. Do you have a screenshot?
bye
Thorsten
I do not see an error. Do you have a screenshot?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
I'm using mimetex. If we include e.g. <img src="/faq/cgi-bin/mimetex.cgi?x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}"> in the page code, we'll get a mathematical expression as a result. The problem is that when I'm adding a new entry in phpmyfaq and trying to add <img=...> mentioned above, I don't get any mathematical equation at all or I get it written in an illegible way. The problem is that there should be B instead of A.
I think the processing in my phpmyfaq is wrong.
I think the processing in my phpmyfaq is wrong.
Hi,
got an mathematical expression with Firefox 1.5.
Maybe one regex destroys the formula... I'll look at this issue.
bye
Thorsten
got an mathematical expression with Firefox 1.5.
Maybe one regex destroys the formula... I'll look at this issue.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Missing of backslashes
I've just tested your IMG html tag using:testnzn wrote:The problem is that when I'm adding a new entry in phpmyfaq and trying to add <img=...> mentioned above, I don't get any mathematical equation at all or I get it written in an illegible way.
Code: Select all
<img src="http://test.nzn.pl/faq/cgi-bin/mimetex.cgi?x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}" />I suspect that within your server PMF breaks the backslashes, i.e.:
1. http://test.nzn.pl/faq/cgi-bin/mimetex. ... -4ac}}{2a} <- OK
2. http://test.nzn.pl/faq/cgi-bin/mimetex. ... -4ac}}{2a} <- KO, equal to the screeshot provided.
Could you post your PHP setting about magic quotes?
Code: Select all
magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
Amazon.co.uk Wishlist