Hi,
I'm creating a website that relays on $_GET to function correctly.
It works like this: http://www.example.com/show?q=14&i=48 q and i are IDs on MySQL server that must be fetched using mysql_query() and the like. Parameters are always integers.
If someones type the url without any parameters both PHP and MySQL yells errors. PHP...
I need to encode only part of the $delete path. Only the @ in the email address and # in the property. I know how to use urlencode for the whole thing but not on just that. The way it works, is it loops through to get the properties and most of them include # in the name. Anyone who can help modify so that this works would be greatly app...
I have a deep-linking Silverlight RIA trying to consume a Twitter OAuth callback. The URL of the callback "page" in the RIA is:
http://example.com/RiaTestPage.aspx#callback
Twitter calls back to this URL so long as the # sign is URL encoded; so the callback url I supply to Twitter is:
http://example.com/RiaTestPage.aspx%23callback
...
url 1 = www.xyz.co.uk/asd.qmd
url 2 = www.xyz.co.uk/asd.qmd?getstep=4#
I want to show a div(left) when PAGE URL is www.xyz.co.uk/asd.qmd?getstep=4#
IN PAGE form.php I write THE CODE
<script language="text/javascript">
$(function(){
var locate = window.location;
if (locate=="http://localhost/school/form.php") {
$('#le...
Hey Friends,
I am using the following API for getting details of IMDB,http://www.deanclatworthy.com/imdb/?q=Star+Trek
while i using following API i am getting URL as following Output
http:\/\/www.imdb.com\/title\/tt0796366\/
how can i change it to
http://www.imdb.com/title/tt0796366/
in PHP?
...
I am developing a website, and I have set up the following htaccess rules
RewriteEngine On
#RewriteRule ^([0-9]+)?$ index.php?page=$1
#RewriteRule ^([0-9]+)/([0-9]+)?$ index.php?page=$1&post=$2
RewriteRule ^([A-Za-z0-9-]+)?$ index.php?pagename=$1
RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-]+)?$ index.php?pagename=$1&post=$2
This ensures...
I have urls (friendly-urls mapped to certain pages by its unique id) like http://localhost:10038/wps/myportal/portletName (this page is accessible only by authorized users)
When I put the url into browser's address bar (chrome, firefox) it is converted to something like: http://localhost:10038/wps/portal/!ut/p/c0/04_SB8K8xLLM9MSSzPy8xBz...
Hi,
In my application, when the user add an object, can also add a link for this object and then the link can be opened in a webView.
I tried to save a link without http:// prefix, then open it in the webView but that can't open it!
Before webView starts loading, is there a method to check if the URL saved has got http:// prefix? And if ...
HttpRequest.ApplicationPath returns virtual root path for current application, so shouldn’t in the following example when user requests http://localhost:64390/WebSite2/Default.aspx, lblApplicationPath.Text return string “/WebSite2”, since that is the path from web site’s virtual root to WebSite2 application’s virtual root? Instead it ret...
I noticed that WCF's named pipe address
net.pipe://localhost/mynamedpipe
and Windows API's
\\.\pipe\mynamedpipe
don't collide. Why is that? How can I make them point to the same pipe?
...
I use router
Router::connect(
'/articles/:id/:slug',
array('controller' => 'articles', 'action' => 'view'),
array(
'pass' => array('id', 'slug'),
'id' => '[0-9]+'
)
);
BUT how to prevent user enter /articles/view/:id .I can make page /articles/view/:id become " NOT FOUND " ?
...
/facebook/promo/#access_token=162592277090170%7C2.yCch3otjrdit_rgBFS6F0A__.3600.1285369200-727781553%7CtugQmoO0bRiadumHVQrrSiPRD9Y&expires_in=7174
This is the request facebook calls back. How can I parse the access_token ffrom the url? I could not find any way to get the access_token value.
Please aware that it is not a reqular paramet...
I've got an android application that I'm attempting to use to pass some data to a webservice using HTTPGet. If I just construct the string using the JSONArray.toString() method, I end up with a URL that looks something like the following:
http://xxx.xx.xxx.xx/api?method=upload&args[deviceID]=123456789&args[data]=["{element1=9329...
$bits = preg_split('#((?:https?|ftp)://[^\s\'"<>()]+)#S', $token->data, -1, PREG_SPLIT_DELIM_CAPTURE);
Say,I'm trying to match urls that need to be linkified.The above is too permissive.
I want to only match simple urls like http://google.com, but not <a href="http://google.com">http://google.com</a>, or <iframe src="http://g...
Good morning.
I currently have this little rule in my .htaccess
RewriteEngine On
RewriteBase /
RewriteRule ^brochure/([0-9]+)$ /brochure.php?cat_path=$1 [L]
(i'm just using numbers for example here, will be category names later.)
This redirects perfectly, but when it does, everything I have in directories now fail (css, js, images, ...
Hi guys,
I am trying to figure out, how can I automatically submit a url at the following page
http://www.facebook.com/sharer.php
without actually clicking on the submit button.
Thanks.
...
Hi, The variable ' $return10 ' (for example) is a url, and I need to append ' &var2=example ' to the end. Like this:
header( "Location: $return10&var2=example" );
header ("Content-Length: 0");
exit;
The challenge is not knowing if the url contained in ' $return10 ' will already have a query string.
Choice A) If I use ' &var2=exam...
I'm dealing with a web-service that serves video files (host). They provide you with a Guid which is used in an embed code (link to js file).
Their URL's are structured like this:
http://www.foo.com/34534525lsjda345435/script.js
Somehow, the script.js parses this URL and retrieves the variable. Can someone clue me in how this is done?...
I use TinyMCE as editor on a website. Problem is, when I insert images from the same site, TinyMCE will use relative url to the image instead of the fixed url I entered when including the image.
The resulting html is used elsewhere, for example in emails. Problem is, relative urls will not show up properly anywhere but in the original l...
I want to set a default variable for a query that comes at the end of a url
The .htaccess file redirects the url as follows:
http://www.server.com/folder/subfolder/index.php?page="some-page-name"
displayed url
http://www.server.com/folder/some-page-name
if the page name is not set, as in:
http://www.server.com/folder/
the def...