Tagged Questions
0
votes
0answers
9 views
mod_rewrite rewrite subdomain to look like directory
We have a new site where we want to rewrite a subdomain to look like a directory:
For requests for http*//blog.website.com we want to serve up content from http*//blog.website.com but re-write to ...
0
votes
0answers
7 views
Is getmypid() safe to uniquely identify an Apache process running PHP?
As far as I understand it, different processes have different PIDs, but different threads in a given process all share the same PID, but differ by their TID.
I'm using Apache + PHP in my application, ...
2
votes
0answers
18 views
MAMP pro server - Cannot send a string of more than 1333 characters
I have a strange problem. I cannot send a form if one the fields has a string of more than 1333 characters.
Here's my simple html page:
<form method="POST">
<input type="hidden" name="a" ...
0
votes
0answers
26 views
Why does $_SERVER[“SERVER_PROTOCOL”] give incorrect http version?
I'm trying to get the HTTP version the client use to connect to me http://test.yccau.com :
<?php
echo $_SERVER["SERVER_PROTOCOL"];
?>
I'm using PHP 5.3.26 and Apache 2.2.24. For some reason, ...
0
votes
1answer
15 views
htaccess rewrite - rules ignored?
So I have an API on my system, running on the domain "system.com", the api runs on "api.system.com", but is hosted on the same server.
The aim of my .htaccess is, to redirect all calls that contain ...
0
votes
1answer
21 views
Would it be a good idea to install web development server and tools on flash drive? [on hold]
Sometimes, I work on office computers at office and I sometimes work at home. However, I can not use GIT for some reasons with current small projects. For convenience, I am thinking to install a ...
0
votes
2answers
35 views
php - variable accessibility with require_once/ob_start()
Maybe I'm just tired or just am simply confused, but I'm having a strange issue dealing with some require_once() calls and ob_start().
Basic Structure:
Top of Main.php:
require_once 'config.php'; ...
0
votes
0answers
9 views
Apache parsing %2B and other characters not as expected
I have htaccess file which has
RewriteRule ^(.*)$ index.php?file=$1 [L,QSA]
Now if pass a value suppose
tNX3iJ9zraIzrrxzFMKKIxEU%2BB0IBhoyihXuFxLgbOE%3D
Then echo out in php file output i get ...
-2
votes
2answers
23 views
How to emulate “compile time” includes in PHP?
I have a document whose code is divided into two files, main.php and bootstrap.php.
The usual way to put them together is:
<?php
// this is main.php
ini_set("display_errors", "0");
...
0
votes
2answers
25 views
Wamp disable display errors
I didn't want display the error of my code in a browser.
With wamp i disabled display errors in Wamp -> PHP -> Php setting -> display errors but when I refresh my page i have an error message not a ...
1
vote
0answers
41 views
How to load all pages/urls on a website? [on hold]
I'd like to somehow load/execute all pages on a website, so that I can check apache's error log whether everything works. Is this possible?
The only idea I came up with is make wget recursively ...
-2
votes
0answers
30 views
How to run two PHP application in apache server at the same time [on hold]
I want to run two application in same apache server at the same.as i want access file from one application to onother application. can any one help me??
thise are PHP applications only... when i ...
0
votes
1answer
41 views
Cannot send a string longer than 1333 characters by POST without the page timing out
I have a problem sending an input hidden field containing more that 1333 characters. If the string contains more than 1333 characters, then when I try to send the form via POST, the page times out. Is ...
0
votes
2answers
23 views
Secure downloads without authentication
I would like to create temporary links to prevent direct download of files.
The flow should be this:
user purchase the file, indicating only the email address -> sends an email to that address with ...
-2
votes
3answers
35 views
What's a symlink and how to create one? [on hold]
I search a lot and found no clear definition about symlinking.
I'm being a php developer for a couple of months and found situations where I've been told to symlink something. I need a definition ...