简体   繁体   English

Mamp本地服务器的服务器路径

[英]server path for mamp local server

Im trying to setup the 140dev twitter api, and as part of the config i need to specify the server paths to certain files, they give the example of 我正在尝试设置140dev twitter api,作为配置的一部分,我需要指定某些文件的服务器路径,它们给出了以下示例:

// Directory for db_config.php
define('DB_CONFIG_DIR', '/var/www/html/140dev/db/');

and

// External URL for Javascript code in browsers to call the framework with Ajax
define('AJAX_URL', 'http://yoursite.com/140dev/');

But im not sure of what to replace these with as im running the test site using mamp locally under - http://localhost:8888/twitter-api/140dev/ 但是我不确定在使用mamp在以下位置本地运行测试站点时使用im替换这些内容http://localhost:8888/twitter-api/140dev/

any ideas what to put for the two above examples ? 有什么想法要为上述两个示例添加什么?

After a bit of trail and error i found the solution, you need to set the server path to the location of mamp so you for the above examples you would write - 经过一连串的错误和错误后,我找到了解决方案,您需要将服务器路径设置为mamp的位置,以便编写上述示例:

/Applications/MAMP/htdocs/140dev/db/

and

http://localhost:8888/140dev/ 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM