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

Facebook debugger not finding meta tags

Currently my site (made in Laravel) only displays title and url when shared, even though the og:image and og:description tags are present. I use the laravel SeoTools package, and as far as I can see, ...
2 votes
1 answer
73 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
219 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 ...
1 vote
1 answer
91 views

How to fix: "The PHP function CURL is not available on your server"?

I followed the instructions by Tony Teaches Tech (page, video) to set up a WordPress site hosted on Google Cloud VM. I am now trying to install the "Really Simple SSL" plug-in, but get this ...
2 votes
3 answers
96 views

Comments Application SEO

I am developing a commenting application. Users will be able to integrate this application in Blogs. I am unsure how to make the comments searchable in Search Engines. What I want is all the comments ...
3 votes
1 answer
297 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 ...
2 votes
1 answer
187 views

Best practice for suEXEC on complex sites?

What is best practice for using suEXEC on complex sites? We've got a site running under a single vhost, and we want to be able to run different PHP web apps eg /forum /wiki /crm as their own UIDs, to ...
0 votes
0 answers
160 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 ...
1 vote
1 answer
53 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 ...
3 votes
3 answers
20k views

NginX redirect to PHP file if image does not exist on file server

This is what I am trying to do. I am not familiar with Nginx enough to create custom rewrite rules like you can with Apache. It would be greatly appreciated if someone could help me with the Nginx ...
1 vote
2 answers
380 views

CRM + Invoicing/Billing + Ticketing for a small web design company

I am currently using ActiveCollab but it lacks the typical CRM features. I can't even keep notes about a customer saved in one place. What I am looking for is a simple but efficient CRM application ...
11 votes
0 answers
341 views

Automatic reauthenticate at oauth2 endpoint

I am currently (ab)using an oauth2 endpoint of an API to enable users of the API to log in to my site (using response_type=code). I do not save refresh tokens or even access_token as that oauth2 ...
2 votes
3 answers
783 views

PHP/MySQL shopping cart recommendation [duplicate]

Possible Duplicate: Which Ecommerce Script Should I Use? I need a shopping cart for PHP/MySQL. What I need is very simple. I have a template already set up with the 15 items that we want to sell. ...
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 ...
1 vote
0 answers
139 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
1 answer
202 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?
0 votes
0 answers
76 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
1k 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 ...
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 ...
1 vote
0 answers
61 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 ...
2 votes
1 answer
631 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
308 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-...
1 vote
0 answers
43 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 ...
6 votes
3 answers
2k views

Is it possible to entirely disable the ability to set error_reporting?

I'm wondering if at the server level I can disable the ability for scripts to override error_reporting and ini_set('display_errors',1); Edit: I know how to disable errors using .htaccess and on a ...
0 votes
0 answers
107 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/...
0 votes
1 answer
421 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 ...
0 votes
1 answer
279 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/...
1 vote
1 answer
27 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 ...
3 votes
2 answers
6k views

Where to find my website's source code?

My company ordered a website and we were given all usernames and passwords but I can't find the PHP source files and this is my first website assignment. I have no prior exposure to web technologies ...
4 votes
1 answer
260 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 ...
6 votes
3 answers
240 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 ...
2 votes
1 answer
671 views

The word "logo" is appearing in all the search results for my site, but it's not in my page titles

When I search for my website in Google, the word "logo" is being displayed in all the results, but I didn't specify the word "logo" in the titles of my HTML pages. See the ...
1 vote
1 answer
68 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 ...
5 votes
2 answers
6k views

Nginx PHP setup: no input file specified

I inherited this web server with Nginx and I'm trying to get a new basic PHP site setup on here. I've followed instructions here. https://gist.github.com/GhazanfarMir/03bd1f1f770a3834d47274586d46ea62 ...
1 vote
1 answer
493 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 ...
1 vote
1 answer
61 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 ...
2 votes
0 answers
151 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 ...
3 votes
0 answers
200 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 ...
2 votes
1 answer
75 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
114 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
251 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
560 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 ...
2 votes
1 answer
512 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 ...
2 votes
0 answers
235 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
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 ...
0 votes
0 answers
46 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 ...
1 vote
0 answers
25 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
66 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
559 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
2 3 4 5
24