Ezzaral
Posting Genius
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
I'll second that (sorry, third that) - XAMPP is my dl of choice. As an extra 'goodie', download the community version of SQLyog from webyog to give MySQL a nice GUI (easier than phpMyAdmin).
diafol
Rhod Gilbert Fan (ardav)
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
How I can post variable vaue to update.php page
In Form.php
<form action="update.php" method="post">
<input type="text" name="siteid" value="<?= $b ?>" />
<input type="submit" name="subjoin" value="Update">
</form>
in update page how I show the value of site id. I am using post method. but field value is variable($b) so how I can I post the value to next page?
In update.php
$c = $_post["$b"];
echo $c; //its not working.
Thanks in advance
furqan219
Junior Poster in Training
89 posts since Jun 2009
Reputation Points: 2
Solved Threads: 4
Start your own thread - don't hijack somebody else's.
diafol
Rhod Gilbert Fan (ardav)
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
hi
if your Apache services is not started then you need to start services from xampp controll panel ok
and make sure that your all php file save in yourpath/xampp/htdocs
son now you can access your file from browser as
http://localhost/index.php
or if you have create your own folder in htdocs then you need to run your file as this way
http://localhost/mysite/index.php
Thnaks
Tulsa
Junior Poster in Training
77 posts since May 2009
Reputation Points: 13
Solved Threads: 15
As an extra - and I have to thank Airshow (the user) for this info. I've found that using folders in htdocs on the localhost is a real pain when you come to upload to a remote server. Because you're referencing the root directory on localhost as:
http:// localhost/mysite
you have to absolute reference like this:
but the remote site absolute reference would be this:
The way to avoid problems is to add some data to two files:
C:\Windows\System32\drivers\etc\hosts\
**add a site called whatever you want (I use the .local to remind me it's my localhost)**
127.0.0.1 cyfieithu.local
Then I add something like the following to C:\xampp\apache\conf\extra\httpd-vhosts.conf
<VirtualHost 127.0.0.1>
DocumentRoot C:\xampp\htdocs\cyfieithu
ServerName cyfieithu.local
</VirtualHost>
I then stop Apache and restart (Use the xampp control panel).
Now you can absolutely reference with '/' for local and remote sites.
BUT
I've found that I need to have a connection to the internet to view local sites. Bit strange, but may be a problem on my set up. It doesn't really affect me that much.
diafol
Rhod Gilbert Fan (ardav)
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080