Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

2
votes
0answers
10 views

Hourly connections to my WordPress site via XMLRPC block my IP on BlueHost because they see many email logins

I currently own a WordPress site in a hosting (BlueHost). On the other hand, I have an application in our offices in .Net. This application, updates WordPress via XMLRPC every 1 hour. The problem is ...
0
votes
0answers
20 views

Initial load of website(s) slow, appears to be PHP, what can I do? [on hold]

I have noticed that PHP based websites I have (running Joomla, Grav CMS, Wordpress) tend to be slow on initial request of the site, but then seems to warm-up and runs fine for the page requests ...
0
votes
0answers
4 views

Connecting to a external exchange server via linux/php? [migrated]

We have an SMTP relay available that we are using on windows servers. [mail function] ; For Win32 only. ; http://php.net/smtp SMTP = email.relay.url ; http://php.net/smtp-port smtp_port = 25 ...
0
votes
1answer
27 views

Change the PHP version in SSH in CPanel

I've developed a PHP/MySQL system which runs on PHP 7.0 but when I access it to my remote CPanel via SSH and check the php version php -v it show that Im using version 5.4 how can I change this to 7.0 ...
0
votes
0answers
17 views

One apache instance, two virtual domains, one works, the other doesn't, possible re-write issues? [closed]

My rewrite rules are designed to hide my directory structure and to make URLs easier to read. Site1 works as expected. Site2 will not load the files beyond the first page. I'm at a loss as to what ...
2
votes
0answers
32 views

500 error from Mediawiki for first request after an idle period: Premature end of script headers

So I've got a Mediawiki on a subdomain, and until fairly recently everything was fine (if occasionally a little slow). A few weeks ago we started occasionally getting 500 Internal Server errors. ...
2
votes
1answer
56 views

NGINX - Rewrite .js.php file to .js

I have a dynamically created file start.js.php?c=21 and I would like to rewrite it's extension (to start.js, with query params). Is that possible? Is that a good method having such a rewrite? Is ...
1
vote
1answer
30 views

Scheduling the task in the plesk control panel

How to run web socket scripts coded in PHP in the Plesk web hosting control panel. I need to run the PHP WebSocket scripted in PHP 24/7/365. The path of the script named websocket_server.php lies in ...
1
vote
1answer
19 views

Change max_input_time when you don't have access to php.ini file

I am using freehosting website to host my wordpress blog. However, while trying to use duplicator plugin to migrate my blog it asks me to change the max_input_time value to 0 I don't see php.ini file ...
1
vote
1answer
28 views

301 redirect not seen by googlebot

I have made a function on a wordpress site. The functions purpose is the following. 1) if the post is not found, redirect to the archive of the post. Should be fairly easy right? Well - according ...
0
votes
1answer
26 views

Form submission without page refresh

I have a form and the details gets updated after submitting it and the page refreshes after that automatically and the details of the form will be shown at the bottom of the form. That means all the ...
0
votes
0answers
7 views

Is there any free webhosting with ip subdomain and php? [duplicate]

I would like to know if there is any free web hosting providers, who can provide; free subdomain ip address (digits) instead of their domain name php support mysql / any free db Thanks.
1
vote
2answers
20 views

Backend method to changing base wordpress domain to prevent redirect

My friend has come to me today to tell me he wants his wordpress site moved from example.com to example2.com. I have full access to the same server managing both those URLs, I copied the entire file ...
0
votes
0answers
10 views

Redirecting subdomain to new domain with all urls [duplicate]

I am in a big problem right now. I need advise from the experts out here: Old Website format - "https://a.bcd.com" New Website Format - "https://www.mynewwebsiteexample.com" I want to achieve two ...
1
vote
0answers
36 views

which image of AWS to choose for PHP? [closed]

I want to set up a linux server that will run moodle (an application in PHP) on AWS. I think the best two images to choose from are: Amazon Linux 2 AMI (HVM) Amazon Linux 2 comes with five years ...
1
vote
0answers
14 views

Disallow URLs made with mod_rewrite in robots.txts [closed]

Here is my robots.txt file: User-agent: * Disallow: /head.php Disallow: /head/ Disallow: /head Disallow: /header.php Disallow: /header/ Disallow: /header Disallow: /footer.php Disallow: /footer/ ...
3
votes
1answer
34 views

Problem with .htaccess for files having similar kind of names

I have a file with name lang.php and another file in the same folder with same lang_inst.php. The .htaccess am using is: RewriteEngine On Options -Indexes RewriteCond %{REQUEST_FILENAME} !-d ...
0
votes
0answers
24 views

Accessing pdf using iframe on different IP

I have WAMP installed in a machine in IP address I just call as IP1. I can access the PDF files in this IP1 inside the www folders using iframe with no problem. But there are other PDF files inside ...
0
votes
0answers
19 views

Can I remove one of the PHP ini's in Multi PHP INI Editor

I am getting an error in my logs: PHP Warning: Module 'imagick' already loaded in Unknown on line 0 When trying to figure out why I noticed I have two ini's to edit in Multi PHP INI Editor. one ...
2
votes
1answer
34 views

Redirecting from one page to another page on my website causes 404 error after using .htaccess file

Currently I'm working on a PHP blog. Where I have used an .htaccess file to get a clean URL, here is the code: RewriteEngine On RewriteCond %{HTTPS} !=off RewriteCond %{HTTP_HOST} ^example\.com$ ...
2
votes
1answer
116 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 ...
3
votes
2answers
177 views

Multiple PHP versions on one Digital Ocean droplet

Is there an easy way of using multiple php versions on one single digital ocean droplet. Basically, I want something like what we have for cPanel (https://documentation.cpanel.net/display/68Docs/...
3
votes
1answer
104 views

Why would googlebot be trying to crawl a URL “https://www.example.com/https://www.example.com/other/things”?

I've been trying to clean up crawl errors on my company's website. In one menu, google bot is trying to crawl every link with an extra-base URL attached. These pages (perhaps obviously) don't exist ...
4
votes
1answer
313 views

Nginx rewrite problem - displaying same page with or without .php extension after rewrite

I have implemented the following Nginx code: location / { try_files $uri $uri.php $uri/ @extensionless-php; index index.html index.htm index.php; } location ~ \.php$ { try_files $uri =...
2
votes
1answer
43 views

How to enable a the php_soap extension from .user.ini (no acces to php.ini)

Our application is being hosted on GoDaddy (plesk). We need to enable 'php_soap' extension for our application to work. We contacted the customer support that we don't have access to php.ini file to ...
2
votes
0answers
178 views

503 service unavailable error for ALL files except PHP files when using Apache virtual hosts

Apache 2.4/ PHP 7.0 Virtual hosts setup working correctly. There are no issues loading JPG files when pointing directly to the server using IP address. <VirtualHost *:80> ServerName example....
0
votes
0answers
47 views

How can I remove an .html extension and the name of a parameter using .htaccess?

I have tried lots of URL rewrite rules in my .htaccess, but I am stuck now. How can I change this URL: blogs.html?title=Responsive%20web%20design to this URL: blogs/Responsive%20web%20design
0
votes
0answers
18 views

My web page title does not reflect on google seo [duplicate]

I set a title, description and keywords for one of my web page for seo. On that description and keywords were reflected on google as i have updated. But the title content is swapped. My page title ...
1
vote
0answers
60 views

Trouble with .htaccess rewriting .png/.php [closed]

I'm currently creating a "dynamic signature" for a forum or email signature. The php code writes perfectly fine onto an image with the .php page. When trying to access the .png file with the ...
0
votes
2answers
318 views

Detect instagram users by referral link

I have an external bio link on my Instagram business page, i want to detect "which" Instagram users click on link and visited my website. Is this possible by analyzing referral link or other ways? , ...
3
votes
1answer
63 views

Redirecting to subdomain, impact on SEO?

I've been working on a web platform project for a client, and we are nearing completion. Basically, the platform is a small social network for a specific group of people. Part of the specification is ...
0
votes
0answers
54 views

How do I upload text without losing extra blank spaces

I am an editor faced with editing text in which the style requirements say there should be TWO blank spaces between sentences. So I was going to write a straightforward PHP routine with an HTML form ...
0
votes
0answers
13 views

CMS for display informatio [duplicate]

I need some CMS web app, where I can create different accounts (1 per user) and this user when he logs he just can see the information that I allow to see, for example. I want to create like a small ...
0
votes
1answer
40 views

Efficiency of generating a list of pages on the fly

I am currently working on improving the extensibility of my website. One of the things I am working on is automatically generating a list of pages for the navbar, sidebar, index, etc, rather than ...
1
vote
1answer
795 views

Does a 504 Gateway Timeout error mean a server has crached?

I am running a php script on a website that creates thumbnails from a big image. The script uses imagick to generates 10 thumbnails per image. It runs on first page load, when the thumbnails don't ...
0
votes
0answers
100 views

Server has been hacked. CXS Cleaned it up but hackers keep uploading scripts

On Centos X64 / Apache / WHM / Cpanel When I look in my apache_logs I see THOUSANDS of these types of LOGS. various days, always a different IP over and over and over. What are they trying to do? ...
0
votes
1answer
69 views

Multilanguage SEO and site map

I make a multilanguage web. I change language dynamically with php. When user click on any language from dropdown box, they call translated file (lang.eng.php, lang.es.php, lang.de.php etc.) Default ...
1
vote
1answer
42 views

Why does switching php versions from 56 to 71 in httpd.conf give me a 403 access denied error? (MacOS localhost)

Recently installed php71 on my local test environment. I have an index.php file with phpinfo() in the web root directory. When I LoadModule php5_module /usr/local/opt/php56/libexec/apache2/libphp5....
0
votes
0answers
770 views

No matching DirectoryIndex error with wordpress

I have a basic wordpress installation running on a localhost apache server. When I try to fetch the root page, apache gives a 403 error. The log says: [Wed Feb 07 13:05:54.519901 2018] [autoindex:...
1
vote
0answers
236 views

XAMPP phpMyAdmin - different users access same MySQL database [closed]

I have created a MySQL database on MyPHPAdmin (XAMPP 3.2). This is for a group project and I need to have different users access the same database. If they have XAMPP installed on their computer, is ...
1
vote
2answers
299 views

Can I use the Laravel Database Framework without using all of Laravel?

I work at a company with a custom PHP framework we have built over the years. For the most our custom framework suits our needs and includes almost everything Laravel offers, however, our database ...
1
vote
1answer
66 views

How can I stop this PHP Notice or fix the problem that clutters up the debug.log after switching to PHP 7? [closed]

EDIT: I am the administrator of several websites and when I turn debug on to track down a problem on one of the sites, the debug.log is cluttered with hundreds of lines of PHP notices each day about a ...
4
votes
1answer
48 views

How to fix two PHP errors I cannot get the plugin author to answer [closed]

I am the administrator of my website and when I turn debug on to track down a problem on the site, the debug.log is cluttered with hundreds of lines of PHP notices each day about two PHP problems in a ...
1
vote
1answer
110 views

Apache 2.4: Symlinks to CIFS mount are served, but not seen by PHP or mod_autoindex

I'm trying to run the Piwigo image gallery/DAM on a Raspberry Pi via Arch Linux ARM with Apache 2.4 and PHP7. Piwigo is running happily. For a chain of reasons outside the scope of this question, my ...
3
votes
1answer
90 views

blog/index.php/author/ how to create this kind of a URL for my php page?

WordPress blog URL has this notation. chapter .php there is another path. it is not an actual existing directory on the server. my question is how they do that? can I do something like that on my ...
3
votes
1answer
56 views

blog/index.php/author/ what kind of a URL?

as mentioned in the title my WordPress blog has this URL. which is not familiar to me. that not a GET request right? what is that? please help.
2
votes
1answer
421 views

cPanel Mail Function [closed]

There is a wordpress installation installed on a cpanel account. They have a contact form on that wordpress installation that is sending using the php mail function. It is supposed to be sending like ...
0
votes
2answers
206 views

If there is a time delay before a redirect, is link juice affected?

If a redirect happens with the following code: <?php $delay = 5; //seconds sleep($delay); header('HTTP/1.1 301 Moved Permanently'); header("Location: http://www.example.com"); ?> is the ...
0
votes
1answer
26 views

PHP syntax issue [closed]

I'm reading a Sentry tutorial for implementing an authentication workflow in a webapp. I'm a PHP beginner. There's a thing I don't understand in this code: <?php // set up autoloader require ('...
0
votes
0answers
50 views

Why is my Last-Modified header always sent using GMT timezone?

I want to send the last-modified in IST timezone, But it always sends in GMT. What is wrong with this PHP code? echo "Timezone " . date_default_timezone_get () ; //==>verified, timezone set ...