Questions tagged [php]

PHP is a widely-used general-purpose scripting language that is especially suited for Web development. Questions about programming in PHP are off-topic and should be asked on Stack Overflow.

Filter by
Sorted by
Tagged with
-2
votes
0answers
12 views

When i use function to call form then its give me warning [closed]

When i use to try insert data without function then its working fine <?php include('connect.php'); { if(isset($_POST['send'])){ $name=$_POST['userid']; $email=$_POST['email']; ...
0
votes
0answers
6 views

Does going in and out php tags slows down overall execution process? [migrated]

Does going in and out php tags slows down overall execution process ? i mean writing several <?php ?> in the script, when i can write only one to embrace the whole code.
0
votes
0answers
6 views

PHP SQL Query with != Selection of multiple entries [migrated]

I have a PHP script that is calling the SQL database and telling it to select every row except for where the code column is free_checkout. $query = $this->db->query("SELECT * FROM " . DB_PREFIX ...
0
votes
0answers
10 views

How to compile PHP 5.3 and PHP 5.4 release x64 with Visual Studio 2008 SP1? [migrated]

I have successfully compiled Apache x64 then I use PHP 5.3.29 and 5.4.45 release x86 on it and get error that files are not a valid Win32 application. I installed Visual Studio 2008 SP1, Visual C++ ...
0
votes
0answers
9 views

Undefined index: module error in php [closed]

recently I have made a form code and attached modules to it. but soon after I have reached an error saying Notice: Undefined index: module in F:\website\webpage\gate.php on line 68 here is the ...
0
votes
1answer
58 views

php share variables between different websites [closed]

I know that there are security problems and serious risks, but my question is if there is a safe way to share given variables between (my) several websites, in particular share websites URLS. So I'd ...
1
vote
1answer
68 views

When calling fopen in PHP, I get permission denied error only from Apache

I'm getting permission denied on fopen() call, but only if executing PHP script from Apache. I have tried checking and double checking permissions, even tried setting 777 on both file being written ...
1
vote
1answer
83 views

How to copy text with font information as well?

I wonder, how to copying text with font information? Copying any text from the website below and paste to any document have the exact font style! What is the mechanism behind it? https://coolfont....
0
votes
1answer
34 views

Apache: Remove index.php from url after Query Params

I want to remove index.php from my URL after Query Params. This is My Url: http://127.0.0.1/user/report?user=USERNAME I have removed Query Params and convert it into Pretty Url using: ...
1
vote
1answer
18 views

How do you track down high PHP-FPM usage on a dedicated WHM server?

This is on a unmanaged dedicated webserver used to run Opencart 2.3.0.2 PHP 7.1 Server specs: Xenon 2.13Ghz 8 Core 32GB RAM CentOS 7.8 WHM v86.0.18 The traffic looks like I am being ...
0
votes
0answers
4 views

Composer autoloader not loading my clas [migrated]

I am starting a lumen project and I am facing an issue with namespaces and autoload. In my composer.json file in the project root directory it states the following: "autoload": { "classmap"...
-2
votes
0answers
10 views

Composer autoloader not loading my clas [duplicate]

I am starting a lumen project and I am facing an issue with namespaces and autoload. In my composer.json file in the project root directory it states the following: "autoload": { "classmap"...
0
votes
0answers
18 views

How to upgrade libc6 package on Deepin?

I want to download php but I got this error libc6 (>= 2.29) but 2.24-11+deb9u3 is to be installed And I tried to upgrade libc6 package but I couldn't. I ran the following command sudo apt-...
-1
votes
1answer
156 views

How to install php in Linux (Debian) on ChromeBook?

I am trying to install php in the Linux I set up, on my Chromebook,when activating developer mode. But, somehow it does seem to be working, despite a couple attempts on two different approaches: ...
0
votes
0answers
6 views

cPanel Centos6.10 php install versus Centos 7.7 php install - mod/extension differences

GoDaddy is my hosting provider, I am in the process of upgrading from their Gen3 VPS to a Gen4 VPS. The Gen3 was on Centos 6.8 and the new Gen4 is on Centos 7.7. My original PHP install for apache ...
0
votes
0answers
30 views

MySQL server crashes after installing wordpress

I have an Ubuntu 20.04 Server I made a fresh install of Ubuntu 20.04 Installed webmin Installed Apache/2.4.41 installed and enabled php 7.4 Installed /usr/sbin/mysqld Ver 8.0.19-0ubuntu5 for Linux ...
0
votes
0answers
24 views

Add sub-element to function list in Notepad++

When I code php, I use Notepad++ with nppFTP on the left side of my screen, and the browser on the right side, to quickly see the changes. On bigger projects, I can easily surpass 1100 rows of code ...
1
vote
1answer
29 views

Apache Piped Log for PHP error messages

TL;DR Piping Apache error logs to a custom script doesn't work as expected. Apache sends core meassages to the script. But logs from PHP or authz_core_module still end up in Apache's default logging ...
0
votes
1answer
56 views

Is it logically possible for a CLI PHP script to update PHP (itself) while running? (On Windows.)

I run Windows 10. On it, I constantly run CLI PHP scripts. My PHP installation dir is C:\PHP. Whenever there is a new version of PHP (stable branch), my scripts detect this, download the new ZIP file ...
0
votes
1answer
68 views

Cannot access WAMP over internet

I have installed WAMP 3.2 on Windows Server. I need to access the phpmyadmin running on localhost of wamp over the internet from anywhere. After googling things, i found the modifications in httpd-...
0
votes
0answers
9 views

redirect only subdomain to domain, but not files, also deny php file access (.htaccess)

RewriteEngine On RewriteCond %{HTTP_HOST} ^cdn\.swat\.host$ [NC] RewriteRule ^ https://swat.host [L,R] I tried this ^ But it will redirect anything after / too. Also I would like to deny php ...
0
votes
0answers
19 views

XenForo folder permission error

Recently I migrated my website from a server to another. The OS and the web server software are the same on both servers (Apache HTTPD on CentOS 7). When I transferred the forum I encountered a ...
1
vote
2answers
34 views

MacOS Mojave - remove PHP installation from php-osx.liip.ch

I followed this tutorial https://php-osx.liip.ch/ and installed the php 7.3 version on MacOSX Mojave, running curl -s https://php-osx.liip.ch/install.sh | bash -s 7.3 But now I changed my mind and I ...
-1
votes
1answer
40 views

Problems With XAMPP (1 of 2 services running)

When I try to start Apache, it gives me this error: 11:30:58 PM [Apache] Error: Apache shutdown unexpectedly. 11:30:58 PM [Apache] This may be due to a blocked port, missing dependencies, 11:...
0
votes
0answers
11 views

Failed to compile php extension/modules manually

I tried to install readline modules from source, following this tutorial → https://ma.ttias.be/how-to-compile-and-install-php-extensions-from-source/. I already followed all the procedures, ...
0
votes
1answer
99 views

Updating from PHP 7.1 to PHP 7.3

I am currently on PHP 7.1 and wish to upgrade to PHP 7.3. Is it recommended to upgrade directly from PHP 7.1 to PHP 7.3? Or is it the recommended way to upgrade to PHP 7.2 first and then to PHP 7.3? ...
0
votes
0answers
19 views

Why do my CLI PHP scripts show up in such a weird manner in Task Manager on Windows 10?

I run many CLI PHP scripts all the time. When opening Task Manager, "Processes" tab, I would expect to see something like: My Whatever Named CLI PHP Script #1 My Whatever Named CLI PHP Script #2 My ...
0
votes
0answers
13 views

Client IP in Apache log is different to that in Application log

I have a strange issue, and it is related to Apache and my PHP application. From my application, all Header variables are as below: 2020-03-29 10:12:51 HTTP_HOST is 47.56.247.44 ...
0
votes
1answer
56 views

interpretation of yum error messages

I tried to upgrade php 5 to php 7 on CentOS6 but failed with errors like this: --> Finished Dependency Resolution Error: Package: php-mcrypt-5.3.3-5.el6.x86_64 (epel) Requires: php(api) ...
0
votes
1answer
42 views

phpinfo() and convert --version show different versions of ImageMagick

I'm running CentOS 7.7 and a few days ago I noticed that my ImageMagick library is missing the ImagickKernel class. So after a lot of research, I got to the conclusion that I'm running an outdated ...
2
votes
1answer
84 views

What exactly does the binary “deplister.exe” do in C:\PHP?

The Windows version of PHP has a file called "deplister.exe" in it. When I run it, it outputs nothing at all, and it doesn't respond to "-h" or anything. What exactly is the purpose of this file? I'...
0
votes
0answers
7 views

trouble with publishing new post in wordpress (redirect incorrect)

I have a news wordpress website with 1 GB DB. Sometimes when I want to publish a new post, After "publish" it will redirect to 404 (or 301 with a plugin). After checking all post, I see original post ...
0
votes
1answer
39 views

phpmyadmin: Failed opening required '/usr/share/php/gettext/gettext.inc'

Trying to access phpmyadmin on my centos 7 server, I get the following error: Fatal error: require_once(): Failed opening required '/usr/share/php/gettext/gettext.inc' (include_path='.:/usr/share/...
0
votes
3answers
318 views

What does “cloning a repository” mean, and why is it claimed to be a necessary step to install this PHP library?

Usage After cloning this repository (git clone https://github.com/naneau/php-obfuscator) and installing the dependencies through Composer (composer install), run the following command to ...
0
votes
0answers
28 views

How to replace PHP's open_basedir with IIS AppPool permissions?

For years I use the IIS Application Pool Identity to restrict access of PHP (as a FastCGI module) to certain website's folders, and for years I can't understand — why everything is accessible to the ...
1
vote
0answers
36 views

Unresponsive server along with virtual machine after high load on database

I faced the problem that while running resource consuming command and opening a page I got both the server and virtual machine unresponsive. I am using standard server pack for PHP 7.2: apache, php-...
0
votes
0answers
32 views

Discover PHP scripts that are calling URLs

Just like: Apache/Linux server, DoS attack from own IP I'm experiencing something quite odd as the OP in that question. I had a similar problem, a kind of DoS attack using my own server IP. I found ...
0
votes
0answers
30 views

zabbix 4.4 frontend 503 error for assests

I am trying to setup a zabbix server, to which I will eventually connect remote agent hosts. Zabbix's claim to be up and running in 5 minutes seems to be a little misleading, but that is for another ...
0
votes
0answers
18 views

After making a PHP framework/library, is there something I am expected to do on a technical level? [duplicate]

I've made a PHP framework/library. It's only "integrated into PHP" in the sense that it's a series of .php scripts, you can include the main one, and then run a single function to "kickstart" it. ...
0
votes
0answers
18 views

Debian 10 Mariadb libmysql client version update not possible

we are running an MariaDb Database and using php5.6 I just want now to upgrade the old Database Client version libmysql - mysqlnd 5.0.11-dev - 20120503 to a newer. So I can't see one in my Debian 10 ...
2
votes
1answer
50 views

Manage Docker container files from IDE

I have a docker container php5.6-apache that's hosting my website on my local server. I was just wondering if there is an IDE that can manage files stored in a docker container. If there is one, ...
0
votes
0answers
42 views

API endpoint has ERR_EMPTY_RESPONSE in Chrome, but works in Firefox

I have a dev environment running locally: Apache PHP Self-signed wildcard SSL certificate When I go directly to one of my API endpoints in Chrome, I see the "ERR_EMPTY_RESPONSE" error. This also ...
0
votes
0answers
31 views

Is there any way to enable “non-silly” function auto-completion in Notepad++?

Notepad++ is an advanced text editor. I use it for 100% of my programming-related tasks and for editing or viewing any text-based file format. If you use the "Auto-Complete" feature, it allows you to ...
0
votes
1answer
28 views

Do I need Composer on my production (GoDaddy) server?

I have been trying to get an answer to this for years (and yes I have looked at answers here, SO and elsewhere). My situation: I have a modest, but fairly complex site with only me working on it. ...
1
vote
1answer
52 views

Why does start command in cmd windows10 put another start in the newly opened window with php?

What I was trying to do is, I want to run a local php server and then open http://localhost:8000 in chrome. I made a bat file in my windows 10 OS for this. Here's my first attempt: php -S localhost:...
0
votes
0answers
85 views

Php can not be found on MSYS2

I am using Msys2 on windows10 $ pacman -Sl | grep 'pacman ' msys pacman 5.2.1-6 [インストール済み] Then,I tried to install php. $pacman -S php error: can't find target. : php There is no package php. $ ...
-1
votes
1answer
80 views

How to install vcruntime140.dll without admin rights?

I am starting to learn PHP, and installed php. The problem is that I need vcruntime140.dll to be able to run PHP. But it requires admin rights. Is there any way I can install it?
0
votes
0answers
18 views

Php 5.6 script reading directory from SuSe Linux Share slow

I am trying to update some old versions of Apache and PHP on some windows webserver machines. So originally I have Php 5.1.2 and Apache 2 on a Windows 7 32 bit machine. I recently purchased some ...
0
votes
0answers
234 views

How to investigate long response time for request

Developers noticed quite long response time (11 seconds) for Ajax requests on our website. The request is waiting for response in queue, because the browser already send 4 different Ajax requests. I ...
0
votes
0answers
67 views

How can I install browscap.ini with Cpanel

I've got a web-hosting service where I don't necessarily have access to the area, nor access to rebooting Apache or things like that. I want to install browscap.ini extension for PHP, but I'm not sure:...

1
2 3 4 5
39