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
votes
0answers
10 views

javascript + php + onchange select form [on hold]

I am new in JavaScript and PHP. I see lots of topics about my issue, but it didn't helped me. I need simple select formular with values from 1 to 7. If someone select value 1, it should download log ...
2
votes
0answers
15 views

base64 ico server error asphostportal hosting

My hosting is with asphostportal.com. 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 ...
-1
votes
0answers
15 views

Alternatives to PHP built-in server [on hold]

I am a PHP developer, From last 3 months i am using PHP's built-in server for testing my tools and apps. But its single threaded and it hangs now and then. So is there any alternatives with ...
0
votes
0answers
30 views

How to configure CentOS VPS Server with WHM/CPanel to run both NodeJS and nginx/apache [on hold]

I've tried (unsuccessfully so far) to setup a CentOS VPS server to run both NodeJS and PHP applications (which means having a NodeJS server + Apache/nginx running together) under two different ...
0
votes
0answers
19 views

How to check if something in database table has occurred 3 times? [closed]

I want to search through my mysql and see if a variable has been entered 3 times. Ex Dota Bob Dota Check Ji Kj Dota And if it has been entered 3 times then do something that I specify?
1
vote
1answer
24 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 ...
0
votes
0answers
10 views

MyBB Warning - Cannot modify header information? [migrated]

I've been setting up a MyBB forum for my website, and everything was going well until this morning. Yesterday, we moved everything over to a new server, and ever since we've been getting: Warning [2] ...
3
votes
2answers
51 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 ...
1
vote
0answers
67 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
65 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
44 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
83 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
221 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
47 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
109 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
73 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
57 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
25 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
26 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
35 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
149 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
58 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
185 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
50 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
105 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
36 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
40 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
35 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
29 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
412 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
48 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
34 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
66 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
40 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
128 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
76 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
116 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 ...
1
vote
1answer
218 views

Not receiving email sent from PHP mail() after cPanel migration?

I just moved my site example.com from one host to another by cPanel account backup and restore. Name servers are changed a few hours ago. info@example.com is hosted at Google apps with MX records ...
1
vote
0answers
88 views

Trying to include a file from parent domain in subdomain?

I am trying to include a php file from a parent domain in a subdomain. In subdomain.parentdomain.com/test.php i have include ('/var/www/vhosts/parentdomain.com/website/wp-blog-header.php'); My ...
1
vote
1answer
190 views

How can I pass optional URL parameters through my rewrite rule?

I created a CMS that identifies if the GET value of url is defined, and if it is, it returns the html contents of the page from the frontend template on index.php. This ideally is to make a templating ...
2
votes
1answer
54 views

How to get multiple form field values in Google Analytics site search report?

I'm wondering how I can get multiple form field values into Google Site Search. For instance, I have a search form that has a drop down for year, make and model. Once submitted I would like those ...
2
votes
1answer
62 views

Sharing CodeIgniter installation between different servers

Current situation: I've got 2 different servers, each one hosting its own CI installation, and everything is working fine, except a lot of code is duplicated (custom libraries, some views, etc) My ...
1
vote
1answer
60 views

Is it possible to install Piwik and send it fake data to test its features?

I found Piwik as a good open source solution for website analytics. Is it possible to run Piwik and see its features using fake data rather than a live site? Not only the demo version which is ...