/    Sign up×
Community /Pin to ProfileBookmark

Insert image into coordinates

Hi,

it would be my advice to php echo to my positions, which can be obtained by clicking on the image, display the red cross?

The coordinates are transmitting in this format:

[code=html]http://localhost/capture_the_position_of_the seats/?image.x=432&image.y=448[/code]

Script:

[code=php]
<?php

if(isset($_GET[“image_x”]))

file_put_contents(“soubor.txt”,$_GET[“image_x”].”,”.$_GET[“image_y”].”n”,FILE_APPEND);

echo “<img src=”http://www.stylovedarky.cz/inshop/layout/img/krizek2.gif” />”;

?>[/code]

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@NogDogDec 17.2010 — Sorry, I'm not sure what the question is here?
Copy linkTweet thisAlerts:
@MaxDJsauthorDec 17.2010 — Sorry, I'm not sure what the question is here?[/QUOTE]

I have a picture (attached), where I find the coordinates of black pixels. And since I do not remember any point, so you want every point at which I find coordinates, mark a red cross.

At the coordinates using this script:

[code=php]<?php

if(isset($_GET["obrazek_x"]))

file_put_contents("soubor.txt",$_GET["obrazek_x"].",".$_GET["obrazek_y"]."n",FILE_APPEND);

?>[/code]


Coordinates Saving to an external file in this format:

602;744

I need to this script add just a sign that the red cross. Could you advise me how to use the solution for it?

Thanks you for you advice.

[upl-file uuid=47eb299f-3eb0-4cd3-b6ad-355a9ec0babe size=68kB]11091480.jpg[/upl-file]
×

Success!

Help @MaxDJs 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 6.17,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...