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
176 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 ...
0
votes
1answer
26 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 = ...
-1
votes
0answers
4 views

Bootstrap Template [on hold]

I'm new to websites. I want to provide online tools like file conversion etc. Is there any bootstrap Template or theme where I can easily add these php based tools. Thanks.
1
vote
1answer
35 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 ...
0
votes
1answer
45 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 ...
1
vote
0answers
16 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
23 views

PHP: file_get_contents turn & to & [closed]

After searching alot and followed most of the posts, i still couldn't resolve my problem. Problem: file_get_contents turn & to &amp. This is my code: <?php include 'paths.php'; ...
4
votes
1answer
96 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
40 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
0answers
5 views

Website Form with PHP sender will not send email [migrated]

I have been trying to get a website form submission to send an email. I have made sure that the mail command works so I'm out of ideas on what I'm doing wrong. Please help. Thanks in advance! HTML ...
0
votes
1answer
18 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 ...
3
votes
0answers
64 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?
6
votes
1answer
57 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
23 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 ...
0
votes
1answer
61 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 ...
3
votes
2answers
19 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 ...
4
votes
1answer
174 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
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 ...
2
votes
0answers
13 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
8k 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
101 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
67 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
8 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
48 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
527 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 ...
1
vote
2answers
78 views

Monitor a website and change it to show an error message when the web server is offline

I own a domain. Let's name it example.com. I have my own server. For this example, its IP is 1.1.1.1. I use Amazon Route 53 and have configured my DNS. Each time a visitor visits example.com, she ...
1
vote
0answers
24 views

What are some hosting providers that are PHP 7 Ready? [duplicate]

I am creating a list of all providers that are supporting PHP from ages and currently migrated to PHP 7. So the simple question is, how many of the hosting providers we have onboard that are providing ...
1
vote
2answers
964 views

Does it make sense to throw a 404 error with PHP?

Problem Description Hi, The current setting of my .htaccess file does not allow any kind of 404 (as far as I know). I mean, it captures every kind of url like mysite.com/asfasfasf then sends it to ...
13
votes
4answers
1k views

Can someone explain the true landscape of Rails vs PHP deployment, particularly within the context of Reseller-based web hosting (e.g., Hostgator)?

Currently, I have a reseller account with the company HostGator. I design websites, which up until now have occasionally been wrapped in Wordpress CMSs and the like (PHP applications). I then sell ...
3
votes
1answer
99 views

Cloudlinux + CageFS + PHP Selector - how to update default php.ini for each PHP version or for each domain account?

My server runs Cloudlinux 5.11 with CageFS and PHP Selector. Default PHP version is 5.3. I have one account using PHP 5.3, one account using PHP 5.5, and one account using PHP 5.6. I'm trying to ...
1
vote
1answer
39 views

How to make an apDiv show up in same spot on all browsers

I'm pretty new to the whole webmaster stuff and am just trying to format a slideshow on my homepage to be in a certain area with an apDiv, but as soon as I use another browser it's in a different ...
1
vote
3answers
139 views

Activation email from website could not be sent to Outlook.com accounts

On my website, I send an automated email using libmail.php for new sign-ups. Users put in their email address and they are sent an email to activate their account. This usually works for Gmail. ...
4
votes
3answers
115 views

How to detect if file with a .png extension contains code or an image?

I was in a trouble last few days since my web host was hacked for POST on PHP files. I've been dealing with files with .png extension that have PHP code inside. I can't even try to edit one-by-one to ...
3
votes
1answer
302 views

with PHP: How to restrict access from one Addon domain to another?

With 000webhost (not with cPanel), whenever I add a new domain to my account, an entirely separate public_html is created and a separate FTP login. But with cPanel, all "addon domains" are created ...
1
vote
1answer
71 views

?cid= and ?pid= pages need to be fixed

We have recently changed the platform and design of our website. Now I am having difficulty with url structure. Main product URL shows something like, /categories.php?cid=9 And internal product URL ...
6
votes
3answers
2k views

Do I really need to remove special characters in a URL?

I have an FTP account shared with friends where we upload underground music albums and then we use the links to share the downloads in a music forum. The problem is that the album names are in french ...
1
vote
1answer
29 views

Is it possible to use a common menu across two websites by importing it from the first to the second?

We pay a service to host both our website and our blog. The blog is on the WordPress platform. Both sites are designed to look similar (as best we could) since they are our company websites. The web ...
5
votes
5answers
4k views

Disallow robots.txt from being accessed in a browser but still accessible by spiders?

We make use of the robots.txt file to prevent Google (and other search spiders) from crawling certain pages/directories in our domain. Some of these directories/files are secret, meaning they aren't ...
1
vote
1answer
81 views

How to set permissions for DooPHP?

I have downloaded and installed DooPHP according the Installation instructions. However, there is no statement on how to set permissions. Also not in INSTALL.TXT which comes with the product. The ...
1
vote
1answer
57 views

Security issues with PHP with cPanel and shared hosting

if this is not the correct forum for this question please tell me! When one has an account on a shared server host running cPanel, the account runs in a jailed environment where access to files is ...
-1
votes
1answer
39 views

How can I verify the result of a reCAPTCHA in PHP

I am currently working on a website, and I've had some problems with spammers on my comment system. So, I am implementing a reCAPTCHA (maybe some scanners later). I have registered my site with ...
6
votes
4answers
1k views

How do you get Drupal to go to a page other than the User Profile on login?

ISSUE: I've tried a few things to get Drupal to STOP going to the User Prolfile page on login. I even installed the LoginToboggan module, which has nice features, just doesn't stop Drupal from sending ...
0
votes
1answer
66 views

SEO strategy for dynamic images ( PHP + GD )

I have several images which are generated by using PHP + GD. They consist of a background image, and colored lines drawn on top of the images. As the possible combinations depend on the behaviour of ...
0
votes
2answers
952 views

How can I create a review site which is similar to craigslist? [closed]

I want to create a site where you can review different things in the town. Example could be a Restaurant, a park, a doctor, a school. The user creates review and uploads pic if he has. I want to ...
3
votes
1answer
557 views

debian phpmyadmin - Call to undefined function __()

I recently upgraded my debian installation from wheezy to jessie. Now I get only blank pages when accessing phpmyadmin. The apache log says: Fatal error: Call to undefined function __() in ...
0
votes
0answers
11 views

Does processing content dynamically using Javascript or PHP have an effect on SEO? [duplicate]

Does it effect my Google organic search ranking whether my html content is dynamic or static? Let's say that I'm using Javascript to display html code dynamically based on some user behavior, or ...
0
votes
0answers
14 views

adsense making ip report all wrong with resubmittion page and generating random ips

I have a google ad on my website, but I just found out today, that it's resubmitting the page with a random IP, that changes from time to time, mostly when submitting a form. It happens too, but ...
3
votes
2answers
169 views

How to submit shortened URLs to Google so that they are included in the index

I am working on a project to create a URL shortener. I have successfully gotten it to create short URLs, but I would like to submit them to Google. When I submit a short URL via Google Webmaster ...
3
votes
1answer
217 views

Is there any way to prevent the Google toolbar from breaking Friendly 404s

This might be considered a continuation of this question. If I output HTML after my 404 header, It displays properly in IE and FF unless the user has Google bar instaled. If I try header('HTTP/1.x ...