Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

url.php #37

Open
galuhboy123 opened this issue May 30, 2016 · 2 comments
Open

url.php #37

galuhboy123 opened this issue May 30, 2016 · 2 comments

Comments

@galuhboy123
Copy link

hai , im galuh boy from indonesia,
i may have question about file "url.php"

first:
what i know : the file will make the map having some line that using to draw our track position.
And what i want to ask is on first line that have $_SERVER function,
what that function is purposed ? why the program should need that ?

second :
the function of "mysql_escape_string" , i'm looking on mr.google
there is no such function like that, the function should be "mysql_real_escape_string"
so what was that "mysql_escape_string" suppose to mean ?

anyone please help ...

sory for bad english (student)

regards, boy

@surfrock66
Copy link

surfrock66 commented May 30, 2016

  1. This defines the scope of the cookie used to track the session information across multiple pageloads. Since info is passed back and forth between php scripts, persistent information is stored in a cookie. The line there says don't let the cookie persist after this session (so, it's not sitting around on your computer), and the $_SERVER directive really only means the cookie applies to just this directory...not another web directory on that server, like if you're me and you have multiple torque instances up (a test and a live one). See here: https://secure.php.net/manual/en/function.session-set-cookie-params.php https://secure.php.net/manual/en/reserved.variables.server.php

  2. It used to exist, but is now depreciated. https://secure.php.net/manual/en/function.mysql-escape-string.php Probably should be replaced.

@galuhboy123
Copy link
Author

@surfrock66 thx again buddy
for helping me 🍡

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants