url

iPad application download files from password-protected directory

Hello everyone, I have a password-protected directory on a running server. I would like to download some file(s) from this directory (using a URL) to the Documents directory of my iPad application. How do I send the password of the directory I am trying to access? ...

SQL 2005 database - select by id or select by title?

I'm creating some url rewriting for asp.net. Now I am tobbing if I should include the id in url or just the title. Do you guys know if it's a significant performance hit to lookup an item by title instead of id? ...

problem getting redirect to work properly php

Hi. I have a little problem with redirecting. Registered users follows this link site.com/reg.php?passkey=1234 but the first the user get redirected to the correct language based on a cookie. I need to keep the passkey variable when the user is redirected. like this ?lang=en_US&passkey=1234 My code so far look something like this: if...

Get URL of calling webpage in PHP

Hello all, I am working on a website statistics engine for a class. The idea being that you can simply embed a little code in your web page which will call the stats website on every page load and the stats website will then track your hits and such… nothing ground breaking. What I would like to do is be able to break down website hits...

Check if a string matches a regex and strip a part of it out for use.

I want to add an automatic embedding feature when a YouTube URL is used (http://www.youtube.com/watch?v=VID, where VID is the video's ID). For this, I need to check if the given URL, stored in the variable url, matches "/http:\/\/www\.youtube\.com\/watch\?v=([a-z0-9]+).*/i", then I need to strip out the VID to use it (e.g. put the VID i...

PHP, LAMP server, changing display paths of certain URLs?

I apologize if this is a basic question, however I have been searching on this and can't find anything of use, probably since I don't really know the proper terms.. I am wondering if there is a way to interpret the url that is called on the server, such as: http://mydomainname.com/site1/module1 and then using PHP (ideally), or some oth...

Download different files based on URL string for users

Im promoting a website that has a simple "Download Now" button. When a user clicks this button, they receive a file (a firefox addon that installs in their browser). I've created a number of different version of the addon to use with different marketing channels (AdWords, Facebook Ads, Yahoo, etc). Each version has a unique ID that is p...

SEO strategy unique ID in URL

Hello, What would be the best way for a URL to look like if it should contain an ID and a name? /product/123/screwdriver-black /product/screwdriver-black/123 /product/123-screwdriver-black /product/screwdriver-black-123 Thanks ...

Are extended ASCII chars [äöå] allowed in URLs?

I have seen some websites that use äöå-characters in their slugs (they don't convert them to aoo). So what's the case? ...

Do encoded URLs have better SEO than slugs?

I can't think of an example, but hopefully you get the idea. Encoded URLs have some characters replaced with those weird %20% type of codes (so I think none of the original characters/meaning is lost) whereas slugs have all the special characters stripped off and white spaces replaced usually with dashes or plus sign ('-' or '+'). ...

Semicolon as URL query separator

Although it is strongly recommended (W3C source, via Wikipedia) for web servers to support semicolon as a separator of URL query items (in addition to ampersand), it does not seem to be generally followed. For example, compare         http://www.google.com/search?q=nemo&oe=utf-8         http://www.google.com/search?q=nemo;oe=utf...

How to set background image to an ClientBundle resource in uibinder (GWT)

Dear members, How to set background image in uibinder/java to an image in ClientBundle without using: obj.getElement().getStyle().setBackgroundImage("url("+Images.INSTANCE.bg().getURL()+")"); Because this doesn't work in IE (FF is OK). I think I should set the background image directly in uibinder with css @url or ... (I am using GWT...

In a git-based CMS, how to uniquely identify files in git repository?

I'm working on a simple CMS (based on Django, not that it matters) similar to Jekyll and Hyde, but dynamic instead of static. The idea is that the server has a copy of the repository, I can push stuff into that, and the CMS will automatically pick up the new content. Let's say that Markdown-formatted blog posts in my repository follow t...

Except URL regex

Sigh, regex trouble again. I have following in $text: [img]http://www.site.com/logo.jpg[/img] and [url]http://www.site.com[/url] I have regex expression: $text = preg_replace("/(?<!(\[img\]|\[url\]))([http|ftp]+:\/\/)?\S+[^\s.,>)\];'\"!?]\.+[com|ru|net|ua|biz|org]+\/?[^<>\n\r ]+[A-Za-z0-9](?!(\[\/img\]|\[\/url\]))/","there was l...

how to request url to connect

how to request url to execute or connect to server .. what i was using not working.. NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"%@%@%@%@%@%@%@%@%@%@",[ConfigDB valueForKey:@"mailURL"], @"?ownerID=", [ConfigDB ownerID], @"&userid=",[ConfigDB userID],@"&pID=",pid,@"&emailAddress=",emailTxtField.text,[ConfigDB valueForK...

Xpath and HTML Cleaner problem, no data returned.

Hi, new to the community. been up all night trying to flesh out the underlying html reading system that's at the core of my app's functionally. I could really use a fresh pair of eyes on this one. Problem: While trying to return a string to be displayed on my app's home activity, I've run into an issue where I'm almost certain that th...

PHP ini file_get_contents external url

I use following PHP function: file_get_contents('http://example.com'); Whenever I do this on a certain server, the result is empty. When I do it anywhere else, the result is whatever the page's content may be. When I however, on the server where the result is empty, use the function locally - without accessing an external URL (file_get...

SEO duplicate content

If you have an URL like this: http://stackoverflow.com/questions/123/this-is-my-question If someone creates a link on his website, but changes the name like this http://stackoverflow.com/questions/123/this-is-a-different-question-title that would cause duplicate content. Is it nessecary to check if the name in the url is the ...

How do URL shortener calculate the URL key? How do they work?

How do URL shortener's like bit.ly calculate a random key for each link? What algorithm would I need to know to create my own? ...

Display current URL of webpage (dynamic) in HTML

I have this code in my HTML: <h3 id="left">Lorem Ipsum </h3> <h3 id="right">[Current URL Here]</h3> I want to display (dynamicly) the current URL inside the <h3> tags. I've been trying to figure it out for a few days, but I'm really a mobile developer, not an HTML developer, so it's proven difficult. I need this for a...