I have a website where users can login and are identified by sessions and $user[id]. They can upload files. Files are stores in htdocs/uploads. Every file data is stored in a table to have a link between filename, location and user_id. On some places on my website i give the possibility to download the file ..
I upgrade mac os to Monterey, after install PHP using brew brew install PHP after installation and run projects PHP files shown as plain text, I try to activate in httpd.conf but not working, please any help enter image description here Sourc..
I upgrade my Mac to the new version, after install I use homebrew to install PHP 8, but when run a project (Laravel) its shown as plain text i add <IfModule dir_module> DirectoryIndex index.php index.html Sourc..
I have an elaborate 127.0.0.1-hosted web interface to my PHP system. Because some of the page requests can take many seconds, for example the ones fetching real-time data from an external API to display fresh tables to me, this "locks up" the browsing of my system because the built-in PHP webserver only supports one "thread". ..
I’m trying to write a php script that will allow a user to enter a string of words in one text box and a key word in another text box. The code should display the amount of times that key word appears in the original string but the php function I’m using at the moment ..
So, i’ve uploaded the simpliest form possible for debugging, and i’ve come to the conclusion there’s something wrong with my webserver in hostgator. I have the following form: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <form action="backend.php" method="post"> <input name="name" type="text" placeholder="Nome"> <input name="lastName" type="text" ..
The example.org.za site is down, yesterday I just spoke to the hosting company and they say too many PHP slots are open. They restarted the site, but the PHP process fills up immediately. Which slots effect in my webserver or Opencart(PHP). I don’t know. How is it’s the possible solution for me Thank you Source: ..
I’m trying to configure a web server with IIS which requires PHP for working. I installed the PHP Manager extension on IIS and by default my server has PHP disabled. So I tried to enable PHP and the Manager asks you to input the path of your php-cgi.exe file. So I did it, added the ..
I have a virtual random image using .htaccess file: # .htaccess <Files random.jpg> RewriteEngine On RewriteRule ^(.+)$ /random-image.php [QSA,L] </Files> and the following PHP: <?php // random-image.php $images=glob("images/*.jpg"); $image=imagecreatefromjpeg($images[array_rand($images)]); header(‘Content-Type: image/jpeg’); imagejpeg($image); ?> and in HTML: <img src="random.jpg"> This works well enough, but the browser has an annoying habit of caching the images, so I ..
I want to make a online compiler with php. I have done it in my localhost. But when I execute a code through this compiler it use the compilers which is installed in my local computer. How can I install the compilers in web server for executing the code in web server? Sourc..