phpPgAds  Home 

 

 

 

  6.1FAQ & Troubleshooting 

  
  6.1.1Frequently Asked Questions 

 


What's the difference between compact statistics and verbose statistics?
Compact statistics are faster than verbose stats and take a lot less storage space on the PostgreSQL server. There is a drawback however, the compact stats are less accurate than the old verbose stats, there are no hourly overviews for example.


How can I speed up phpPgAds?
You can speed up phpPgAds considerably by reducing the functionality. You could disable multiple keywords and conditional keywords. You could enable 'delayed inserts' as well, which should increase the speed of statistics logging. Other things that influence the speed of phpPgAds are reverse lookup, sequential banner retrieval and banners stored in PostgreSQL. If you really need to serve massive amounts of banners you could try using multiple servers. It is possible to store banners on an external ftp/webserver, use a different server for the PostgreSQL database and serve the ads from a different server as your webserver. It is even possible to use multiple servers which all have phpPgAds and PostgreSQL installed and use same database which is replicated over all the servers.


My PostgreSQL server uses too many resources, what can I do?
You can reduce the load on the PostgreSQL server by storing banners on the webserver instead of the PostgreSQL server. It is also possible use 'delayed inserts' which can be turned on in the configuration file. If phpPgAds uses persistent connections to the PostgreSQL server you could try turning this off in the configuration file. Persistent connections do speed up phpPgAds, but increase the load on the PostgreSQL server.


Can you help me to install phpPgAds? Can you please implement this feature I need?
Maybe. Let us know what you want...

 

 
  
  6.1.2Troubleshooting 

 


phpPgAds doesn't display any banners on pages which are the result of a form being submitted in IE
This is a known bug in IE 4 and higher. phpPgAds does have a workaround for this bug, but it only works in remote invocation with JavaScript and local mode. Normal remote invocation is still affected by this bug. Microsoft is aware of this bug for some time and IE 6 apparently works fine. If you use normal remote invocation there is nothing we can do about it.


phpPgAds doesn't display any HTML banners
HTML banners are only supported if you use remote invocation with JavaScript of local mode. It is not possible to display HTML banner with normal remote invocation.


The login doesn't work, it keeps prompting for username/password all over again or I can't add banners

Make sure you have enabled magic_quotes_gpc in your PHP configuration.
Make sure $phpAds_url_prefix in config.inc.php is exactly the same as it is on the server (http://www.test.com/phpads is not the same as http://www.test.com/phpAds). Also make sure it doesn't end with a slash (/).


I get the following error: Fatal error: Call to unsupported or undefined function pg_(p)connect()
Your PHP is not configured for PostgreSQL support. If you're on Unix, you need to recompile PHP --with-pgsql. If you're on Windows, you have to enable the PostgreSQL DLL in your PHP configuration. See the manual, installation section, for more details.