473,498 Members | 1,713 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

display domain name instead of filename in php

57 New Member
How do I display main domain name instead of ip or filename in php? For example suppose I am redirected to file http://example.com/myfolder/test.htm, then instead of specified url I want to display example.com in the address bar for such url. How can it be done?
Mar 21 '12 #1
6 1626
Ammu
78 New Member
Use ajax function. Then it will be in that same page.
Mar 21 '12 #2
Noorain
57 New Member
kindly tell me how to do that
Mar 22 '12 #3
Ammu
78 New Member
if you are having a menu in your example.com page, on click event just call ajax function then page will nor refresh and not redirect to requested page instead of that calling page(requested page ) will include in example.com page itself so in url we cannot see the path.
you can use ajax function in any event on mouseover or on click or anthywhere
--Ammu
Mar 24 '12 #4
helimeef
77 New Member
You could use an <iframe>, and load a specific page into it using Javascript.
You can't, however, simply change the contents of the browser address bar. It will always show the address of the page it's displaying.
Mar 25 '12 #5
johny10151981
1,059 Top Contributor
use mod rewrite, it will save your time
Apr 4 '12 #6
ditditsasa
17 New Member
simple format is to give the url as form action="example.com/myfolder/test.htm"
Apr 4 '12 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

4
23869
by: Charles | last post by:
Hi, I have a site that has several domains pointing to its DNS. I would like to implement a script that will grab the domain name visitors typed in, and display it on the page. Is there a way to...
3
3328
by: michaaal | last post by:
My address bar displays the following info... http://www.in-house-domain.com/cust.asp http://www.in-house-domain.com/phnumb.asp http://www.in-house-domain.com/Invect/qult11.asp I would like...
2
1433
by: mg262 | last post by:
I've recently written a web site for a registered charity I'm involved with; the web site works fine when you link to it directly, but after we bought a domain name, JavaScript errors keep popping...
2
1967
by: Jordan | last post by:
Suppose I register a domain name, MyDomain.com, through register.com (or any other of the many domain name registrars). I own the domain name. The domain name goes into the global DNS database. ...
6
5535
by: Anders K. Olsen | last post by:
Hello group I'm trying to list the users and groups who has read access to a file. I use .NET 2.0 and FileInfo.GetAccessControl().GetAccessRules(...) and then loop through the...
6
2101
by: Adam Tibi | last post by:
Hello, I want to get the right most name of the a domain name, for example: if the domain is www.myweb.com , I want to get myweb.com something.myweb.com --> myweb.com www.myweb.com.au --> ...
1
4746
by: Todd Brewer | last post by:
I have an ASP.NET 2.0 site that stores a cookie on the browser. Instead of the domain name (www.somename.com) it comes accross as the IP address of the server. This works in Firefox, but fails...
1
1320
by: amarready | last post by:
Can any one kindly post a solution. I want to use php to display the domain name typed in by the user. Parse it to display in the desired format. This result will be checked against a database and...
10
2455
by: Bobby Roberts | last post by:
hi group. I'm new to python and need some help and hope you can answer this question. I have a situation in my code where i need to create a file on the server and write to it. That's not a...
0
7125
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7203
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6885
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5462
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4908
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4588
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3093
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3081
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1417
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.