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

0
votes
1answer
214 views

In CakePhP what is the recommended method for having one sub-domain that's outside the CakePhP environment?

I have a CentOS VPS with LAMP installed. I set up CakePhP and I have my httpd.conf set up with 1 virtual host which points to my CakePhP directory. I have various sub-domains in my CakePhP environment,...
2
votes
1answer
40 views

Speed of prefork+ruid2 with more connections on limited memory

Currently I am using Apache in a server with WHM/Cpanel and I'm currently using Prefork MPM with Mod Ruid2 to process PHP pages. While the setup allows it to run very fast, I'm limited to processing ...
1
vote
1answer
48 views

Google not updating title with htaccess expires

It's been 2 weeks I've changed my website title and still Google hasn't changed the title in search engine. I think it's because of if modified since header... my website is generating 201 OK status ...
0
votes
0answers
5 views

Investor Relations Website Standards/Laws [on hold]

I am working with a client who is listed and traded on NASDAQ. They are looking to have their investor relations (IR) portal rebuilt so that it is managed within their new website (WordPress). Their ...
3
votes
1answer
13 views

How to tell if an incoming connection is a cellular network or not

I've got a page that will be loading a bunch of fairly high resolution images, as well as a full HD video. Is there a way to detect if someone is using cellular on their phone vs wifi, so I can use a ...
4
votes
1answer
191 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 ...
2
votes
1answer
28 views

Adsense ads don't appear even if account approved

I have a website that runs on Apache2 and has code in PHP and JS + HTML. Link to site: http://goldfaucet.xyz This is the code of my ad unit: I have an approved Adsense account that already was ...
0
votes
0answers
5 views

if rule returning wrong result in PHP [migrated]

Good morning. I am running a small test on a for a future website built on PHP 7. I want the web page to record the user login name in the superglobal array SESSION, then, if the user enters a ...
0
votes
0answers
10 views

Yii2 how to update other projects when base project is updated? [closed]

We currently have Yii2 base project (we can say, like, project root from which we will create other projects). Right now there are several modules, models, controllers and viewers. Everything is fine ...
0
votes
0answers
18 views

Php+Mysql How can create Add 500 points every hour to current online active user? [closed]

How can create Add 500 points update table users table every hour to current online active user? users table: bk_users user ID: idu thanks! :) $prize_points = 500; $now = time(); $hour = 3600; $...
0
votes
0answers
7 views

Subrion CMS Nginx Installation Issue [closed]

Thank you for having taken the time to view this thread. I would like to try out Subrion CMS however, I've had issues getting this to work. Is Apache required? Can Nginx only be used as a reverse ...
0
votes
0answers
16 views

Sudo mandatory for system() or exec() from PHP 5

In our enterprise we have several workers and collaborators. For the external collaborators, we have specific FTP accounts to restricted folders (test folders), and restricted access to MySQL database ...
0
votes
1answer
469 views

Nginx 404 not working with PHP?

I have a 404 file and it is working with nginx. However when I modify the 404 file to redirect the user it does not redirect. visiting http://site.com/404.php redirects the user. visiting http://...
0
votes
1answer
147 views

Creating advanced website by redirecting and replacing content from Google Sites

I would like to create a corporate website with members area. Importantly, I want many novice webadmins to be able to modify static content themselves. Therefore, I got the idea to create the site ...
0
votes
1answer
715 views

PHP not working while selecting multiple columns from a table with MySQL

I am using Apache 2.2. When I am trying to run it my browser is failing to run it, it's showing: This webpage is not available The connection to localhost was interrupted. Error 101 (net::...
1
vote
1answer
99 views

How can you use Apache .htaccess to specify the location of the PHP binary on shared hosting?

I'm using shared hosting, can create .htaccess and php.ini and have access to ssh. I have PHP 5.6 installed to ~/public_html/php56 and can use this path with ssh, cron and exec() but not on the web. ...
1
vote
1answer
16 views

Query value with chevrons sends 302 to /

When a special query value is typed in the URL, apache sends back a 302 redirect to root url (/). We're using CPanel and we owns the server. The apache virtualhost file wasn't touched and is managed ...
3
votes
1answer
255 views

“Failed to correctly acquire installer_nodejs_windows.msi file: CRC error” when installing Aptana Studio

When I try to install Aptana Studio I get the message: Failed to correctly acquire installer_nodejs_windows.msi file: CRC error What is this error and how it can be removed?
0
votes
0answers
18 views

Why cannot I reproduce Confirm form resubmission scenario?

I have the following code, which is just a simple HTML form (POST method). I have tried to get the "Confirm form resubmission" message of the browser, by sending the form, hitting browser's back ...
0
votes
1answer
62 views

How to fix generated email from BlueSpice Media Wiki for new users to supply actual name?

I have a standard install of BlueSpice on top of Media Wiki. When a new user is created I get an email with the body: The user http://wiki.example.com/index.php/User:NameHere with real name $2 ...
0
votes
0answers
12 views

How can I Change the Domain for URLs with Dynamic Hostname & Proxy Forwarding?

We use a plugin called "Dynamic Hostname" & run a Wordpress Blog (newest version). To This Wordpress Blog we point 2 Domains: https://blog.domain1.com https://blog.domain2.com The problem is, ...
2
votes
0answers
44 views

App opening standard browser instead of active browser [migrated]

Say you have a smartphone with two browsers, DefaultBrowser and OtherBrowser. You visit the webshop by opening Otherbrowser, and proceed through the cart steps At the end, you go from OtherBrowser ...
1
vote
0answers
7 views

Customizing pagation in wordpress [closed]

I want to set something where pagation won't show up on the first page, but instead, say "Start Gallery". Then the 2nd,3rd, etc pages will be as normal. How can I acomplish this?
2
votes
3answers
2k views

How to find out what is causing “Entry Process” limit?

We're using an OpenCart 1.5.5.1 custom theme for our site. Well it hasn't been smooth sailing for us and we are facing problem after problem. So far the gist of it is we're currently on a business ...
1
vote
1answer
50 views

SwiftMailer - fsockopen() error 500

I am sending email through php using smtp and using Swift_Mailer Code: error_log("Sending Email\n"); // Get mailer $SM = Yii::app()->swiftMailer; // Get config $mailHost = 'smtp....
11
votes
4answers
3k views

PHP-based ad server (alternative to OpenX)

I've used OpenX a few years ago and it worked fine. Now I see that it wasn't maintained for a while hence it became buggy on newer versions of PHP. Do you know any ad server that is a good ...
3
votes
4answers
4k views

Enable gzip compression on Bluehost?

My website is loading large (~3mb) SVG file with jQuery. It takes quite a while therefore I decided to enable gzip compression. I have a hosting account with Bluehost which supports custom .htaccess ...
1
vote
1answer
18 views

Cannot find a file on localhost. 404 Not Found [closed]

danko@danko-VirtualBox ~ $ sudo service apache2 status * apache2 is running danko@danko-VirtualBox ~ $ php --version PHP 5.5.9-1ubuntu4.17 (cli) (built: May 19 2016 19:05:57) Copyright (c) 1997-2014 ...
1
vote
1answer
38 views

GoDaddy hosting not working with email

I have a simple template for my website and two versions. One is .co (GoDaddy) and the other is .co.nz(Another Company). I'm using a basic PHP form that sends email successful to Google Gmail, however ...
1
vote
0answers
30 views

Facebook Web app development: Storing user access token in a session variable

If i store facebook user access token in session variable , as there will be huge users (may be 10000 daily) will it cause the hosting server any issue ? EDIT 1: Server specification: 400mb disk ...
0
votes
2answers
28 views

Image generation from spreadsheet data

I work in retail. For promo sales we're given a spreadsheet with data containing the information about the product and its prices. With this data we're supposed to create sale tags. More specifically, ...
4
votes
2answers
417 views

Is it safe to give write permission to _www user account?

I want to use PHP to modify some of my files, but can someone else use this account to modify my files without my acknowledgment?
0
votes
1answer
16 views

Comfortable number of server files in a folder

I'm building a website which holds its images in relevant folder, but I was wondering how to structure the folder paths ( month/year/ or just year/ ) I will be getting the images via php, so the ...
-1
votes
2answers
76 views

Email delays issues in VPS server on GoDaddy Server

We're working on a web service, and our registration confirmation emails are constantly delayed almost 5-10 mins on GoDaddy's servers. We've tried PHP's mail() function and also the PHPMailer SMTP ...
3
votes
1answer
78 views

Google Analytics not same with my database records

I got a website which will track all the post's visitor view and store each of them in a table with IP address, referrer website and user agent. But I found that in one day I got 100+ rows (pageviews) ...
3
votes
1answer
34 views

Rewrite and hide page ID from URL

I am working with the following on a football website and when a user clicks an event they get the following URL format: /live/1/event-name.html Currently the number in the URL represents the ID ...
4
votes
1answer
124 views

Nginx 502 Bad gateway on shared hosting

I have a website on a shared hosting provider. Since the very beginning my visitors have randomly got several types of errors, including 502 Bad Gateway / nginx (blank page with the error text). I ...
2
votes
2answers
44 views

When moving a load balanced PHP site from Apache to Nginx, how does the code have to be modified?

When moving to Nginx with multiple php-fpm servers from a more "traditional" Varnish + multiple Apache2 / mod_php setup: Must we expect to rewrite parts of our software? I just discovered that many ...
0
votes
1answer
20 views

What are the options to gradually upgrade from shared hosting if the traffic to my site grows? [duplicate]

I have a site with php+mysql on shared hosting and it works well, has good traffic and I want to plan for the future when traffic to my site grows and shared hosting can't handle it. Since the code ...
6
votes
1answer
62 views

Plesk scheduled task not working

I've got some problems with the scheduled task feature in Plesk while setting up a task that should execute a php-file every minute. As you can see in the screenshot, everything should be fine and ...
3
votes
1answer
29 views

Is having multiple index files for various devices bad SEO?

I have two html files, one for mobile and the other file for the other devices. I am detecting mobile devices by using PHP a if ($modile) and this is followed by an include("example.html"> to ...
3
votes
2answers
25 views

Is it possible to entirely disable the ability to set error_reporting?

I'm wondering if at the server level I can disable the ability for scripts to override error_reporting and ini_set('display_errors',1); Edit: I know how to disable errors using .htaccess and on a ...
2
votes
0answers
14 views

htaccess redirect a subsub directory to new domain same structure [duplicate]

Any idea how to redirect from old domain to new one using htaccess. domain.com/A/B/some-file-bb-cc to new-domain.com/A/B/some-file-bb-cc
8
votes
6answers
9k views

What is the best way to exclude bots from view counts?

My website is counting visitor views on certain pages. I noticed that Google and other Bots are "clicking" to my site like crazy and some of the pages get unrealistic view counts (compared to those ...
3
votes
1answer
157 views

Submitting a URL to Google using PHP/cUrl

I've been successfully submitting xml sitemaps to Google using cURL. The URL is http://www.google.com/webmasters/sitemaps/ping?sitemap= The problem is that XML sitemaps take several days to be ...
0
votes
1answer
122 views

How can I run a background PHP script on a hosting account like godaddy? [closed]

I need to run a PHP script 24x7 on the server I'll be hosting my website on (Probably Godaddy). The PHP script's job is to open a socket and wait for incoming connections. Once a connection is ...
1
vote
1answer
94 views

Basic way to clean url from normal url

I want to make clean URL from normal URL: // Normal URL home.php?kategori=dress // Clean URL home.php/dress How could I build clean URL like above?
2
votes
0answers
10 views

I always wonder how this dynamic site content index very fast? [duplicate]

I am new to this field.Actually I am learning PHP/MYSQL.Five min before I asked a question in StackOverflow.And when I googling this suddenly my question appears.How does StackOverflow index very fast ...
1
vote
0answers
60 views

Google reCAPTCHA “Type the Text”

I'm currently trying out Google reCAPTCHA and I want the challenges to be "Type the Text" where it will only shows digitized text/numbers and the user will just type what they see on the digitized ...
2
votes
2answers
537 views

Laravel Detailed Error Page Lost

I want to see all problems when a file can't loaded e.g. I used to do it but now I can't. The only thing I get when a problem occurs is Whoops, looks like something went wrong. How can I change ...