We’re rewarding the question askers & reputations are being recalculated! Read more.

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
101 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
34 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
139 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
1k 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
88 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
20 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
520 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
68 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
1k 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
1k 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
215 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
57 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
206 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
428 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
406 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
395 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
4k 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
572 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
1answer
334 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
72 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
31 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
383 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
169 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
368 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
1k 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
2k 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
632 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
141 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
12 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
98 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
4k 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
224 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
124 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
349 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 ...
3
votes
1answer
2k 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
31 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
1k 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
42 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
79 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', ...
2
votes
1answer
245 views

“wiki is currently unable to handle this request” after installing SimpleMathJax on MediaWiki

I need to show mathematical terms in mediawiki-1.26.2 so I tried to install SimpleMathJax on mediawiki. I followed the described in extension page: I downloaded SimpleMathJax-master.zip then extract, ...
1
vote
0answers
6 views

Google SEO for dynamic multilanguage site [duplicate]

I have created a bilanguage site EN/DE the language text are dynamically loaded from EN.php or DE.php depending on a $language variable. How can I organise my code / pages for better SEO and how can I ...
2
votes
1answer
74 views

Google Business Email Will Not Receive Online Web Form Sent Mail

I use Google to manage my email addresses associated with my domain name. I have written a simple script here to allow people to contact me from my website via the form on the page. It will send to ...
3
votes
1answer
1k views

Email messages sent from AWS EC2 are getting marked as spam

I have setup my website on AWS which is built in yii2 PHP. Now here I am using default PHP mail which I purchased from GoDaddy. And I have pointed the domain name to AWS using my elastic IP using an ...
6
votes
1answer
135 views

Would could Google not index an AJAX news feed after 1 month?

I have a website that in page1.php uses a news API from other website. It has JS calling a PHP method like this: <script id="mdval" src="http://example.com/parvazproject/parvaz.php?c=...
2
votes
0answers
42 views

running multiple website through one site on apache2

I am new to web development but giving it a try to learn and whilst make use of it I have installed sites gogs , pydio and reviewboard on apache2 running on Raspbian. right now I have to start each ...
1
vote
0answers
317 views

htaccess file causes 404 error [closed]

I have added the following htaccess file to a directory I want to password protect: AuthName "Restricted Area" AuthType Basic AuthUserFile /home1/receive2/public_html/ekcepc/memberadmin/.htpasswd ...
3
votes
0answers
44 views

refreshing the local server ip not refreshing the newly enabled site [closed]

I have changed the DocumentRoot from /var/www/pydio/pydio-core-6.2.2 to /var/www/php/cloud and updated the /etc/apache2/sites-available/cloud.conf as below php directory contains cloud directory ...
5
votes
1answer
107 views

What is module/aciton/param1 entry in access logs about?

Noticing the following in my Apache access logs recently and would like to know what it is about and what is the purpose of printing md5? "GET /index.php/module/aciton/param1/$%7b@print_r(md5(1123123)...