From: Matthew G. <gr...@mu...> - 2005-03-04 21:04:44
|
Either your server for some reason isn't providing $server['HTTP_HOST'] or your edits have corrupted phpesp.ini in some way. Can you send me the output of test.php(in the admin directory of the phpesp install). What version of ESP are you using? On Fri, 2005-03-04 at 15:44 -0500, Ron Wheeler wrote: > I have got it installed to the point where I can get through the login. > > It is not putting the HTTP_HOST in the addresses that it generates for > the menus. > The menus have hrefs as shown in the view source shown below. > > <table border="0" cellspacing="0" cellpadding="0" align="center"><tr><td> > > <ul> > <li><a href="//admin/manage.php?where=new">Create a New Survey</a></li> > <li><a href="//admin/manage.php?where=edit">Edit an Existing Survey</a></li> > <li><a href="//admin/manage.php?where=test">Test a Survey</a></li> > <li><a href="//admin/manage.php?where=copy">Copy an Existing Survey</a></li> > <li><a href="//admin/manage.php?where=status">Change the Status of a Survey</a> > > (active/end/delete)</li> > > > Clicking on a menu item sends me to odd sites but not where I want to > go - the menu item. > > The top of my phpESP.ini.php is as follows. > I changes the username and password and modified the following line > since the code is not under a phpesp subdirectory. > $ESPCONFIG['base_url'] = 'http://' . $server['HTTP_HOST'] . '/'; > > > <?php > > # $Id: phpESP.ini.php,v 1.13.2.1 2003/04/23 00:07:09 jimmerman Exp $ > > // Written by James Flemer > // For eGrad2000.com > // <jf...@al...> > > if (!defined('ESP_BASE')) define('ESP_BASE', dirname(dirname(__FILE__)) > .'/'); > if (isset($_SERVER)) $server =& $_SERVER; > else $server =& $HTTP_SERVER_VARS; > > /** > * Here are all the configuration options. > */ > > // Base URL for phpESP > // The string $server['HTTP_HOST'] will be replaced by the server name > $ESPCONFIG['base_url'] = 'http://' . $server['HTTP_HOST'] . '/'; > > // URL of the images directory (for <img src='...'> tags) > $ESPCONFIG['image_url'] = $ESPCONFIG['base_url'] . 'images/'; > > // URL of the automatic survey publisher > $ESPCONFIG['autopub_url'] = $ESPCONFIG['base_url'] . 'public/survey.php'; > > // URL of the CSS directory (for themes) > $ESPCONFIG['css_url'] = $ESPCONFIG['base_url'] . 'public/css/'; > > // Database connection information > $ESPCONFIG['db_host'] = 'localhost'; > $ESPCONFIG['db_user'] = 'xxxxx'; > $ESPCONFIG['db_pass'] = 'yyyyy'; > $ESPCONFIG['db_name'] = 'phpesp'; > > // Allow phpESP to send email (BOOLEAN) > $ESPCONFIG['allow_email'] = true; > > > > Where are the menus created and what do I have to do to get the right URL? > > Ron > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > phpESP-general mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/phpesp-general > -- mcg ------------------------------------- The IT Lab (http://www.itlab.musc.edu) |