UnKnown Error
Roland
php centos apache2 php5 2014-1-14 14:27:36
I have a web server that we use, apache, centos5, phpI have a file called ‘include.php’ that I need to include in multiple sites.Eg. I have a site called testsite.co.za, now in the index.php i want to include the include.php file, the include.php is not in the root of testsite.co.za, Now i created another folder includes in the web root directory which contains include.phpmy code looks as follows in testsite.co.za/index.phprequire_once ‘../includes/include.php’;if i run testsite.co.za it can’t d
cwallenpoole
php nginx ubuntu-10.04 php-fpm 2014-1-14 14:27:04
I installed a LEMP stack on Linode using one of the stack scripts they offer. I actually didn’t run it on boot but instead entered the commands manually since it seemed to not install everything correctly. Anyway, after installing everything and starting both the server and php-fpm without error, I created a phpinfo(); page on the default nginx location (/var/www/index.php). Problem is that it’s not executing the script and instead displays as a static file. Anyone know how I could approach this
weeheavy
php webserver website piwik 2014-1-14 14:07:42
I am looking for a web analysis software that has the following features, in addition to the usual showing of visits, search keywords etc.Track individual visitor. The software use a unique cookie value to track visitors. I can find all the history that a visitor did on the site (assuming that the cookie is not deleted). And I can find out “who’s on” from the software at any time (showing visitor IP, DNS name, browse history etc.). Track File downloaded from the web site, and display statistics.
Holly
php laravel laravel-4 2014-1-14 14:04:55
In Laravel 4, I want to set the configuration variable “debug” to “false” by default, but to “true” for requests from my own IP address (the test will eventually be more sophisticated than that).Based on the documentation at http://four.laravel.com/docs/configuration, I’ve tried the following:config/app.php: ‘debug’ => falsefilters.app – App::before (I also tried putting the code at the top of routes.php, with the same effect):if(Request::getClientIp() == ‘[my ip address]’) {echo ‘hello world
tombull89
php iis7.5 2014-1-14 13:37:20
I have a Windows Server 2008 R2 machine with the IIS Web server role installed. I didn’t check any of the tickboxes apart from the default selection for the install and IIS was downloaded and installed from php.iis.net using the Web Platform Installer.I have copied the files for the site (Multicraft Control Panel) to wwwroot and navigated to localhost but recieve an error : Application runtime path “C:\inetpub\wwwroot\panel\protected\runtime”is not valid. Please make sure it is a directory writa
John Hunt
php lamp 2014-1-14 13:30:51
I have a pretty standard LAMP setup on my Debian VPS. The VPS has 512MB of ram, and I’ve assigned 128MB in my php.ini for php.If I create a script with an infinite loop in it the VPS pretty much comes to a standstill (SSH stops being responsive etc..)I was wondering if there’s a way to lower PHP’s priority or something like that so that bad scripts can’t interfere too much with the server.Thanks, John.
BeStRaFe
iis php 500 2014-1-14 12:50:42
I’ve tried the previously answered questions regarding this to no avail.Just installed PHP5 and IIS on my Windows 7 machine and I’m having trouble getting PHP Errors displayed instead of 500 Errors.In PHP;error_reporting = E_ALL display_errors = OnIn IIS I have htmlErrors set to Detailed which shows a detailed IIS 500 Error page. If set to Custom it shows a basic 500 Error page.If I set it to PassThrough I get a blank page (view-source reveals no code).My PHP log file is showing a Fatal PHP Run
user1654881
php html mysql 2014-1-14 12:18:34
I have create form which creates table entered number of rows and columns on form i want to create that entered fields table into database & save its values into database Table.Guide me what should i UseMy Code:<?phpglobal $Host;global $Username;global $password;global $database;function getConnection(){$Host = “localhost”;$Username = “root”;$password = “”;$database = “labdata”;$oMysqli = new mysqli($Host,$Username,$password,$database);return($oMysqli);}?><html><head><ti
helcim
php debian modules php-extensions 2014-1-14 12:16:21
Is it possible to get a list of installed php extensions on Debian? Is there any simple way to find which extensions exist in debian php packages and which have to be compiled manually (actually three lists would be useful: all enabled extensions, all installed extensions, enabled and not enabled, all extensions available as deb packages for a given debian version)?
Steven De Groote
php file-permissions suhosin 2014-1-14 12:13:57
I have just recently found out that suhosin makes sure not to execute php files with file permissions more open than 755. However, I need to temporarily allow someone else FTP access to some files, so I’d need to chmod these to 777. That unfortunately makes the files non-executable by my PHP runtime.Is there a way to bypass this check (temporarily)?
Dz.
database cpu 2014-1-14 13:46:55
We all know that memory I/O is faster than disk I/O. Database use cache machanism to improve performance. It seems that there is no business of the CPU overhead.I mean usually the CPU is fast enough not to be the performance bottleneck on a small local database using like Berkeley DB. Relatively faster CPU won’t improve the performance of such database.My question is that whether my upper assumption is right.I did do some simple tests which turned out to be against to my assumption and made me c
calcushtag
database CrystalReports 2014-1-14 13:03:53
I added a report to my Windows Form Project in VS2010. When I run the code to check the report, It’s need login ID and password for database. my database is local database (mdf file) and it’s work with window Authentication and hasn’t username and password. the windows username and password are useless too! What is wrong with my db or dataset or crystal report (SAP)?
SvW
database db2 2014-1-14 10:48:13
I am trying to establish a connection between excel and db2. I am able to successfully query and retrieve data from my DB.I am using the below connection stringProvider=IBMDADB2;Database=RQAPROJ;HOSTNAME=jebal asu;PROTOCOL=TCPIP;PORT=50000;uid=administrator;pw d=we”The issue now is that I have DB2 installed on my machine and the connection works perfect, however when I try from a Machine which does not have db2 installed I get an error straightaway that the Provider is not found.I understand tha
sgtsunshine
database database-connection castle-activerecord 2014-1-14 10:35:34
When using Castle ActiveRecord, is it possible to determine during runtime which connection string to use?As I understand it, ActiveRecord has to be initialized only once during the application’s lifetime and this means that database connection strings have to be configured prior to initialization.However, is it still possible to determine connection strings during run time – i.e. what if the web app does not know which database to use until after the user has logged in?
Yurish
java database hibernate jsf 2014-1-14 10:32:27
I have JSF + Hibernate app. During runtime, i need to change database, to which user is connected. For example, User can manually switch databases in my app, so app is connected to the chosen one. I read about Hibernate Connection Provider. Can it help me?
Jin Kim
database sql postgresql 2014-1-14 9:58:58
I’m in the process of reviewing every SQL statement that an application makes against the database, for performance reasons. Is there an easy way to log all statements that are executed by the PostgreSQL database server? Thanks.
Dan McGrath
database benchmarking 2014-1-14 6:11:01
I see lots of discussions flying around about performance of db ‘x’ or that moving from ‘x’ to ‘y’ improved our site performance.I’m yet to see proper benchmarking that works across different types of databases.Is it possible to write a meaningful benchmark that could be used across multiple db types, such as Relational, Document-oriented, etc. How would you go about designing such a benchmark?
radix07
database gui excel 2014-1-14 3:58:52
I work for a small company and have been designing a GUI to interface our embedded system. The problem with this embedded system is that it is not a finished product (may never be) and is constantly under development and being tweaked and updated for different customers and applications in small volumes. So to deal with this I made a program that can export all the data from a spreadsheet where most of the embedded system variables are sourced from and throw them into a small database for the
Gustavo Rubio
c# .net database configuration enterprise-library 2014-1-14 3:22:01
Is there a way to change the connection string of a DataBase object in Enterprise Library at runtime? I’ve found this link but its a little bit outdated (2005)I’ve also found this but it seems to apply to .Net in general, I was wondering if there was something that could be done specifically for EntLib.I was just passing the connection string name to the CreateDatabase() method in DatabaseFactory object and that worked til yesterday that my project manager asked me to support more than one datab
Note to self – think of a name
database sql api-design dsl 2014-1-14 2:20:16
After being exposed to numerous database abstraction layers, I’m starting to wonder what the point is of every library inventing their own different paradigm to access data. Picking up a new DAL feels like learning a new language all over again, when usually all I want to do is just convince the layer to output an SQL query that I’ve already written in my head.And that’s without even touching on readability after the fact:# Exhibit A: A typical DAL rows = db(db.ips_x_users.ip_addr == ‘127.0.0.1
JD Isaacks
php cakephp cakephp-1.3 class-variables 2014-1-13 14:45:36
I have a Product model for a multi site application.Depending on the domain(site) I want to load different data.For example instead of having a name and description fields in my database I have posh_name, cheap_name, posh_description, and cheap_description.if I set something up like this:class Product extends AppModel {var $virtualFields = array(‘name’ => ‘posh_name’,’description’ => ‘posh_description’); }Then it always works, whether accessed directly from the model or via association.Bu
matino
php cakephp controller 2014-1-13 11:09:59
I need to write a modular function that could work with any kind of controller. I need, at runtime, to do something like.$tools=array(“a”,”b”,”c”); foreach($tools as $tool{…//here there should be something like add_to_$uses($tool)$this->{$tool}->find();Obviously simply adding the item to $this->uses doesn’t work. How am I supposed to do this?
Rob Wilkerson
cakephp cakephp-1.3 2014-1-11 20:25:40
I’m in the process of building a plugin that includes a behavior and several related models. My goal is to make this as easy as possible for the developer using the behavior. My perfect world has the dev simply attaching the behavior to any relevant models and configuring it. The behavior interacts directly with one of the models and a hasOne association is being created on the fly, but the other models contain supporting data that is important. What I’d like to do is to have that model pull in
revohsalf
ruby-on-rails git mvc cakephp workflow 2014-1-11 0:07:55
I’m getting lost with Git branching model and the workflow that I want to create for my team (developers + designers).Suppose that the project is based on a MVC pattern, so we have a structure similar to : Models/Controllers/Views/ Developers works on the M & C parts with some basic/generated views (Rails, Django or CakePHP app for example) and Designers works on the V partHow can I manage that developers works on M&C and keep some basic crappy views, and in the same time, designers mak
SoulMagnet
windows cakephp ubuntu ldap 2014-1-9 22:27:40
I am trying to deploy a cakePHP app which works exactly as it should in Windows. I use an LdapUser model to authenticate through Active Directory:LdapUser:<?php class LdapUser extends AppModel { var $name = ‘LdapUser’; var $useTable = false;var $myCompany_ldap = “x.x.x.x”; //var $myCompany_ldap_config = array (‘basedn’ => ‘CN=x,DC=x,DC=x’); var $basedn = ‘CN=x,DC=x,DC=x’; var $myCompany_ldap_domain = “x.x”;// var $user = “[email protected]”;// var $pass = “x!”; var $exists = false; var
GeoSQL
apache cakephp 2014-1-8 21:00:22
I’m trying to install CakePHP on my Windows XP machine running Apache 2.2. I have installed the Cake folder in my doc root.I’ve read the installation instructions that say to include this line in the httpd.conf file;<Directory /path/to/cake>Does anyone know how to translate that into Windows? I currently have the following in my conf file:<Directory “C:/Apache/Apache2.2/htdocs/cakeapp/”>Whenever I uncomment this line it crashes Apache. I’ve tried switching the slashes to “\” and I tr
SDP
.htaccess cakephp mod-rewrite cakephp-2.0 2014-1-8 7:48:48
My CakePHP app lives inside a subdirectory to keep it from crashing into a WordPress installation that powers part of the website:example.com/ <–root/_wp <–Wordpress installed here/page1/page2/_cake <–CakePHP installed here/page3/page4To maintain consistency, I’m using mod_rewrite rules to rewrite URLs from example.com/_cake/pageX to example.com/pageX etc. This basically works, but CakePHP still creates links with /_cake/pageX. So if a user hovers over a link, the “_cake” will
Jason
cakephp 2014-1-4 6:43:17
In a controller, make a dummy action, name it like stackoverflow_with_something()//the WITH part is importantCreate the view stackoverflow_with_somethingLoad up the page in a browser. Get a ‘missing view error’ Take out the _with, try again. No error. I havent seen any documentation on this, whats the deal?short version : Why does xxxxx_with_xxxxx crash cakePHP, but xxxxx_xxxxx dosent?
denisoid
cakephp caching 2014-1-3 4:09:40
I use plugin Comments from CakeDC and have big problem in production mode (debug=0). If I understand correctly, CakePHP cache models at first request and CakePHP using this cache unless expires. This plugin connects additional model to existing models using bindModel(). But since all models is caching, connecting additional model is not happen, and everything crashing.How to use the cache in situations where there is use bindModel?
Ashok
php database cakephp connection 2013-12-31 1:04:22
I have a few sites built with Cakephp. If any of these sites lose their connection to the database for whatever reason it does not handle it well. Basically it renders itself inside itself trying to display an error over and over until the browser crashes. The rendering itself inside itself is caused by the use of requestAction from elements. What I want to know is how can I check if the database connection existsI tried this in the app_controller before filter:if(!ConnectionManager::getDataSour
JamesG
jquery pagination 2014-1-9 16:16:12
I have a large amount of data being displayed in a page using wordpress, so I thought I would search for some sort of jQuery pagination system to split the data up in order to load only the data on the viewable page, not the ENTIRE page of over 1000 posts (which crashes my browser :/) But… I just wondered if this would actually make a difference? I have found a tutorial on what I want which is here http://web.enavu.com/tutorials/making-a-jquery-pagination-system/. Would this do what I want? Or
user1328021
python django pagination 2014-1-2 10:59:04
Using the django-pagination lib, I like using the autopaginate tag and then {% paginate %} in my template because it automatically formats the page numbering nicely.However, the form it needs is{% autopaginate object_list %}But I wanted to know if I could pass it an integer, ie. the number of hits. In this case, the number of hits is quite large, and converting that to a list of integers (ex: 5 -> [0,1,2,3,4]) will crash my app since it’s hundreds of thousands of items long in some cases.So does
Norse
jquery pagination 2013-12-23 13:50:09
My question is, what is the best way to handle non-visible pages?$(‘.results’).slice(‘//hidden pages’).hide(); $(‘.results’).slice(‘//current page’).show();<?php while ($row = mysql_fetch_assoc($query)) {echo ‘<span class=”results”>’ . $row[‘items’] . “</span><br/>”; } ?>Currently I use $.hide() which works just fine — until the query returns thousands of rows of data (about 9000 to be precise.) If a query has too many results it seems to lag/crash firefox. Is hide/show
Midhun MP
ios uitableview pagination 2013-12-19 20:50:37
I have a one major issue. I have implemented a uitable view with paging but when i reach to row 700 application crashed also sometimes it restart the ipad. So i tried every thing but i am not getting solution. this is my code.#pragma mark – Table View- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {return 1; }- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {if (dataArray.count<[self.allRecordCount intValue]){return dataArray.count+1;}
Koka
javascript backbone.js pagination backbone-paginator 2013-12-19 10:12:13
I am working with backbone pageable collection which extends backbone collection.I have a paginator which can move our pages in the came from pageable collection.I am working upon server side mode of backbone pageable collection.The problem is when i paginate 5-6 times from the paginator. Chrome crashes as it increases the memory for storing current collection. And perhaps it is not destroying the previously stored collection.I am doing the following to solve the problem :this.collection.getPage
ManojTailor
AndrettiMilas
pagination css next-post-link 2013-12-14 4:30:03
I have a custom function which allows users to choose between next/previous links and pagination and I’m attempting to add CSS classes to the next/previous links. I’ve tried this multiple ways and keep crashing my theme.How do I insert CSS classes into the previous and next link?// Pagination function my_theme_navigation() { global $shortname;if( get_option( $shortname . ‘_next_prev_or_paginate’ ) == ‘Next’ ) : // the block for next-prev navigation previous_posts_link (‘Newer’);next_posts_link
Zen
javascript html pagination gallery 2013-11-14 7:37:04
Ok I would like to create unusual pagination of a gallery: Assuming that i have like 100 photos, i dont want to hardcode 100 appropriate links to html, i want to do it smart way.My idea is simple: i want to place photos in folders that will have names: 1, 2, 3 (so that i could reference to correct images by appending/modifying the path with respect to current page selected through pagination). But im stuck since i get popup message by javascript: “Image cannot be loaded. Make sure the path is co
Secular Kid
extjs grid pagination paging 2013-11-11 14:07:31
I’m new to ExtJS. I followed a tutorial with the aim to create a pagination on a grid. The code was simple, and I found it suspicious… as result, the paging toolbar is there but there are still all the data displayed on the first load. Here’s my code in the View file :Ext.define(‘AM.view.user.List’ ,{extend: ‘Ext.grid.GridPanel’,alias: ‘widget.userlist’,cls: ‘overall’, title: ‘xxx <img src=”ressource/image/xxx.png” class=”title-icon” style= “width: 5%; height: 5%; vertical-align:middle; mar
Michaël
php jquery ajax pagination instagram 2013-11-10 19:40:33
I’m trying to fix Ajax pagination for Instagram APIShown only 20 photos. “Load more” button didn’t work.In console: Uncaught ReferenceError: maxid is not definedHere is index.php:<script>$(document).ready(function() {$(‘#more’).click(function() {var max_id = $(this).data(‘nextid’);$.ajax({type: ‘GET’,url: ‘ajax.php’,data: {max_id: maxid},dataType: ‘json’,cache: false,success: function(data) {// Output data$.each(data.images, function(i, src) {$(‘#photos’).append(‘<li><img src=”‘ +