348 Topics
![]() | |
I'm not exactly sure what the problem is but the cookies aren't available for subdomains. Is there any way around this, or is there a better way to set the cookies domain? Thanks! <?php ini_set("session.cookie_domain", ".example.com"); // Set cookie and redirect when user change city if( isset($_POST['city']) && $_POST['city'] != … ![]() | |
i have a simple note and images storing java program that stores data into the server..i'm confused about what to use for building the server..should the server be built using sockets?? or which listens for http requests (the client sends json data)?? could anyone please tell me which one would … | |
The cookie is not holding and the domain example.com cannot redirect to a.example.com when I type on the address bar. Anyone good at cookies? Any help will be very much appreciated. $(function(){ var city = getCookie('city'); if(city !=null && city !=''){ window.location.href = 'http://' + city + '.example.com'; } $('#citygo').change(function(){ … ![]() | |
Hi, I want to access a web service and get the response in json using javascript. The web services can respond in json and gives me a table of records with a specific campus. I input the campus code in the text box and create the url. Now, I want … | |
Hello i'm using javascript code to redirect visitor to random link like the example below but sometimes i get error 404 response :( var pageArr = ["http://google.com", "http://yahoo.com", "http://bing.com", "http://youtube.com", "http://facebook.com"]; document.location.href = pageArr[Math.ceil(Math.random()*5)]; ps:the code does exist in external js file what the problem here ? i'm not coder … | |
I'm trying to combine the functionality of the 3 codes below to produce a delayed redirect to a random URL while displaying a bar filling up by %. Each one works great, but I need all 3. Any help would be greatly appreciated. Thanks! **The first redirects after a delay** … | |
What would I need to add to the code below to have the random redirect timeout for 5 seconds before triggering? <script type="text/javascript"> (function(n){ var pages = ['http://www.thestormybrain.com/2013/11/malcolm-gladwell-choice-happiness-and.html', 'http://www.thestormybrain.com/2013/11/steve-jobs-how-to-live-before-you-die.html', 'http://www.thestormybrain.com/2013/11/david-blaine-how-i-held-my-breath-for.html']; n = n < 3? 0 : n < 8? 1 : 2; window.location.replace(pages[n]); })(Math.floor(Math.random() * 10)); </script> I know … | |
Hello everyone, I am trying to write a website that allows a user to input a stock symbol(ie. APPL, GOOG) and get basic information back. I have a html/js file and how it looks is fine but I am running into trouble when doing an HTTP GET using the XMLHttpRequest. … ![]() | |
hi, i am interested in php link redirect. lets say i have a website with a lot of links, and most of the time if i change one file name i have to update that on everypage, it's irritating, as for other website like microsoft, they use links like **go.microsoft.com/fwlink/id3242** … | |
i have a problem to redirect user to the requested page after login. 1-this are my files:login.php,register.php,protected.php,plan1.php,member.php et plan2.php,home.php 2-plan1,plan2, and member have a check before people have access. 3-when a user click on plan1 for exemple and get redirect on login.php 4-My problen is after logged in he goes … | |
Everytime I open a new page in Windows 8 I get an advertisment pop up screen. How can I delete this virus? | |
When i login in wordpress component at admin side of joomla at that time i m not redirecting login page to dashboard of wordpress and when i go at site side at that time i m with login status..and then i try to login from admin site then i m … | |
Hi, I am learning struts 2 framework and i have also used OGNL in it for data transfer. The problem is when i run the Login.jps page on apache tomcat server through Eclipse Indigo , i get the error "HTTP Status 404 - /Priyanjan_banking/Login.jsp" Please help me out . The … ![]() | |
I am having some trouble posting to website..I've tried posting to many different websites and get the same result.. An error message referencing the js on the page, asking if i want to continue.. Then the response i get is the form I am posting to, with all fields correctly … | |
Now this one always bugs me! I'm dealing with a lot of checks that result in redirection dependant on certain results. **Example:** 1) If session exists and users lands on login.php they are pointed to index.php. 2) When landing on any page after loggining in, if their account isn't complete … | |
I need a way to check if tweet exists. I have link to tweet like https://twitter.com/darknille/status/355651101657280512 . I preferably want a fast way to check (without retrieving body of page, just HEAD request), so I tried something like this function if_curl_exists($url) { $resURL = curl_init(); curl_setopt($resURL, CURLOPT_URL, $url); curl_setopt($resURL, CURLOPT_BINARYTRANSFER, … | |
Hello, I have a Ruby On Rails app online which uses devise authentication. I am trying to make an android app which make a request from ror app when a user try to log in (so the users can use same account from ror app). I heard that what I … | |
The problem started with getting redirected when we searched with Google. So we tried other search engines which worked for a little while but now it doesn't matter which search engine we use. If you go back to the original search after you are redirected a time or two you … | |
Hi folks, I've recently got into doing a bit of web development and got hosting for it. The website is consisted of mainly 3 separate folders(one for home page, 2 for 2subdomains) under the html root directory to avoid cluttering. To get to my home page on my main domain, … ![]() | |
Help me! I have a domain, I would like to handle subdumain with .htaccess file. for example: http://usa.hotbizzle.com or http://india.hotbizzle.com should not redirect to sub folder. URL should not change in the browser but it has to call a file php file and give result. Is there any possibilities in … | |
i was working on a plugin that can find some special url in wordpress page contents and then if matching URL found then change that url automatically to another url like without giving backlink benfit to that site. for example : if i have defined a site that start with … | |
#This is for Laravel 3.*# ## Hello, ## With this snippet I'm providing a simple way to automatically filter `Input::get()` and `Input::old()`. To achieve this result we need to make few changes: * extend Input and Redirect classes by creating new files in `application/libraries/`, the files are: **input.php** and **redirect.php**; … | |
I have a contact form in a popup div. I want the contact form to redirect to the popup div with an error or a successful message when form is completed obviously depending if message was sent NOT A PAGE. Please can someone help me. <?php //set variable error var … | |
Hy All Im here again to ask for you help. I still in the begining to launch the site, and i found a major error. The theory is the following. I planning to start a Pay per download site, which mean the members upload a file and when somebody want … | |
i want to redirect my query base url to pretty url,i am trying this on local host, i want if any one try to access http://localhost/something/index.php?page=zen it will redirect to http://localhost/something/zen.html, ie http://localhost/something/index.php?page=zen => http://localhost/something/zen.html RewriteEngine On RewriteCond %{REQUEST_URI} ^/index\.php$ RewriteCond %{QUERY_STRING} ^page=([a-zA-Z0-9_-])$ RewriteRule ^(.*)$ http://localhost/cmsmadesimple/%1.html [L,R=301] | |
I am trying to secure a folder within my site by forcing an HTTPS connection when anything in this folder is run (the folder contains a series of scripts that process registrations, password resets, etc). What's the easiest way to accomplish this? | |
A client of mine wants to implement SSL on their site. They have a number of forms which communicate sensitive/personal information, and want to send the data over a secure channel. I've worked with sites that have SSL certificates already, but never actually implemented one myself. The site runs on … | |
hi i have a simple website that includes a WebService and a Webform page. i'm trying to call my web service from the web form using jquery. when i type the web service's url using https, i get "Access denied" error from internet explorer. the call works just fine when … | |
I'm looking for a process I don't know weather it will work or not. I want to connect a computer to a website using `HTTP Protocol`. Is this possible ? How we can communicate a system having a `static IP Address` from a `HTTP Protocol` ? Is there any way … | |
if a or b selected from select menu i want to submit values else other is selected from select menu i want to redirect to other website please help me urgent. ** my form code is ** <table> <tr> <td><label> <select name="community" id="select7" > <option value="a">a</option> <option value="b">b</option> <option value="other">other</option> … | |
Hello everybody ! There is an issue that's driving me realy crazy. I'ts about Adobe DreamWeaver and adding MySQL Data Connection (For document type:PHP). When I input infrmation about: -Connection name -MySQL server(remote server) -username -password Which all of those infos are correct i receve a http error saying: "HTTP … ![]() | |
Ok this is the most unsoveable problem i have ever dealt with and the worst is i know it can be solved because someone has done it. I want my users after succsefull payment to be redirected to my site where i will capture their details and give them a … ![]() | |
Hi I have 4 affiliate sites that are all in the same niche and I have bought the domain names mainly because they are frequently searched for terms in google. However to update all four daily would take more time than I have, so I am considering doing a 301 … | |
"httpError: The Http Transport returned a 0 status code. This is usually the result of mixing ajax and full requests. This is usually undesired, for both performance and data integrity reasons." I am getting this error in my web page form... how to get rid of this message ............ ![]() | |
Hello, I have a client that wants to switch his TLD (top level domain) over when the new design for his site goes live. Problem is his old domain have thousands of backlinks linking back to his old domain. The plan is to set up a 301 Re-Direct from the … ![]() | |
In php/html/javascript there are two different ways you may redirect a user to another page however there are a few things to consider before choosing with method to use. As you should know by now php has the ability to send html and javascript to the web browser and php … | |
Hello guy, I have a website it's basicly a rss feed website. When a user click on a link they leave the page (with _blank). But i want to make a leave page something like www.domain.com/go/ they stay on this page for let's say 5 sec and they the script … | |
First of all let me clarify that I am programmer and that my knowledge in system administration are limited ( I know more than that limited spectrum but I wouldn’t trust me on those ). This idea arose out of two deferent needs , I have a dedicated server in … | |
I'm creating a website which requires a Login. When it logs in the system it creates a Session. But I don't know how to validate my next page. Because if the user types the name of the second page in the browser, it enters without problem. What I want is … | |
Hi, I'm trying to redirect the admin user from my login.aspx page to the admin.aspx page and any other domain user to the default.aspx page. I have no problems getting the domain users redirecting or having a message displayed when the credentials are incorrect, however when I enter the admin … | |
I am redesigning a site in joomla, and moving it to new web host. The new site will be in Joomla 2.5, and the old site seems to be some version of Joomla 1.5 plus some home-made cms called netdocs. I am coming back to this after many years away. … | |
I am working on a series of web pages and I would like to be 100% certain that users cannot jump around to any page they like by typing a URL into their browser. I have used $_SERVER['HTTP_REFERER'] to check at the top of most pages and if the referer … ![]() | |
I have a javascript login box on my site ([url]www.cigardig.com[/url]) that a user can click on and login on any page. The way I would like it to work is that once a user hits submit, they are redirected back to the page they logged in on. So, for example, … | |
So a client of mine has about 150 domain names, all of them he is wanting to redirect to the primary domain name. I have done something like this for each domain name in the .htaccess file: Options +FollowSymLinks RewriteEngine On RewriteCond %{HTTP_HOST} ^domain12.com$ [NC] RewriteRule ^(.*)$ http://www.primarydomain.com/$1 [R=301,L] Options … | |
Hey, I have some command, I'll call it "command". I need to do this: yes | command but without a pipe, there is a reason for this, because for the specific use, pipe before the command is not allowed, that's not the point. Is there an alternative I can use … | |
Hi I attached here a code that i have a problem with. the function CheckStatusCode() suppose to connect to uri and check the http response status. it should display on the screen the status received. usually the status is "OK" (200). but for instance if the page doesn't exist the … | |
Hi how do i create an application in ASP.net C# for HTTPWebRequest, HTTPWebResponse to send and get data back ![]() | |
is it possible in php java scrip and jquery that we give a condition and redirect page to another pages on depending on those condition like if($id==1) { header(location:page1.php); } else { header(location:page2.php); } the value of id comes from database. something like that using jc jquery enything please help … | |
My site is [seoitc.com](http://www.seoitc.com), we are using joomla for this site, but have 1 problem when i try auto redirect to anypage that show error: Warning: Cannot modify header information - headers already sent by (). I tried change redirect to use js but cant use same status(302,303...) same as … ![]() | |
|
The End.