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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

Setting up a Contact Form to capture customer email [closed]

I'm currently working on a devsite for a international students agency and the website has a "Contact Us" form that allows the visited user to contact the company. I'm currently hosting the ...
1 vote
1 answer
47 views

Server Side Amazon Affiliate Ads Possible?

Is it possible to have server-side Amazon Affiliate ads - from my server, in order to bypass ad blockers? If I use the code supplied by the Amazon Affiliate tools, I get something like this (...
2 votes
1 answer
44 views

Will adding parameters to URLs with JavaScript to pass information to Google Analytics affect SEO?

I have written some simple js/php that adds WordPress taxonomies and categories of posts to the urls of blog posts so that we can search in google analytics which posts with matching taxonomies are ...
3 votes
3 answers
109 views

How to analyse website performance

I've tried searching a lot and basically here is the problem. I have a website but I'm unable to pin point the reasons of why the performance of the website is so slow. We have shifted to a high end ...
2 votes
1 answer
28 views

Does Google index text from CSS and HTML files?

Our website's template is for a job directory site, but it was repurposed for a school directory. The CSS, HTML, and PHP strings still show Company in the code, but the company name can't be seen on ...
-1 votes
1 answer
500 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?
1 vote
1 answer
93 views

Google Webmaster Stats

Google Webmaster Stats I'd want to show some stats much like the Google Webmaster Tools with the following things: crawl stats, links to your site, structured data, etc. What is the way to get ...
0 votes
0 answers
13 views

How do I show 2 or more categories as a h1 title in category.php in WordPress after clicking a link with a plus mark? domain/category/X+Y/

When I click on a link for example https://hokkaido.a4jp.com/category/en-beaches+en-free/ I get the first category "beaches" in the title but how do I get 2 keywords or more. <?php ...
2 votes
1 answer
136 views

Will redirecting to a mailto URL prevent spam bots from harvesting the email address?

On https://www.heartinternet.uk/blog/15-ways-to-hide-your-email-address/, under the sub heading Replacing with a PHP script, a method to hide email addresses is presented that I like very much. On the ...
1 vote
0 answers
37 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, ...
1 vote
0 answers
30 views

How to place manual ads of Google Adsense in the pages where URL is dynamically changing?

I have a url like www.example.com/test/aYnThInG Where last part is a random string,it is creating randomly. In this page I have placed manual Google Adsense ads. When we open this url instantly after ...
0 votes
0 answers
35 views

Getting Visitors' IP Addresses and Showing Related Content

I want to list certain things for different cities. In other words, when someone from New York visits my website, I want to list "Best Language Courses in New York". I can do that by using ...
0 votes
0 answers
11 views

Looking for web hosting with specific properties [duplicate]

I tried to search google and spent many hours trying to figure out whether are web hosting options with the following properties: A shared web hosting. Not a dedicated Server. PHP 8 or above. MySQL 8 ...
0 votes
0 answers
37 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 ...
0 votes
0 answers
23 views

Issues with infinityfree and filezilla

very new to PHP and web hosting so bear with me! Having issues with infinityfree hosting. I'm trying to reach 'index.php' inside 'PHP-Assignment2-DylanB' but having no luck. The page refreshes and ...
1 vote
0 answers
16 views

AWS EFS setup for general site, throughput concerns

I want to use AWS EFS combo to setup a site with 2 EC2 instances reading off an EFS drive. My site is basic, Php Mvc ( all dynamic content ), 20 MB of files spanning templates ( + users templates ), ...
3 votes
2 answers
62 views

Prevent gobbledegook submissions to web contact forms

I have a PHP web contact form I put together which checks for spam words and cleans out any HTML coding before sending, but I am receiving some messages with gobbledegook, which I believe the sender ...
4 votes
3 answers
59 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 ...
1 vote
1 answer
52 views

How can I have either php or html file running - whichever exists

I have these two rules and they appear to be working. How can I combine them into one rule #Force hmtl extn RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.html -f RewriteRule ^(....
2 votes
1 answer
234 views

Semrush says sitemap.xml contains an incorrect page due to non-canonical URL

I am having an issue with my home page or index.php page. When I set canonical to <link rel="canonical" href="https://example.com/" /> I get an SEO error from Semrush for ...
3 votes
1 answer
6k views

Which version of XAMPP is compatible for php 5.4.45 and where can I find it?

My hosting server have php 5.4.45 installed along with mysql 5.6.28-76.1 cpanel 58.0 (build 47) I've got so many errors because I was using latest XAMPP with PHP 7.1 on my computer. I want to be in ...
2 votes
1 answer
61 views

Wordpress - Ignore a server directory containing index.html if being viewed in preview mode

I have wordpress installed on a root directory. Wordpress was often so slow, I created a node script which will look at all pages on the website, and a create a static directory for each one with an ...
6 votes
3 answers
1k views

Why can't update.php connect to my database when my site connects to it just fine?

I'm trying to upgrade my MediaWiki installation. My site runs just fine locally at http://localhost:8888/. I can connect to my database using the "Socket" connection on Sequel Pro on port 8888. My ...
0 votes
0 answers
16 views

"Cannot Modify Header" error when moving MediaWiki to a subfolder on localhost

I installed, configured, and populated MediaWiki on localhost and have been maintaining my wiki locally for 4 years. Today I simply dragged the mediawiki folder into a subfolder I created for better ...
1 vote
1 answer
66 views

Using Google Analytics on a Javascript widget

I've built Javascript widgets that have been installed on other websites. How can I use google analytics on my widgets like I would use analytics on a web page to track the traffic? FYI, the ...
1 vote
1 answer
24 views

Google Analytics: Universal Analytics Behavioural Flow not populating

GA: UA behavioural flow worked perfectly (I think, I am getting confused on all the different implementations) when I added this snippet of code to my app.component of my Angular 10 project: ...
0 votes
1 answer
27 views

<title> tag and favicon aren't correctly showed by Google Search [duplicate]

I'll go straight to the point. For a few days I've been working on the SEO on my website and I noticed that the favicon still isn't showed by Google Search and that the <title> tag is showed ...
4 votes
1 answer
129 views

How to promote the quality/security of your a website to your its customers?

Our organization is building a Drupal web platform that we aim at reselling as a cloud service. In order to provide our customers with maximum confidence in our solution, we're looking at ways of ...
7 votes
2 answers
974 views

HTTP2 is enabled and working, but PHP $_SERVER['SERVER_PROTOCOL'] still says "HTTP/1.1"

I've been migrating to a new host (AWS Lightsail with a Ubuntu instance) and while everything is working just fine I'm running into a quirk that I can't quite figure out. I've enabled HTTP2 on my ...
1 vote
0 answers
27 views

Which Laravel 8 CMS to learn as Beginner? [closed]

I'm learning web development and need to provide a simple CMS for a customer, with which he can manage his website. For now creating posts on his website is all he needs. There seem to be a ton of CMS ...
2 votes
1 answer
30 views

Updated MediaWiki to version 1.31. Now Spam Blacklist and Title Blacklist are causing errors

I had (I think) version 1.23 because that's what the auto-installer on my host put there. So I uploaded the files for 1.31 and ran the update.php script. The site seemed to run fine until I tried to ...
2 votes
2 answers
154 views

Ensure that all pharma URLs are removed from Google after cleaning up from a hacked site

My client's website was hacked by a "pharma hack" which was a WORDPRESS website. Since then we reworked the website(design and logic) and it's a completely new website that is no longer ...
1 vote
1 answer
47 views

How can I create a shared PHP $_SERVER directory to use as an include() path for shared code?

At my previous company we had a shared $_SERVER['shared_code_dir'] directory that was usable by all our sites on our server. I know in php you can't use the include() function with an https web ...
1 vote
1 answer
73 views

PHP file not running using XAMPP [closed]

I recently installed XAMPP v.3.2.2. I have since been trying to test if PHP is properly configured by Apache. But I keep getting this error every time I try to run any PHP file. I have stored the ...
3 votes
1 answer
2k views

Installing mPDF PHP library for website without root access

I would like to install mPDF for use on my website. However, I don't own my own server, and am using shared web hosting. I can log in using FTP, but AFAIK I do not have access to a terminal nor root ...
2 votes
0 answers
80 views

How to make a content management system to load webpages without a PHP loader and its query strings? [duplicate]

I have a MediaWiki 1.35.2 Hebrew website which is principally all core; I host that website on a shared Apache, Nginx (as reverse proxy), PHP and MySQL hosting environment. The default behavior of ...
0 votes
0 answers
39 views

Permission Problems in ubuntu 18 avoid wordpress plugins to run?

i'm getting 2 main errors when i activate a wordpress plugin. It was working fine but just after changing some settings got 500 internal error. After debug I found these warnings like if there were a ...
7 votes
3 answers
1k views

How to submit shortened URLs to Google so that they are included in the index

I am working on a project to create a URL shortener. I have successfully gotten it to create short URLs, but I would like to submit them to Google. When I submit a short URL via Google Webmaster ...
0 votes
0 answers
166 views

System PHP version upgraded to 7.3 but domain is stuck at 7.2

I recently upgraded PHP from 7.2 to 7.3 on my Centos and Apache server by using cPanel/WHM. I'd updated the System PHP version to 7.3 but the domain is still stuck at 7.2. When I attempt to upgrade ...
1 vote
1 answer
53 views

Schema data for Google & Bing bots crawling partial hydrated pages

We are using static html, combined with partial page hydration via javascript. Visitors download a full html page when they first arrive at the website, from there javascript intercepts any internal ...
3 votes
1 answer
550 views

PHP 7.3 doesn't show in Web Platform Installer (WPI) in IIS 8.5

I have 3 Windows servers, two of them are Windows Server 2012 R2 - IIS 8.5 and the other is Windows Server 2012 - IIS 8.0. I wanted to update to PHP 7.3.x automatically through the Web Platform ...
1 vote
0 answers
61 views

How can I add an image to a WhatsApp message created from a click on my website through the API?

I want to send an image, text with product URL to WhatsApp from my website when the user clicks on the WhatsApp icon. Currently I can send text with product URL but I don't know how to add a image ...
2 votes
3 answers
593 views

RewriteRule not working on new host for URLs containing a directory powered by a PHP file with the same base name

I just moved from a dedicated server to a shared server to save money, but now my htaccess file doesn't work. I think its 1and1, but I'm not 100% sure. What the heck is wrong? Any ideas? The single ...
0 votes
0 answers
83 views

Adsense not showing

This is kind of a strange glitch, but still..? I can’t figure it out. When I go to a question on my database almost every time, the ads don’t show, but when I change the url by adding page.php?...
0 votes
1 answer
917 views

How to fix warning in php : Warning: Undefined variable $nameError in C:\xampp\htdocs\mysql\insert.php on line 84 [closed]

As a beginner in PHP, I was trying to learn how PHP runs along with MySQL. So I was practicing how to insert data into a database using a form. So far this is what I did. <?php error_reporting(...
1 vote
0 answers
70 views

I consider if I should delete a /load.php?lang= URL resource and I don't know if it would cause a problem

I have an Hebrew 1.35.1 all-core MediaWiki website; generally I have no significant performance problems reported in Google Page Speed insights with that website besides one problem which occurs in ...
3 votes
2 answers
4k views

server reached pm.max_children setting (5)

Sorry, I am new and deleted my question thinking I had posted some info I should not have. I am posting the edited question once again: In our website, php5-fpm takes care of the PHP calls made by the ...
2 votes
1 answer
45 views

Phpmyadmin - How to let users create and manage their own databases without allowing them to see other databases

In PhpMyAdmin I want to allow certain users the ability to create and manage databases without having to manually give them permission to every database they need. I've noticed when giving a user the ...
2 votes
5 answers
344 views

Can I develop and test WordPress and PHP without a domain name?

I intend to learn and develop a website using WordPress and PHP. I read from the web that as a start, these two are sufficient for a typical website with database storage and retrieval/query ...
2 votes
1 answer
78 views

Can I use Google Analytics on URL shortener redirects powered by PHP?

I have a short URL website like Bitly which currently redirect users with PHP from my site to a site of their choice. I want to add Google Analytics to the redirect pages but I am stuck on the problem ...

1
2 3 4 5
23