Probably simple question and I'm just missing something, but I'm stuck out of ideas.
I have Django project serving several sites with distinct sessions.py and completely different ROOT_URLCONFs. One site handles user registration, authentication and profile settings, other site (on another domain) acts as file manager and so on. Sites a...
I'm a developer so please excuse my ignorance on how to do this: I have access to a Windows 2003 Server where I have some web applications deployed. Instead of users accessing the web applications via some long URLs, how can I shorted the root URL of the server that more human-readable and accessible?
For example, instead of this: http:...
Hi friends,
http://www.blabla.com/our_work/client/client-name#/uploads/18.jpg
I use CodeIgniter, and this is the url I have. I use a gallery script at the page, and it generates #/uploads/18.jpg such thing at url :( is there any way to make it unvisible or sth . maybe with htaccess. i dont know.
i dont want to spend an another day ...
I want to base64 encode data to put it in a URL and then decode it within my HttpHandler.
I have found that Base64 Encoding allows for a '/' character which will mess up my UriTemplate matching. Then I found that there is a concept of a "modified Base64 for URL" from wikipedia:
A modified Base64 for URL variant exists, where no paddin...
Hello,
I need to extract in actionscript the variables from a string like /var1/var2/var3/...
Each variables can be characters or/and number and variable size.
My current regex /(\w+)/g work for the first variable but not for the others.
var matchExpression:RegExp = /(\w+)/g;
var match:Array = matchExpression.exec(browserManager.fra...
I have a HttpHandler that is called whenever an image extension is accessed. This is what I have in the HttpHandler as a simple test:
public void ProcessRequest(HttpContext context)
{
context.Response.Write(context.Request.Url.ToString());
context.Response.End();
}
According to Firebug, the first time the page is refreshed...
I have created a Umap AS3 (AfComponents) map on my client's site and creating a FeedLayer which calls a KML file which client generates via a CMS. Everything was working fine until I discovered that .kml is not reading.
I checked on firebug and found that the URL http://www.domainname.com/myReal.kml is not directly accessible. I don't k...
Is there a class in the ASP.NET MVC framework that represents a controller name and an action name?
I'm writing a method that will return a collection of URLs and I want them to be returned as objects that contain a 'Controller' and 'Action' property or something similar.
This is because sometimes I'll need to isolate just the controll...
I want to hit a URL from python in google app engine. Can any one please tell me how can i hit the URL using python in google app engine.
...
I'm trying to do something with .htaccess that I'm not sure can be done.
First thing I did is hide the .php extensions using the following code:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
Works great.
Now what I'm trying to do and can't seem to figure out is...
Given a series of URLs
http://www.anydotcom.com/myfolder/some-url.html
http://www.anydotcom.com/myfolder2/index.html#
http://www.anydotcom.com/myfolder3/index.html?someParam=aValue
http://www.anydotcom.com/foldername/index.html?someParam=anotherValue
First, how could I strip anything off the end of the URL so that I end up with
http://...
I am having a problem doing a get on googles search url from php. Here's the code I have:
<?php
$handle = fopen("http://www.google.com/complete/search?hl=en&js=true&qu=" .
$_GET["qu"], "r");
while (!feof($handle)) {
$text = fgets($handle);
echo $text;
}
fclose($handle);
?>
Here's the error I get...
I often find that I have files in my projects that need to be accessed from the file system as well as the users browser. One example is uploading photos. I need access to the files on the file system so that I can use GD to alter the images or move them around. But my users also need to be able to access the files from a URL like "site....
I need a function that given a relative URL and a base returns an absolute URL. I've searched and found many functions that do it different ways.
resolve("../abc.png", "http://example.com/path/thing?foo=bar")
# returns http://example.com/abc.png
Is there a canonical way?
On this site I see great examples for python and c#, lets get a...
Hello folks,
I'm trying to send the PHPSESSID via a HTTP GET variable for a cookie-less client.
I've seen this in various drupal implementations where ?PHPSESSIONID=123ABC is appending to each link, but how do I specify this in PHP and is there any way of changing the GET parameter so it could be ?token=123ABC, or even sent via HTTP PO...
How can you transfer a variable such as ask_question in the URL such that it changes the outlook of your index.php by given rules?
I have the following link in my index.php
<a href="index.php?ask_question">Ask question</a>
which however does not work since I do not know how you can refer to the ask_question -variable in the URL. If ...
Hi there,
I want to add a redirection URL to my login forms action (as a query) in login page, so after loging-in, one can visit the previous page he or she was surfing.
First I thought about using Zend Session and save the url of each page in a variable. but I read in the documentation that it has overhead. So, is there a better way t...
I built a LAMP web application that let's users create their own profile page where they can upload their resume and portfolio. The url for a person's profile will be something like
http://jobbank.com/user/johndoe
John Doe registers the domain name http://johndoefreelancer.com and he wants it to point to http://jobbank.com/user/johndo...
Suppose I have
window_location = 'http://stackoverflow.com/questions/ask'
href = '/users/48465/jader-dias'
I want to obtain
link = 'http://stackoverflow.com/users/48465/jader-dias'
How do I do it in Python?
It have to work just as it works in the browser
...
I have a string with a full URL including GET variables. Which is the best way to remove the GET variables? Is there a nice way to remove just one of them?
This is a code that works but is not very beautiful (I think):
$current_url = explode('?', $current_url);
echo $current_url[0];
The code above just removes all the GET variables. ...