Skip to content
Advertisement

Tag: server

What should be my port number if I am using php database locally in my pc and using that api in flutter mobile application using physical mobile

I am currently fetching api from php database(Served locally in my pc) and sending get/post request from flutter mobile application using url = “http://10.0.2.2:8000/api/login” , here I used port number 10.0.2.2 because I am using virtual emulator and it works fine. My question is what should be my port number if I am using physical mobile device to run flutter

Phpmyadmin menu items are not visible. What would be the reason?

I installed my Laravel application on digitalocean with LEMP stack. Afterwards, I followed the instructions for phpmyadmin installation, but when I log in to phpmyadmin, the menu elements disappear 2-3 seconds after the page is loaded and the panel does not work properly. I leave the sample image below. How can I resolve this issue? Answer The problem is due

Serve file from cache folder if it exists, otherwise rewrite to “index.php” using .htaccess

Suppose in root directory I have one file (called index.php) and one folder (called caches). I want that if the file exist in caches folder serve that file (caches/xxx.html) otherwise request send to index.php. For example I will send request to server: https://example.com/how-to-do and Apache search first in cache/. If how-to-do.html exists then send (rewrite Apache) how-to-do.html otherwise send request

Is there any way to get the id of “Android WebView” app?

I use this php code to check if the user open my website from a Webview or from a browser and i want to get the id of “Android App WebView” apk which is on the playstore but i don’t find it and i also want the id of “Google Chrome” apk. Id example: “com.facebook.orca”. Answer note that a package

.htaccess file is not working in my Server

My site is located in https://itjmovies.com/milan/public/ and I want to rewrite the URL by .htaccess file. From https://itjmovies.com/milan/public/ To https://itjmovies.com/milan/ but it is not working. And also https://itjmovies.com/milan/public/auth/index.php?page=new To https://itjmovies.com/milan/public/auth/new/ but this is also not working. I have kept my .httaccess file in /www/wwwroot/itjmovies.com/milan/.htaccess My .htaccess file: Thank You 🙂 Answer I’m not sure that your edit made your question

Prevent download of PDF file from site

I have files stored in the server with the Plesk panel, currently, any person with the link of my site can access the file and download it. Is there any way to prevent the download for all the users? Answer The general approach is to create a folder that is not in the root folder of the web site. In

PHP not comparing “#”

I have a simple script where I enter some text on my search bar and PHP echo the first character from the text. My code: $data = strval($_GET[‘u’]); $ss = substr($data, 0,1); if ($ss == “@”)…

Advertisement