Write to file with register_shutdown_function
Is it possible to do the following? [Code Block] Doesn't seem to work. BTW i'm on PHP 5.3.5.
Latest news, tutorials, and updates from the PHP community
8596 articles available
Is it possible to do the following? [Code Block] Doesn't seem to work. BTW i'm on PHP 5.3.5.
Closing the resource returned from `stream_socket_server()` is extremely slow (~0.5 seconds), as tested by this script: ...
Is there a good way of test if a string is a regex or normal string in PHP? Ideally I want to write a function to run a ...
I am making a video playback website and I need to use a html5 video player to play local videos and youtube api and vim...
[Code Block] This is a search query. First we check if a search is "all", it means search by all the site. Then I make a...
To prepare user input to be displayed as HTML, I am using `nl2br()` to insert `` at each newline. The trouble is that th...
I am working on CakePHP framework. Now I use mysqli for database connection. I would like to use `mysql_real_escape_stri...
I am trying to inherit all methods and properties from superglobal mysqli class into my db class. Here is the DB class: ...
I have an array like this: [Code Block] I need to run a cycle that grab the "slug" value from each element. How I can ac...
I'm working on an old legacy system. It breaks all kinds of rules from normalization to common sense, but alas I'm stuck...
I have a form with a select box where the user can select pre-existing fields from a database: [Code Block] How can I se...
I have a number of images in my db and they all correspond to the same project ID. I want them to be displayed next to e...
Showing 7561 to 7572 of 8596 articles