We’re rewarding the question askers & reputations are being recalculated! Read more.

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
31
votes
5answers
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?
17
votes
6answers
7k 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 ...
16
votes
4answers
44k views

How to check all installed in Magento extensions?

Where can I check all the installed Magento extensions in the admin panel?
16
votes
4answers
117k 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. ...
15
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 ...
14
votes
4answers
449 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 ...
13
votes
2answers
20k 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 ...
13
votes
1answer
609 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 ...
12
votes
5answers
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 ...
12
votes
1answer
49k 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:/...
12
votes
8answers
23k 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 ...
11
votes
6answers
14k 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 ...
11
votes
8answers
851 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?
11
votes
4answers
207 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 ...
11
votes
4answers
4k 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 ...
10
votes
5answers
954 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 ...
10
votes
10answers
24k 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 ...
10
votes
2answers
14k 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 ...
9
votes
2answers
796 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?
9
votes
3answers
287 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 ...
8
votes
3answers
10k 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)
8
votes
2answers
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 ...
8
votes
1answer
6k 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 ...
8
votes
2answers
4k 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 ...
8
votes
1answer
411 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:...
8
votes
3answers
384 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 ...
7
votes
3answers
396 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 ...
7
votes
2answers
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 ...
7
votes
7answers
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 ...
7
votes
3answers
18k 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 ...
7
votes
1answer
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 ...
7
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 ...
7
votes
5answers
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
1answer
7k 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 ...
7
votes
6answers
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
1answer
882 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 ...
7
votes
3answers
5k 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.
7
votes
2answers
15k 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? \...
7
votes
2answers
242 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 ...
7
votes
0answers
294 views

PHP Gallery Script [closed]

I am searching for PHP Gallery Script with: get images from folders thumb resizer no admin no db
6
votes
5answers
7k 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 ...
6
votes
3answers
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 ...
6
votes
2answers
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 ...
6
votes
3answers
3k 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 ...
6
votes
2answers
4k views

Number of page requests by any Bot in 5 secs

I am writing a script that will block any bot that requests page(s) for example X times in the past 5 secs. I need to find the X here. Do you guys know some approx values I can use?
6
votes
3answers
185 views

Use Apache to prevent a PHP script from connecting to a specific domain

Is there a way to prevent apache from connecting to a specific domain e.g. somesite.com? I have a PHP script that trying to connect to specific host, and I would like to prevent that.
6
votes
2answers
2k views

How does a CDN work on the tech side?

I never used a CDN before so this is a noob question, but how does it work on the tech side. For example right now when a user uploads an image on my site it is uploaded to the "/uploads" folder at ...
6
votes
2answers
239 views

When to upgrade your web-hosting? Advantages of VPS?

Right now I'm using shared hosting from ixwebhosting. As I've developed more websites for clients and continue to receive more visitors each month I have experienced a lot of "lag" and slow load times ...
6
votes
1answer
5k 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 ...
6
votes
2answers
5k 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 ...