php-general Digest 16 Apr 2005 06:00:30 - Issue 3400
Topics (messages 213153 through 213175):
Re: dynamic image will not print properly
213153 by: DuSTiN KRySaK
Re: Amazon/eBay API
213154 by: Matthew Fonda
213161 by: Warren Vail
213170 by: Manuel Lemos
Setting permissions such that file can be included but not open directly
213155 by: Dasmeet Singh
213157 by: Mike
213159 by: Marek Kilimajer
213163 by: Philip Hallstrom
213175 by: Dasmeet Singh
Mysql insert problems
213156 by: Frank Miller
213158 by: John Nichel
213162 by: Andy Pieters
213164 by: Philip Hallstrom
Re: Streaming video BLOBs from MySQL
213160 by: Marek Kilimajer
Re: php and linux shell script
213165 by: Andy Pieters
create file download page for firefox using net-transport thru flashGot?
213166 by: Ginger Cheng
con'td create file download page for firefox using net-transport thru flashGot?
213167 by: Ginger Cheng
Font color
213168 by: Ryan A
213172 by: trlists.clayst.com
213173 by: trlists.clayst.com
processing email
213169 by: Florin Andrei
213171 by: Manuel Lemos
Determining array type
213174 by: NSK
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
php-general@lists.php.net
--
---BeginMessage---
I got it figured out finally!
It is so stupid with what the issue was...
My image was being created exactly as it should have been - and the
code was fine. Now where my issue was: I had a line of code in there
that was to prevent people from calling the script directly (had to be
referred from a particular page). Well IE did not like that for
printing. Even though the script acted exactly as it should have by
design. I saved the image to my desktop to test it, and when opening in
an image app - it would not even open (even though displaying fine in a
browser). So I changed the file ext of the downloaded file to that of a
text file and opened it... and what do you know - there was the error
my php script generates when the page is not called properly.
So I removed that line of code (completely irrelevant to the image
itself) And win/IE could print like all the other browsers could.
doh!
Dustin
On 14-Apr-05, at 5:41 PM, Richard Lynch wrote:
You'd want to http://php.net/urlencode the text, then.
?php
$text = This is an example!;
$text_url = urlencode($text);
$url = http://example.com/gd_script/text=$text_url/fool_ie.jpg;;
?
On Wed, April 13, 2005 5:42 pm, DuSTiN KRySaK said:
One thing I feel is important to point out before I keep banging my
head off of the wall here...
In the URL parameter that is sent to the file, the url parameter is
just carrying text that is printed into the image. It is not actually
the image name, or anything. The image is generated in the cstl file
(which actually is the image - sends JPEG headers,etc) - with the text
on it (grabbed from the URL parameter).
d
On 13-Apr-05, at 5:03 PM, Richard Lynch wrote:
Yup.
$_PATH['x'] for the items that look like this: .../x=42/
And $PATH (without the underscore) is a string concatenation of all
elements (after the PHP script) that look like this /whatever/
So you might use something like a PHP script named 'scale' and then:
http://example.com/scale/width=100/height=100/images/subdir/
bigpic.jpg
and then you know that you want to scale the image in your
images/subdir
naemd bigpic.jpg down to 100x100 at maximum.
You'll have:
$_PATH['width'] - 100
$_PATH['height'] - 100
$PATH = '/images/subdir/bigpic.jpg'
On Tue, April 12, 2005 6:21 pm, DuSTiN KRySaK said:
And then all I should have to do is change my $_REQUESTS to $PATH in
hte cstl file right?
d
On 12-Apr-05, at 5:46 PM, Richard Lynch wrote:
On Mon, April 11, 2005 1:14 pm, DuSTiN KRySaK said:
hey - thanks a lot for the code snip - I am trying to use it
now
Just to confirm - the $path include file is included in the file
that
calls the cstl file - correct?
Yes.
Something like:
?php require 'pathinfo.inc'; ?
You can use this same technique for not just JPEG, but also PDF,
SWF
(Ming) and FDF files, all of which Microsoft will screw up if you
don't
fool them with a URL that looks like static content.
d
On 5-Apr-05, at 5:57 PM, Richard Lynch wrote:
On Tue, April 5, 2005 2:26 pm, DuSTiN KRySaK said:
Hi there - I had my first crack at creating a dynamic image. The
thing
is - the image is displayed fine in the browser, but when you go
to
print it, the image is either missing, or part of it is missing.
Is
there something special needed to print a dynamic image?
What you did, *should* work just fine.
But we're talking *MICROSOFT* here!
These people do *NOT* follow standards. Period.
Here is a code snippet used