Setup A Subdomain On Localhost Using Wamp?

Jun 8, 2011

I am using wamp and i have setup a subdomain on localhost using wamp and when i go from localhost to subdomain.localhost the sessions from localhost doesnt work.

However, i searhed a bit and found that i may need to add

session_set_cookie_params(0, '/', '.localhost');

before

session_start();

but it seems it doesnt work.

Could it be vhosts problem?

this is how i have set up httpd-vhosts.conf

NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot c:/wamp/www/
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
ServerAdmin admin@test
DocumentRoot "C:/wamp/www/sub/"
ServerName sub.localhost
ServerAlias *.localhost
</VirtualHost>

ADVERTISEMENT

Setup A Root Domain Mirror For A Subdomain Using .htaccess?

Nov 14, 2010

I want a subdomain to mirror the root-domain (ex: sub.root.com mirroring root.com) and I want to accomplish this via .htaccess or php, with .htaccess prefered.

View 2 Replies View Related

Setup Zend Framwork With WAMP?

Sep 17, 2009

I read that to include the Zend framework, I must include this on the include path in php.ini. But I have a doubt. Where do I find the php.ini file in my WAMP with php 5.3.0?

View 4 Replies View Related

Setup Smarty On Wamp Server?

Oct 2, 2010

am using localhost wamp server and i want to add smarty to it how can i do thatand is there any tutorial or ebook i should start wit

View 1 Replies View Related

Database - (WAMP) OCI8 Driver Setup ?

Nov 3, 2010

I need to install oci8 drivers for PHP, but I’m having some trouble.I already have a WAMP install, which comes with the oci8 extension, and have done the following in effort to set it up:

Enabled the extension by adding the following to my php.ini file in my Apache docroot as a local variable:
[PHP_OCI8]

extension=php_oci8.dll

Added my extensions directory path to my PATH environment variable on windows (c:/wamp/bin/php/php5.3.0/ext/;)

Added the same extensions directory to my php.ini file

When I start up my wamp I see the following error message:

PHP Startup: Unable to load dynamic library ‘c:/wamp/bin/php/php5.3.0/ext/php_oci8.dll’

I’m able to verify that the above path is correct, and am tempted to say that there’s something wrong with the .dll, but I’m not sure.

View 2 Replies View Related

Ffmpeg Setting Up In Wamp On Localhost?

Mar 29, 2011

I have done the following:Downloaded ffmpeg from http://sourceforge.net/projects/ffmpeg-php/files/
Copied php_ffmpeg.dll from the php5 folder to the C:wampinphpextCopied files from common to the windows/system32 folderAdded the extension=php_ffmpeg.dll to php.ini fileRestarted all services (Apache, PHP...)And enabled "extension=php_ffmpeg.dll" directive in my php.ini.but it still doesn't show up when I do a php info page. I thought it might have something to do with that fact that I'm using php version 5.3.0. I have googled for a php_ffmpeg.dll for php version 5.3.0 and haven't had any luck

View 1 Replies View Related

Localhost Not Working On WAMP Server?

Mar 20, 2010

I have installed the wamp server correctly but when i called [URL]for example it didn't work it gave me (the web cannot found this page).

View 6 Replies View Related

All Localhost Pages Via WAMP Blocked?

Jun 9, 2011

I've been trying to fix a weird 403 Forbidden error I get when I try to go to one of my pages via WAMP on the localhost.

After adding a rule to open up port 80 via Windows Firewall, which apache uses, I notice that this does NOT fix my problem and instead gives me a 403 forbidden for ALL my pages via localhost.

Removing the rule I just made (which caused this to begin with) does not fix it. Disabling Windows Firewall does not fix it. Restarting my computer does not fix it.

EDIT2: I AM able to go to localhost/phpmyadmin for whatever that's worth.

EDIT3: The contents of my httpd.conf: [URL]

View 3 Replies View Related

Copy() Works On Localhost(wamp) But Not On Real Web Domain?

Nov 9, 2009

so i'm trying to copy file.xml into another location something like copy('file.xml',../../folder/newfile.xml) ; it works just fine on my wamp virtual server but on my real site it doesn't. i thought that is something related to chmod and i changed the file.xml to 0777(with a ftp client).is there something that i should put in my code to make it right? or what?

View 2 Replies View Related

WAMP, Web Browser Hang When Loading Localhost Server?

Mar 20, 2010

but I created a profile php file that accesses the username(since that was also the folder name)this is assuming all inputs are correct. but when i create a new file, something goes wrong. after i close the web browser, everytime i load localhost using WAMP as a server, it keeps giving me an error on the web browser, status access violation or something, it ends up terminating the browser and i cannot determine the cause.

<?php
$error = false;
$errorfragment = "?";

[code]...

View 1 Replies View Related

Code Displaying On Screen Using Localhost WAMP Server?

Oct 19, 2010

I am using WAMP2 on my desktop. each time I run a php page the code is echoed to the screen. The icon in the lower tool bar is white/grey I have had in working I then installed new anti-virus software and that is when I noticed that it wasn't working. I have reinstalled WAMP2 nd it is the same. The page works on my domain server.I have uninstalled the anti-virus software and problem still remainsDoes anyone have any idea or elimination tests

<?php
$weight = 36.0;
$rate = 1.00;

[code]...

View 5 Replies View Related

Configure WAMP (localhost) To Send Email Using Gmail ?

Mar 1, 2009

I want to use the mail() function from my localhost. I have WAMP installed and a Gmail account. I know that the SMTP for Gmail is smtp.gmail.com and the port is 465 (more info from gmail). What I need to configure in WAMP so I can use the mail() function?

View 6 Replies View Related

Get A Math Captcha Image To Display On Localhost Using WAMP

Jul 24, 2011

I'm trying to get a math captcha image to display on localhost using WAMP, but all i get is a broken image box. Gd is enabled. Under apache, modules, I have php5_module selected.

Here is my code:

Code: [Select]<?php
$num1=rand(1,20);
$num2=rand(1,20);
$value=$num1."+".$num2."=";

[Code]....

Then i have <img src=captcha.php> where i want the image in my form to be displayed.

View 14 Replies View Related

Run A Project Running On Wamp/xampp Server Using System's IP Address In Place Of Localhost?

Feb 16, 2011

Actually I'm making a web project using Wamp server, and to run the same I access it using the usual local-host address, as we do while building a project on our PC. But to share my project with my friends, I want to make access using the IP address of my computer. ut when I make such an access it is not able to connect, which is not the case with my friend's project.After I failed accessing using the Wamp Server, I installed Xamp Server, the project can be accessed using local host with both the servers (running one at a time) but not when accessed using my PC's IP address (which I find using [URL]

View 1 Replies View Related

.htaccess - Redirect Subdomain To Particular Webpage And Process Subdomain Value

Jan 25, 2011

I am familiar with modifying htaccess files but not sure if the following is possible: Ultimately, I want to point users to 'imaginary' subdomains (those which do not exist) so that the subdomain can be parsed correctly with PHP and MySQL to find the particular member's information. For example:

When somebody goes to [URL]... currently, it shows the parent site including information on how to become a member. Once a person is a member, their 'unique' URl is: [URL]... ultimately, forcing the member to remember the question mark agent equals can be confusing along with the need to remember the proper capitalization and such. I would 'like' to achieve the following: [URL]... redirects to [URL]... (and index.php reads the 12345 like a $_GET function to properly lookup the iD, valid and retun response based on that.......

View 1 Replies View Related

Wamp 5 And Wamp 2 Display Website?

Jan 25, 2009

i attached a print screen of what it comes up as. if i rename it .php3 it shows up alright but i dont want to go through and change all the links. here's what it should look like [URL]

View 14 Replies View Related

Something Simple!? Sessions - Admin.localhost To Main.localhost

Jul 16, 2005

Why does the following code allow me to keep the same session when in
the same sub domain (ie admin.localhost), yet not when I goto another
related domain eg main.localhost?

I would like to have the same session on the related domain. I bet
the solution is really simple <grin>!...

Using IE6. Win NT, Apache 1.3.27, PHP 4.3.2.

php.ini file - shown at end of message (apologies for length).. is
actually a copy of a PHP4.3.0 ini file (problem here?)

hosts file in windows:

127.0.0.1 localhost
127.0.0.1 admin.localhost
127.0.0.1 main.localhost

httpd.conf

setup for VirtualHosts
eg
ServerName admin.localhost.com

// session_test.php -- located in admin.localhost
<?
session_start();
echo "id is " . session_id();
?>
a href="http://admin.localhost/session_test1.php" next

a href="http://main.localhost/session_test2.php" next

// session_test1.php -- located in admin.localhost
<?
session_start();
echo "id is " . session_id();
?>

// session_test2.php -- located in main.localhost
<?
session_start();
echo "id is " . session_id();
?>

View 2 Replies View Related

WAMP Which Is Installed At "C:\wamp\"

Oct 4, 2009

I'm using WAMP which is installed at "C:\wamp\". But I changed the directory root to "D:\www\" and its been working for awhile but I'm I'm trying to use PEAR and it's not working. I ran go-pear.exe and put everything in but when I try in include Mail.php (which I did install) I get the folowing error.Fatal error: require_once() [function.require]: Failed opening required 'Mail.php' (include_path='.;C:\php5\pear') in D:\www\languages\php\mail\send.php on line 2

View 2 Replies View Related

Edit Mail Server From Using Localhost - Mail() Go Around Localhost

Dec 8, 2010

I'm currently working on a website. I've done all the code its just that i cant send emails via my WAMP server becouse the mail function only support 32bit operating system. Wich means I'm trying to edit my mail server from using localhost/ to like hotmail.com (example) I have googled alot, for like 2-3 days but didn't find what i was looking for. Btw. Last time i was active was when i were like 12 yrs old and annoyed the shit out of people on the C++ forum with my scripts. Don't blame me, blame the 12yr old in me. Sry about that, i just wanted to say it.

View 6 Replies View Related

Calling Localhost Site From Another Localhost Site Using CURL?

Dec 7, 2010

I am trying to call a site on localhost from another also on localhost using CURL in PHP. (It's a test)

I'm using windows 7

Both are set up in the host file and work fine if accessed directly

I get a 404 error. If I call a site on the web then it comes back fine.

protected function get($url)
{
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);

[Code]....

View 1 Replies View Related

Subdomain With PHP ?

Mar 20, 2006

How can I make subdomain in PHP ?

example :

http://www.dd.net/page.php?b=snake

I want change the link to this

http://snake.dd.net

I took for the answer in Mod_Rewrite?

View 8 Replies View Related

Get The Value Of Subdomain?

Apr 28, 2011

What is the easiest way to get the value of subdomain. For example, when browsing [URL] how to get it (like $_GET['q']) to put "word1" into an string.

View 10 Replies View Related

Creating Subdomain ?

Mar 28, 2003

I want to create a subdomain with the username and then upload files in the subdomain of user ...so that the user can view his files directly from his subdomain...examle...if my site is www.a.com and a user comes with username....anjali...then a subdomain should be created with the name anjali.a.com and all the files of "anjali" user should be uploaded in that folder and that user should be able to directly view his files from the domain "anjali.a.com" ...... i came to know that creating a subdomain is easier in php.....where to find its solution ?

View 2 Replies View Related

Creating A Subdomain

Mar 19, 2003

I want to create a subdomain with the username and then upload files in the subdomain of user ...so that the user can view his files directly from his subdomain...examle...if my site is www.a.com and a user comes with username....anjali...then a subdomain should be created with the name www.anjali.com and all the files of "anjali" user should be uploaded in that folder and that user should be able to directly view his files from the domain "www.anjali.com". i came to know that creating a subdomain is easier in php. where to find its solution ?

View 2 Replies View Related

Creating SubDomain With PHP

Sep 18, 2006

I have a registration form, when after registering, the user would get
a subdomain

http://username.domainname.com

I created a wildcard DNS which happened to redirect *.domainname.com to
the public_html folder.

I need to find a way to redirect eahc subdomain to it's user folder.

View 3 Replies View Related

Create Subdomain

Jun 6, 2005

I would like to create a virtual subdomain with PHP (I think I should do this with mod_rewrite and .htaccess)

for example :

http://img54.img.mysite.com/test.gif > http://img.mysite.com/image.php?s=54&name=test.gif
(the 54 is a variable and img.mysite.com is really a subdomain)

Now , what I should do?

View 1 Replies View Related

Subdomain Creating

Mar 6, 2004

Is there any script to create subdomain automatically by the following way?

- create a form for clients fill out username, password
- when they submit form, the script will create a subdomain for them with their username

I can do it manually in CPanel or HELM.... but I want to do automatically with my form.

View 1 Replies View Related

Subdomain System

Apr 29, 2006

a project i'm going to undertake in the summer will require a user system which generates a virtual subdomain for users who register with my site. the user john signs up and is given a subdomain to access his account, john.website.com, which when rendered in the browser will automatically bring up http://username=john or similar. How can this be acheived? I know can it can be done with .htaccess but won't that require configuration from myself each time a new user signs up.

View 1 Replies View Related

Use Session In Different Subdomain?

Aug 11, 2010

I need to use the same session in different subdomains.First I putphp_value [URL].... .htaccess file and upload it to root path.when I need to use sessions. I just call

session_start();

Sometimes it works but sometimes it doesn't.I tested this and found that.If I go to login page the first time, then login and go to subdomain page. It works!If I go to subdomain page and click to login page and go back to subdomain page by javascript

View 3 Replies View Related

Function To Get The Subdomain Of A URL?

Mar 13, 2011

Is there a function in PHP to get the name of the subdomain? In the following example I would like to get the "en" part of the URL:en.example.com

View 4 Replies View Related

Get Domain Name From Subdomain?

Jul 29, 2009

I need to write a function to parse variables which contain domain names. It's best I explain this with an example, the variable could contain any of these things:

[code]....

But when passed through my function all of these must return either example.com or example.co.uk, the root domain name basically. I'm sure I've done this before but I've been searching Google for about 20 minutes and can't find anything. EDIT: Ignore the .co.uk, presume that all domains going through this function have a 3 letter TLD.

View 12 Replies View Related

How To Create Subdomain

Jan 14, 2010

i want to create a subdomain upon each user registration as user.example.com how it is possible?

View 3 Replies View Related

Use Function On A Subdomain?

Jan 26, 2010

Pardon the dummy question, but I am trying to breakdown a bunch of web pages into subdomains and bring them up using a settings.php page.The problem is that I can only find this for the settings page:

<?php
// WEBSITE Settings
// ******************************
// Domain Name (without: http://)
define('DOMAIN_NAME', 'mydomain.com');
[code]....

View 2 Replies View Related

The Right Regex For A Subdomain

Apr 24, 2011

I have a webapp, where people signup and get a sub domain under this app domain ([URL]) ... for each subdomain there is a db that is attached to it grammatically and have the same name as the subdomain.

what i need is the right regex that works with the subdomain and off course a db name ( mysql if it matters ), it's supposed to be lowercase & the length between 6 and 20 and the only allowed character is the " - ", also numbers are banned ... i tried many times but it always go bad, .. some like : /([a-z-]){6,20}/

View 4 Replies View Related

How To Find Subdomain From A Url

Feb 3, 2011

URL = http://company.website.com/pages/users/add/

How do i find the subdomain from this via PHP

Such that $subdomain = 'company'

And $url = '/pages/users/add/'

View 2 Replies View Related

Creating Subdomain

Jul 29, 2007

Is there a way to create a subdomain via php? (Without creating a new host account via whm access).

View 14 Replies View Related

Subdomain Problem

Sep 17, 2007

I have a domain hosted on some provider (so I cannot configure apache myself ) and I create a subdomain, phisycally located under the same root like that :

mydomain.com_root
--------------- images/
--------------- includes/
----------------------- style.css
----------------------- meta.php
----------------------- javascript.php
--------------- one/
------------------- index.php
--------------- two
--------------- three
--------------- sub-domain/
-------------------------- index.php

So my users ca now point to www.sub-domain.mydomain.com.
The problem is I need when pointed to this sub domain, just display some page from MAIN domain as is.
Of course that can be done with redirect but I need to display contents of < one/index.php > at subdomain, not redirected.

I tried with include, like that :

include ("../one/index.php");

but all the file referenced in /one/index.php needs now to be referenced one level up ../ and if thats ok for php, html seems to don't like ( I cannot reference CSS and image file like ../include/style.css ).

Is there any sollution to display page pointed by /one/index.php directlly in subdomain, without modify originally file ? Or any other way to do it.

View 3 Replies View Related

Subdomain Names?

Sep 13, 2007

i have a website which is functional since 2006. But now i just want to add some new services like SMS and so on. i want users to type sms.mywebsitename.com to access the page with the sms service. but i am not aware of how to make the subdomain i mean sms prefix.

View 1 Replies View Related

Add Subdomain Script?

Jun 5, 2011

Is there a way when a user signs up it can make a subdomain

View 6 Replies View Related

I Need A Subdomain Service Like Kickme.to

May 30, 2007

I want to give users of my site the option to register for a subdomain
redirection service. I scanned the Internet for some script, but
didn't really find anything that works. Tried the PHP script from
http://opendomains.vnn.bz/ and many others. So now I want to ask you
if you know of any script in PHP, Perl, Phyton that can accomplish
this task?

View 8 Replies View Related

Automatic Subdomain Creation

Nov 16, 2004

As the title suggests I am looking for a push in the right direction when it comes to a script that can autmatically generate subdomains.

I was wondering about if it was possible with php (if not then is there a scripting language that could do it?)

What are the security implications for it? Can it be made secure?

Are there any limitations on the type of server this could be done on?

View 1 Replies View Related

Link From Subdomain To Domain

Sep 28, 2005

How can I link a page in subdomain.domain.tld to a page in domain.tld? If I use an absolute link, it points to the root of the subdomain.

Note I don't want to link with http:// and I use Apache ...

View 1 Replies View Related

Managing Subdomain Dynamically

Oct 20, 2002

i don't know if php can do it, here is the picture, what i want is a cheaper way of doing this stuff, newdomain.mydomain.com, cuz when i use the feature of the ISP, it will cost me $1/subdomain per month. any ideas?

View 2 Replies View Related

Include() File From Subdomain

Jun 8, 2007

I've been told I need to add an entry to the open_basedir in my httpd.include file to be able to access my main domain from a subdomain. I'm trying to use default PHP pages in my subdomains that are located in the main directory. In other words, I want to be able to use an include() in: john.domain.com that will pull files from: domain.com/affiliate_pages

I tried looking in the httpd.include file, but it's really confusing me. After an hour of researching, I found the vi command to edit files through SSH, but even that is confusing. Where should I put an entry into john.domain.com that will allow access to the main domain's files?

View 1 Replies View Related

Configure Subdomain In Apache

Sep 26, 2007

I am facing a great problem to configure a subdomain for my main site. I just want to have the URL like: let my sites name is abc.com and my subdomain is 123 , then the full URL of the subdomain should be like this 123.abc.com. i am using apache and windows 2003 server for my site. for now i have put the 123(subdomains folder) in the main site folder and the url is like abc.com/123.

View 2 Replies View Related

ADVERTISEMENT