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 ...
user avatar
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 ...
user avatar
-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?
user avatar
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 ...
user avatar
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 ...
user avatar
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, ...
user avatar
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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
  • 1
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 ), ...
user avatar
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 ...
user avatar
2 votes
1 answer
235 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 ...
user avatar
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 ^(....
user avatar
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 ...
user avatar
  • 123
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 ...
user avatar
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 ...
user avatar
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: ...
user avatar
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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
  • 23
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 ...
user avatar
  • 41
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 ...
user avatar
  • 11
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 ...
user avatar
  • 57
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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
  • 123
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 ...
user avatar
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?...
user avatar
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(...
user avatar
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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
1 vote
1 answer
75 views

Htaccess - replacing a query string with a numeric value

I don't know why but this htaccess item doesn't work for me. I have something like this after update user profile public/user_profile/show_user.html?id=4 and I want to have public/user_profile/...
user avatar
1 vote
0 answers
21 views

How do I configure the available memory in my PHP-FPM pools?

I have 20 GB available for PHP-FPM on my server, the average consumption of my PHP-FPM pools is 55 MB. I want to create a www.conf for the site and a www2.conf for routines that run during the day. I ...
user avatar
0 votes
1 answer
214 views

There is a way to block a access to a page if user typing the url?

I have a php page A which redirects to page B. I have a shortlink on page A. I want access to be denied to A unless the user accesses from the shortlink. The problem is that the shortlink creation ...
user avatar
  • 23
1 vote
1 answer
403 views

PHP Undefined index: REDIRECT_STATUS - error 404

Custom 404 page in PHP using .htaccess file. If page dosen't exist redirect to error.php. I don't know why but it doesn't work. Notice: Undefined index: REDIRECT_STATUS on line 2 <?php $error = $...
user avatar
1 vote
1 answer
19 views

Site B filling out form from Site A and Site A processes form submittal [closed]

I have a need for website B to grab a form from website A and post the form data to a process on website A. Site A is the 'keeper of data submitted', and site B is an approved client of A that is ...
user avatar
0 votes
1 answer
62 views

Are static websites significantly faster than dynamic? [duplicate]

Lets say we have a blog site: METHOD #1 When an admin creates a new blog post, it will be added to the database. When a user loads the website, PHP will check the database for all posts. METHOD #2 ...
user avatar
2 votes
0 answers
26 views

Problem with URL path when I applied SEO friendly URL [duplicate]

I was working on PHP project and making SEO friendly URL Like, OLD : http://example.com/list_product?q=men-top-wear New : http://example.com/list_product/men-top-wear Here is my .htaccess file: ...
user avatar
  • 21
4 votes
2 answers
109 views

Bot calling my php script too fast

I have a hobby website, where a php script presents a html page displaying information for a particular surname. I am capable of displaying information for over 100,000 surnames. So the script is ...
user avatar
  • 141
1 vote
0 answers
293 views

mysqli_connect() & GoDaddy (New Versions of PHP) [closed]

I am using GoDaddy to host my website and it says in php that I have a Fatal error: Uncaught Error: Call to undefined function There is a problem when I use "mysqli_connect()" function in ...
user avatar
  • 121
1 vote
1 answer
86 views

How does "PHP Extended Support" work?

Some big providers like 1&1 or Stratos sell "PHP Extended Support" to their customers. These practices have caused - for good reason - a lot of controversy, but this is not the topic. Do ...
user avatar
2 votes
1 answer
36 views

htacces rules for mobile and desktop site

I have a site that stores an index.php for desktop computers and a mobile.php for mobile devices. Both files are in the same directory (say /var/www). As default the user accesses index.php and if ...
user avatar
0 votes
0 answers
106 views

Running Python script via PHP exec() on shared hosting

I have a PHP script that launches a Python script. It works fine when I am testing locally, but not on the shared hosting server. I've made the Python script, as well as the Python program files, ...
user avatar
  • 109
2 votes
1 answer
57 views

Use PHP 5.6 for a site under Control Web Panel Pro rather than the global PHP 7.3

I'm using PHP 7.3 on a CWP Pro installation. Most of the domains are fine with 7.3 but on one I'm using PHP 5.6 installed with PHP selector V2. .htaccess: AddHandler application/x-httpd-php56 .php The ...
user avatar
  • 31
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 (...
user avatar
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 ...
user avatar

1
2 3 4 5
23