Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #6486
| From | "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: Reading & Displaying Latex Rendered images |
| Date | 2012-07-02 10:44 +0200 |
| Organization | http://alvaro.es/ |
| Message-ID | <jsrn1a$s0u$1@dont-email.me> (permalink) |
| References | <96a37fe0-2b28-431a-903e-edd416e44169@googlegroups.com> <32400a37-6aa0-4429-bb2d-e6306dce1f12@googlegroups.com> |
El 02/07/2012 9:28, Fastian escribió/wrote:
> ________________________________________________________________________________I
> am writing this post to explain my project so that you may give me
> more relevant suggestions:
>
> I have to develop an application that will help us develop a database
> of questions. These questions will be used for developing tests/
> exams. Latex is required to enter scientific and mathematical text.
[...]
> Guide me which PHP functions will help me in reading and displaying
> the images as well as merging the images etc. Any suggestion that can
> help me in this project will highly be appreciated. Thanks!
Alright, I think I finally got what your problem is. Your picture's URL
is by no means unknown. The URL is always this:
http://www.forkosh.com/mathtex.cgi?formdata=blah
... where formadata is a GET parameter that contains the raw LaTeX code.
You can compose the actual URL with rawurlencode(). E.g.:
$latex = '\Large f(x)=\int_{-\infty}^x e^{-t^2}dt';
$url = 'http://www.forkosh.com/mathtex.cgi?formdata=' .
rawurlencode($latex);
Once you have the URL, you could download it with many PHP functions,
including the ones you've been evaluating, but you don't really need to.
You just have to use the <img> tag in an HTML document and the browser
will download it for you:
<img src="<?php echo htmlspecialchars($url); ?>">
--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Reading & Displaying Latex Rendered images Fastian <abdulbasit.fast@gmail.com> - 2012-06-29 03:24 -0700
Re: Reading & Displaying Latex Rendered images The Natural Philosopher <tnp@invalid.invalid> - 2012-06-29 12:02 +0100
Re: Reading & Displaying Latex Rendered images Fastian <abdulbasit.fast@gmail.com> - 2012-06-29 04:34 -0700
Re: Reading & Displaying Latex Rendered images The Natural Philosopher <tnp@invalid.invalid> - 2012-06-29 13:09 +0100
Re: Reading & Displaying Latex Rendered images Jerry Stuckle <jstucklex@attglobal.net> - 2012-06-29 09:20 -0400
Re: Reading & Displaying Latex Rendered images Fastian <abdulbasit.fast@gmail.com> - 2012-07-01 23:42 -0700
Re: Reading & Displaying Latex Rendered images "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2012-07-02 09:34 +0200
Re: Reading & Displaying Latex Rendered images Fastian <abdulbasit.fast@gmail.com> - 2012-07-02 01:10 -0700
Re: Reading & Displaying Latex Rendered images Jerry Stuckle <jstucklex@attglobal.net> - 2012-07-02 06:53 -0400
Re: Reading & Displaying Latex Rendered images Fastian <abdulbasit.fast@gmail.com> - 2012-07-02 04:24 -0700
Re: Reading & Displaying Latex Rendered images Jerry Stuckle <jstucklex@attglobal.net> - 2012-07-02 09:35 -0400
Re: Reading & Displaying Latex Rendered images Jerry Stuckle <jstucklex@attglobal.net> - 2012-07-02 09:41 -0400
Re: Reading & Displaying Latex Rendered images Fastian <abdulbasit.fast@gmail.com> - 2012-07-02 10:00 -0700
Re: Reading & Displaying Latex Rendered images Jerry Stuckle <jstucklex@attglobal.net> - 2012-07-02 16:54 -0400
Re: Reading & Displaying Latex Rendered images Fastian <abdulbasit.fast@gmail.com> - 2012-07-02 00:28 -0700
Re: Reading & Displaying Latex Rendered images "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2012-07-02 10:44 +0200
Re: Reading & Displaying Latex Rendered images Fastian <abdulbasit.fast@gmail.com> - 2012-07-02 02:54 -0700
Re: Reading & Displaying Latex Rendered images Jerry Stuckle <jstucklex@attglobal.net> - 2012-07-02 06:46 -0400
csiph-web