running php on mamp [closed] - php

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I already installed MAMP in my macbook pro. I want to run a php. what can i do?

/Applications/MAMP/htdocs/hello.php
Will then appear in http://localhost:8888/hello.php
:)

If you have done everything right, open your browser and type this:
http://localhost
to see if it opens successfully and then you can open your sites.
Also check out the mamp's documentation on how to configure it and run php scripts.

Drop the PHP file into the HTDOCs folder in MAMP, for example let's call it hello_world.php and now you can run it by going to:
http://localhost/hello_world.php

Depending on the port settings of MAMP (Preferences -> Ports) you have to call http://localhost:8888/filename.php (MAMP ports) or http://localhost/filename.php (default ports). The file "filename.php" have to be located in this folder: /Applications/MAMP/htdocs/

Related

How can I access mysql/phpmyadmin locally without xampp/wamp? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I use php -S localhost:8000 command in git-bash in the path of project for running php.
I need to have a look of my tables. In phpmyadmin for example or any other ways.
Please help me. How can I do that?
thanks
You can access MySQL through Client CLI (command line), or any MySQL client (datagrip (not free), dbforge, heidisql)... PHPMyAdmin is just a web MySQL Client.
If you want to access your database through PHPMyAdmin you need a web server. You can run the command you mentionned php -S localhost:8000 inside the PHPMyAdmin source directory (source location depend on your installation) to run the PHP web server.

How to Run MySQL without installation and access with IP address (like http://127.0.0.1/phpmyadmin) [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
i have to download MySQL zip from this site (https://dev.mysql.com/downloads/mysql/) and run it with cmd but i want to run it with php code and access database with IP address like Xampp or wamp server (http://127.0.0.1/phpmyadmin).
please help me about this problem.
thanks.
what you have done is installed the core of the mysqli. so It does not come with a GUI.
So you will have to manually download the GUI and install it.. its called mysqli workbench
here in this link download it.
you can't use mysqli like phpmyadmin because its a desktop version. If you really want to use the browser version you will have to install wampserver here

Run a web app coded in PHP locally [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I need help with making a webpage from several files and I am not sure how to go about it. I'm not sure how to follow these instructions can someone help me out.
Install:
Copy contents of folder "upload_to_server" to your server.
Open "includes/config.php" and edit $cfg['db_server'], $cfg['db_username'], $cfg['db_password'], $cfg['db_database'] to be your database details, and $cfg['site_url'] to be the URL to the site with a trailing slash e.g. "http://www.example.com/" or "http://www .example.com/example/" (if it has been uploaded to a sub folder named "example".
Import database.sql into your database
![Here is a picture of the files for the site][1]
[1]: http://i.stack.imgur.com/7eHOb.pn g
You need to install a local web stack first. WAMP or XAMPP for Windows, LAMP for Linux, or MAMP for Mac
You are then going to have to locate your web folder, which is usually called www, htdocs, or public_html. This is where your files need to go.
You can import databases from PhpMyAdmin, which should come bundled with your web stack.
Then you use http://localhost/whatever-folder-you-added to access it.

My php application with Xampp into a single exe or msi installer? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
Xampp is a great product for newbie like us, it is very easy to install and configure. Today I am thinking of rolling up my php applications which I have it inside htdocs folder with the xampp installer. I know that Xampp has a zip package version too. And what I need to know now is that: is it possible and how to include my php application inside the xampp installer or exe for distribution? An example of what I want to achieve is timetracks (it has its own server and all the applications in one installer). Any suggestion is welcome.
You Should look into using server2go http://www.server2go-web.de/ i have used various times to package my PHP apps.

PHP Wamp doesn't run [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am trying to run WAMP under my XP. I installed it to C:/wamp, than copied old php files for example like test.php to the www folder in wamp folder, than run it throungh browser from adress file:///C:/wamp/www/test.php. It includes
< ?echo("a");? >
but it still run like html without running code and showing php in source code.
What am I doing wrong?
I was thinking if there exist some browser which will automatically executes php and includes mysql database apache.
Is there something?
And at best run ajax and asp serverside parts
You are showing the file directly by the browser, nothing related to wamp.
What you should do is start wamp (maybe need some config, for example the path, the port .)
Then access your page like : http://localhost/test.php.

Categories