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
2
votes
1answer
103 views

Redirect 301 from old domain to a new one affect google rank

I did the redirect from my old domain store to a new domain using 301 rules on .htaccess as simplified below: Options +FollowSymLinks RewriteEngine on RewriteCond %{THE_REQUEST} /store/catalogsearch/...
-1
votes
2answers
3k views

PHP website page loading is very slow in localhost [closed]

PHP website pages are taking very long time to load for huge data in localhost(using Xampp). The page loading becomes faster for less data. Could anyone tell why how this can be?
2
votes
2answers
79 views

Deleting WordPress and replacing with php files

I have a website with a "tips" section administered using WordPress (the rest of the site is made up of basic HTML files). For multiple reasons (including security and the fact I rarely add content ...
3
votes
1answer
2k views

open_basedir restriction causing huge error_log in WordPress

I am running a Wordpress blog with cpanel and I get an huge error_log file (40GB) in my public_html folder. The content: Warning: is_readable(): open_basedir restriction in effect. File(/var/www/...
2
votes
1answer
1k views

PHP doesn't work on Amazon AWS S3 for email contact form

I built a website with Adobe Muse, it as HTML, uploaded it to a bucket in Amazon AWS S3, enable webhosting on the bucket, and attached the domain to my website with Amazon Route 53. It can be visited ...
3
votes
4answers
4k views

How to hide h1 and h2 tags using JavaScript while still having them for SEO

My website does not currently use H1 and H2 tags, but I want to use them and hide them to make my site SEO friendly.
0
votes
1answer
79 views

Cannot connect to Wordpress MySQL on Fedora 25

On Fedora 25, I want to develop a Wordpress website. Here's a summary of what I did, but I still cannot get it to work and enter Wordpress management panel: 1- I started MySQL by running sudo ...
3
votes
1answer
702 views

HTTP To HTTPS sitemap issues

Today I moved my site from HTTP to HTTPs successfully. Code I used: if($_SERVER["HTTPS"] != "on"){ if(php_sapi_name() === 'cli'){ } else{ $host = $_SERVER['HTTP_HOST']; ...
1
vote
0answers
358 views

Wordpress in Suexec or suphp

I have a Hsphere 3.6S.0SPU installation (that I am begging management to get rid of, but anyways...) that has several customer WordPress installations in it. I have discovered that the only ...
2
votes
1answer
110 views

Browser Cache Control | Individual Resources

The boss suggested to read the documentation on Google Leverage Browser Cache after testing with Google Page Speed Insights ... There was a list of about 30 or so resources that need to be cached for ...
0
votes
1answer
38 views

Forcing better logging of mail requests in PHP

I provide virtual hosting for a number of websites (mainly wordpress) maintained by others. Unfortunately one of them gets compromised and used to send spam (typically from a PHP script) from time-to-...
1
vote
1answer
154 views

Desktop application vs web application [closed]

I have a custom accounting + user specific needs desktop application (which i developed using delphi 7 + mysql and over 20 users are actively using the application), it has bills, personnels, banks, ...
2
votes
1answer
2k views

Make 404 error not redirect when on different domain/subdomain

I have a PHP file on my error subdomain (https://errors.example.com). And this is meant to serve as the error page for all subdomains. The format it goes through is https://errors.example.com?type=...
0
votes
1answer
89 views

Extracting from JSON REST API

I would like to know how to extract particular field of data from the REST API. I would like to get the "bits-per-second-tx" data, only and I have tried http://localhost/net/json?field=bits-per-...
-1
votes
1answer
23 views

RE MEDICAL SEO and web building [closed]

From an SEO Point of view, what is better for a medical or dental website? PHP, HTML or Wordpress and why? My SEO person said php is read better by google bots - Somebody verify....thanks
2
votes
1answer
2k views

Serving HTTP images in a HTTPS site. Can I add a "safe domain"?

I know that by the title this may have been asked many times, but I haven't really found a similar situation asked (well, one) and I wondered if there could be a different approach? I have a ...
1
vote
1answer
70 views

New domain SEO and default header file

I am migrating to a new domain, the previous domain that I had it was really just used for me to learn how to develop websites, so the traffic, if any, of the old website is not important for me, the ...
1
vote
1answer
2k views

Use robots.txt to prevent privacy policy, terms and conditions, and guarantees from being crawled and indexed by Google

I need to block pages such as privacy policy, terms and conditions, and guarantees from being crawled and indexed by Google. They might be unoriginal. I use them for my multiple websites and they ...
1
vote
0answers
40 views

How to create an SEO friendly custom post type title using Yoast [closed]

I have used this code to filter $title of a custom post type, and it works perfectly fine when there are search results on the post type e.g A query for Mercedes Benz cars for sale in Paris would show ...
2
votes
1answer
2k views

How can I mask URLs with subdirectories to display the same URL?

We have a website called example.com I want these paths and their subdirectories: example.com/vip/members/alice/watch example.com/vip/members/alice/bag to be permanently displayed to visitors as: ...
1
vote
0answers
239 views

How to fix xml and php live search [closed]

Hi i have been wondering on how to make a live search on my movie website and im trying to do it without a database. So i decided to go with php and xml. These are my code so far. please help me fix ...
1
vote
0answers
69 views

PHP database information in a table that can be displayed on a website [closed]

Hey guys i just want to put the information from the database into a table which i can display on a website but i have no idea how to do it. <?php include 'database_conn.php'; // make db ...
3
votes
1answer
234 views

How do I comply with Google's First Click Policy with PHP?

I recently password protected my site and made it a requirement for users to sign on or register in order to view the content and post on the forums. In doing this, Google dropped most of my pages ...
1
vote
1answer
655 views

How do I change my website's upload limit using .htaccess without getting a 500 Internal Server Error?

I just bought a year of web hosting and I paid for the 50GB plan. I want to allow small attachments up to 260MB each on my website. I used this: php_value upload_max_filesize php_value post_max_size ...
2
votes
2answers
435 views

which component handle php's GET parameters in a URL

In a webserver, which component handles the translation of URL parameters to the $_GET global variable? Is that a module in PHP engine, or a module of the web server (Apache, Nginx)? I'm asking ...
1
vote
0answers
508 views

How to get a github release filesize using CURL without downloading a file? [closed]

For a project I need to fetch the file size of a GitHub release file using CURL without actually downloading the entire file. $url = 'https://github.com/atom/atom/releases/download/v1.10.2/AtomSetup....
2
votes
1answer
6k views

How to use X-Content-Type-Options for .css and .png file?

I have this code in my initialization file. header("Content-Security-Policy: default-src 'none'; script-src 'self'; connect-src 'self'; img-src 'self'; style-src 'self' 'unsafe-inline';"); ...
0
votes
2answers
703 views

how can i send email in php through google apps [closed]

My client is using godaddy to host a php site, and has recently signed up for google apps account for email, hoping it will help stop his automated emails from getting rejected as spam. The code sends ...
0
votes
2answers
2k views

Is it possible to create a full SEO website with Firebase?

I work a lot with PHP, and as many of you know, you have a lot of flexibility when it comes to creating dynamic pages. You have sessions for authentication, database queries, etc. But the most ...
1
vote
1answer
89 views

Capturing a variable from a clicked link or url using php [closed]

I've build a php page called pageById.php that pulls in and displays data from a MySQL database, but the query is 'static'. $sql = "SELECT * FROM table WHERE id = 879"; I want to change this so it ...
2
votes
0answers
63 views

Common header and footer in HTML, should I use JavaScript, PHP or other for SEO? [duplicate]

Firstly, I am aware this question is similar to others asked in the paste, however I'm specifically asking about the reliability of SEO in this question (also many of the other questions are outdated)....
2
votes
1answer
512 views

Session cookie lifetime in PHP different on RHEL vs Mint?

Sorry if this is long-winded: I have the same site running on two servers (server_old & server_new). It's a hand-rolled PHP & Ajax thing I made for managing my inventory and loaning out ...
3
votes
1answer
209 views

suexec policy violation error for a javascript file

I deployed a web-app on DreamHost shared hosting. During tests, I got the "500 Internal Server Error" on one of the JavaScript files called jquery.timeago.pl.js (the jQuery timeago plugin locale ...
3
votes
1answer
399 views

SEO for importing the page header with JavaScript rather than PHP

My website has the same header/sidebar/footer on every page, so I have been importing them using PHP. To do this I forced all html files to be processed through the apache servers PHP handler via ...
3
votes
1answer
2k views

What is the 'right way' to serve static content from my AWS S3 bucket on my ElasticBeanstalk deployment?

I've hosted a small PHP environment on AWS ElasticBeanstalk. The static content (.css, .js, .jpg files etc) is inaccessible directly from ElasticBeanstalk, and must come from another source. I've ...
5
votes
6answers
3k views

Is it bad practice to put PHP directives in .html files and have the server interpret them as PHP?

I've been running my company's website, which uses the same header, footer and left column on every page, since late 2014. Because of this I set up the Apache server to interpret HTML documents as if ...
2
votes
1answer
791 views

How to protect my files on Heroku

My sendemail.php file is located in the root of my website, is there a way to protect it? Also i want to protect or hide my js folder, so noone can see my code with direct link or via the google ...
3
votes
1answer
244 views

Issue with 301 redirect to Index page only

I have a bunch of 301 redirects in my .htaccess for old pages, which work great. But a problem that's been plaguing me for years is that there's a lot of links out there to my old index page (index....
1
vote
0answers
13 views

High Memory (~8GB) pay per compute time server requirement [duplicate]

I'm looking for an AWS Lambda replacement in order to generate map tile images in parallel. Unfortunately Lambda has a memory limit of 1.5GB and some of my source images sizes are 80MB, using around 7 ...
5
votes
2answers
105 views

Several domains pointing to one hosting but keeping separate URLs

What I'm trying to do is a bit complicated and not sure if possible. Here it goes: I have one main domain "maindomain.com" which corresponds to an event. Then I have several other domains, let's say "...
4
votes
1answer
7k views

What does "SetEnv PHPRC" do and how is it used?

I have a client with some technical skills who likes to take a look at files and understand how they work. Yesterday, we installed Ninja Firewall in their WordPress and their web host server setup ...
1
vote
0answers
14 views

SEO question in regards to current way of loading my pages [duplicate]

I'm trying to implement SEO-friendly (or at least indexable) way of dynamically displaying categories; first by allowing user to use javascript to dynamically load pages via ajax (.load) and secondly ...
2
votes
1answer
299 views

Azure App Service for Basic Bootstrap Site with PHP

I have an Azure Imagine subscription through my College so I plan to take advantage of it to host a basic Bootstrap resume site of sorts. I was originally considering using Github Pages, but I'd like ...
2
votes
1answer
353 views

What are PHP extensions?

I am new to PHP and I'm currently learning about PHP from the point of view of managing a web server. I believe that PHP extensions are like plugins which enable added functionality to the default PHP ...
2
votes
3answers
457 views

How to move SEO from a separately hosted subdomain into main domain?

I have a main domain: example.com and a subdomain: blog.example.com that I really want combined for SEO benefit, but my blog.example.com uses PHP which is not supported by my website provider on ...
4
votes
1answer
4k views

Set Alias path using .htaccess

I have a path like this http://host.ip/nl/producten-en-diensten/abonnementen-met-gsm which will retrieve the correct content and I also want to receive the same content when I access the below URL ...
2
votes
1answer
32 views

SQL statscurl_id Error using Wordpress [closed]

I get this error at the bottom of my home page. please let me know why this error appeared in my website. I am running my website on wordpress. Here is the error Couldn't connect to database server....
0
votes
1answer
2k views

Firefox "The page isn’t redirecting properly" for a Wiki (all other Pages and UAs are OK) [closed]

We are having trouble with a website for a free and open source project. The website and its three components are as follows. Its running on a CenOS 7 VM hosted by someone else (PaaS). site: www....
3
votes
1answer
43 views

For Google, should you show an error for pages that will exist in the future, or redirect them to an error page?

I have a product view which shows a product if a it exists at a link like: www.example.com/products/product-name If the product does not exist, an error page is displayed instead of the server ...
1
vote
0answers
101 views

Google Analytics PHP API Getting fullReferrer

I want to get fullReferrer using Google Analytics API with PHP. And I tried as follows: return $analytics->data_ga->get('ga:' . $profileId, '7daysAgo', ...

1
3 4
5
6 7
23