just downloaded bitnami and executed install on my windows machine.
How do i open my php.info page? Localhost takes me to bitnami welcome page.(index.html)
Where is my Document root?
I am trying to follow along in Tuts Plus "Php Fundamentals" where Jeffrey Way is using MAMP. His htdocs file is empty after He downloaded MAMP and was setting it up. I understand Bitnami is not MAMP but they should be similar?
I love the frameworks you can Select to bitnami that come preinstalled which is why I went this route but something as simple as showing php.info should be a breeze but I need some guidance to opening php.info on my local machine in Bitnami.
thx
Bitnami developer here.
Your Document root is located at /apache2/htdocs. There you can place a simple php file called example.php with the following content
<?php phpinfo(); ?>
and then you'll find your phpinfo at http://yoursite.com/example.php
You may find this documentation page useful:
https://wiki.bitnami.com/Infrastructure_Stacks/BitNami_AMP_Stacks
I am very new to web development and I have decided to learn the ropes of php with mysql. I am currently taking an online course from Lynda.com teaching me on concepts of php and mysql.
I have installed the WAMP server on windows 2008 box and I can start all the apache services and when I go to http://localhost it opens up the WAMP webpage and when I click on phpinfo() it takes me to my php page showing me the version (5.5.12)
I have also configured IIS using this link but no luck when I open my php file I get the source code display in my internet explorer with all the html formatting. Its just a simple "hello world" file and the file extension is *.php
Ok, I think I know where I was going wrong.. I had created folder on my desktop and then saved the php file in it and was browsing to that file from IE.
What I need to do is browse using http://localhost... so I placed the same file in the www folder under the WAMP directory and then did http://localhost/helloworld.php and it opened up!
But there should be away I can use files from my desktop instead of placing the files in the www folder...
I am currently using:
- Windows XP
- XAMPP 1.6.8 with (PHP 5.2.6)
I just want to upgrade PHP from XAMPP.
So i just want to download "php" folder only and i don't want the whole bundle.
It is huge to download (My connection speed is so slow).
Where can i get like that?
(or) Can anyone please upload the zipped?
Note: I've tested with the native PHP (extracted from php-5.3.5-Win32-VC6-x86.zip) from http://windows.php.net/downloads/releases/archives
But didn't work out!
That's why i wanna test with the PHP inside XAMPP.
I have WAMP on XP, when i tried to install the new PHP only it installed perfectly but the WAMP did not started :(
So i'll advice you to go for the full bundle !
You can take the whole bundle through your Friend also, if ur net sped is slow hmmmmm
I am very new to Web development and wanted to run one of the Github project (https://github.com/remy/html5demos) on my Mac.
I have downloaded the project on my Mac and puzzled how to run it. Need help from all talented people across Stackoverflow.
The demo using php. Unfortunately, the apache installed on OSX (assuming you're on Snow Leopard) has not have php enabled by default and you need some admin-editing to enable it.
So, first move the unpacked folder remy_something into /Library/WebServer/Documents and rename it to easy name, for example "remy". (The final path /Library/WebServer/Documents/remy)
enable Web sharing in System preferences
point your browser to http://localhost/remy/index.php
if you get an rendered page - you're done, and can start playing...
if you get an error - something is terrible ;(
if you get a page where is the 1st line <?php - you're on good way - you need enable php.
For enabling php in OSX's apache, you should read for example: http://www.perfectline.ee/blog/how-to-setup-apache-and-php-on-mac-os-x-snow-leopard or any other guide you can find.
after enabling php and restarting apache (disable/enable Web sharing), you can check again the page...
I was wondering how to link a SQL database on my PHP code.
I am using a database on my local server that I set up and I have already created a database, I tried writing a PHP script with ++notepad, but when I clicked on the script, it opened the browser and displayed a blank page. What am I doing wrong? I created my databases using phpMyAdmin.
You need to be running a web server locally which supports PHP (like Apache). It it the web server which does the PHP processing. At the same time you will have to run a MySQL (or any other) database engine too, so your PHP code can connect and query it. (I'm assuming you've already installed PHP.)
I would recommend you install XAMPP which includes Apache, PHP, MySQL and a bunch of other stuff. It one of "Apache friends". Once you install XAMPP you would have a folder htdocs in the xampp folder. Create a folder for you project myproject and place your PHP script script.php in there. Now if MySQL and Apache are running following should behave as you expect.
http://127.0.0.1/myproject/script.php
For the tutorial, to begin with you can use W3Schools. Brief and to the point. They have both a PHP tutorial and a SQL tutorial.
This is a very good book to start with:
PHP and MySQL
Web Development
Luke Welling and Laura Thomson
You have to play with php/sql code practically. Only reading cant help!
go for w3shools as mentioned above :)
start with simple code and then go to the complexity. all the best.. :)
There are multiple ways on how to do that.
One of the most modern ways to do that, is to use PDO to connect to the DB with PHP.
To run PHP on your PC(which i assume is your workstation), you need the supporting software for it, for php to run you need the PHP software installed, and likewise if you want to run the server software you need apache, however you can go for a single install package which will install almost everything for you to run your php script, download and install the wamp.
to install wamp which stands for (windows, apache, mysql, PHP) if you are running windows, and lamp for linux or mamp for mac, all of which are free softwares, you can download wamp from the following link. http://www.wampserver.com/en/download.php that is the first step which you need to do.
step 2: once wamp is installed the default directory of installation is C:/wamp (i reccomend do not change the location of the installation), you need to start the wamp server by just opening or double clicking the software which you just installed.
step3: navigate to the default directory where you should be storing your PHP files and that is C:/wamp/www note that you should be keeping all your PHP files here apart from this location if you store it anywhere else it wont simply run at all, and that it should and must have the .php extension.
step4: create or save the php files in this location(c:/wamp/www) i for example will assume you have created a file test.php in the www folder. now to access this file open your web browser and type http://localhost/test.php there you go, you will have the access to your PHP file (Note: PHP files cannot be run by simply double clicking the file, you have to follow this procedure in order to run the PHP files)
step5: open the test.php in any of your text editor like notepad, or i recommend use an IDE (Netbeans is free and worth a try), and write your code in the following format.
<?php
your PHP code should go here.
?>
when i started writing the code i started by following a nice tutorial which i found in zend.com, it has one of the best examples, and moreover the tutorial is meant for the beginners. hope this helps you..
http://devzone.zend.com/tag/PHP101