Re: embedded image?



On 26 Mar, 02:02, Jerry Stuckle <jstuck...@xxxxxxxxxxxxx> wrote:
salmanjavah...@xxxxxxxxxxx wrote:
On 25 Mar, 21:39, Jerry Stuckle <jstuck...@xxxxxxxxxxxxx> wrote:
salmanjavah...@xxxxxxxxxxx wrote:
On 25 Mar, 17:02, Jerry Stuckle <jstuck...@xxxxxxxxxxxxx> wrote:
salmanjavah...@xxxxxxxxxxx wrote:
On Mar 23, 10:58 am, salmanjavah...@xxxxxxxxxxx wrote:
On Mar 20, 11:16 am, Wiktor Walc <nore...@xxxxxxxxxxxx> wrote:
salmanjavah...@xxxxxxxxxxx pisze:
Hi we have a piece of php based (i think) software that exports to an
rtf file, these files contain an image, this image makes the rtfs too
large...
The php file in question starts like this
<?
$rtf_image1 = "5cca52c0fb153400d
Try this function and save the result to a file:
<?php
$result = base64_decode($rtf_image1);
?>
(take a look in the source code, perhaps it is used there, I just guess
that image has been encoded with base64_encode)
--
CKFinder :: ajax web file browserhttp://www.ckfinder.com
have tried that function to no avail...what else could it be?- Hide quoted text -
- Show quoted text -
Basically what happens is it takes a while for the page to load, and
then it is just a blank page, have used the echo function to display
the variable decoded. it does display something when i cut down the
code though, is it possible that it can't handle the amount of code
there is?
What do you see when you display the page source in your browser?  Is it
possible you're getting a timeout?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@xxxxxxxxxxxxx
==================- Hide quoted text -
- Show quoted text -
the source code is completely blank
Then I suspect you have a syntax error in your code.  Ensure you have
these in your php.ini file:

error_reporting=E_ALL
display_errors=on

That will display any errors you might have.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@xxxxxxxxxxxxx
==================- Hide quoted text -

- Show quoted text -

it is currently set to
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
and
display_errors = on

but still nothing in the source code :(

I would check that.  What does phpinfo() say?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@xxxxxxxxxxxxx
==================- Hide quoted text -

- Show quoted text -


I have just had a closer look at the $rtf_image1 variable and there
are bits that are not so seemingly random, for instance
{\\nonshppict
{\pict
\picscalex16\picscaley16\piccropl0\piccropr0\piccropt0\piccropb0\picw30771\pich12144\picwgoal17445\pichgoal6885\wmetafile8\bliptag-1510104784\blipupi96{\*
\blipuid a5fda1307ee82033d2d3fc13c6e4ef09}

and

{\\nonshppict
{\pict
\picscalex100\picscaley100\piccropl0\piccropr0\piccropt0\piccropb0\picw2120\pich2108\picwgoal1202\pichgoal1195\wmetafile8\bliptag1556763328\blipupi200{\*
\blipuid 5cca52c0fb153400d9ec103ffae2d73f}

appears within this variable

any ideas?
.



Relevant Pages

  • Re: embedded image?
    ... rtf file, these files contain an image, this image makes the rtfs too ... The php file in question starts like this ... (take a look in the source code, perhaps it is used there, I just guess ... then it is just a blank page, have used the echo function to display ...
    (comp.lang.php)
  • Re: embedded image?
    ... rtf file, these files contain an image, this image makes the rtfs too ... The php file in question starts like this ... (take a look in the source code, perhaps it is used there, I just guess ... then it is just a blank page, have used the echo function to display ...
    (comp.lang.php)
  • Re: embedded image?
    ... rtf file, these files contain an image, this image makes the rtfs too ... The php file in question starts like this ... (take a look in the source code, perhaps it is used there, I just guess ... then it is just a blank page, have used the echo function to display ...
    (comp.lang.php)
  • Protecting PHP Code
    ... I would like to somehow protect the source code. ... Host the most critical .php file on my own host server, ... The php file then connects to the database on their server using ...
    (comp.lang.php)
  • Re: embedded image?
    ... (take a look in the source code, perhaps it is used there, I just guess ... then it is just a blank page, have used the echo function to display ... Jerry Stuckle ... JDS Computer Training Corp. ...
    (comp.lang.php)