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.

learn more… | top users | synonyms

1
vote
1answer
15 views

In httpd.conf why would you want AddType for phps?

We have an AddType as follows: AddType application/x-httpd-php-source .phps I was wondering what this was, and did some searching. It seems this is barely documented anywhere. Based on a hunch, I ...
1
vote
2answers
43 views
+100

Is it possible to A/B test web servers using a PHP redirect and sub domains without breaking all the SEO goodness?

We're trying to figure out if a certain type of web server architecture is better than our current web server. We need to A/B test these 2 boxes with live traffic to really get a sense of which one ...
1
vote
2answers
43 views

Dynamically PHP-generated content and SEO

So I'm using a function in my functions.php file to add some text to all my posts. I was wondering if that will be used by Google when it indexes my website, and how that will affect my SEO ratings. ...
1
vote
2answers
37 views

Why does Google Analytics report that I have traffic at a calculator.php URL for my blog?

I frequently see this URL having traffic via Google Analytics although I don't have any page and with that strucuter either. URL - ...
2
votes
0answers
22 views

When and how do I remove temporary files on server left from abandoned forms?

I have a form on my site to submit posts, it features multiple file upload tool (Mini Ajax File Upload Form) which submits files to server as they are added (before actual post submission) and server ...
0
votes
0answers
19 views

Activation email from website could not be sent to outlook

On my website, I send an automated email using libmail.php for new sign-ups. The user puts in their email address and they are sent an email to activate their account. This usually works for ...
0
votes
1answer
29 views

Enabling URL rewriting for API

I'm new to configuring API web servers and I'm trying to enable URL rewriting for the server so that a user can go to my public DNS.com/getAlbum to access a method within my api.php file (assumption, ...
0
votes
1answer
34 views

Can Instant WordPress be used on a network drive?

I'm trying to put a site that I've just built onto my companies internal server so that everyone at the company can see the site and give feedback. However, I tried to install both WAMP and Instant ...
0
votes
0answers
5 views

Form submitting straight to root instead of specified submit page [migrated]

The way it's supposed to work is that index.html submits the message directly to sendgrid.php for some reason that's not working. I've included source code of both scripts in case anyone sees any ...
1
vote
0answers
35 views

How to avoid html tags in google search summary

I am using ckeditor to let people describe their organization with all the styles and fonts. So when it saves in the database its like < gets saved as &gt and rest all you know for the html ...
0
votes
3answers
33 views

Add rel=nofollow to all links in rss feed

i wish to add a rel=nofollow in all links from an rss feed, including links in item description $rss = new DOMDocument(); $rss->load($xml); $feed = array(); foreach ...
3
votes
2answers
43 views

Internal server error when using base64 encoded icon on the home page

I have an "index.html" (or .php - it makes no difference) file in the root / of my hosting space. That "index.html" file has this line of code in it: <link rel="icon" ...
1
vote
1answer
26 views

Is Image Spriting for Articles Images a good solution?

I am starting an online portal and I calculated that I need about 102 Images (based on the amount of articles), the problem is I want to keep the whole page below 800KB (Including all assets). I want ...
4
votes
3answers
73 views

PHP 5.6.6 loading but not interpreting in Apache2.4 64 bit Windows

I have installed Apache 2.4.12 (Win64) VC11 from Apache Lounge. Typing httpd -M tells me that php5_module is loaded and shared. I have PHP 5.6.6 win32 VC11 Thread Safe installed. The Apache server ...
3
votes
1answer
89 views

weird results from tests when trying to serve a fast image download page… why?

This is my php code. <?php ob_start(); echo file_get_contents("originalhighqualityphoto.jpg"); $dat=ob_get_contents(); ob_end_clean(); $dat=gzencode($dat,2); ...
0
votes
0answers
8 views

best free php package or free service to put a blog on my company's website? [duplicate]

I can't find the answer in the archives, so I'm sorry if I'm duplicating. I'm looking for either a good free php package or a free website that will give me a nicely formatted blog for my company ...
2
votes
1answer
91 views

How to remove php extension from pages except search results?

Using htaccess I have these php rules: <IfModule mod_rewrite.c> Options +FollowSymLinks -MultiViews # Turn mod_rewrite on RewriteEngine On RewriteBase / ## don't touch /forum URIs RewriteRule ...
2
votes
1answer
50 views

Wordpress plugin not working after moving domains - I get this error message

I have moved a wodpress website to a new domain with a new host. The website looks, fine and most of the wp-admin area works just fine too. However, certain pages on the admin area don't display and ...
1
vote
1answer
124 views

php5-fpm ping and status pages error out? LimitInternalRecursion error?

Not sure if I'm out of bounds here, but I originally posted this on ask Ubuntu here I have php5-fpm running just fine. My entire site is running as expected, almost no issues. However, I am unable to ...
3
votes
2answers
347 views

How do I get a better PHP version to work with Plesk?

I've had an issue for quite a while now that I don't know how to fix. I'm running a VPS with Ubuntu 12.04 LTS, it has the latest version of Plesk (12.0.18 Update #34). Annoyingly, it only has PHP ...
2
votes
1answer
53 views

Dreamhost Shared Hosting - Increase post_max_size

I am using Dreamhost shared hosting running PHP 5.4 and I am trying to increase the file upload limit to 1 GB. I try to achieve that by using .user.ini and putting the following: upload_max_filesize ...
3
votes
2answers
125 views

Why should we keep the copyright year on websites static?

Not a major issues, just a small thing that bugs me. In so many websites and applications, when scrolling down to the footer, you see the year and it's not the present year (2015). Why not ...
7
votes
2answers
1k views

Make Google index over 90,000 user profiles

I have a large amount of user profiles hosted in this schema https://example.com/stats.php?player=name (It's not the prettiest URL, but .htaccess dramatically slows down my site and I don't understand ...
0
votes
1answer
92 views

Could Google detect Cloaking if I displayed content to Google user agent using PHP

PHP is server side and all Googlebot would see is the output HTML, right? if (strpos($_SERVER[‘HTTP_USER_AGENT’],"Googlebot")) { // do some functionality }
4
votes
1answer
61 views

What is 'hitnodes.php' on a GoDaddy shared hosting server?

At my company, our website is hosted with GoDaddy's shared hosting service. I was tidying up the html folder today and noticed a file called hitnodes.php which I hadn't noticed before. It was only 16 ...
1
vote
1answer
26 views

Should I use SQL to save time? and How? [closed]

I created some landing page template in which I test various products. currently it is a .php file which I manually change each time, along with 3 other files, plus an image, and then upload all of ...
1
vote
1answer
27 views

not able to configure opencart in lap

I downloaded opencart 2.0.1.1 and have wampserver .I pasted upload file in wamp server and while trying to run it, i dont know what details sholud be filled in third step. That is, what is data base ...
1
vote
2answers
36 views

Would the same template page that loads different posts be considered duplicate content?

I'm creating a portfolio site where I have a set of links on the home page and each link calls its respective post via Ajax. When a post is called, a hidden div gets populated with the response and ...
3
votes
1answer
180 views

Receiving error 500 for WordPress when using CloudFlare as a CDN

My WordPress site is using CloudFlare as a CDN, and if I use the site's IP address to access wordpress/wp-admin/install.php directly, it works fine. However, when I try to call ...
3
votes
1answer
60 views

Rewrite rule to handle urls that start with a slash, have only numbers and letters, and may end with a slash is not working

im attempting to get my URL to resolve something like http://example.com/?image=2VMt2 Thus my index.php using the [GET] method in PHP to resolve into my domain http://example.com/2VMt2 The rule ...
2
votes
1answer
206 views

HTACCESS redirect a URL with query string in it

Basically you can visit /stats.php?player=name by simply typing in https://domain.com/@name and it works perfectly. But I also need the old /stats.php?player=name links to redirect to ...
0
votes
1answer
73 views

Difference Between php_admin_value[memory_limit] and php.ini memory_limit

I have Nginx + php-fpm + Mysql. With the php memory settings, I always set this in php.ini like this: memory_limit = 256M Now, I bumped into another similar looking setting in pool.d/www.conf file ...
1
vote
1answer
151 views

How to read user unique code from _ga cookie?

Currently I am facing the problem that have been discussed already here: How to keep track of a unique and an existing visitor (keep track about unique user without registration etc.). The most ...
1
vote
1answer
54 views

Do I need to change the Loaded Configuration File to enable cgi?

I'm trying to set up a web app (which I didn't make) on a server which uses an .htaccess file written like this: <Files *.php> SetHandler su-cgi-script SetEnv INTERPRETER_PATH ...
2
votes
1answer
44 views

PHP Dom Extension - Can I disable it

Can I disable the PHP Dom Extension temporarily (for debug reasons), without having to reinstall / recompile PHP? I want to install the module and I'm looking for a way to temporarily turn it off, so ...
1
vote
0answers
45 views

XAMPP - Typing “localhost/my_site/” into URL not working [closed]

Using XAMPP installed on Mac OS X Mavericks, I've got the servers running and I use my Firefox Dev Edition to navigate to "localhost/my_site/". Previously, I've been successful with other folders for ...
0
votes
0answers
14 views

Best open source CMS that caters for both developers and clients? [duplicate]

After plenty of bad experiences with Wordpress, I'm wanting to look at alternative CMSs. Wordpress is horrible to develop on and updates break it quite often. I am specifically looking for a CMS that ...
1
vote
1answer
33 views

Basic looping on PHP for web design [closed]

I am very much a newbie in PHP. Could you tell me about basic looping in PHP if I want create a web design. Also, how do I connect to a MySQL database?
0
votes
1answer
24 views

How do you activate mycryp and mod_rewrite from .htaccess?

My hosting provider has the option to modify the PHP configuration with the following code in .htaccess: AddHandler fcgid-script .php I would like to know how to activate the extension mcryp and ...
5
votes
2answers
463 views

Apache: disable PHP in a directory

I want to disable php in a specific directory on my server. I thought that setting Options -ExecCGI in httpd.conf would prevent php scripts from being executed, but obviously I am wrong. So, this is ...
2
votes
1answer
59 views

What setting allows a PHP to run for more than 60 seconds under Windows FastCGI?

I have a PHP script which is timing out after 60 seconds. I have changed the following config values but they don't seem to have any affect: max_execution_time default_socket_timeout ...
0
votes
2answers
37 views

Error 500 on new sub-domain

I have just uploaded a site on a sub-domain, In fact on the 3rd Sub-domain. All the 4 site ( 1 Main, and the 3 on SUB) are completely separate from each other. Now, the site was developed ...
0
votes
3answers
70 views

Does uploading index.php protect the other files that would normally be visible in that directory?

PHP is a mystery for me. In the FTP main directory of my website, I uploaded 2 files: a.txt and b.txt. If I enter my website address in my browser I can view both a.txt and b.txt. However when I ...
-1
votes
0answers
17 views

Hiding and redirecting extensions on my webpage [duplicate]

I want to hide extensions on my webpage using the .htaccess file. I have managed to do it by using this code; RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.php ...
1
vote
2answers
42 views

Hiding and redirecting extensions on my webpage

I want to hide extensions on my webpage using the .htaccess file. I have managed to do it by using this code; RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.php ...
0
votes
0answers
3 views

CMS for a Localized (i18n) Webiste [duplicate]

I have a website that is using Php Gettext for localization capabilities and I have got to that part where I need to create a CMS for updating the content. I had initially hoped CUSHYCMS would do the ...
3
votes
2answers
163 views

cPanel PHP open_basedir warning to root directory - Any solution?

I am currently hosting a simple multi-tenancy service on cPanel shared hosting, where customers who signed up will have a subdomain, directory and a database dynamically assigned to them (via XMLAPI): ...
1
vote
2answers
88 views

How does mediawiki save the passwords?

I have mediawiki installed in my local machine. I had to use a form outside wiki which asks the user to upload files with the wiki username and password. In order to achieve this I went through the ...
0
votes
0answers
5 views

Hosting solutions for image uploads. [duplicate]

I'm developing an application which will primarily deal in image uploads. Since the RESTful API is written in PHP I've been looking at options similar to fortrabbit.com for hosting the app itself. ...
2
votes
1answer
166 views

Apache Unable to open logs: /Applications/MAMP/Library/${APACHE_LOG_DIR}/error.log

I am trying to run a project built in Ubuntu with PHP on fat-free framework. I am using MAMP on macOS Yosemite 10.10.1. I imported a database successfully through phpmyadmin & following these ...