PHP Sessions not transferring to next page?


There are multiple reasons why sessions are not transferring to next page but the most important thing is to check the urls of sender and receiver pages For example if you are sending session from non secure url http://www.example.com to a secure url https://www.exmaple.com this will not work

Rename a file if same already exists


While uploading a file you may want to check if a file already exists in target directory then create a new file instead of replacing and rename new file with an incremental no. Example some_dir/some_file.png already exists, and you try to upload a file with name some_file.png again, so it should be uploaded as some_dir/some_file1.png … Continue reading Rename a file if same already exists