Tuesday, December 8, 2020
Apache NetBeans IDE Setup for PHP Development #4
Sunday, December 6, 2020
Apache NetBeans IDE Setup for PHP Development #3
Saturday, December 5, 2020
Apache NetBeans IDE Setup for PHP Development #2
Apache NetBeans IDE Setup for PHP Development #1
Tuesday, November 17, 2020
WebFiori Framework: Latest News
It's been long time since I posted any news regarding WebFiori framework but I was actively working on improving it. This will summarize what happened during the last few months.
The focus points where writing documentation of the framework in addition to the release of first beta of version 2. Also, I create an organization that holds any repo which relates to WebFiori framework. The organization can be found at https://github.com/WebFiori
Documentation Website
Now the framework has a written documentation that covers most of the features. The documentation can be accessed through the following link: https://webfiori.com/learn . The actual documentation is hosted in the following repo: https://github.com/WebFiori/docs . Note that it is still under development and more content is added regularly.
Version 2.0.0 beta.1
The first beta of version 2 was just released. This version includes many changes which makes it much better than v1.x.x. You can get the latest version from the following link: https://github.com/WebFiori/framework/releases
The biggest changes are:
- Moved all core framework files to new namespace.
- A public folder is added which is used as entry point for all requests.
- Added support for composer.
- Added the folder 'app' which should hold any code at which the developer will write for his web application.
- All standard libraries where updated.
- Slightly improved routing speed by removing unnecessary initialization steps.
The current plan is to release the stable v2.0.0 by the beginning of the new year.
I would like to thank anyone who helped me in the development process by providing helpful suggestions.
Monday, November 16, 2020
Mystery Skulls Animated - The Future, Finally its out
Friday, July 3, 2020
How to Embed an Image In HTML Page Using PHP
$file = 'path/to/my/file/image.jpg';
$rawData = file_get_contents($file);
$encoded = base64_encode($rawData);
echo '<img src="data:image/jpg;base64,'.$encoded.'" >';
Monday, June 29, 2020
How to Read a File In PHP
Examples
The following code shows how to use the first method.
$path = "C:\Users\XUser\documents\my-file.txt";
$stream = fopen($path, 'r');
$wholeContent = fread($stream, filesize($path));
fclose($stream);
The following code shows how to use the first method.
$path = "C:\Users\XUser\documents\my-file.txt";
$stream = file_get_content($path);
As for me, I recomend the second way over the first one. Because in some cases, I have seen that the first way does not read the whole file. In addition, it is easier to understand than the first one
Wednesday, June 24, 2020
How to Delete a Tag From GitHub Using GitHub Desktop
1- Open command line by opening the menu "Repository > Open in Command Prompt".
2- Execute the following command: "git push origin :<TAG_NAM>.
3- If it asks you to login, enter your credentials.
4- The tag will be removed and a message in the terminal that says the tag is removed will appear.