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

2
votes
1answer
2k views

Apache VERY high page load time

My Drupal 6 site has been running smoothly for years but recently has experienced intermittent periods of extreme slowness (10-60 sec page loads). Several hours of slowness followed by hours of normal ...
2
votes
2answers
257 views

How to do a JavaScript redirection to the same page without hurting my SEO?

I did something that does that when people land on my page for the first time, they get a JavaScript redirection to the same page, but with PHP $_GET URL queries, then this page redirect back to the ...
2
votes
3answers
298 views

Hiding php includes from search spiders?

Quick and simple question. I have 80+ html files which I want to be crawled. They are individual product pages. Each of these pages calls its content using php includes. These php include files are ...
2
votes
3answers
4k views

PECL extension in Ubuntu 11.10

while setting up mediawiki on my local development machine, the installer told me that since i do not have PECL extension to php installed, i will have to do with slower page load speeds with ...
2
votes
2answers
241 views

Cookie manager PHP

I own a Joomla commerce store and although I use Google Analytics in order to track visitors, I need to install a cookie manager in order to be able to track cookies that were installed on customer ...
2
votes
1answer
1k views

Analyze high load due to Joomla?

I have a Joomla site causing very high (php) load on the server. I have already ran the MySQL slow log feature and it doesn't appear to be MySQL. What are some ways to analyze a Joomla site to ...
2
votes
2answers
174 views

Google and random redirects

I have a site where homepage "example.com" redirects to random joke(example.com/random-joke). First I redirected with php, but then google indexed that joke page(rather to be empty). I used "302 ...
2
votes
5answers
5k views

Recommend an open source CMS for single page web site [duplicate]

Possible Duplicate: Which Content Management System (CMS)/Wiki should I use? Hi I want to create a single page web site like http://kiskolabs.com/ or http://www.carat.se to display my ...
2
votes
2answers
373 views

How do I choose a web host with support for mysqli extension in PHP? [duplicate]

Possible Duplicate: How to find web hosting that meets my requirements? I have designed a website running in PHP and mySQL. And I used mysqli extension instead of the normal mysql extension ...
2
votes
3answers
902 views

Subdomains vs folders, for multi account/users application

So, for a multi user web app, what is better: http://username.domain.com Or http://domain.com/username I would like to get feedback about security, scalability and maintenance specifically, app ...
2
votes
4answers
155 views

Simple blogging platform

I want to start and host my own blog. I have ideas for creating the website theme myself. However, I would prefer to not create the actual engine behind the blog -- comments, creating posts, caching ...
2
votes
1answer
216 views

HTACCESS redirect a URL with query string in it

Basically you can visit /stats.php?player=name by simply typing in https://domain.com/@name and it works perfectly. But I also need the old /stats.php?player=name links to redirect to ...
2
votes
2answers
256 views

Browser will not cancel the request if routed through PHP

I have a site which has a feature that causes Apache to route all requests for files in a particular directory through a PHP script via .htaccess. A problem has come up that I'm not sure how to ...
2
votes
1answer
1k views

Modifying the PHP “upload_tmp_dir” variable on a Godaddy Linux hosting?

OK, I have tried to install Joomla and WordPress on one of the hosted domains at my Godaddy's Linux Hosting. For the Joomla installation I was encountering an issue where the installation would not ...
2
votes
2answers
439 views

Why does .htaccess not prevent a php script from accessing a file

I ran into the following issue: On a website I want to prevent "unauthorized" access to a set of .xml files - the user has to authenticate first. Now it would be possible for an authenticated user to ...
2
votes
4answers
68 views

Redirect example.com:81 to example.com

I need to redirect www.example.com:81/site/ to www.example.com. I have used mod_rewrite a few times, is it possible to solve this in a similar way?
2
votes
1answer
112 views

New to website form validation

I'm new to form validation and I have been lucky over the years. I would like to update my method of form creation in my sites. I was curious to know what is standard and if there is a preexisting ...
2
votes
4answers
463 views

How to add version control and seperate development server to php/web development environment? [closed]

I'm the team lead of a small group of developers. My background is primarily in application development and I've worked in larger groups where version control (SVN, Git, etc.) have been used and ...
2
votes
1answer
115 views

Why are perfectly legitimate pages on my website registering in Google Webmasters as 404?

I have seen this question asked several times here, but never clearly answered. I suspect it has something to do with my .htaccess file: # BEGIN WordPress <IfModule mod_rewrite.c> ...
2
votes
1answer
314 views

PHP W3 Validator API, Is this good? [closed]

I was trying to find a way to see if my site's code was valid or not but I continuously going over to W3 Validator so I decided to make an "API" however it really isn't! I just wanted to know if ...
2
votes
2answers
243 views

How can I create a dynamic site that is still search-bot friendly?

If I want to have a slide effect between pages. You click a link, it is loaded off to the side and then slides in (pushing the old page off the other side). I can imagine using jQuery to do the PHP ...
2
votes
1answer
1k views

How to extract $_SERVER['REQUEST_URL'] from given url [closed]

How to extract $_SERVER['REQUEST_URL'] from given url for example $url = 'http://localhost/application_dir/'; extract requested url from $url;
2
votes
2answers
771 views

Implement SSL in website

Our company have purchased SSL certificate and installed in linux on Host Server. Can you plz tell me how to make use of this in our website. How to configure it in Website.Is there any need to write ...
2
votes
2answers
2k views

Login script with member area/user

Is there a free script which I can use to: Share some PDF with my partners. But i need the user to reach only those PDFs which they have privileges for. So I need: login script with registration (i ...
2
votes
1answer
260 views

Allow visitor to print something they bought only 1 time

I am doing a website that needs to only let the customer print out what they bought 1 time. There are websites that currently do this and they mentioned Adobe Flash Player, Adobe AIR and the Sheet ...
2
votes
1answer
779 views

How to redirect user into mobile website?

Hi how to redirect the user into mobile site when the user accessing from mobile. Say example i have site called www.mysite.com. Now, a person accessing a website from mobile it should redirect to ...
2
votes
1answer
635 views

What is Easiest Way to Change URL Structure of Dynamic PHP Website? [duplicate]

I am a SEO guy and always facing this problem, that PHP sites make dynamic URL with IDs. This is not SEO friendly structure—like this /article.php?id=2987—and need to be changed like this ...
2
votes
1answer
2k views

How do I make SEO friendly URLs from my PHP pages?

I'm pretty new to this and was wondering how to turn my site URLs into SEO friendly URLs using .htaccess and mod_rewrite? My URLs take the form mydomain.com/index.php?pid=1&pagename=Some Page I ...
2
votes
1answer
320 views

Could you recommend a good shopping cart script? [duplicate]

Possible Duplicate: Which Ecommerce Script Should I Use? I'm looking for a PHP/MySQL script, free or not. Could you please recommend me one that can do the following: The site I'm trying ...
2
votes
2answers
327 views

Change content of page depending on Google search

A client has asked me to tailor the content of their homepage based on how the user got there from Google. His example is something like: If a user searches Google for Cars in Barcelona, then the ...
2
votes
1answer
1k views

Everything needed to run a high-traffic web site

I'm an experienced front-end web developer, while my back-end experience has occurred only within the context of Drupal. Basically, the deeper things go into the back end, the more inexperienced I am. ...
2
votes
2answers
202 views

Photoblogging engine using PHP and MySQL or PostgreSQL

I am looking for nice looking and with good usability photo blogging software to run on my server. So far I have found PixelPost, Cheesecake and EZPX. PixelPost - look quite abandoned project ...
2
votes
1answer
2k views

Accessing server stats using PHP

There are over 10 stats packages installed in my server (AWStat, Webalizer, etc) and cPanel has an interface to show them in terms of visitors, bandwidth, popular pages, etc. It is possible to access ...
2
votes
1answer
1k views

How do I change the default email that my host sends from php mail from in Justhost's C-panel

I'm trying to work with sending mail through PHP for the first time and I've done pretty well with the exception of one thing. All mail i send is from an email address that ends in "justhost.com" ...
2
votes
3answers
212 views

Looking for recommendation for PHP app hosting with (relatively) painless scalability [duplicate]

Possible Duplicate: How to find web hosting that meets my requirements? We're a pre-launch startup with a LAMP based application. We're looking for recommendations for hosting services for ...
2
votes
1answer
1k views

How do I save user uploaded files outside of the web folder but use them on my page?

I have read that one of the best things to do for security with user uploaded files is to store them outside of the web folder, as there is very little you can do to ensure that that jpg image the ...
2
votes
2answers
621 views

How can I tell if someone is logged into a google account?

At this point I don't want to interface w/ google account, I just would like to know if they are logged in to a google account or not, and then serve slightly different links if they are|aren't. I'm ...
2
votes
1answer
2k views

How can I call a URL as a cron job in Webmin?

(Possibly this belongs on stackoverflow, although it's not really a programming issue since the code works when run directly. If it needs to be moved, though, no problem.) I have a PHP file (which ...
2
votes
5answers
927 views

Looking for PHP E-Commerce Script which allows USERS to create their own stores [duplicate]

Possible Duplicate: Which Ecommerce Script Should I Use? Are there ready made PHP scripts which would allow my USERS to create their own stores? I don't want an eBay clones. Just a script ...
2
votes
1answer
122 views

PHP framework or app for customer support / automated troubleshooting

I need to provide my customers a web help so that I can diagnose their issues. I was thinking about a tree questionnaire, where the leaf is either the response to the issue, or a "Please call the ...
2
votes
1answer
641 views

Chat like chat.meta.stackoverflow.com in my website [closed]

How can I create a chat room like http://chat.meta.stackoverflow.com/ in my PHP website? I am looking for a free solution. Please help...
2
votes
1answer
120 views

How to remove php extension from pages except search results?

Using htaccess I have these php rules: <IfModule mod_rewrite.c> Options +FollowSymLinks -MultiViews # Turn mod_rewrite on RewriteEngine On RewriteBase / ## don't touch /forum URIs RewriteRule ...
2
votes
1answer
60 views

Wordpress plugin not working after moving domains - I get this error message

I have moved a wodpress website to a new domain with a new host. The website looks, fine and most of the wp-admin area works just fine too. However, certain pages on the admin area don't display and ...
2
votes
1answer
64 views

Dreamhost Shared Hosting - Increase post_max_size

I am using Dreamhost shared hosting running PHP 5.4 and I am trying to increase the file upload limit to 1 GB. I try to achieve that by using .user.ini and putting the following: upload_max_filesize ...
2
votes
1answer
47 views

PHP Dom Extension - Can I disable it

Can I disable the PHP Dom Extension temporarily (for debug reasons), without having to reinstall / recompile PHP? I want to install the module and I'm looking for a way to temporarily turn it off, so ...
2
votes
1answer
75 views

What setting allows a PHP to run for more than 60 seconds under Windows FastCGI?

I have a PHP script which is timing out after 60 seconds. I have changed the following config values but they don't seem to have any affect: max_execution_time default_socket_timeout ...
2
votes
1answer
198 views

Apache Unable to open logs: /Applications/MAMP/Library/${APACHE_LOG_DIR}/error.log

I am trying to run a project built in Ubuntu with PHP on fat-free framework. I am using MAMP on macOS Yosemite 10.10.1. I imported a database successfully through phpmyadmin & following these ...
2
votes
1answer
77 views

Sharing CodeIgniter installation between different servers

Current situation: I've got 2 different servers, each one hosting its own CI installation, and everything is working fine, except a lot of code is duplicated (custom libraries, some views, etc) My ...
2
votes
1answer
392 views

Whats the use of mysql.safe_mode in php.ini file?

I've seen some website on security recommend to enable mysql.safe_mode in php.ini # Enable SQL safe mode sql.safe_mode = On When I searched hard to find info on this, I found this: If the SQL ...
2
votes
1answer
96 views

Passing Arabic values in parameters results in % spaces

I have built an .htaccess clean URL, this part works perfect in my .htaccess: RewriteCond %{THE_REQUEST} /road.php\s [NC] RewriteRule . نقفورالثانيفوكاس/ [R=301,L] RewriteRule ^نقفورالثانيفوكاس/$ ...