User Profile
Collapse
-
@Ammu. I am sorry, I don't know how to do that practically. I ll let you know once I have an answer. -
/* Wait 5 seconds. */
alarm(5);
/* getline */
/* Cancel alarm. */
alarm(0);Leave a comment:
-
PHP documentation (internals)
I usually use http://lxr.php.net/ for understanding how a function works internally. I want to know if there are resources such as javadoc for java, which also gives a brief of what the method does. -
http://www.w3schools.com/xml/xml_whatis.asp
It would be better if you read it and then ask specific queries....Leave a comment:
-
@Ammu , The path you have specified in your code is relative to your local PC. The server(PHP on server) can retrieve the file if it exists on the server. The server cannot find the files in your pc unless some remote access is setupLeave a comment:
-
Thanks @weaknessforcat s. Actually i was confused regarding the location of the macros Z_TYPE etc . Those are Zend variables and using phpize, just like its done for PHP extension development does the trick.Leave a comment:
-
Coding PHP extensions
I am following "Extending and Embedding PHP" by Sara Golemon. While explaining the concepts she has used several small snippets of code as such
Code:void describe_zval(zval *foo) { if (Z_TYPE_P(foo) == IS_NULL) { php_printf("The variable is NULL"); } else { php_printf("The variable is of type %d",
-
Coding PHP extensions
I am following "Extending and Embedding PHP" by Sara Golemon. While explaining the concepts she has used several small snippets of code as such
Code:void describe_zval(zval *foo) { if (Z_TYPE_P(foo) == IS_NULL) { php_printf("The variable is NULL"); } else { php_printf("The variable is of type %d",
-
-
Yes, I have uncommented
display_errors
Default Value: On
Development Value: On
Production Value: Off
and
error_reporting = E_ALL & ~E_DEPRECATED
display_errors is On
If there is any link which can give a list of all features enabled by --enable-debug and -enable-maintainer-zts, please do include it so i can make the necessary changes in php.iniLeave a comment:
-
Generally if you create an object of the 'non-GUI' class,
in response to Button Clicked Event that should suffice.Leave a comment:
-
Enable features in PHP after installation using 'yum'
I installed php on my pc [Fedora] using
Code:yum install php
Is there a way to do this after the installation is done using yum or I have to do the installation using source .
I am currently editing the php.ini file to keep warnings for memory leaks... -
Thanks Banfa. But i wanted to know about Explicit instantiation
template void Swap<char>(char &, char &);
I think you have explained about Explicit specialisation
template<> void Swap<char>(char &, char &);Leave a comment:
-
Explicit Initialisation of Function Templates
Why will i use explicit instantiation of a template, for a type? If I do not use explicit instantiation, the template is used to create the necessary function then what is the use of explicit instantiation?
Code:template <class Any> void Swap (Any &, Any &); // template prototype template <> void Swap<job>(job &, job &); // explicit specialization for job
Last edited by suvarna271; Feb 28 '13, 01:14 PM. Reason: Mistake :P I meant 'instantiation' not 'Initialisation' -
-
using the 'delete' operator on array of structures
Suppose I have the following structure
struct b
{
char fullname[100];
char title[100];
bopname
};
and i declare a pointer to the struct as follows
b* bp;
and at runtime,
bp = new b[5];
In the end, is the statement delete[ ] bp enough to release
the dynamically allocated memory. Or do i need to separately delete bp[0],bp[1]...
... -
scanf is for taking input from the user. the user input is interpreted as per the format specifier(%c, %d, %u etc) specified. It requires the address of the variable in which the value is to be stored. This is given by &(variable name)
printf is used for displaying data to the user. The output is formatted as per the format specifier used (%c, %d, %u etc).Leave a comment:
-
-
What is "underlying type" for wchar_t?
How is the underlying type decided in/(by the) a system for wchar_t? How will the system decide, this has to be the size of an int or short int etc.?
No activity results to display
Show More
Leave a comment: