Tagged Questions
132
votes
11answers
13k views
UTF-8 all the way through
I'm setting up a new server, and want to support UTF-8 fully in my web application. I have tried in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.
Where ...
56
votes
12answers
52k views
Does PHP have threading?
I found this PECL package called threads, but there is not a release yet. And nothing is coming up on the PHP website.
16
votes
4answers
17k views
Allow php sessions to carry over to subdomains
I use php sessions (not cookies, except for session id cookie) for all user data, and when a user goes to their profile user.mydomain.com they are immediately "logged out" untill then remove the ...
8
votes
11answers
14k views
How to: URL re-writing in PHP?
I am trying to implement URL rewriting in my PHP application. Can someone share a step by step procedure of implementing URL rewriting in PHP - MYSQL.
In my application I want to implement following ...
129
votes
6answers
61k views
7
votes
4answers
11k views
PHP code is not being executed (i can see it on source code of page)
I'm trying to execute some PHP code on a project (using Dreamweaver) but the code isn't being run.
When i check the source code, the PHP code appears as HTML tags (I can see it in the source code). ...
81
votes
6answers
61k views
Make XAMPP/Apache serve file outside of htdocs
Is it possible to configure xampp to serve up a file outside of the htdocs directory?
For instance, say I have a file:
C:\projects\transitCalculator\trunk\TransitCalculator.php
and my xampp files ...
14
votes
12answers
10k views
Best way to manage long-running php script?
I have a PHP script that takes a long time (5-30 minutes) to complete. Just in case it matters, the script is using cUrl to scrape data from another server. This is the reason it's taking so long; it ...
14
votes
5answers
25k views
Disable PHP in directory (including all sub-directories) with .htaccess
I'm making a website which allows people to upload files, html pages, etc... Now I'm having a problem. I have a directory structure like this:
-/USERS
-/DEMO1
-/DEMO2
-/DEMO3
-/etc... ...
9
votes
2answers
9k views
Using X-Sendfile with Apache/PHP
I can't seem to find much documentation on X-Sendfile or example code for PHP (there is some rails code).
Anyone used it before and would mind giving a quick snippet of code and a brief description?
12
votes
7answers
40k views
Run a php app using tomcat?
Is it possible to run a php app using tomcat? Before you tell me to just use httpd, I already have a java application running on my webserver at host/myapp. Now I want to install RoundCube at ...
5
votes
1answer
3k views
PHP emitting 500 on errors - where is this documented?
In this question the OP mentions PHP throwing a 500 error automatically when error_reporting is off, and XDebug changing that behaviour.
That got me curious, as I've never heard of PHP automatically ...
24
votes
6answers
31k views
How to check if mod_rewrite is enabled in php?
I was wondering if it is possible to check if mod_rewrite is enabled on Apache AND IIS in PHP.
Mod rewrite for IIS exists. Check it here.
So, I'm looking for a PHP script that checks for mod_rewrite ...
18
votes
3answers
19k views
.htaccess - Is it possible to redirect post data?
I have a website where all requests are redirected silently (via .htaccess) to index.php and then PHP is used to show the correct page (by traversing the REQUEST_URI).
I was wondering if it's ...
10
votes
2answers
31k views
How can I relax PHP's open_basedir restriction?
open_basedir limits the files that can be opened by PHP within a directory-tree.
I am storing several class libraries and configuration files outside of my web root directory. This way the web ...