abenzer / represent-map

Visualize your startup community on a custom Google map. Based on the code for http://represent.la
http://represent.la
357 stars 189 forks source link

Installation with wamp server. #60

Open chetan0412 opened 10 years ago

chetan0412 commented 10 years ago

Hi,

just m trying to install represent-map-master on localhost via WAMP server.

i am getting this error after accessing index.php

"Parse error: syntax error, unexpected end of file in C:\wamp\www\map\index.php on line 679"

please help me , or can anyone give me video tutorial for installation.

sorry i dont know where to ask query abt installation. so i wrote here.

charlesthomas commented 10 years ago

It looks like WAMP might not support short tags, based on this: http://bytes.com/topic/php/answers/761830-wamp-server-problem-php-code-not-being-executed

Try setting this in your php.ini file: short_open_tag = On

chetan0412 commented 10 years ago

Thanks for prompt response.

by default my short_open_tag = On

other site working well on WAMP. so i don't thing so there is a problem of WAMP.

here m attaching my DB.php let me know if anything configured wrongly.

<?php // mysql hostname $db_host = "localhost";

// database name $db_name = "[map]";

// database user name $db_user = "[chetan]";

// database password $db_pass = "[makwana]";

// admin username $admin_user = "[chetan]";

// admin password $admin_pass = "[makwana]";

// StartupGenome.com integration (optional) // // We recommend integrating your map with the StartupGenome project. // It's easy to setup, it will allow people to keep their profiles update // over time, and it can help you show the world how your startup community // is growing. StartupGenome also has a great interface for curating your // map data. // // To use this feature, you need to be a curator for your city. // If you're not yet a curator, learn more here: // http://www.startupgenome.com/curators/ // // If you are already a curator, find your API key on your // Startup Genome profile and enter it below. You can manage the markers // on your map from the Startup Genome website, rather than using the // built-in admin panel. // // You can turn on Startup Genome integration by changing // $sg_enabled to "true". $sg_enabled = false;

// Put your SG API code here $sg_auth_code = '';

// Choose your map's location here. If you're not sure // about this, check the URL on the Startup Genome website. $sg_location = ''; // Examples: // $sg_location = '/city/los-angeles-ca'; // $sg_location = '/state/ca-us'; // $sg_location = '/country/chile';

// We only check for new data from SG when people visit your map, // or when you run "startupgenome_get.php?override=true" manually. // You can limit how often this happens to avoid slow page loads. // Set the frequency below (in seconds). $sg_frequency = "3600";

// EventBrite.com integration (optional) // // Show events on the map? If set to "true", an event // category will appear in the marker list, and you can // run events_get.php in your browser (or a chron) to populate // it with data from eventbrite. $show_events = true;

// put your eventbrite api key here
$eb_app_key = "";

// search eventbrite for these keywords
// use "+" for spaces
// e.g. 'startup', 'startups', 'demo+day'
$eb_keywords = join("%20OR%20", array('startup', 'startups'));

// specify city to search in and around
// example: Santa+Monica
$eb_city = "Santa+Monica";

// specify search radius (in miles)
$eb_within_radius = 50;

// set timezone // date_default_timezone_set("America/Los_Angeles");

// HTML that goes just before $head_html = "";

// The tag $title_tag = "represent.la - map of the Los Angeles startup community";

// The latitude & longitude to center the initial map $lat_lng = "34.034453,-118.341293";

// Domain to use for various links $domain = "http://www.represent.la";

// Twitter username and default share text $twitter = array( "share_text" => "Let's put Los Angeles startups on the map:", "username" => "chetan" );

// Short blurb about this site (visible to visitors) $blurb = "This map was made to connect and promote the Los Angeles tech startup community. Let's put LA on the map!";

// attribution (must leave link intact, per our license) $attribution = " Based on RepresentLA ";

// add startup genome to attribution if integration enabled if($sg_enabled) { $attribution .= "

Data from StartupGenome "; } ?>

charlesthomas commented 10 years ago

Ah! I think I see the problem.

Remove the brackets from your config.

Should be $db_name=”map”; Instead of $db_name=”[map]”;

This applies to all config, not just $db_name.

On March 25, 2014 11:35:02 PM EDT, Makwana Chetan notifications@github.com wrote:

Thanks for prompt response.

by default my short_open_tag = On

other site working well on WAMP. so i don't thing so there is a problem of WAMP.

here m attaching my DB.php let me know if anything configured wrongly.

<?php // mysql hostname $db_host = "localhost";

// database name $db_name = "[map]";

// database user name $db_user = "[chetan]";

// database password $db_pass = "[makwana]";

// admin username $admin_user = "[chetan]";

// admin password $admin_pass = "[makwana]";

// StartupGenome.com integration (optional) // // We recommend integrating your map with the StartupGenome project. // It's easy to setup, it will allow people to keep their profiles update // over time, and it can help you show the world how your startup community // is growing. StartupGenome also has a great interface for curating your // map data. // // To use this feature, you need to be a curator for your city. // If you're not yet a curator, learn more here: // http://www.startupgenome.com/curators/ // // If you are already a curator, find your API key on your // Startup Genome profile and enter it below. You can manage the markers // on your map from the Startup Genome website, rather than using the // built-in admin panel. // // You can turn on Startup Genome integration by changing // $sg_enabled to "true". $sg_enabled = false;

// Put your SG API code here $sg_auth_code = '';

// Choose your map's location here. If you're not sure // about this, check the URL on the Startup Genome website. $sg_location = ''; // Examples: // $sg_location = '/city/los-angeles-ca'; // $sg_location = '/state/ca-us'; // $sg_location = '/country/chile';

// We only check for new data from SG when people visit your map, // or when you run "startupgenome_get.php?override=true" manually. // You can limit how often this happens to avoid slow page loads. // Set the frequency below (in seconds). $sg_frequency = "3600";

// EventBrite.com integration (optional) // // Show events on the map? If set to "true", an event // category will appear in the marker list, and you can // run events_get.php in your browser (or a chron) to populate // it with data from eventbrite. $show_events = true;

// put your eventbrite api key here $eb_app_key = "";

// search eventbrite for these keywords // use "+" for spaces // e.g. 'startup', 'startups', 'demo+day' $eb_keywords = join("%20OR%20", array('startup', 'startups'));

// specify city to search in and around // example: Santa+Monica $eb_city = "Santa+Monica";

// specify search radius (in miles) $eb_within_radius = 50;

// set timezone // date_default_timezone_set("America/Los_Angeles");

// HTML that goes just before $head_html = "";

// The tag $title_tag = "represent.la - map of the Los Angeles startup community";

// The latitude & longitude to center the initial map $lat_lng = "34.034453,-118.341293";

// Domain to use for various links $domain = "http://www.represent.la";

// Twitter username and default share text $twitter = array( "share_text" => "Let's put Los Angeles startups on the map:", "username" => "chetan" );

// Short blurb about this site (visible to visitors) $blurb = "This map was made to connect and promote the Los Angeles tech startup community. Let's put LA on the map!";

// attribution (must leave link intact, per our license) $attribution = " Based on <a href='http://www.represent.la' target='_blank'>RepresentLA ";

// add startup genome to attribution if integration enabled if($sg_enabled) { $attribution .= "

Data from <a target='_blank' href='http://www.startupgenome.com'>StartupGenome "; } ?>


Reply to this email directly or view it on GitHub: https://github.com/abenzer/represent-map/issues/60#issuecomment-38646982

nathalianovaes commented 8 years ago

Hi, I'm facing the same problem and I've already tried to do everything that @charlesthomas told.

What can I do? How can I find the real problem?

I'm using Xampp to run MySQL and Apache.

Thanks

abenzer commented 8 years ago

It's almost definitely a short tags disabled issue @nathalianovaes — make sure they are enabled in your PHP config.