Questions tagged [php]
PHP is a free server-side, general-purpose scripting language that is especially suited for web development. Originally PHP stood for Personal Home Page, now it stands for PHP: Hypertext Preprocessor.
1,184 questions
1
vote
2
answers
58
views
Google crawling excessive URL on my website
My website is currently encountering a case where we have approximately ~11 milion currently crawled but not indexed URLs. Resulting in our listing page not showing up in Google search result, all ...
0
votes
0
answers
19
views
Google Search Console can't find my XML sitemaps generated via PHP [duplicate]
I'm trying to generate dynamic sitemaps using PHP. The script saves files like:
/public_html/sitemaps/sitemapID-1.xml
The main sitemap index (/sitemaps.xml) is working fine, but some child sitemaps ...
0
votes
0
answers
20
views
how to convert Excel spreadsheet to json API
I have a client that wants to update and add properties and property details including images via an excel spreadsheet. They are using Wordpress as a CMS but I want to keep the property section ...
0
votes
1
answer
41
views
How do I create a single php handler script that works for what appear to be multiple "directories"
I would like a single php script to serve as the handler for what appear to the end user as multiple pages. For example...
https://mydomain.net/abc
https://mydomain.net/foo
https://mydomain.net/bar
.....
0
votes
0
answers
52
views
Googlebot Crawling & PHP-FPM Performance - A Strange Correlation
This may sound bizarre, but we've thoroughly tested this and found a strong correlation between Googlebot traffic/crawling behavior and PHP-FPM configuration.
We run a large forum with over 100,000 ...
0
votes
1
answer
33
views
Opcache.php return an empty page
We are using PHP + FPM 8.2 + OPCache. In the past, we use https://www.repairrar.com/opcache.php to check its status. But today it returns an empty page. Although it shows an empty page, I view the ...
0
votes
1
answer
34
views
software/app to resize images to set size [closed]
I have a gallery page featuring different users. Each user upload an image of themselves that is displayed on the gallery page.
My problem is that I need to fit all the images to a set size of 250PX ...
1
vote
2
answers
2k
views
How is a website using url "example.com/index.php?id=" for every page storing and calling its content?
It's been a while since I've been heavy into webdev and I have a question about ?id=.
The website in question is not using a typical silo structure, as in:
"example.com" > "example....
2
votes
1
answer
164
views
Build PHP for DirectAdmin using custombuild from alternative sources
I wanted to build php82 for DirectAdmin using Custombuild and got the result:
PHP 7.4.30 Installed.
Downloading php-8.2.0RC1.tar.gz...
######################################################...
3
votes
1
answer
319
views
Is Google Analytics being too conservative?
I wrote my own statistics logging script. It excludes a lot of bots - ie any user-agent that contains any of the following is excluded:
bot
spider
crawl
saashub
owler
researchscan
go-http-client
...
1
vote
1
answer
76
views
tried to allocate 4096 bytes) in /var/www/vhosts/rede.ca/httpdocs/wp-includes/
I upgraded from WordPress 4.9.6 to 6.3 and initially everything seemed fine.
I installed the latest version of the X theme (by Themeco) with no issue.
But when I applied my old X child theme the site ...
1
vote
0
answers
239
views
Installing PHP extensions in Plesk Obsidian - idiots guide required
I'm trying to upload files from my server to an another server via SFTP.
I'm running Plesk Obsidian 18.0.31 Update #3 - CentOS 6.10 (Final)
From what I understand I need to install some extensions ...
0
votes
0
answers
110
views
How to install PECL/XMLRPCi from within Plesk 18.0.49
Being a newbee with Plesk, I'm trying to install PECL extension XMLRPCi from within Plesk 18.0.49, but I get this error message:
Failed to download pecl/XMLRPCi within preferred state "stable&...
1
vote
0
answers
29
views
Google not indexing pages using php variables [duplicate]
For example google isnt indexing this page.
https://yorkes.live/beach.php?location=flahertys
however does index;
https://yorkes.live/privacy-policy-yorkes.pdf
I have a sitemap.xml up and working.
This ...
2
votes
1
answer
909
views
Problem with Apache rewrite with wildcard domains
I have a PHP app on Apache2 that is supposed to treat subdomains on the code level.
My goal is to redirect any wildcard subdomain to the main domain's index.php. I do not use .htaccess.
I searched ...
1
vote
0
answers
62
views
Contact Form Emails not displaying on IOS devices [closed]
I'm having an issue that appears to be localized to IOS devices, those, particularly that use the default mail client.
Emails are sent to these clients automatically through their website contact ...
0
votes
1
answer
837
views
Reverse proxy pass websocket request with PHP in apache
I have a websocket server that I need to protect behind a PHP session and currently I'm unable because I can't make PHP to reverse proxy to the websocket server. Let's go to the details.
I have a ...
1
vote
1
answer
41
views
How can you generate a sysid with PHP? [closed]
I worked with ServiceNow for many years. They have a very interesting database.
Every record in the entire database has a field called the said. This number combined with a table name makes that ...
1
vote
1
answer
115
views
Third Party Mail Sending Solution (Sendgrid/Sendmail/etc) vs using personal address by SMTP
I know this is possible to send mail through "PHPMailer" by using SMTP of a personal address. (By creating a personal Gmail or yahoo address, and by using PHPMailer to send emails through ...
1
vote
1
answer
75
views
Does the server have to restart if opcache is enabled in php.ini?
I have just found it in cPanel, where I can set options and php.ini file. I have enabled opcache option. I am not seeing any effect.
It's a shared server, so I can't restart it. Does the server have ...
3
votes
0
answers
474
views
PHP file triggers on every page load?
I've got a WordPress website that has a script which seems to be triggering every time any user loads a page. This PHP script is very simple (less than 25 lines) and is meant to be an API endpoint, so ...
-1
votes
1
answer
593
views
Does googlebot crawl the variable name of a php [closed]
Does Googlebot crawl the dynamic variable name aside from its value? For example in my PHP I use the variable _company_name. In the front-end is is _company_name saved in bot crawl also?
2
votes
0
answers
237
views
How to 301 redirect site alias domain to a subdomain on the same hosting?
We have the following problem in Cpanel / htaccess file when trying to 301 redirect example.hu (alias) pages to example.com (subdomain) pages:
Cpanel example.hu to example.com redirection is working, ...
0
votes
0
answers
52
views
How can I include C#, php, NodeJS, etc. in one website?
I'm wondering how I can include C#, PHP, NodeJS all in one website.
Are there servers that provide ways to use all 3, and possibly more (like WordPress)?
Maybe I need more than one server, but I'm ...
5
votes
3
answers
732
views
Does Googlebot call every link separately (with a new request)?
Does Googlebot call every link separately (with a new request) or does it follow all links by JavaScript (for example by click event)?
I have a vue-js website which contains all the links and of ...