Tuesday, December 8, 2020

Apache NetBeans IDE Setup for PHP Development #4

The forth video on a set of videos that explains how to setup Apache NetBeans IDE for PHP development.

Sunday, December 6, 2020

Apache NetBeans IDE Setup for PHP Development #3

The third video on a set of videos that explains how to setup Apache NetBeans IDE for PHP development.

Saturday, December 5, 2020

Apache NetBeans IDE Setup for PHP Development #2

The second video on a set of videos that explains how to setup Apache NetBeans IDE for PHP development.

Apache NetBeans IDE Setup for PHP Development #1

The first video on a set of videos that explains how to setup Apache NetBeans IDE for PHP development.

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

Finally its out. The animation looks amazing and the story is getting more intersting. The music on the video adds extra hype to the video.

Friday, July 3, 2020

How to Embed an Image In HTML Page Using PHP

Sometimes, you might want to get a self-contaned HTML page that does not have to send a request to fetch an image from your server. This also can be helpful if you want to send HTML emails. To embed an image, first we have to read the image file and then encode it in base 64 and then add to to our HTML. The following code sample shows how to do it.
$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

There are two ways to read whole content of a file in PHP language. First way is to use the function fread() with the function filesize(). The second way is to use the function file_get_content().

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

Very simple. All what you have to do is the following:
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.