PHP does not display error messages

PHP does not display error messages

I installed XAMPP 1.7.4 (with PHP 5.3.5), the problem is PHP does not display any error messages. E.g. if I connect to MYSQL with mysql_connect() without parameters, PHP will not complain about the required fields.Why is this?How can I conf

How to 'insert if not exists' in MySQL?

How to 'insert if not exists' in MySQL?

I started by googling, and found this article which talks about mutex tables.I have a table with ~14 million records. If I want to add more data in the same format, is there a way to ensure the record I want to insert does not already exist

How do you get Angular.js to work in a Windows 8 store app?

How do you get Angular.js to work in a Windows 8 store app?

The app runs but Angular data objects are not recognized.Here is the JavaScript error I am getting:Exception was thrown at line 1059, column 11 in ms-appx://28934b41-4dd2-4414-b9a9-a73c11c1b743/js/angular.js0x800a139e - JavaScript runtime e

from sys import argv - what is the function of “script”

from sys import argv - what is the function of “script”

I am reading "Learn Python the Hard Way" and was confused by the "script" part of the second line.from sys import argvscript, filename = argvFrom what I understand, the second line says: script and filename comprise argv.I tried running my

ErrorActionPreference and ErrorAction SilentlyContinue for Get-PSSessionConfiguration

ErrorActionPreference and ErrorAction SilentlyContinue for Get-PSSessionConfiguration

My case:$ErrorActionPreference = "Stop";"1 - $ErrorActionPreference;"Get-ChildItem NoSuchFile.txt -ErrorAction SilentlyContinue;"2 - $ErrorActionPreference;"Get-ChildItem NoSuchFile.txt -ErrorAction Stop;"3 - $ErrorActionPreference;"Output:

'admin' is not a registered namespace in Django 1.4

'admin' is not a registered namespace in Django 1.4

I'm attempting to upgrade quite a large Django project to the newly released Django 1.4, and I'm having some issues when running python manage.py test.Lots of the internal tests which passed in Django 1.3 are now failing, with really odd me

Is it possible to specify custom error log format in nginx?

Is it possible to specify custom error log format in nginx?

I can specify custom log format for access log in nginx, but it won't work for error log. I wish I always saw time when error occur. Is it possible? 1:You can't specify your own format, but in nginx build-in several level's of error_log-

How to suppress “unused variable” warnings in Eclipse/PyDev

How to suppress “unused variable” warnings in Eclipse/PyDev

How to suppress "unused variable" warnings in Eclipse/PyDevWhen I'm working with functions that return tuples, I often only need one of the values, but still want to assign to multiple variables. I would like to be able to temporarily turn

Controller 'ngModel', required by directive '…', can't be found

Controller 'ngModel', required by directive '…', can't be found

What's going on here?Here is my directive:app.directive('submitRequired', function (objSvc) { return { require: 'ngModel', link: function (scope, elm, attrs, ctrl) { // do something } };});Here is an exam

Ajax in magento (load product view block)

Ajax in magento (load product view block)

What I want to achieve:Clicking on a product link/image (at least in certain areas) to open a pop-up with the full product information (basically all the contents of the product view page).What I did/tried so far:created all the stuff outsi

XAMPP mail not working with PHP mail() function

XAMPP mail not working with PHP mail() function

I just installed XAMPP, Apache is running, so is MySQL and Mercury.In Dreamweaver I created a php file with a mail($to,$subject,$msg,'From:'.$email); function, but when I ran the file from localhost it showed an error. After playing around

Linking C .obj files into Delphi application, resolving standard C dependencies

Linking C .obj files into Delphi application, resolving standard C dependencies

I compiled libxml2 with BCC 5.5 command line compiler, now I have lots of .obj files which I'd like to link into my Delphi application. Unfortunately, I get lots of "Unsatisfied forward or external declaration" errors, pointing to standard

Django JSON Serialization with Mixed Django models and a Dictionary

Django JSON Serialization with Mixed Django models and a Dictionary

I can't seem to find a good way to serialize both Django Models and Python dictionaries together, its pretty common for me to return a json response that looks like{ "modified":updated_object, "success":true ... some additional data...}I

Subscribing events in VB.NET

Subscribing events in VB.NET

I'm trying to convert some C# code to VB.NET.I have the following in C# (which works)m_switchImageTimer = new DispatcherTimer();m_switchImageTimer.Interval = Interval;m_switchImageTimer.Tick += (s, e) => LoadNextImage();The key line I'm str

Qt4 in Visual Studio 2008 - moc-ed files get excluded from build?

Qt4 in Visual Studio 2008 - moc-ed files get excluded from build?

Recently I have installed VS Addin from Qt Software and I imported my .pro project to VS2008.Generally, all works fine, with one small but annoying exception.Suppose I have a file.cpp with has a class which declares that it is a Q_OBJECT.So

How to determine which command line options gcc passes to ld by default?

How to determine which command line options gcc passes to ld by default?

Consider the hello world C program:hello.c:#include "stdio.h"int main(){ printf("Hello, World!\n");}If I call:$ gcc -c hello.c -o hello.oIt will produce an ELF Relocatable File hello.oIf I then call:$ gcc hello.o -o hello

Tomcat stops responding to Apache

Tomcat stops responding to Apache

I'm trying to resolve an issue about connecting Apache and Tomcat with mod_proxy_ajp. In my case, the Tomcat stops to response the Apache, and the apache log prints logs error message like this: [Mon May 06 15:22:47 2013] [error] ajp_read_h

JavaFX custom control (TextField) not working

JavaFX custom control (TextField) not working

I am trying to make a custom control with JavaFX and SceneBuilder 1.1.I have this code:FXML CustomComponent.javapackage libreria.javaFX.componentes.componenteTextField;import javafx.scene.control.TextField;public class CustomComponen

PHP - Nested IF statements

PHP - Nested IF statements

I'm wondering when it's a bad idea to use multiple nested IF statements. eg:function change_password($email, $password, $new_password, $confirm_new_password){ if($email && $password && $new_password && $confirm_new_password) {

final class in c++

final class in c++

class Temp{private: ~Temp() {} friend class Final;};class Final : virtual public Temp{public: void fun() { coutThe above code tries to achieve non-inheritable class (final). But using above code the object of derived c

Passing ArrayList of objects through intent - Java (Android)

Passing ArrayList of objects through intent - Java (Android)

I am trying to pass an ArrayList of objects through an intent but cannot get it to work. Here is what I have:public class QuestionView extends Activity { //variables and other methods... public void endQuiz() { Intent intent =

Windows 8 IIS does not load stylesheets and images in asp.net app

Windows 8 IIS does not load stylesheets and images in asp.net app

I just installed Windows 8 on my computer and tried to load my ASP.net application. The page loads with no problems. But none of the images or stylesheets that are located in the App_Themes directory load. I do have a separate folder that h

Ruby on Rails 4 - Duplicate paperclip validation messages

Ruby on Rails 4 - Duplicate paperclip validation messages

Is there any way to prevent validation messages appearing twice for Paperclip upload validations?Here is my model:has_attached_file :photo, :styles => { :thumb => "215x165" }, :default_url => "/images/:style/missing.png"validates_attachment

With Zxing retiring for iOS, which barcode-scanner to switch to?

With Zxing retiring for iOS, which barcode-scanner to switch to?

I have implemented ZXing to my iOS-app, however I am questioning it's maintainability as not long ago it was announced that ZXing to iOS is retiring:Retiring C++, Objective C codeI've also read that there might be compatibility issues with

Is there a way to detect that TCP socket has been closed by the remote peer, without reading from it

Is there a way to detect that TCP socket has been closed by the remote peer, without reading from it

First, a little background to explain the motivation: I'm working on a very simple select()-based TCP "mirror proxy", that allows two firewalled clients to talk to each other indirectly. Both clients connect to this server, and as soon as