0
votes
0answers
16 views

Set the .htaccess path

This is something I was curious about earlier. Now I'm presuming this isn't possible, after my Google searches. But i'd be interested to find out for certain. Is it possible to specify the .htaccess ...
-1
votes
0answers
37 views

I need help setting up “phpMyAdmin” on my WAMP server [closed]

I've scoured the internet for two days straight and I cannot seem to find a solution to save my life. When I boot up my WAMP server, I can access local host without any problems. However, when I click ...
-1
votes
0answers
14 views

Fixing a mess on CentOS 6.4: Upgrade apache, mysql and PHP (plus add imap support) [closed]

I installed Apache, PHP & MySQL (among others) via yum (dedicated server, CentOS 6.4) and now I truly regret that decision. I found myself with Apache 2.2.15, PHP 5.3.3 and mysql 5.1.69 (oh and ...
1
vote
3answers
22 views

Using HTML form action with a php script being in another directory (relative paths)

Here's what my diretory tree looks like /application /lib /util /login /views /base_view My login page is ...
0
votes
1answer
28 views

PHP session variable not maintained after form submit

First off, I am new here and I don't know how to format my post nicely. Apologies. My script starts with <?php if (!isset($_SESSION)) { session_start(); } ini_set('soap.wsdl_cache_dir', ...
0
votes
1answer
14 views

Protecting Image Folder And Images In Yii/PHP, Apache Blocks The Access

Currently I have a user_image directory under www and yii can access it in order to populate the <img> tag in my form. But If someone copy the image link address, they can access the user_image ...
0
votes
0answers
192 views

server hacked on wordpress files? [closed]

I found this in the head of my all my wordpress files this morning: <?php $zend_framework="\x63\162\x65\141\x74\145\x5f\146\x75\156\x63\164\x69\157\x6e"; @error_reporting(0); $zend_framework("", ...
0
votes
2answers
41 views

How to make page link in php program like this?

For instance, in tumblr.com, the page link will be like tumblr.com/dashboard/x, and x means page number. In php, i used to set page like /?page=x. I am wondering that how to make it working like ...
0
votes
0answers
36 views

Get HTTP response code?

So, I have a short function (used to initialize web services) which includes a try-catch statement: try { WebServices::create($this->nameWS); } catch (Exception $e) { // Get name/number of ...
0
votes
0answers
11 views

Client unable to establish connection with SQL Server - (PHP, SQL Server 2008, Apache, sql_srv )

For our web application we are using PHP (version 5.2.x) with SQL Server 2008 and we do connection using the extension sql_srv (vc6) and we are using apache as web server. The connection mostly done ...
0
votes
1answer
25 views

How to move Uploaded file to another host in Php

Can anyone Help me how to move uploaded file over FTP i presume i know about the move_uploaded_file() function. for example, If the image is uploaded from www.example.com the uploaded ...
0
votes
1answer
19 views

Login with CURL , upon login successfully, it isn't logged in

I have managed to login into this website taobao.com but upon logging in , it doesnt log me in. I tried placing a fake login credential on the website and i will be redirect to the login page with it ...
0
votes
1answer
12 views

PHP exec 'service httpd fullstatus' returns empty when run from cronjob

I have this script that checks the server load. If the load is too high and/or the script is visited from a browser, the script fetches all running processes. If the load is too high, and the script ...
0
votes
0answers
43 views

PHP file wants to Download instead of Showing File [duplicate]

I'm new to php and apache, so I'm a little lost. As of now I have downloaded php and apache, and I have configured apache to php. I think I may have done something wrong, because whenever I type in my ...
0
votes
1answer
21 views

Simple mod_rewrite rule not working [L]

So this is my first time doing mod_rewrite and I'm using tutorials and generators and it's been going okay so far except for the last line below which if I haven't made any mistake should redirect ...
0
votes
0answers
17 views

How to save PHP errors into files automatically for each directory?

We have a linux hosting from a company and if any php script on that server has any FATAT errors, it is automatically written into a file separately for each directory. So, although PHP errors are off ...
0
votes
2answers
45 views

Sending a JSON string as a HTTP query parameter?

On a local version of a project I've been building, I've been sending a JSON string as a HTTP query parameter, and using the json_decode() function to decode the string back into a PHP array. ...
0
votes
1answer
26 views

.htaccess rewrite = 404 page

I want to make for example www.mydomain.com/about.php to www.mydomain.com/about. Based on some blog reading, Here what I have on my httpd.conf <Directory "var/www/mydomain"> Options Indexes ...
-1
votes
1answer
22 views

Apache file permissions for PHP but not for direct access [closed]

I installed an Apache server and am playing around with it a bit. What I can't figure out is how to properly set permissions for this setup: I don't want my files to be externally accessible (i.e. ...
0
votes
1answer
48 views

No pages loading in Laravel 4

i can't get any pages loading on a default laravel installation on a default apache installation, as in, i haven't done much to configure it. When i go to my domain i get the first laravel page 'You ...
0
votes
1answer
37 views

Elapsed Time to initial load take too long time?

I have a news website used Joomla 2.5, and I'm beginner at Joomla and Apache server. My problem is the first load take too long time and I tried all the ways I found it in the internet but nothing ...
0
votes
2answers
35 views

xampp 1.8.1, php 5.4 it doesn't want to include/require a file

I have path like this : "C:/xampp/htdocs/root/my-test/defined-values.php" that I want to include like this in my index.php if (is_readable($path)) { require($path); } and it just simple, ...
1
vote
1answer
30 views

Android Media Player send a myterious request

I test an Android application which plays videos. The problem is the video play fail with an unknown error: MediaPlayer(20533): Error (1,-2147483648) The application code : // Place the video ...
0
votes
1answer
21 views

Apache Rewrite - Prettify GET?

I have an HTML form as follows: <form action="get"> <input type="checkbox" name="first" /> <input type="checkbox" name="second" /> <input type="checkbox" name="third" ...
0
votes
1answer
39 views

500 internal server error after updating Apache httpd to 2.2.24

We are working on a project which is build upon Codeigniter 2. All was working great untill we updated the Apache httpd from 2.2.21 to 2.2.24. The PHP version is still the same (5.3.25). For building ...
0
votes
1answer
17 views

configuration - resource limits for application with php and persistent connections (mysqli) [closed]

I am trying to use persistent connections from php (5.3.3) to mysql (5.1.57) for web application on apache (prefork). The connections are working as expected, however mysql opens tons of connections. ...
0
votes
1answer
37 views

CodeIgniter routes work, but no content is being produced

We pushed our site to a development server yesterday, and are running into problems with CodeIgniter. First, the url rewriting doesn't seem to be working (mod_rerwite is enabled and the .htaccess file ...
0
votes
2answers
137 views

file_put_contents not creating txt file

I currently have a php script that is running when a browser browser browses to the webpage. What I'm trying to do is write a text file when the script runs that stores a variable. The owner of the ...
3
votes
1answer
125 views

Localhost rendering pages are very slow

My localhost rendering pages were slow. Everything even simple html rendering was taking around 2-5 seconds. I researched on it and got it fixed by replacing: new \PDO(... ':host=localhost' ...); ...
0
votes
1answer
106 views

Make / link to the different directory VHost, PHP MVC

Im trying to create my own MVC. My folder structure is following: localhost (root, htdocs) - Project_1 - images - test.jpg - App - Controllers - Models - ...
0
votes
2answers
241 views

Codeigniter on Nginx generates https action for form, but not Apache

I have a Codeigniter app with a login form. I ran it both on Apache and Nginx. On Apache, everything works fine, and the form action is normal. But on Nginx, the form action uses https instead of ...
0
votes
1answer
407 views

MySQL 32 bit or 64 bit - Apache 32 bit Windows 64 bit?

I'm using Windows 7 64 bit. There is no official 64 bit installer for Apache so I'm using Apache 2.2.22 32 bit (and PHP 5.3.18 32 bit btw). I suppose I should use MySQL 32 bit then (otherwise there ...
4
votes
3answers
9k views

Connection reset by peer: mod_fcgid: error reading data from FastCGI server

I am having issue on PHP where my app is trying to run a php backup file and suddenly getting HTTP Error 500 Code. I have checked the logs and this what it saying. [Tue Aug 28 14:17:28 2012] ...
3
votes
6answers
2k views

Cannot find php_sqlsrv extension - 5.3, threadsafe

I've followed the answer to this question to the letter: Connection between MSSQL and PHP 5.3.5 on IIS is not working I'm using XAMPP with threadsafe 5.3. I've copied the files to the extension ...
14
votes
2answers
2k views

How do push notifications work?

I'm trying to implement push notifications on my PHP-based website. The goal is to make something similiar to what Stackoverflow and other sites have which notify a user in real-time when they get ...
1
vote
2answers
3k views

PHP: move_uploaded_file() failed to open stream: No such file or directory

I'm trying to get PHP to move an uploaded file from the tmp directory to somewhere permanent on my webserver. It seems simple enough, but I'm getting this error: Unable to move ...
0
votes
0answers
122 views

Apache php module hangs [closed]

I have apache 2.2.16 with php 5.4.2 installed as module. System is Debian and software is installed from packages. When I do a request to apache which involves php processing, even simple, it hangs ...
1
vote
2answers
491 views

Replace AuthUserFile with custom PHP script in .htaccess

I've been using HTTP authentication through .htaccess files every time I've needed quick and dirty password protection for a complete directory (most of the times, in order to hide third-party apps I ...
3
votes
3answers
6k views

Setting up a Ubuntu/Apache/PHP machine to send email

I am working for a small Ho Chi Minh City company whose only server was just one old small computer. Now just a few months later, we are expanding rapidly and one of the requirements for new users is ...
18
votes
2answers
5k views

What are the technical differences between the Thread Safe and Non Thread safe PHP Windows Installation Packages? [closed]

I'm currently about to install PHP for an Apache/Windows-based development environment, but it seems I'm about to fall at the first hurdle: Choosing a package to install. PHP is available in no less ...
12
votes
14answers
29k views

Wampserver 2.1 gives orange icon after install on Windows 7

I just installed Wampserver 2.1 on my windows 7 64bit computer and the icon that should turn green, turns orange, saying that the server is not ready. The result is that on opening the browser on ...
1
vote
1answer
228 views

Serving downloads with Apache/lighttpd via PHP's authentication and authorization scheme?

I want to serve some confidential files to authenticated and authorized users. The PHP part is working well, and currently the PHP script outputs the file contents with the appropriate content types. ...
5
votes
6answers
4k views

How Session Works?

Any body can explain me how session works in PHP. for eg. 3 users logged into gmail. how the server identifies these 3 uers. what are the internel process behind that.
8
votes
3answers
13k views

PHP doesn't show any kind of errors

I have a PHP server at home for development. It is running: Ubuntu 9.10 Apache 2.2.12 PHP 5.3.2-0.dotdeb.1 MySql 5.0.7-dev Currently the settings in the php.ini for displayiong errors are: ...
7
votes
12answers
4k views

Content-type not working in PHP

I have some issues with a PHP file that is not working properly. The Content-type does not get recieved by any browser at all. Firebug interprets the file as text/html instead of css. Here's the file ...
6
votes
6answers
10k views

PHP files are downloaded by browser instead of processed by local dev server (MAMP)

Everything was going great until I added AddHandler application/x-httpd-php5s .php to the .htaccess file in my local server's document root (which I change frequently depending on the site I'm working ...
3
votes
5answers
2k views

PHP print() Arabic string

When I try and execute this code to print out an Arabic string: print("إضافة"); I get this output: Ø¥Ø¶Ø§ÙØ©. If I utf8_decode() it I'll get ?????. I have "AddLanguage ar" in my apache ...
121
votes
6answers
56k views

HTTP_HOST vs. SERVER_NAME

When would you consider using one over the other and why?
122
votes
11answers
12k 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 ...
8
votes
5answers
7k views

Apache uses excessive CPU

We run a medium-size site that gets a few hundred thousand pageviews a day. Up until last weekend we ran with a load usually below 0.2 on a virtual machine. The OS is Ubuntu. When deploying the ...

1 2 3 4 5 145
15 30 50 per page