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

3
votes
2answers
51 views

Finding/hiring help with server administration

I need to install the fileinfo extension for PHP on my server. My hosting service does not support help with this. I know I could learn it and do it myself, but since I am an independent contractor ...
3
votes
2answers
2k views

Share on Facebook does not show thumbnail images

I have a PHP application which has a "Share on Facebook" button that, On the development server shows the thumbnail images correctly and allows the user to select between them On the live server, it ...
3
votes
2answers
1k views

Track down segmentation faults in PHP? [closed]

I'm looking for a relatively painless way to track down segmentation faults in PHP (as reported in the Apache error log). This is my LAMP setup at the moment: Linux: OpenSUSE 11.3 x86_64 Apache: ...
3
votes
2answers
82 views

Internal server error when using base64 encoded icon on the home page

I have an "index.html" (or .php - it makes no difference) file in the root / of my hosting space. That "index.html" file has this line of code in it: <link rel="icon" ...
3
votes
1answer
114 views

weird results from tests when trying to serve a fast image download page… why?

This is my php code. <?php ob_start(); echo file_get_contents("originalhighqualityphoto.jpg"); $dat=ob_get_contents(); ob_end_clean(); $dat=gzencode($dat,2); ...
3
votes
2answers
753 views

CloudFlare Not Sending If-Modified-Since Headers

I'm trying to reduce my server load by providing 304 Not Modified responses for content where appropriate. CloudFlare is my middle man, so they should be sending If-Modified-Since headers whenever a ...
3
votes
1answer
406 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: ...
3
votes
1answer
64 views

Are 307 Temporary Redirects safe for temporary new web site tests?

Our current site is getting close to being replaced. I was looking to do a test of our new sales funnel on the new site and compare the traffic and conversion ratios for a few days. So I was planning ...
3
votes
1answer
73 views

Reverse proxy with no httpd access

I'll outline my requirement, proposed solution and if anyone has a better idea please feel free to suggest. Requirements / Desires - I want multiple clients to be connectible to an address ...
3
votes
1answer
320 views

Difficulty enabling caching on inherited site

I have been asked to work on a corporate website a previous employee had created. The site is on shared GoDaddy hosting. One of the first things I noticed (after the 140KB JPEG on the front page, ...
3
votes
1answer
280 views

Unable to print login-required images in IE

I have some images in a section of a site that require the user to be logged in in order to view. These images are served by a PHP script, which checks the user's login state and if valid, serves the ...
3
votes
1answer
276 views

Maximum file size for iFrame in IE7

I've got a "super secure" javascript downloader* that I wrote, and it usually works alright. But I noticed, while trying to download a 90 meg file with it on a client's machine that on IE7, it's ...
3
votes
2answers
805 views

You don't have permission to access /index.php on this server

I made a 'login with OpenID' page and I had a error when OpenID provider return to my page: You don't have permission to access /index.php on this server. Additionally, a 404 Not Found ...
3
votes
1answer
4k views

Setting file permissions on linux to allow PHP to write to a directory

I have a website built with Codeigniter and hosted on a Linux box. I am trying to follow "best practices" when it comes to my file permission settings, but I'm not sure if I completely understand the ...
3
votes
3answers
3k 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 ...
3
votes
3answers
1k views

Storing User-uploaded Images

What is the usual practice for handling user uploaded photos and storing them on the database and server? For a user profile image: After receiving the image file from user, rename file to ...
3
votes
2answers
2k views

self hosted open source document management apps?

I'm looking an open source self hosted PHP and MySQL document management apps. security: accessing a document by specific users Work flow: by admin approval (may be two admins) document ...
3
votes
2answers
710 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://site.com/news/view/1.html I want to it redirect it to: http://site.com/خبر/عنوان-الخبر where خبر is equal to news and عنوان-الخبر is ...
3
votes
1answer
587 views

IIS XML encoding seems to be wrong

We are moving our web application from Apache 2.0 to IIS 7. Everyhing is fine with UTF-8 encoding, but just one thing. There's a flash movie in the page that reads an xml content (dynamically ...
3
votes
1answer
515 views

What are common Media Library tools used for Kentico/Generic PHP sites?

Through a course of mergers and acquisitions the particular group of companies who I work for have built up a vast array of websites running either Kentico (or ASP websites that will be using Kentico) ...
3
votes
2answers
110 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 ...
3
votes
0answers
33 views

PayPal - Selling a single app [closed]

I would like to sell a desktop application over my website through PayPal. The user will receive a download link and a license key. Are there any PHP scripts availabe from PayPal IPN to do that? ...
3
votes
1answer
11k views

Install PHP5 with Tomcat 7 on Windows? [closed]

Can't find anything on this, what are the steps or instructions for installing PHP with Tomcat 7 on Windows?
3
votes
4answers
187 views

Are there any scripts to integrate social networking site's chat and posting features into a webpage [closed]

Are there any scripts to integrate social networking site's chat and posting features into a webpage using PHP or JS... for example a section with Facebook chat, a section to post to twitter and maybe ...
2
votes
2answers
2k views

Where to find my website's source code?

My company ordered a website and we were given all usernames and passwords but I can't find the PHP source files and this is my first website assignment. I have no prior exposure to web technologies ...
2
votes
4answers
111 views

Should I rely on externally-hosted services?

I am wondering over the dangers / difficulties in using external services like Google Chart in my production state website. With external services I mean them that you can't download and host on your ...
2
votes
8answers
669 views

What should the Unix file system permissions be for PHP files under Apache?

What is the best practice for permissions with PHP files? When should they be writable, or executable? What owner is best? I'm using an Apache server.
2
votes
6answers
269 views

PHP not working with hosting

I have been playing with a php CMS site for someone that I am ready to deploy but am running into a couple problems that I assume to be hosting related. I have been developing and playing with it ...
2
votes
2answers
210 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
1answer
558 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
502 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
228 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
3answers
81 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
211 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
802 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
60 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
2k 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
242 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
230 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
77 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
1k 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
891 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
652 views

PHP Image Gallery without javascript [closed]

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
1k 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
873 views

fsockopen() error : Network is unreachable port 43 in php [closed]

i've writed some Php code that lookup for domain (whois) but it fails !! this is some of my code : function checkdomain($server,$domain){ global $response; $connection = fsockopen($server,43); ...
2
votes
1answer
401 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
1answer
757 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
362 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
149 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
1k 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 ...