Do not use transactions (e.g. with InnoDB MySQL tables) with persistent connections. If your script stops or exits for any reason, your transaction...
Judging from the sheer number of "holes" found in the posted samples, clearly, creating "safe" html is a difficult task. Consider an alternative...
With regard to what's been said, I like to work with variables without a prefix but it is not good to import them all into a global scope. In...
If your mail server requires authentication or if you just need to communicate directly via sockets, refer to the documentation on fsockopen(). ...
Maybe I am doing something wrong, but it seems to me that somewhat contrary to the documentation in 4.3.2 iconv() returns an empty string on failure,...
The $entry parameter can be an array of values for an attribute. Just be careful that your array's indices are numerically contiguous. For example,...
Using MSSQL 2000 and Windows Server 2003 Enterprise running on a separate machine from the web server, I was unable to get PHP to connect to MSSQL...
Note Submitter: caj@gmx.com ---- is there a posibility to create an image on the fly using this function and not so save it, but displaying it...
What happens if the file doesnt exist in the server? does php create the file? ---- Manual Page --...
Sorry for the multiple posts. Here's yet another way of doing the same thing. $expected=array( 'name', // Only accept these variables from a...
I couldn't get the function to work with (absolute or relative) URL as argument on a site secured with Basic Authentication (platform: FreeBSD,...
It is probably worth pointing out that the array elements will actually be of type string, OR NULL if the field is null in the database. Thus,...
I had a need to remove comments from a string. They were started with ''. I tried to to this with ereg_replace, but couldn't get to it. However, I...
I am very tired in enter in my principal page. How can I do this? ---- Manual Page -- http://www.php.net/manual/en/function.mysql-pconnect.php...
Note Submitter: ---- This function does not exist. See: http://cvs.php.net/co.php/php4/ext/sybase_ct/php_sybase_ct.c
This was a major headache for me but a very simple fix: instead of using the actual path to your file like this: $handle =...
A great way to implement enums in PHP is to use the :: operator. For instance, if I had a class FormField, with a member variable $Type, I could...
Note Submitter: php-general@lists.php.net ---- To mmagicm: All I can say is that it worked for me ! Have a look at my source :...
Note Submitter: laurent.francoise@winnbat.fr ---- Undocumented parameter "charset" ... The complete prototype of sybase_connect is : int...
Use this control to limit the display of threads to those newer than the specified time frame.
Allows you to choose the data by which the thread list will be sorted.
Order threads in...
Note: when sorting by date, 'descending order' will show the newest results first.
Forum Rules