/    Sign up×
Community /Pin to ProfileBookmark

Calling javascript file using php

HI

I am doing with generating a hit counter in php
In that,
I have a java script file which gives the client informations including the resolution ,borwser and its version,etc..
I have placed this jaascript file in the server itself and the link is given to the client. from the javascript I send the information to a php file using <i-framr> and saved to database.

But now I am having a problem is
“the client may disable javascript”

So I changed the code to php and the file is accessed using <IMG> tag.

But I cannot the correct hit page and refer page and also I dont get the resolution, since no php command to get browser resolution.

Now I want to access the javascript from php to get the client details.

I hopes you uderstand my problem?

Is it possible? Please help me find a solution…

Bye
Nirmal

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @Nirmal 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.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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

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