<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Visual Phonebook with database]]></title><description><![CDATA[<p dir="auto">Im trying to make my fop2 version 2.26 use phonebook with my database in a non pbx installation</p>
<p dir="auto">I activated<br />
define('DEBUG',true); in config.php</p>
<p dir="auto">when i go to:<br />
<a href="http://X.X.X.X/fop2/phonebook.php" rel="nofollow ugc">http://X.X.X.X/fop2/phonebook.php</a></p>
<p dir="auto">i get :<br />
"']+)\s*$/",$line,$matches)) { $conf[ $matches[1] ] = trim($matches[2]); } } } else { die("<br />
".sprintf("Missing or unreadable config file (%s)...cannot continue", $filename)."<br />
"); } return $conf; } ?&gt; You do not have permissions to access this resource.</p>
]]></description><link>http://localhost:4567/topic/1489/visual-phonebook-with-database</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 10:17:26 GMT</lastBuildDate><atom:link href="http://localhost:4567/topic/1489.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 12 Jun 2013 13:51:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Visual Phonebook with database on Thu, 21 Sep 2017 14:52:21 GMT]]></title><description><![CDATA[<p dir="auto">I think I blew away my correct permissions for visual_phonebook<br />
re-applied these<br />
grant all privileges on <em>.</em> to 'root'@'%' with grant option;<br />
grant all privileges on <em>.</em> to 'root'@'localhost' with grant option;<br />
flush privileges;<br />
restarted db<br />
have 4900+ entries, and can see only the 2 that I have manually entered from gui<br />
I can see the 2 from the command line as well<br />
mysql -u root -pfakenew-password  -h localhost fop2 -e "show tables"<br />
this command works fine<br />
any suggestions</p>
<p dir="auto">ver 2.29.01</p>
]]></description><link>http://localhost:4567/post/6522</link><guid isPermaLink="true">http://localhost:4567/post/6522</guid><dc:creator><![CDATA[boatman810]]></dc:creator><pubDate>Thu, 21 Sep 2017 14:52:21 GMT</pubDate></item><item><title><![CDATA[Reply to Visual Phonebook with database on Tue, 02 Jul 2013 19:47:38 GMT]]></title><description><![CDATA[<p dir="auto">You are seeing unparsed php code in phonebook.php, be sure the php is interpreted correctly, there is a missing opening php tag , or some error of that sort.</p>
]]></description><link>http://localhost:4567/post/6521</link><guid isPermaLink="true">http://localhost:4567/post/6521</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Tue, 02 Jul 2013 19:47:38 GMT</pubDate></item><item><title><![CDATA[Reply to Visual Phonebook with database on Tue, 02 Jul 2013 14:58:26 GMT]]></title><description><![CDATA[<p dir="auto">yes im able to connect to mysql database fop2 with the command.</p>
<p dir="auto">mysql -u XXX -pXXXXXXX -h localhost fop2</p>
<p dir="auto">PHP 5.4.7 (cli) (built: Sep 14 2012 14:44:02)<br />
Copyright (c) 1997-2012 The PHP Group<br />
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies<br />
root@SIP:/var/www/fop2/lib# mysql -u XXX -pXXXXXX fop2 -e "desc visual_phonebook"<br />
+-----------+------------------+------+-----+---------+----------------+<br />
| Field     | Type             | Null | Key | Default | Extra          |<br />
+-----------+------------------+------+-----+---------+----------------+<br />
| id        | int(11)          | NO   | PRI | NULL    | auto_increment |<br />
| firstname | varchar(50)      | YES  | MUL | NULL    |                |<br />
| lastname  | varchar(50)      | YES  |     | NULL    |                |<br />
| company   | varchar(100)     | YES  |     | NULL    |                |<br />
| phone1    | varchar(50)      | YES  |     | NULL    |                |<br />
| phone2    | varchar(50)      | YES  |     | NULL    |                |<br />
| owner     | varchar(50)      | YES  |     |         |                |<br />
| private   | enum('yes','no') | YES  |     | no      |                |<br />
| picture   | varchar(100)     | YES  |     | NULL    |                |<br />
| context   | varchar(150)     | YES  |     |         |                |<br />
+-----------+------------------+------+-----+---------+----------------+</p>
]]></description><link>http://localhost:4567/post/6520</link><guid isPermaLink="true">http://localhost:4567/post/6520</guid><dc:creator><![CDATA[clinnovations]]></dc:creator><pubDate>Tue, 02 Jul 2013 14:58:26 GMT</pubDate></item><item><title><![CDATA[Reply to Visual Phonebook with database on Sun, 23 Jun 2013 21:50:55 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">Im using version 2.26 and the first 2 line of phonebook.php look like this</p>
<p dir="auto">$DBHOST = 'localhost';<br />
$DBNAME = 'fop2';<br />
$DBUSER = 'XXX';<br />
$DBPASS = 'XXXXXXX';</p>
</blockquote>
<p dir="auto">Are you sure the above data is correct? can you connect to it with the mysql command line client:</p>
<pre><code>mysql -u XXX -pXXXXXXX -h localhost fop2
</code></pre>
]]></description><link>http://localhost:4567/post/6519</link><guid isPermaLink="true">http://localhost:4567/post/6519</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Sun, 23 Jun 2013 21:50:55 GMT</pubDate></item><item><title><![CDATA[Reply to Visual Phonebook with database on Fri, 21 Jun 2013 15:52:21 GMT]]></title><description><![CDATA[<p dir="auto">config.php</p>
<p dir="auto">&lt;?php<br />
// Database connection details<br />
//<br />
// Only needed if you do not use FreePBX or want to specify<br />
// a different database than the freepbx one.<br />
added php but now i getting this<br />
notice<br />
/var/www/fop2/lib/dblib.php (line 234)</p>
<p dir="auto">mysql_fetch_assoc() expects parameter 1 to be resource, boolean given<br />
notice<br />
/var/www/fop2/lib/dbgrid.php (line 1020)</p>
<p dir="auto">Function split() is deprecated<br />
notice<br />
/var/www/fop2/lib/dbgrid.php (line 1020)</p>
<p dir="auto">Function split() is deprecated<br />
Add  Delete Marked  Export  Import    Search</p>
<p dir="auto">First Name Last Name Phone 1 Phone 2 Company Picture<br />
No records found<br />
«‹1 ›»<br />
Page : 1 of 0 . Total records found: 0</p>
]]></description><link>http://localhost:4567/post/6518</link><guid isPermaLink="true">http://localhost:4567/post/6518</guid><dc:creator><![CDATA[clinnovations]]></dc:creator><pubDate>Fri, 21 Jun 2013 15:52:21 GMT</pubDate></item><item><title><![CDATA[Reply to Visual Phonebook with database on Fri, 21 Jun 2013 15:42:58 GMT]]></title><description><![CDATA[<p dir="auto">Im using version 2.26 and the first 2 line of phonebook.php look like this<br />
&lt;?php<br />
header("Content-Type: text/html; charset=utf-8");<br />
require_once("config.php");<br />
?&gt;<br />
and those are the one for config.php</p>
<p dir="auto">&lt;?<br />
// Database connection details<br />
//<br />
// Only needed if you do not use FreePBX or want to specify<br />
// a different database than the freepbx one.</p>
<p dir="auto">$DBHOST = 'localhost';<br />
$DBNAME = 'fop2';<br />
$DBUSER = 'XXX';<br />
$DBPASS = 'XXXXXXX';</p>
]]></description><link>http://localhost:4567/post/6517</link><guid isPermaLink="true">http://localhost:4567/post/6517</guid><dc:creator><![CDATA[clinnovations]]></dc:creator><pubDate>Fri, 21 Jun 2013 15:42:58 GMT</pubDate></item><item><title><![CDATA[Reply to Visual Phonebook with database on Mon, 17 Jun 2013 21:33:46 GMT]]></title><description><![CDATA[<p dir="auto">An error should not display php code,... what fop2 version do you have? how does the first two lines of phonebook.php look like?</p>
]]></description><link>http://localhost:4567/post/6516</link><guid isPermaLink="true">http://localhost:4567/post/6516</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Mon, 17 Jun 2013 21:33:46 GMT</pubDate></item><item><title><![CDATA[Reply to Visual Phonebook with database on Mon, 17 Jun 2013 13:01:14 GMT]]></title><description><![CDATA[<p dir="auto">I populated my database with the mysql.db from the fop2 web directory and set config.php mysql user, password and database.</p>
<p dir="auto">when i go to:<br />
<a href="http://X.X.X.X/fop2/phonebook.php" rel="nofollow ugc">http://X.X.X.X/fop2/phonebook.php</a></p>
<p dir="auto">i still get this error:<br />
"']+)\s*$/",$line,$matches)) { $conf[ $matches[1] ] = trim($matches[2]); } } } else { die("<br />
".sprintf("Missing or unreadable config file (%s)...cannot continue", $filename)."<br />
"); } return $conf; } ?&gt; You do not have permissions to access this resource.</p>
<p dir="auto">when i go in my fop2 web interface and click on phonebook it won't open it just kept loading.</p>
]]></description><link>http://localhost:4567/post/6515</link><guid isPermaLink="true">http://localhost:4567/post/6515</guid><dc:creator><![CDATA[clinnovations]]></dc:creator><pubDate>Mon, 17 Jun 2013 13:01:14 GMT</pubDate></item><item><title><![CDATA[Reply to Visual Phonebook with database on Thu, 13 Jun 2013 21:36:38 GMT]]></title><description><![CDATA[<p dir="auto">At the top of config.php you can define a mysql user, password and database. You have to create that database and populate it with the tables found in the mysql-tables.db file in the web directory. Once that is done, everything will work. You do not need to modify php files, just create the database and set the proper credentials at the top of config.php</p>
<p dir="auto">Best regards,</p>
]]></description><link>http://localhost:4567/post/6514</link><guid isPermaLink="true">http://localhost:4567/post/6514</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Thu, 13 Jun 2013 21:36:38 GMT</pubDate></item></channel></rss>