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

5
votes
2answers
3k views

Is there a simple shopping cart I can add to my existing website? [closed]

I created a website for my wife, who knits scarves. The site simply displays the 18 different colours she has created, with a Lightbox-like large photo available when clicked. She would now like to ...
5
votes
1answer
1k views

PHP URL Rewrite engine for small project

I use PHP. I want to setup a micro site as a prototype, where I can work with the frontend only, separated from any CMS. URL Rewrite I also want the URL rewrite to be correct, like ...
5
votes
3answers
132 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 ...
5
votes
2answers
7k views

best way to import 500MB csv file into mysql database?

I have a 500MB csv file that needs to be imported into my mysql database. I've made a php file where i can upload the csv file and it analyses the fields n stuff and does the actual importing. but it ...
5
votes
3answers
111 views

How do i make it difficult for users to make multiple accounts

I'm creating a website for my business and I want to offer free first deliveries for the first week but I'm afraid people will take advantage of that. I don't take any money or credit card info ...
5
votes
3answers
500 views

Looking for a good server side shopping cart solution [duplicate]

Possible Duplicate: Which Ecommerce Script Should I Use? I'm working on a website that will be selling tickets and they will go fast. I need a server side solutions, in php if possible, ...
5
votes
2answers
1k views

Requesting advice for accepting large file uploads

I asked this question over at StackExchange but was advised to try here... I'm looking at building a web app that includes a file upload element. I'd like users to be able to upload files of any type ...
5
votes
1answer
487 views

MediaWiki Error: Lua error: Internal error: The interpreter has terminated with signal “11”

I have a MediaWiki deployement at: http://wiki.tankpedia.org/ I have been importing templates from Wikipedia and am receiving a Lua error for the Convert template; the error is: Lua error: ...
4
votes
6answers
3k views

How to tell Google that I have changed my website URLs?

I have done major updates to my website, and renamed all my URLs. How can I tell Google that I have renamed these URLs and let Google refresh its index? My website URL: http://www.pndmasr.com/ My ...
4
votes
6answers
674 views

SEO - which URL's are the best?

I'm using .htaccess with RewriteRule to create SEO-friendly URL's. However, I have a few questions about this: First of all, I noticed many websites end their URL's with .html (or another ...
4
votes
4answers
1k views

What version control options are available for PHP web development?

I have done some basic web programming in the past and wish to develop my skills further and begin doing large scale projects as a contractor. I have no experience with version control to this point ...
4
votes
2answers
466 views

How to use the private and public keys?

I am new to ssl certificates, i wanted to learn about ssl certificates, and I generated private and public keys myself while logged into cpanel, I wonder how to use those and generate a secured ...
4
votes
6answers
373 views

Web Hosting Advice for Project [duplicate]

Possible Duplicate: How to find web hosting that meets my requirements? I am working on a project that will be released as open source in the latter part of the year. I am starting to think ...
4
votes
2answers
208 views

Any chance to redirect homepage to a changing permalink without irritating search engines?

We have a php 5.3/Apache 2.2 based cartoon website that always shows the most current cartoon on the homepage (index.php). Now, a lot of people want to link directly to that cartoon (by copying the ...
4
votes
3answers
116 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 ...
4
votes
2answers
1k 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 ...
4
votes
2answers
1k 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?
4
votes
3answers
1k views

client website compromised, found a strange .php file. any ideas?

I do support work for a web development company and I found a suspicious file today on the website of one of our clients called "hope.php" which contained several ...
4
votes
5answers
877 views

Seo for collapsed text?

I have been tasked to make a pretty simple site which have to be SEO friendly. Now, i was told that the articles should take minimal space when listed so i thought of a "read more" expandable plugin. ...
4
votes
5answers
2k views

PHP framework to use on GoDaddy host with no shell access

I'm a Ruby-on-Rails developer but am trying to develop a site to run on a GoDaddy Economy hosting account. This means I don't have Ruby and Rails available so I've decided to go with PHP 5 since the ...
4
votes
3answers
8k 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 ...
4
votes
3answers
189 views

Good practice for sending out test emails without being classified as a spammer

I am trying out some new ideas involving HTML emails that will be sent from my site. I am sending lots of test emails to my Gmail and Yahoo accounts, all of which go straight to the spam folder. ...
4
votes
2answers
77 views

Best process for upgrading a live server

I just recently started at a new company, and their live server has PHP v5.2.6 (yes, circa 2008). A site I recently designed for them actually wouldn't work on it because PHP is so old, so I've now ...
4
votes
1answer
3k views

How to do a cacheable redirection?

When users enter my website example.com, their "preferred" language is detected and they are redirected (using a 301 Moved Permanently redirection) to example.com/en/ (for English), example.com/it/ ...
4
votes
3answers
4k views

using .htaccess to redirect .asp to .php?

Ahoy all! I've been racking my brain with this one. I basically just converted all of my pages from ASP code to PHP code. Kept the same filenames. So, here is the htaccess code I have so far, but ...
4
votes
1answer
2k views

Is it (still) advisable to use the PHP extension html tidy?

Currently i'm using latest stable version of PHP, webmastering a online shop with Doctype XHTML. Most of our customers use "old" browsers, 25% use IE8, 10% use IE7, 3% IE6 (however, IE6 never ...
4
votes
2answers
215 views

Website hack resulting in auto redirect - where to start looking?

My website is being redirected to a non-existent page (/showpage.php) for some users when they hit the homepage. For other users, the site works fine. I have looked in the index.php files and some ...
4
votes
1answer
177 views

Apache create index for directories without one specified.

Currently, I use a PHP script to list the contents of a directory that does not have an index file, but I don't want to have to copy it to every directory without an index. Can Apache do it ...
4
votes
1answer
267 views

Prevent script execution as TimThumb exploit workaround

It's been a long time since I've done any web-development, and I never needed to administer a server myself. However, I can read manuals with the best of them, and when someone needed advice regarding ...
4
votes
2answers
241 views

Redirect page to symlink

So I have 2 URLs that basically link to the main url using a symlink maindomain.com englishdomain.com -> symlink to maindomain.com frenchdomain.com - > symlink to maindomain.com/fr ...
4
votes
3answers
501 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 ...
4
votes
1answer
5k views

What is the best currency API out there? [closed]

I may be asking an odd question, but webmasters seem like a decent place to post this. I'm in the search for an accurate, easy API (such as using JSON or XML) so I can use my web application. I've ...
4
votes
1answer
5k 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? ...
4
votes
2answers
864 views

How do I redirect an English language URL to an Arabic language URL?

I have a link that's currently formatted like this: http://example.com/news/view/1.html I want to it redirect it to: http://example.com/خبر/عنوان-الخبر where خبر is equal to news and ...
4
votes
3answers
162 views

how to keep a visitor 100% anonymous

Maybe a broad question, but how can you keep a visitor to your site 100% anonymous on your server. The site is written in PHP. No trace of what he or she has visited on your site. Any suggestions?
4
votes
4answers
2k views

Any free/affordable alternatives to Polldaddy? [closed]

I'm looking for a free/cheap embeddable poll that I can just stuff in an iframe - the page I've been tasked to maintain has been created in iWeb, which does not generate anything but the final markup ...
4
votes
1answer
120 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 ...
4
votes
1answer
69 views

Statically mapping a PHP script to another script using an .htaccess file results in 404 errors

After having read a lot of posts on the topic of URL rewriting, I still remain stuck with 404 status errors. My goal: A 'static' rewrite of URLs, as follows (user clicks or enters the one ...
4
votes
1answer
684 views

How To Get Alexa Sites Linking Using PHP

I am planning to get the Alexa sites linking of a given website. I am looking to do this in PHP. Please suggest me is Alexa providing any API. Is there any tool? Is it free? Is there any API that I ...
4
votes
4answers
202 views

Best location for a websites CMS

As part of my job I recently started making numerous content management systems for websites. So many that obviously my next step was to set up a 'template' for the websites so I could quickly remove ...
4
votes
3answers
553 views

PHP framework suggestions [closed]

I'm going to be creating a site for a business with the following: Single Item purchases with Paypal, Google Checkout and Amazon Checkout Digital Downloads for members from a CDN Forum Voting on ...
4
votes
1answer
110 views

How to promote the quality/security of your a website to your its customers?

Our organization is building a Drupal web platform that we aim at reselling as a cloud service. In order to provide our customers with maximum confidence in our solution, we're looking at ways of ...
4
votes
1answer
1k views

Has anyone used WebFaction hosting for large traffic websites? [duplicate]

Possible Duplicate: How to find web hosting that meets my requirements? I'm a point where I'm needing to move a large traffic website off of MediaTemple Grid Server (it's maxing out the ...
4
votes
1answer
338 views

Per-Thread Visibility PHPBB

I'm trying to implement a registration system for a board I'm running, and I want a forum where every thread is invisible to everyone but the person who started it and the moderator staff. I want ...
4
votes
2answers
82 views

portfolio blog hosting

We currently have a photo storage website. A user can store his photos on our site. We want to give a facility to each user to create his photo portfolio and customize its look and feel, and contents ...
4
votes
1answer
850 views

PHP remote development workflow: git, symfony and hudson

I'm looking to develop a website and all the work will be done remotely (no local dev server). The reason for this is that my shared hosting company a2hosting has a specific configuration ...
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 ...
4
votes
2answers
340 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): ...
4
votes
2answers
131 views

Switching to HTTPS - redirect question

Following the recent Google announcements about improved ranking for sites running on https we have a number of clients asking about this. Is it safe to just 301 redirect all pages to their SSL ...
4
votes
2answers
79 views

Slow Migration is it possible with a PHP/SQL Driven site

I have a Joomla site that is operating on www.mysite.com, I want to migrate to WordPress but heres the thing, I have hundreds of pages and simply moving migrating them to a test site isn't ideal since ...