How to create subdomains in php ?

is there a way i can create subdomains in php like myname.mywebsite.com?
i heard about asking my host server permissions and also about the wildcards, but i thought of a php function solely
is there a way out ?
thanks for helping me out
krgds

i don't think there is a way. subdomains are controlled through the webserver (apache or iis). you can write scripts that will do this but you will still need proper permission on the server for it to be executed. not sure if php is capable but it can probably be done using perl, .net, etc

Similar Messages

  • How to create subdomains and mask url

    Hello,
    Can some one please tell me how can create subdomains for my domains? I have an application, where the url will be http://www.abc.com/user/student/login.html now this url I want to musk by a unique subdomains for the user and make it look like this http://MERIT.abc.com/login.htmlThis will be created for all users. The users will get to chose the url that they want. I was wondering how can this be done?
    I think here
    1, I will have to create a subdomain after making sure that it is not already registered
    2. Point this domain to www.abc.com/users/login
    Usually I do this in the server using control panel by creating an A RECORD. Is there any provision in servlets to create A record?
    Thanks

    That depends on the appserver in question. Consult the documentation which come along with it. If you're using for example Tomcat, then you should read this document: [http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html]. Googling using smart keywords like "$appservername subdomain" (e.g. "tomcat subdomain") may also generate lot of helpful information.
    This has essentially nothing to do with servlets. Self-respected appserver vendors have a forum or mailinglist at their website for the case you stucks.

  • Need Help: how to create url address in dynamic web (PHP)?

    Guys,
    I need your help! I'm a newbie in web designing, I just want to ask on how to create a web (dynamic page) link/url.
    e.g. http://www.mypage.com/?=home
    thanks a lot.

    Setup a database table and populate the fields (i.e. auto-numerical_primary_key, id, dynamic_mod_url, title, article_content, etc.) then on your page create a filtered recordset where URL parameter (id) = your database table field (primary_key). Place the bindings of the filtered recordset on the page to show dynamic values for the filtered recordset based on the URL parameter. That way when someone visits yoursite.com/page.php?id=1 it will show the content for the database table where the primary key = 1 and so on. use dynamic_mod_url in conjunction with .htaccess dynamic mod rewrite to change yoursite.com/page.php?id=1 into yoursite.com/the_name_of_dynamic_mod_url_for_primary_key_1.html

  • How to create a login to users in PHP

    How to create a login for users to access their data,
    currently I can only see the first user everytime I login even with
    a different username. I know I need session stuff but don't know
    how to use, add or where to put them in.
    Thanks in advanced.

    I also am wrestling with the same problem. Session variables
    have not worked. I have determined that if the GET method is used,
    then the recordset of the users records are there. If the POST
    method is used, the recordset is blank. It appears to be something
    inherent in the Log In User behavior.
    I am trying to have a customer log in and then only see their
    particular inventory records. I do not want them be directed to a
    page with a listing of all the various customers and then select
    from that. Not suitable at all.
    If I find an answer, will let you know.
    Thanks and good luck,
    Dale :-)

  • Trouble with creating subdomains for .local address

    I'm a web developer on Mac OS X 10.5.6 and I use my MacBook Pro as my primary development and testing machine. I have Apache 2 running and Entropy PHP 5.2.4. All of that works fine. In the past, I didn't use virtual hosts. Instead, I would divide my projects into subfolders of /Library/WebServer/Documents
    One day, I wised up and created virtual hosts by adding the appropriate entries to /etc/apache2/extra/httpd-vhosts.conf and by adding a few corresponding hostnames to /etc/hosts.
    In the hosts files, I "created" subdomains for each site. For example: If I was working on a site for Dairy Queen, I might add the following line to /etc/hosts:
    127.0.0.1 dq.local
    Then I would add the virtual host to /etc/apache2/extra/http-vhosts.conf and it would look something like the following:
    <VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot "/Library/WebServer/DairyQueen/Documents"
    ServerName dq.local
    <Directory "/Library/WebServer/DairyQueen/Documents">
    Options FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>
    </VirtualHost>
    I've been setup in the above way for many months and it all works great. On my computer, I can enter dq.local in my browser and it pops right up.
    I've even modified the hosts file in my Parallels Virtual machines running Windows. And from any browser in any of my Virtual machines, I can reach my various .local domains hosted by Mac OS X.
    *The Problem:* If I want to browse the site from another computer on my local network (or my iPhone), they will not find my MacBook Pro in the .local domain without editing the /etc/hosts files on those devices -- which is a nightmare scenario because A) I can easily edit the /etc/hosts file on the iPhone, B) It's inconvenient to have to edit /etc/hosts files on the myriad of devices, and C) I would have to have my laptop set to a static IP -- something I could easily accomplish, but it's just not as clean of a solution as I'm looking for.
    I realized that when using Bonjour, my MacBook Pro shows up to other computers as "Christophers-MacBook-Pro.local". I thought, hmmm ... maybe I could utilize that by dividing it into subdomains. For example, I would modify the vhosts file setting the new domain name to dq.christophers-macbook-pro.local, I would modify my own /etc/hosts file to say:
    127.0.0.1 dc.christophers-macbook-pro.local
    ... and Voila! I'd be done, right? Nope!
    Of course on the MacBook Pro that's hosting the sites, I can browse to dq.christophers-macbook-pro.local, and it works fine just like it did when it was dq.local.
    On a PowerBook G4 (running a freshly installed and clean 10.5.6), going to dq.christophers-macbook-pro.local results in the wrong site from coming up. What!?
    Note that when I go to just "christophers-macbook-pro.local" on the iPhone and the PowerBook, the correct site comes up -- from the MacBook Pro.
    Turns out, my xServe running Leopard Server is responding to the request and serving up my photo gallery site on both the PowerBook and the iPhone!
    I do have DNS running on the server. The other computers are connected wirelessly and via DHCP from an Airport Extreme Base Station that IS NOT getting DNS from the server, rather it's getting DNS from Comcast. The notbooks and the iPhone are getting DNS from the Base Station.
    When I stop the DNS service on my xServe, there's no effect -- the web response is still coming from the server. (Yes, I flushed the DNS cache on the PowerBook just to be sure). I checked the virtual hosts on the server and none of them is configured with a wildcard as an alias. The photo site IS the first entry in the sites list -- the first virtual host.
    So, how do I break my MacBook Pro's .local domain into subdomains? What am I missing?

    HI,
    That's about 6 miles over my head but I can suggest that you post in the Apple Mac OS Technologies forum:
    http://discussions.apple.com/category.jspa?categoryID=162
    Carolyn

  • How to create effects like this ...

    Dear webmates :
    I'd like to know how to create rollover menus like this :
    http://perfeccionate.urp.edu.pe/server/rumbo/index.php/comunidad/programa-tv
    As you can see it shows you more than one option and big rollover menus... what tools ca I use to achieve this ?  thanks in advance...

    Hi Sw Jiten,
    Check this cool Dreamweaver extension from DMXzone - Universal CSS Navigation Menu
    Regards,
    M.Zografski.
    DMXzone.com

  • How to create the Sap script & Layout Set (wants sample code)

    Hi All ,
    Can you please provide me the step by step procedure
    to create the Sap script & Layout Set .(please provide sample
    code/links /docs for layout & print program).
    Regards
    Rahul

    hi,
    go through the following links  what i found to create sap script.
    http://www.thespot4sap.com/Articles/SAPscript_Introduction.asp
    http://abapliveinfo.blogspot.com/2008/01/free-sapscript-made-easy-46-book.html
    http://www.thespot4sap.com/articles/SAPscript_example_code.asp
    http://idocs.de/www3/cookbooks/sapscript/sapscript_1/docu.htm
    http://idocguru.com/www5/cookbooks/sapscript/sapscript_1/example.htm
    www.geocities.com/wardaguilar25/sapscript-tutorial.html
    http://logosworld.de/www3/cookbooks/sapscript/sapscript_8/docu.htm
    how to create a  scripts?give steps?
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=2969311
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=2902391
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=3205653
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=3111402
    http://www.sap-img.com/sapscripts.htm
    http://sappoint.com/abap/
    http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
    http://help.sap.com/saphelp_crm40/helpdata/en/16/c832857cc111d686e0000086568e5f/content.htm
    http://www.sap-basis-abap.com/sapabap01.htm
    http://www.sap-img.com/sapscripts.htm
    http://searchsap.techtarget.com/tip/1,289483,sid21_gci943419,00.html
    http://sap.ittoolbox.com/topics/t.asp?t=303&p=452&h2=452&h1=303
    http://www.sapgenie.com/phpBB2/viewtopic.php?t=14007&sid=09eec5147a0dbeee1b5edd21af8ebc6a
    Other Links

  • How to create a Flex3 project with remote ColdFusion server?

    I have a question related to Flex 3 and ColdFusion that it might be simple to answer but I have been struggling with it for a while.
    How to create a Flex application using Flex Builder 3 that uses ColdFusion, but the ColdFusion server is not installed locally but in a remote server?
    I need to create a Flex application to use with ColdFusion and although this is a simple procedure when we are creating the project in a computer where you have ColdFusion installed locally (as all books shows examples of it), but what if the ColdFusion server is installed in another machine in the network?
    My current situation is the following:
    -          I have Flex Builder 3 install in my PC at work and its workspace is in a folder in the network outside of my PC.
    -          We have a server (ISWEB1) partition in two drives; C, where the ColdFusion 8 is installed and D where all the files the developers work with reside. The ColdFusion installation runs in a server where IIS is used as the web server.
    -          I have the drive D on the server ISWEB1 mapped to one of my letter drives and can access it easily
    -          The drive C on the Server can only be accessed remotely (or through the web to access the ColdFusion admin page) and is not exposed to the network as drive D is.
    My problem is, I need to create a Flex 3 application that uses ColdFusion using remote object access service (CF Flash Remoting) but I wanted to point to the installation version on the server ISWEB1 and not to the one installed locally. The Configure ColdFusion Server screen in the Flex Builder asked me for the location of ColdFusion root folder, Web root, and root URL. There is no way I can point to the server (ISWEB1)where ColdFusion is installed as those fields seem to required a address that points to a local install or a mapping on that local server.
    The work around that could be used is to use the ColdFusion developers edition I have installed locally and use during the creation of the project in Flex Builder, but then I would have to have all the same data sources, mappings, and CFCs in my the local server in order to test, which seems double work. To aggravate that when you try to test the application Flex writes the files to the local server and unless you have everything available locally it would not work properly. I am trying to avoid duplicating the work. Ideally I would like to test the Flex application on the server where the CF is installed and where the Flex Builder workspace is.

    Sort of. I found this article below that helped me to connect to the remote CF server using MXML. It seems that you have to create a regular project in Flex with Aplication Server Type set to None and connect to CF using the endpoint attribute of the RemoteObject MXML tag or via AS.
    http://www.aliaspooryorik.com/blog/index.cfm/e/posts.details/post/200
    However I found out after getting error using the AS3 code to use the endpoint property that
    mx.rpc.remoting.RemoteObject does not support  the "endpoint" property
    whereas mx.rpc.remoting.mxml.RemoteObject does. See link below
    http://www.mail-archive.com/[email protected]/msg101439.html//www.mail-archive.com/[email protected]/msg101439.html
    So I had to change my AS3 code by adding a new channel to my RemoteObject using a code similar to the one on the link below (Note that this code uses PHP, when I instantiate myRemoteObject, I do so informing that the destination is "ColdFusion" [new RemoteObject("ColdFusion")], so no need to set destination as in the code on the link below
    http://tech.groups.yahoo.com/group/flexcoders/message/120115
    I hope that helps you.

  • How to create one-to-many form

    I have a database that has one-to-many relations. Could
    someone give me a good exmaple of how to create a WEB FORM (using
    php) that would allow me to for example enter the Name, and then
    below ADD as many names of children of this person (each as a
    seperate record) as I want, and then sumbit it all together. I have
    been strugling with it for a long time, it Access it was so easy,
    have no clue how to coded it here. Thank you for anyone;s
    response.

    Get Dreamweaver Developer Toolkit

  • How to create an encrypted key for a user table

    I have an airshow website where volunteers and vendors can apply online (www.hollisterairshow.com) . The city attorney requires that we have a wet signature on a printed application form so the volunteer/ vendor currently has to print their application at the time they apply online, then sign it and mail it in and this works fine. Unfortunately, we have had a lot of instances where volunteers/ vendors needed to print their application again and the only way we could do this was for an administrator to print their application to a pdf file and e-mail the file to them. So, I'd like to improve this process by automatically sending an e-mail to the applicant when they apply online with a link to a printable page and containing a key pointing to their application. This way, volunteers/ vendors could print and sign their application whenever they want and as many times as they need to. Each volunteer is a single row in a volunteer table and each vendor is a single row in a vendor table.
    The key I use in the tables is a sequential key automatically incremented by MySQL so I would end up sending them a link looking something like www.hollisterairshow.com/printvolunteerapp.php?volunteernumber=27 . This would work, but it wouldn't be hard for a volunteer to change it to a different volunteernumber and so get access to someone else's personal information, which would not be acceptable. So, I'm thinking I need a secondary key that is somehow scrambled and used as an secondary index in the table so I'd be sending a link that mght look like www.hollisterairshow.com/printvolunteerapp.php?volunteerkey=sygew . So I'd really appreciate some advice on how to create a scrambled secondary index for each volunteer or vendor and plug it into the link I send them in the e-mail.
    Thanks for any advice.
    Tony

    Your question is not clear whether you want to create account or you want to create agent.
    For creating local agent you can refer
    http://bhabaniranjan.com/configure-odi-11g-local-agent/
    For creating EE Agent you can refer
    http://bhabaniranjan.com/configure-odi-java-ee-agent-on-windows-server-2008-64-bit/
    For creating account, login to supervisor and then go to security tab. There you can create different user to login to odi Studio. Let me know If i understand you correctly or not.
    Thanks.

  • [iPhone] How to create an app store link that generates a search query?

    Does anyone know how to create a link to the app store that will bring the user directly to a search results page? I've noticed that there is a free application called "Art Gallery" that contains a menu option that will take you to other games from the same developer. Upon clicking this option, the user is taken directly to app store on the phone and the search field at the top has the company name in it.
    I'd like to be able to create a similar link for my game. I would normally just send the user to a website with iTunes links to all my games, but that functionality is currently broken on firmware 2.1. I've searched all over these forums and the Apple documentation to find the answer, but so far everything seems to suggest that the only ways to generate app store links are to 1.)use the iTunes link generator tool or 2.)right click a link in iTunes and copy the URL.
    Neither of the above methods seem to work for generating a URL that will actually search the store. I've also tried getting an artist link for my developer name, but the link doesn't work when I try launching it on the device. Has anyone solved this problem?

    you can try using an actionscript class like purePDF (http://www.sephiroth.it/weblog/archives/2010/02/purepdf_a_complete_actionscript_pdf_l.php) or use server-side code like fpdf (www.fpdf.org).

  • How to create Standby database in Oracle 9i

    Is anybody guide,
    How to create a standby database in Oracle 9i(9.2.0.1) ?
    Where we get the proper documentation about this article ?

    http://www.oraclebase.com/articles/9i/DataGuard.php
    or
    tahiti.oracle.com

  • How to create business partner temblet

    Dear friends,
            how to create business partner temblet .
      please send the following mail address
       [email protected]
                      Thangs in advance
    Regards,
    S.Siva

    hi
    Refer to the links below might get u some info
    General Business Partner-initial screen
    http://help.sap.com/erp2005_ehp_02/helpdata/en/39/0b77a9df3011d189fc0000e829fbbd/frameset.htm
    Business partner as Template
    http://help.sap.com/erp2005_ehp_02/helpdata/en/2f/3a2a09969611d2ac750000e829fbfe/frameset.htm
    Business Partner
    http://help.sap.com/erp2005_ehp_02/helpdata/en/43/a0dfe510d825e5e10000000a1553f7/frameset.htm
    Creating or Changing Master data Template
    http://help.sap.com/erp2005_ehp_02/helpdata/en/c7/adcef39296f94e8ef7077ce160200e/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/57/92f63aad7e3014e10000000a11402f/content.htm
    http://b1up.net/index.php?id=modules
    Reward if USeful
    Thanx & Regards.
    Naren..

  • How to create a booking table (make online reservation)

    Hi everyone,
    I'm just wondering if any of you know how to create a booking
    table, like a booking seat for an airplane... I have to do the
    booking table as I'm doing a Japanese Restaurant website for my
    project.. At the moment, I'm using PHP, MySQL and HTML..
    Could anyone help me, please?
    Cheers,
    Nova

    You first need to check with your host to see which type of
    server side
    scripting language they support. If they support PHP, try,
    http://www.jellyform.com/
    Shane H
    [email protected]
    http://www.avenuedesigners.com
    =============================================
    Blog:
    http://avenuedesigners.com/blog/
    Web dev articles, photography, and more:
    http://sourtea.com
    =============================================
    Proud GAWDS member
    http://www.gawds.org/showmember.php?memberid=1495
    Delivering accessible websites to all ...
    =============================================
    "mastacraft" <[email protected]> wrote in
    message
    news:f3pote$d16$[email protected]..
    > Hello,
    >
    > I need to create a booking form for a website- So wen
    they fill out form
    > for
    > bookings. Should have tab for club appearance. Magazine
    ads. Etc It needs
    > to
    > lead to this email : [email protected]
    >
    > I'm really not sure how the best way is to do this, i
    understand it's
    > probably
    > a really simple process.
    >
    > Regards,
    >

  • How do you change a php file to pdf

    how do you change a php doct. to a pdf

    Hi,
    Please refer to this link:
    What file formats does Adobe PDF Pack support?
    Create pdf does not support php file format.
    Regards,
    Florence

Maybe you are looking for

  • 6.0.2 download stops halfway through ?

    I have not had firefox before, I was told by ebay to download it as i ma haveing problems with ebay being very slow and freezing? I went onto aol and googled firfox then clicked on a download for forefox 6.0.2 it asked me to run it i clicked it it th

  • Problem With Loading the jars

    Hello Experts, I am facing a problem with loading classes. i have written one application which is running on server.in that application want to use certain jars(Classes)and those jars anmes and classes inside the jars are same.based on the condition

  • Installing Snow Leopard on powermac 10.1

    Can I install Snow Leapord or Lion on a Powermac 10.1 Mini with PowerPc processor 1.42 GH processor speed and 1 GB of memory? Current OS is 10.3 Any help and suggestions is apprecaited. Michael

  • What is the best way to cleanup software

    I've had my 2009 MacBook Pro scanned at the Apple store, and the hardware checked out fine.  I'm still getting the annoying "spinning beachball", but I'm not sure how to cleanup my software.  Any suggestions?

  • Fail to retrieve IP address: Want to print wirelessly to HP C4385 from iMAC

    I've gone through so many threads that I'm losing track. Where do I start? I have my PC downstairs with an HPC4385 printer connected via USB. I have my Intel iMAC upstairs and it is connected wirelessly via my Airport Express (also located downstairs