/    Sign up×
Community /Pin to ProfileBookmark

dynamic images mixed with normal HTML??

Hi all

How can I integrate image output scripts inside normal multi-type content pages? That is, I have text and normal content on the page, but further down require PHP to make some images. To do this you need the header(“content-type: image/png”); header, but my content ISN’T just image, it’s HTML too.

To word a difficult question in its most basic form: how do I use image functions AND have normal HTML output?

Thanks in advance.

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@PunkSktBrdr01Nov 06.2003 — In my experience, you need to have a separate file for the image generation and use <img src="image.php">. I've never seen another way to do it.
Copy linkTweet thisAlerts:
@mityaauthorNov 06.2003 — Yeah that's what I feared ? Thanks anyway.
Copy linkTweet thisAlerts:
@DaiWelshNov 11.2003 — You can generate the images on disk as you go along and deliver the page with <img> tags pointing to the (now static) versions, but it depends why you want it to be one script whether this helps you. If you need it to be done in one pass for coding reasons this will work (give the images some form of unique name then tidy them later if needed), if you have some more obscure reason for wanting it to all be one call then it might not...?
Copy linkTweet thisAlerts:
@mityaauthorNov 12.2003 — THanks for that DaiWelsh.

Fancy meeting someone not 30 miles away on this internetional forum...
×

Success!

Help @mitya spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...