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
30 votes
5 answers
3k views

Updating a web app without any downtime

It's a PHP app. How can I minimize the downtime while updating the entire codebase?
user avatar
24 votes
4 answers
186k views

How to create separate users in phpmyadmin, each one can't see others databases?

I am using phpmyadmin to control mysql on my server, now i want to create some users to access this admin tool, what i want is to make each user can create databases but can't see others databases. ...
user avatar
18 votes
6 answers
8k views

Single V/s Multiple Databases

I've built this web app (php & mysql) which stores information for various organisations (about 20 clients currently). The current scenario stores client-related information in individual ...
user avatar
  • 183
18 votes
1 answer
73k views

How to pass GET parameters to rewritten URL?

I have an .htaccess rewrite rule like this: RewriteCond %{SCRIPT_FILENAME} !-d RewriteCond %{SCRIPT_FILENAME} !-f RewriteRule ^search/(.*)$ search.php?q=$1 What this does is, if someone visits http:/...
user avatar
17 votes
4 answers
48k views

How to check all installed in Magento extensions?

Where can I check all the installed Magento extensions in the admin panel?
user avatar
  • 273
15 votes
4 answers
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 ...
user avatar
  • 253
14 votes
2 answers
21k views

How to ignore certain coding standard errors in PHP CodeSniffer

We have a PHP 5 web application and we're currently evaluating PHP CodeSniffer in order to decide whether forcing code standards improves code quality without causing too much of a headache. If it ...
user avatar
  • 1,483
14 votes
4 answers
501 views

easy tool for creating XML sitemaps? (constantly expanding site)

Does anyone recommend either a php script that I can run as a CRON or somekind of thirdparty tool i can use to create sitemaps? My website is events bases and so the pages are pretty temporal with ...
user avatar
  • 293
14 votes
1 answer
698 views

When and when not to use a CDN

I'm working on a web-application that loads a couple of small gif images onto the screen. I'm using a relative path, which means they are loaded from the same web server that serves the php page. The ...
user avatar
13 votes
5 answers
4k views

How can I prevent a power user from calling my ajax functions?

I have a site that uses ajax calls to perform a number of functions. They have the webbrowser call back to a script - ajax.php. Though I use post data to transmit the data and limit the commands ...
user avatar
13 votes
8 answers
24k views

Are there any large web sites written with Python/Django? [closed]

Looking at the list of sites created using django, it seems there are no major web sites that are written using the framework. Why is this? Is django not suited to scalable web sites, or is it in ...
user avatar
12 votes
6 answers
16k 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 ...
user avatar
  • 123
12 votes
8 answers
855 views

Strengths of various open-source PHP Content Management Systems? [duplicate]

Possible Duplicate: Which Content Management System (CMS) should I use? What are the strengths / weaknesses of the various PHP-based open source CMSes?
12 votes
11 answers
27k views

Need to Stop Bots from Killing my Webserver

I am having EXTREME bot problems on the some of my websites within my hosting account. The bots utilize over 98% of my CPU resources and 99% of my bandwidth for my entire hosting account. These bots ...
user avatar
  • 223
11 votes
4 answers
236 views

Emailing all site users

I'm going to be emailing all of my site users to update them on recent developments and remind them to come back to the site. Are there any special precautions I should take. I was going to do this ...
user avatar
  • 223
11 votes
2 answers
16k views

How to use Python as a server language from a PHP perspective

I only know server side programming with PHP. To me, I write something into index.php and call http://localhost/index.php and see the results of the PHP script. I have been using CakePHP and ...
user avatar
11 votes
4 answers
5k 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 ...
user avatar
10 votes
5 answers
1k views

How to verify that someone owns a website?

I'm trying to think of ways to, as securely as possible, verify that a user owns a website that they claim to own. Here are some ways I've seen: Upload an obscurely-named HTML file to the root ...
user avatar
  • 316
10 votes
2 answers
13k views

Does a PHP script stop executing when you receive 504 Gateway Timeout?

I am on a shared server (Siteground), and since my WordPress PHP script takes more than 30 seconds, it returns a 504 Gateway timeout. Will my query run and complete if it doesn't encounter a further ...
user avatar
  • 410
9 votes
2 answers
827 views

Best Free Web Statistics and Analytics Packages For Sites Using PHP & MySQL

I'm looking for a list of the best free web statistics and analytics packages for my site using PHP & MySQL?
user avatar
9 votes
3 answers
326 views

Is it worth it to change my entire user images file structure to take advantage of simple browser caching?

On one of my mobile sites, I simply store my user's profile images as '1.jpg' in their user folder, and incrementally go from there for any extra pics they upload. This means that whenever they change ...
user avatar
9 votes
1 answer
7k views

Why has Apache begun running a single process as root, and another as root and the wwwdata user?

I am running Apache Worker-MPM, PHP 5.3.2, and FCGID. Apache runs better than before, but I noticed that there is an apache process running as root and a second process that runs as both root and ...
user avatar
  • 91
9 votes
1 answer
10k views

Should query string parameter values in a URI have single quotes around them?

I'm passing variables through the URI string, like this: example.com?a=first&b=second Everything works as intended, but when I pass the source code through the W3 validator, it's flagging them ...
user avatar
8 votes
3 answers
12k views

How to restart Apache without reseting users sessions?

User is logged-in a PHP website > I restart Apache > User needs to log-in again. How to prevent this? (I don't want user to need to log-in again)
user avatar
  • 91
8 votes
2 answers
10k 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 ...
user avatar
  • 305
8 votes
2 answers
2k views

Where to find PHP version usage stats?

My original question was: what percentage of sites are using php 5.4.x? (As it has some very interesting new features.) With secondary questions like how many of the cheap web hosting places have ...
user avatar
8 votes
1 answer
11k views

How to set up a 403 forbidden

I've recently set up my first commercial website for someone, with godaddy hosting. I want to set up a 403 forbidden on several directories (and their contents) that are referenced to through php ...
user avatar
8 votes
2 answers
21k views

Extend depth of .htaccess to all subfolders and their children

I need to be able to use .htaccess in all subfolders for full depth. E.g. I have .htaccess in public_html folder: \public_html\.htaccess How I make it to work for the folder small as well? \...
user avatar
  • 81
8 votes
1 answer
438 views

Problem with .htaccess and mod_rewrite after moving site to new server

The site seems to draw the correct links but its not redirecting me to the correct view. The same code works fine on the old server here http://ruse.systemio.net/q&a/. The new server is here http:...
user avatar
  • 183
8 votes
3 answers
446 views

What resources are available to get an experienced .net developer up and running quickly with Wordpress/PHP development?

Specifically, what are the preferred development tools (free?) Are there any good tutorial sites that are up-to-date with the latest version of Wordpress Has anyone ever done Wordpress/PHP ...
user avatar
  • 183
7 votes
5 answers
8k 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 ...
user avatar
7 votes
3 answers
404 views

Dedicated Hosting 101

I've been running small websites for years, but recently developed a site that is attracting more traffic than expected. My shared web hosting provider has warned me that this is causing a high load ...
user avatar
  • 173
7 votes
2 answers
2k 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 ...
user avatar
7 votes
7 answers
3k views

Adding a Forum to my site: build one from scratch or use existing open-source platform? [closed]

Note: I posted this originally to stackoverflow.com, had it closed, and was told to post it on programmers.stackexchange.com. So I posted it on programmers.stackexhange.com, had it cloased, and was ...
user avatar
7 votes
3 answers
1k 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 ...
user avatar
7 votes
3 answers
20k views

Physical memory usage issues with WordPress plugins

Occasionally, my website that's hosted with GoDaddy is crashing due to physical memory overload. My host told me that PHP processes are overloading the server, and to try to find out which WordPress ...
user avatar
7 votes
2 answers
971 views

HTTP2 is enabled and working, but PHP $_SERVER['SERVER_PROTOCOL'] still says "HTTP/1.1"

I've been migrating to a new host (AWS Lightsail with a Ubuntu instance) and while everything is working just fine I'm running into a quirk that I can't quite figure out. I've enabled HTTP2 on my ...
user avatar
7 votes
1 answer
2k views

Security: Hide mysql connection details file

Ok, so I know this must be a very basic question, but my problem is the following: I have developed my first PHP mini-app (so I'm fairly new to this) and I am pretty sure that there are two files of ...
user avatar
7 votes
4 answers
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 ...
user avatar
  • 2,070
7 votes
5 answers
3k views

Open Source website backup tool suggestions

I'm looking for an Open Source website backup tool. I'm more interested in Open Source so I can make changes if need be and possibly contribute to the software. Automatic scheduled FTP backups from ...
7 votes
6 answers
2k views

ASP.NET, PHP, SQL Server, MySQL hosting provider for developer? [duplicate]

Possible Duplicate: How to find web hosting that meets my requirements? I am looking to find a web hosting provider that provides ASP.NET and PHP hosting. The purpose is pretty much just a ...
7 votes
1 answer
1k views

Redirect users based on username (LDAP)

We have an apache 2.2 install with this config on an Ubuntu 12.04: cat /etc/apache2/sites-enabled/000-default <VirtualHost *:443> ServerAdmin webmaster@localhost DocumentRoot /var/www ...
user avatar
7 votes
3 answers
6k views

What are the pros and cons of running PHP as an Apache module or a FastCGI?

My VPS is giving me the option between running PHP as an Apache Module or a FastCGI. How should one make this decision? Performance? Security? Ease of use? Compatibility? I'm using PLESK.
user avatar
  • 488
7 votes
2 answers
255 views

Separating static/uploaded content from the site

I have a site where I anticipate to have a large amount of users. I've heard that it is a good idea to separate user content (uploaded images) and place them on a separate static server where lighttpd ...
user avatar
  • 225
7 votes
0 answers
295 views

PHP Gallery Script [closed]

I am searching for PHP Gallery Script with: get images from folders thumb resizer no admin no db
user avatar
6 votes
3 answers
2k views

Printing Single Quotes from Database to Screen

I have the following string as a varchar field in a MySQL Database: I'm When I perform a query to extract the string and then print it to the screen using the PHP print command, I get: I�m ...
user avatar
6 votes
5 answers
25k views

What is deleteme.xxxxxxxx.php

I was going through page hit logs on awstats and I noticed the following two entries: /deleteme.lcivykmt.php /deleteme.nctqicjg.php I was wondering if anyone recognised them and whether I should ...
user avatar
  • 183
6 votes
3 answers
1k views

Why can't update.php connect to my database when my site connects to it just fine?

I'm trying to upgrade my MediaWiki installation. My site runs just fine locally at http://localhost:8888/. I can connect to my database using the "Socket" connection on Sequel Pro on port 8888. My ...
user avatar
6 votes
3 answers
139 views

How to optimise the url for search engines?

I have a php template which has one index.php and all the different pages (content1.html, content2.html, etc) are shown on the index.phppage. So for example I can open www.example.com/index.php?...
user avatar
6 votes
3 answers
6k 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 ...
user avatar

1
2 3 4 5
23