It’s really nice to have a great community at the 000webhost forum who are really interested in web development. I have some great news for you, dear PHP developers!
Recently I wrote some articles to my own website developer.hyvor.com. Always I enjoy writing articles because a lot of users worldwide read those and learn. I feel really good when I see their feedbacks.
These are the tutorials that might help you to gain your knowledge.
Image Upload with AJAX, PHP, and MYSQL - The Beginner’s Guide TRENDING
In this tutorial, we will talk about how to upload an image to the server with AJAX, validate it with PHP, save it in the server, and finally, we will save the path of the image in the database to retrieve the image later.
The Best Way to Perform MYSQLI Prepared Statements in PHP
The best way of doing prepared statement is pretty simple than the other non-best ways. So, why wouldn’t you try this method? This method fastens your programming while securing your website
Input Validation With PHP
Every PHP developer must consider about web security. So, validating user Inputs is a must. This tutorial will teach you how to validate, sanitize inputs. Also, You will learn how to prevent XSS attacks.
Autoloading Classes/Namespaces
There’s no way to be a good PHP programmer without learning Object Oriented Programming. Even you know OOP, what if you don’t know about autoloading? It’s like you have a car without an engine. This tutorial will master your knowledge on autoloading classes and namespaces.
If you are interested in AJAX technologies you have two articles to read.
Ajax Request Handler With PHP
This tutorial will teach you everything about how to create an ajax request handler with PHP. I have explained how to handle errors, get user inputs, etc. I’m sure this tutorial will make you an AJAX hero.
Ajax Long Polling with PHP
A website that has a real-time notification system is awesome! Why don’t you create your own real-time notification system? It’s pretty easier than you think. Check out this tutorial. It will teach you how to implement a Long Polling system in your website with PHP.
More PHP Tricks
Use .Htaccess Auto Prepending Effectively
One of nice uses of .htaccess is auto prepending. By using auto prepending, we can execute a PHP file before executing the requested file without using any code. There are some great points to use auto prepending to make programming super easy
If you have any question to ask, reply here or comment on my website’s article.
i want to change my website to ajax site using ajax to load pages. will it effect my website in a good or a bad way and thanks
**this is my website url ** https://gamehup.com/browser-games/index
So, you have to create some ajax handlers. First you must go through the 3rd Tutorial I have mentioned above. You will learn how to create a handler there.
There are two ways to load pages,
You can get JSON data from the server using ajax and convert it to HTML with DOM (which is more efficient and hard)
You can get HTML content from the file and display it in your main page.
I can see the red bordered part of following image is there on your every page. So, you don’t need to get that HTML over and over again with Ajax.
I’ll explain how to do that, but you can change any step according to your needs
First, wrap the dynamic content with a div and add a id to make it easy to select with javascript. (I have used wrapper as the id)
Then, add the dynamic content into separated files in the server. (You don’t need scripts and css files. Just the div tags and other)
Only following parts in your code
am looking at Creating an AJAX Website using HTML5 History API.
and yes am using the header, footer, and the CSS file in almost all of my pages I don’t want to get that HTML over and over again even the ads i dont want it load over and over. by using ajax it will save me a lot of HTTP requests.
my JavaScript is sucks when it comes to front end am more into jquery much easier. and OOP no big problem am learning it right now and it will be good for me to implement it to my site but javascript i know only the very basics of it