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
16 views

How can I test the PHP module in .htaccess

I have installed XAMPP on my Mac for testing and teaching purposes. One thing I need to do is set up some settings, but I can’t guarantee whether PHP will be running as a module, so I can’t guarantee ...
Manngo's user avatar
  • 293
1 vote
1 answer
51 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 ...
stevland's user avatar
1 vote
0 answers
122 views

Google is accidently indexing query string URL parameters and causing my website bandwidth increase

Google is currently indexing query strings URLs of my website. Google has currently indexed almost 112k URLs that all are duplicate version of other URLs causing my website to slow down and negatively ...
mehtab fatima's user avatar
1 vote
0 answers
79 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 ...
Pat Dobson's user avatar
0 votes
1 answer
93 views

Matching cyrillic characters that look like latin characters?

I would like to identify Cyrillic characters that look like Latin characters and have a list I can refer to. How would I go about that using PHP and regular expressions?
Michael Moriarty's user avatar
0 votes
0 answers
63 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&...
Madamadam's user avatar
  • 101
1 vote
0 answers
825 views

mysqli_fetch_assoc(): Argument #1 ($result) must be of type mysqli_result, string given [closed]

I updating a old volunteer website from Joomla 2.5 to Joomla 4 (PHP 5.4 to PHP 8.1) and mysql to mysqli. A few parts of the website were created by hand with php. So far by searching I have been able ...
J Curtis's user avatar
1 vote
0 answers
25 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 ...
Dave's user avatar
  • 11
1 vote
0 answers
45 views

Php header 301 redirect still let google to index content but now from newly redirected domain

I've redirect my oldsite.tld site via PHP header like this. <?php $url_sufix = "blabla"; header("Location: http://www.newsite.tld/".$url_sufix, true, 301); exit; After 3 mo I ...
Ivan Loguz's user avatar
2 votes
1 answer
436 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 ...
igalsc's user avatar
  • 21
1 vote
0 answers
256 views

Plesk Obsidian (18.0.48) - 413 Request Entity Too Large (nginx)

Hello recently I set up a server using Ubuntu 22.04.1 LTS and Plesk Obsidian 18.0.48. However I encountered a problem when uploading files around 1GB of size. The website I am running is a docker-...
Anbosuki's user avatar
1 vote
0 answers
32 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 ...
kwh71787's user avatar
  • 111
0 votes
0 answers
94 views

htaccess: differentiate between directory and directory with query parameters

I have a little PHP framework like this: ?page=page-name ?page=page-name%slug=slug-name (in the case of plural list pages) I'm trying to pretty her up. /exercises → ?page=exercises /exercises/...
sheriffderek's user avatar
0 votes
1 answer
266 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 ...
Worsha's user avatar
  • 15
0 votes
1 answer
170 views

Rewrite Ampache music server URL/DocumentRoot with .htaccess

I have ampache music server installed under example.com/ampache/public. What should I write in example.com/.htaccess file to change the appearance of example.com/ampache/public into example.com/...
immeckro's user avatar
1 vote
1 answer
24 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 ...
Worsha's user avatar
  • 15
4 votes
1 answer
153 views

Multiple Websites - PHP Session Isolation

I have a LAMP stack on a VPS where I set up multiple virtual hosts for different (sub)domains: example.com www.example.com dev.example.com Now, I would like to make sure that PHP session data is ...
Tando's user avatar
  • 41
1 vote
1 answer
45 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 ...
user2267379's user avatar
1 vote
1 answer
418 views

What could be the cause of periodic "Failed opening required '__DIR__/wp-blog-header.php'" for a WordPress site?

My site works on WordPress. Today it sometimes works, sometimes doesn't. The log is below. Could you tell me whether this is the fault of the hoster? I mean if the problem had something to do with the ...
Trts's user avatar
  • 113
1 vote
1 answer
48 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 ...
Rohit Gupta's user avatar
  • 2,067
2 votes
0 answers
101 views

What are the best practices for converting php website to nextjs website?

I have a website built using HTML and PHP. I want to revamp the design of the website but the code is literally messed up. It contains a lot of duplicate and junk code and cleaning it will be too much ...
vardan Kaushik's user avatar
3 votes
0 answers
142 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 ...
Guy's user avatar
  • 211
2 votes
1 answer
189 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 ...
jay jomer's user avatar
-1 votes
1 answer
552 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?
jay jomer's user avatar
2 votes
1 answer
391 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 ...
Frank Conijn - Support Ukraine's user avatar
2 votes
0 answers
174 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
0 votes
0 answers
39 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 ...
Çağlar Öksüzoğlu's user avatar
0 votes
0 answers
43 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 ...
WebQuest's user avatar
1 vote
0 answers
22 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 ), ...
James9245's user avatar
4 votes
3 answers
382 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 ...
Maisen1886's user avatar
2 votes
1 answer
830 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 ...
user979331's user avatar
1 vote
1 answer
177 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 ^(....
Rohit Gupta's user avatar
  • 2,067
2 votes
1 answer
115 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 ...
Sean's user avatar
  • 123
0 votes
0 answers
25 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 ...
Eric Hepperle - CodeSlayer2010's user avatar
1 vote
1 answer
138 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
33 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: ...
Gary Kelly's user avatar
0 votes
1 answer
67 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
34 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 ...
Artur Müller Romanov's user avatar
2 votes
2 answers
227 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 ...
shady's user avatar
  • 23
1 vote
1 answer
51 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 ...
Guy's user avatar
  • 41
1 vote
1 answer
190 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 ...
Aditi's 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 ...
RAMOS's user avatar
  • 57
0 votes
0 answers
62 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 ...
gallo2000sv's user avatar
0 votes
0 answers
249 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 ...
mrlexington's user avatar
1 vote
1 answer
130 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 ...
Tom's user avatar
  • 123
1 vote
0 answers
651 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 ...
Mantykora 7's user avatar
0 votes
0 answers
131 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?...
daniel eymer's user avatar
0 votes
1 answer
2k 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(...
Arnob Jr.'s user avatar
1 vote
0 answers
81 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 ...
timesharer's user avatar
2 votes
5 answers
566 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 ...
raymondraymond1's user avatar

1
2 3 4 5
24