Welcome to Questionaries, where you can ask questions and receive answers from other members of the community.

Let us know at info@questionaries.org

is this right : Converting specific javascript commands to php such as math.random()

13 like 0 dislike
If you do I am also having problem with conveting the following functions from javaScript to PHP.

sc_img = new Image();
sc_img.src = sc_tracking_url;

sc_date = new Date();
sc_time = sc_date.getTime();
sc_agent = sc_agent.toUpperCase();

This is all I have left prior to testing the script. If anyone has any ideas... please let me know.

Thanks in advance.
asked 1 year ago by webmaster (25,380 points)

1 Answer

1 like 0 dislike
 
Best answer
okay I saw that but could not make out if I just left it at rand(); instead of math.random(); or did I have to include numbers inside of there....

any insight?

Also do you know of anything that will replace the following

sc_img = new Image();
sc_img.src = sc_tracking_url;

sc_time = sc_date.getTime();
sc_agent = sc_agent.toUpperCase();

------------------------------------------------------------------------
The below are correct then?
sc_date = new Date(); --> $sc_date=date('Y');
math.random(); --> rand();

thanks for any help
answered 1 year ago by monirulislam (51,620 points)

Related questions

8 like 0 dislike
1 answer
13 like 0 dislike
0 answers
asked 2 years ago by biswaskeran (70,430 points)
10 like 0 dislike
0 answers
14 like 0 dislike
1 answer
asked 2 years ago by biswaskeran (70,430 points)
3 like 0 dislike
1 answer
asked 1 year ago by sr_webmaster (21,000 points)