Bambalam PHP EXE Compiler/Embedder
Category Archives: PHP
PHP phar
Today we will continue PHP lessons. I guess you noticed that due your project become larger – the more and more files it contain. Sometimes it comes to the thousands of files. And then – Phar can help you. This utility allows us to pack a variety of files in the single library file. Thus, …
Packaging Your Apps with Phar
Deployment of web applications can be difficult and cumbersome if you don’t have the right tools. If you’ve ever deployed a Java application before, I’m sure you’ve heard of JAR files (which stands for “Java ARchive”). Everything executable/accessible that makes up the application can be bundled in a single JAR file, which is a blessing …
PHP: disable PHP Timeout
By default, php scripts will timeout after 30 seconds. While not recommended, you can override this setting with the set_time_limit() command. Useful if you are using php to process multiple files, etc.
PHP reverse reading a text file
how can i read for example 10 last lines from a text file beginning from last line
Read a file’s contents with PHP
PHP provides three built-in functions which allow you to easily read the contents of a file on your webserver. This is useful when, for example, another program may write information to the file and you could access that information through your script. In this example, we’re going to use the following example 5 line file, …