Author Topic: I always see the pound symbol in php urls...  (Read 1690 times)

Offline 133794m3r

  • Level 22
  • *
  • Posts: 265
  • Reputation: +2/-0
    • View Profile
I always see the pound symbol in php urls...
« on: February 06, 2010, 05:46:59 AM »
But what in the world is it doing there? I've searched the php documentation site and they don't explain what it's doing there. It seems to be something with just loading the html base code that's changed a bit over the current page.(or atleast that's what it's always seemed to do any page that's using it) So what's the function that causes the url to be something like example.com/#/code.php? or example.com/php?24248a#

Online Chris

  • Game Owner
  • Level 35
  • *
  • Posts: 2,217
  • Reputation: +28/-1
    • View Profile
Re: I always see the pound symbol in php urls...
« Reply #1 on: February 06, 2010, 06:00:49 AM »
What you wrote is hash symbol, not pound symbol. If you do not see hash, check your browser "character's settings" (I forgot how it was called in English, I mean the thing that make your computer interpret what alphabet is used).

Offline 133794m3r

  • Level 22
  • *
  • Posts: 265
  • Reputation: +2/-0
    • View Profile
Re: I always see the pound symbol in php urls...
« Reply #2 on: February 06, 2010, 06:34:08 AM »
What you wrote is hash symbol, not pound symbol. If you do not see hash, check your browser "character's settings" (I forgot how it was called in English, I mean the thing that make your computer interpret what alphabet is used).
#=hash? since when? It's always been taught to me as a pound symbol. And my browser shows them all as the pound symbol. #=Pound,Number i've never heard of it being called hash. O.o

And it's western...

Edit: quoting wikipedia "In most English-speaking countries outside North America, the symbol is usually called the hash mark, hash sign, or hash symbol, and the corresponding telephone key is the hash key." So yes i am seeing the pound symbol.

http://en.wikipedia.org/wiki/Number_sign
« Last Edit: February 06, 2010, 06:36:04 AM by 133794m3r »

Online Chris

  • Game Owner
  • Level 35
  • *
  • Posts: 2,217
  • Reputation: +28/-1
    • View Profile
Re: I always see the pound symbol in php urls...
« Reply #3 on: February 06, 2010, 06:48:08 AM »
What you wrote is http://en.wikipedia.org/wiki/Number_sign
if you see http://en.wikipedia.org/wiki/Pound_sign then you need to change your browser settings.

Offline 133794m3r

  • Level 22
  • *
  • Posts: 265
  • Reputation: +2/-0
    • View Profile
Re: I always see the pound symbol in php urls...
« Reply #4 on: February 06, 2010, 07:26:56 AM »
What you wrote is http://en.wikipedia.org/wiki/Number_sign
if you see http://en.wikipedia.org/wiki/Pound_sign then you need to change your browser settings.
I'm american, so the so called "hash symbol" you speak of is my pound sign/number sign. And i was talking about the code itself. I was wondering what it's significance was in this whole thing. I have said before it was the pound sign(the american pound sign), i started this thread to see what it's importance was in the grand scheme of things with reference to php.

Online Chris

  • Game Owner
  • Level 35
  • *
  • Posts: 2,217
  • Reputation: +28/-1
    • View Profile
Re: I always see the pound symbol in php urls...
« Reply #5 on: February 06, 2010, 07:32:13 AM »
"example.com/php?action=killme&areyousure=yes#anchor"

It's not PHP but HTML. Read about anchors.

Offline 133794m3r

  • Level 22
  • *
  • Posts: 265
  • Reputation: +2/-0
    • View Profile
Re: I always see the pound symbol in php urls...
« Reply #6 on: February 06, 2010, 07:55:27 AM »
"example.com/php?action=killme&areyousure=yes#anchor"

It's not PHP but HTML. Read about anchors.
ah... never though to look at them in html pages before now.

Offline Marek

  • Level 18
  • *
  • Posts: 177
  • Reputation: +7/-0
  • XHTML, CSS, JS, PHP and MySQL are my pantheon.
    • View Profile
Re: I always see the pound symbol in php urls...
« Reply #7 on: February 06, 2010, 11:50:06 AM »
It's officially called the fragement identifier. It's used to link to a section within a document.
http://en.wikipedia.org/wiki/Fragment_identifier
For example, on that page, if you click on "Examples" in the table of contents, the page will go to Fragment_identifier#Examples.

In JavaScript apps it can be used for navigation within an app (without reloading the page). GMail uses this for example. It can essentially serve as an extension of the query string, but which does not cause the page to reload if a link is clicked with only the fragment being different.

Offline 133794m3r

  • Level 22
  • *
  • Posts: 265
  • Reputation: +2/-0
    • View Profile
Re: I always see the pound symbol in php urls...
« Reply #8 on: February 06, 2010, 09:59:02 PM »
It's officially called the fragement identifier. It's used to link to a section within a document.
http://en.wikipedia.org/wiki/Fragment_identifier
For example, on that page, if you click on "Examples" in the table of contents, the page will go to Fragment_identifier#Examples.

In JavaScript apps it can be used for navigation within an app (without reloading the page). GMail uses this for example. It can essentially serve as an extension of the query string, but which does not cause the page to reload if a link is clicked with only the fragment being different.
ah so it's some java magic then... i'll have to start looking into java once i get the basics laid out.
edit:wow just finally got around to looking at jquery and jesus that api looks simple to use... don't know why i didn't start looking at it before...
« Last Edit: February 06, 2010, 10:19:51 PM by 133794m3r »

Offline raestlyn

  • Level 29
  • **
  • Posts: 464
  • Reputation: +9/-5
    • View Profile
Re: I always see the pound symbol in php urls...
« Reply #9 on: February 07, 2010, 04:13:53 AM »
edit:wow just finally got around to looking at jquery and jesus that api looks simple to use... don't know why i didn't start looking at it before...
You might want to read this: http://jqueryvsmootools.com/ if you are about to choose a js framework.


I can send you pics of my cocks if you want reference.


Offline 133794m3r

  • Level 22
  • *
  • Posts: 265
  • Reputation: +2/-0
    • View Profile
Re: I always see the pound symbol in php urls...
« Reply #10 on: February 07, 2010, 05:06:23 AM »
edit:wow just finally got around to looking at jquery and jesus that api looks simple to use... don't know why i didn't start looking at it before...
You might want to read this: http://jqueryvsmootools.com/ if you are about to choose a js framework.

hmm i still think i'm going to go with jquery for the time being atleast. Since i don't know an extreme amount of javascript, and i'm in the get it going kinda stage. And since as the guy has said in his post that if you wanted to make mootools behave like jquery did you could do so easily and effeciently. So if, after i get the pages up and going and then find if i need more javascript control from it, i can easily just get mootools setup and easily translate the mootools framework to work like jquery for the ones that i have already used.

Also, when looking ahead to actual graphics being set into the game, gamequery which is based off of/works with jquery seems to be a very nice extension for jquery. And that's b/c of it already doing a fair share of all the code for me(even though i'm not at that stage in the development at this moment and time).

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal