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
4answers
3k views

Any good alternatives to MediaWiki for creating an 'intranet' type system?

I would like to install some form of intranet system to allow multiple users to add documentation to - MediaWiki would suffice, I just wondered if anyone knew of any better alternatives (must be PHP). ...
2
votes
6answers
492 views

PHP permissions

Can someone please explain best practice for permissions with PHP. What case should something be writable, executable, what owner is best, etc. ? Using an apache server
2
votes
1answer
431 views

Pass IMG SRC via GET and echo it? Is that really secure?

I was wondering how I can make a really simple GET and echo request more secure The code: $src = $_GET['src']; echo "<img src='$src' />"; Basically, I have a URL like ...
2
votes
2answers
413 views

Should WHMCS hacking attemps that never succeed be important to me?

I have WHMCS and I use it with no problem for my hosting purposes. Almost every 2 or 3 days, I can see a spam with malicious content submitted as a new ticket that tries to hack. The last one was: ...
2
votes
1answer
176 views

How Do I Make A Dynamic PHP Link 'No-Follow'?

I want to make the Footer links on my website 'No Follow'. How would I do it on these dynamic PHP links? <ul> <li><a ...
2
votes
2answers
155 views

404 page not showing URL

My 404 page (/404.php) works, it's sending the proper headers (404 - Not found). But the thing is, it's not giving the link that caused it (e.g. example.com/thisisnon-existant.htm) but instead it's ...
2
votes
3answers
77 views

understanding technology that news websites use

I am trying to understand the technology which many news websites use please have a look at this website http://www.shritimes.com/ if you click any news item then the particular thing gets zoomed ...
2
votes
1answer
203 views

Can a web-server be reached in other ways than through `HTTP` or externally?

A server hosting an application built in PHP: Can the server be reached in other ways than through HTTP or externally? Is GET and POST only populated through the HTTP protocol? Is HTTP headers, GET ...
2
votes
2answers
430 views

Fix PHP Timezone warning

After installing a php application my site loads the app with a warning overlayed on the page Warning: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. ...
2
votes
1answer
55 views

Google Analytic's and Universal PHP Footers

If I have a universal Footer, include('footer.php'); on my page - will the google analytic's script I just put there be able to track my page views?
2
votes
1answer
1k views

URLEncode of full URL

I am using the PHP urlencode() function to escape chars for anchor tags (). Why can't I use the function on a full URL such as ...
2
votes
2answers
206 views

I have “CMS” made by myself with PHP and I cannot make my websites appear on google

I have developed an Admin Panel that you can use to change conents on the website. It works basically like this: You use functions to generate HTML like menus, footers, side modules, etc. I use ...
2
votes
3answers
197 views

Redirect to same site but add things into the URL

I have a PHP file, index.php, that is set as the index file for my site. If someone wants to pull up a value for a, as an example, then they would type http://www.website.com/?value=a. Is it possible ...
2
votes
2answers
65 views

How to block certain pages/files of a web domain?

How do I make certain pages only viewable by me? For example, let's say I own mydomain.com, and I want to be the only one that can see mydomain.com/mypage.php. I tried changing the permissions of ...
2
votes
3answers
834 views

Q&A system for website in php [duplicate]

Possible Duplicate: Is there a free, open-source question and answer (Q&A) application similar to StackExchange? I'm looking for a good, open source (if possible) q&a (questions ...
2
votes
3answers
313 views

Server Side Includes that work in HTML and PHP with IIS 7 on Windows Server 2008

We currently have SSI set up to work in our HTML pages as follows <!--#INCLUDE file="/includes/header.inc"--> We also use PHP on our server, and are trying to avoid creating two separate ...
2
votes
2answers
522 views

PHP Image Gallery without javascript

I am looking for a simple PHP gallery with the following characteristics: Pure PHP HTML CSS SQL Excludes JavaScript Handle Subcategories Easily customizable I have tried to search, but I find ...
2
votes
2answers
680 views

Is making my PHP files read-only a useful security measure?

Up until now I've been "protecting" my website's PHP files by making them read-only with chmod. Is this a useful security tactic? Or is it some "old wive's tale" and I'm wasting my time? I'm ...
2
votes
1answer
335 views

zlib compression issues

I'm having some issues running zlib compression on my site .. Firstly if I enable zlib compression in .htaccess using: php_value output_handler ob_gzhandler then I receive thousands of lines of the ...
2
votes
2answers
531 views

A simple and free guestbook script?

Looking for a free, simple PHP guestbook script - couldn't talk the client out of the idea - and I remember using something fairly easy to set up a few years ago that used a simple txt file to store ...
2
votes
1answer
662 views

How to remove 500 error?

I am getting 500 error "Internal Server Error" when I type in my domain. I called customer service and they said that my site has reached it maximum use of memory and therefore the cloud system ...
2
votes
3answers
314 views

How to inform website owner if someone downloads something from the website?

Right, beginner here so bare with me.. What i've got: A simple html/css website with a page where clients can find informative documents in the form of PDF's and rich text documents, they can just ...
2
votes
2answers
147 views

Am I correctly handling duplicate URLs for my homepage?

I own a Job Search site named www.conservationjobboard.com and have a concern about how the domain is viewed by search engines. The issue is that when the site was first designed, the default page was ...
2
votes
1answer
734 views

How to stop access of a PHP file from other sites

I read somewhere about hot linking of images. Preventing image hot linking helps to stop bandwidth theft from your site. Would it work for a PHP file? In my case, I am using a PHP file to generate ...
2
votes
2answers
705 views

How to reduce delay between forum posts in phpbb

In my phpbb forum, just after I post a reply to a thread, a page is shown and I've to wait around 5 secs to return back to the thread. How do I reduced the time to 0. (I tried setting the "Flood ...
2
votes
1answer
512 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
218 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
1answer
956 views

Add email attachments by URL in CodeIgniter [closed]

I tried this code to attach a file in CI. This is working: $this->load->library('email'); $this->email->from('me@mymail.com', 'vignesh'); $this->email->subject('Email Test with ...
2
votes
3answers
255 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
3k 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
1answer
870 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
160 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
3k 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
4k views

No databases showing in phpMyAdmin

My website is hosted in shared hosting service and is working fine with updated news stored in MySQL database. To manage the database of website, I install phpMyAdmin in a sub-folder with the same ...
2
votes
2answers
295 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
691 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
144 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
2answers
39 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
1answer
538 views

Connecting to my local WampServer from mobile?

I want to make an app for file transfer between mobile and a web server. I don't have web space yet and want to simulate that. The mobile part is ok. I have the PHP code too, Is there anyway I can run ...
2
votes
1answer
106 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
363 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
171 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
198 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
601 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
546 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
1k 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
2answers
214 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
207 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
656 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
492 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 ...