URL Parser
Posted: Tue Nov 29, 2005 4:18 pm
I'm away from a php-coding computer right now, but as soon as I get home, I'm gonna try to do this.
I'm trying to do something similar to pastebin, however I do not want to upload every file to my server and waste space. Instead, since this will be used mostly on forums, I thought I'd make a potentially really, really long URL.
This is what I'm thinking:
viewforum.php?f=1&t=%22uploadedstuffhere%22
To check it out, I tried to visit [url=viewforum.php?f=1&t=%22Lorem%20ipsum%20 ... tellus.%22]this[/url] site (with 5 paragraphs of Lipsum saved to t) and it loads.
So these are my questions:
- Is there a size limit to URLs?
- Can URLs contains slash characters like \r and \n?
- How can URLs contain % signs (like %22) and not see that as a " ?
I'm trying to do something similar to pastebin, however I do not want to upload every file to my server and waste space. Instead, since this will be used mostly on forums, I thought I'd make a potentially really, really long URL.
This is what I'm thinking:
viewforum.php?f=1&t=%22uploadedstuffhere%22
To check it out, I tried to visit [url=viewforum.php?f=1&t=%22Lorem%20ipsum%20 ... tellus.%22]this[/url] site (with 5 paragraphs of Lipsum saved to t) and it loads.
So these are my questions:
- Is there a size limit to URLs?
- Can URLs contains slash characters like \r and \n?
- How can URLs contain % signs (like %22) and not see that as a " ?