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
317 views

Memcache alternative for cpanel hosting

Memcache is the best caching API for php, but it is not available on most of the hosting providers. Are there any alternatives to memcache which are available for most hosting providers(e.g. Godaddy)? ...
3
votes
2answers
108 views

Subdomains and Site

didn't know how to put this into to a title. Ok my idea is to have any subdomain working on my site, and for example if I type: what.example.com (my site has a unique folder for every subdomain, and ...
3
votes
2answers
397 views

Remember me or not?

I was told to post this on webmasters instead of stackoverflow. Is it safe to have the remember me feature? Would it be somewhat safe (knowing it won't be 100% safe) to allow users to close their ...
3
votes
1answer
1k views

How do I create a .htaccess file that would make my website work like Adfly

I need, but don't know how to make, an htaccess file that will send a user, when looking for the home page, to index.php. It should not send them anywhere when they look for a URL like /7fg4/. ...
3
votes
2answers
3k views

why is my site slower with amazons cdn?

so I have move most of the static objects to amazons Cloudfront CDN example: http://images.storyfollower.com/images/cycleOfStories.jpg which through cname point to the cdn Now I just ran a speed ...
3
votes
5answers
579 views

SEO problems with multilanguage site [duplicate]

Possible Duplicate: How can I get search engines to crawl my site and see a localised view of my data? I have recently started a CMS project in PHP, the site will be multilingual. ...
3
votes
1answer
280 views

SEO & Multilingual: would be this a good practise?

I am currently making a bilingual website and I'd like to get nice SEO results of course. Here's my idea: The internal links would be composed of the "www" subdomain so that people can share links ...
3
votes
1answer
122 views

404 working only with wrong extension

My 404 .htaccess works very well when I put a wrong extension at it in place of .php. Unfortunately the 404 does not work when I put a wrong name with .php. This is my .htaccess code: <Files ~ ...
3
votes
1answer
1k views

how the search engines interpret the exclamation mark in the url

I wonder how the search engines - Yahoo, bing, google ... - interpret the exclamation mark (!) in the url: www.site.com/product!651031 www.site.com/category!651031 I could not find documentation ...
3
votes
1answer
144 views

Can I get IIS to treat some .shtml files as .php files?

I want to be able to get IIS to interpret SHTML files (only in a specific directory) as PHP, and interpret the rest as SHTML. If so, then how?
3
votes
1answer
2k 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 ...
3
votes
2answers
756 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 ...
3
votes
2answers
52 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
3k 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
1answer
97 views

Submitting a URL to Google using PHP/cUrl

I've been successfully submitting xml sitemaps to Google using cURL. The URL is http://www.google.com/webmasters/sitemaps/ping?sitemap= The problem is that XML sitemaps take several days to be ...
3
votes
1answer
548 views

debian phpmyadmin - Call to undefined function __()

I recently upgraded my debian installation from wheezy to jessie. Now I get only blank pages when accessing phpmyadmin. The apache log says: Fatal error: Call to undefined function __() in ...
3
votes
1answer
302 views

with PHP: How to restrict access from one Addon domain to another?

With 000webhost (not with cPanel), whenever I add a new domain to my account, an entirely separate public_html is created and a separate FTP login. But with cPanel, all "addon domains" are created ...
3
votes
2answers
186 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
150 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
1answer
101 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 ...
3
votes
2answers
1k 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
76 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
80 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
217 views

Is there any way to prevent the Google toolbar from breaking Friendly 404s

This might be considered a continuation of this question. If I output HTML after my 404 header, It displays properly in IE and FF unless the user has Google bar instaled. If I try header('HTTP/1.x ...
3
votes
1answer
351 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
289 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
291 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
923 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
4k 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
2answers
12k views

Free HTTPS hosting with PHP support [duplicate]

Possible Duplicate: How to find web hosting that meets my requirements? I'm looking for free hosting with HTTPS and PHP support. Of course a subdomain is enough. Something like Google's ...
3
votes
3answers
2k 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
3k 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
1answer
629 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
566 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
0answers
61 views

“Failed to correctly acquire installer_nodejs_windows.msi file: CRC error” when installing Aptana Studio

When I try to install Aptana Studio I get the message: Failed to correctly acquire installer_nodejs_windows.msi file: CRC error What is this error and how it can be removed?
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
196 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
8answers
831 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
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
6answers
373 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
241 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
695 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
522 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
2answers
1k 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
2answers
526 views

Laravel Detailed Error Page Lost

I want to see all problems when a file can't loaded e.g. I used to do it but now I can't. The only thing I get when a problem occurs is Whoops, looks like something went wrong. How can I change ...
2
votes
1answer
268 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 ...