0
votes
1answer
21 views

No INI files are loaded (php.ini)

When I was trying to install propel and tried to run it with this command: library/propel/generator/bin/propel-gen I always get this error: Warning: require_once(phing/Phing.php): failed to ...
1
vote
2answers
19 views

php opendir symbolic link on localhost apache

I am running a localhost server on my mac under /Users/myusername/Sites I have a symbolic link in my Sites folder to an external dropbox directory . If I try to run opendir and load images in the ...
0
votes
1answer
23 views

.htaccess rewrite: subdomain as GET var and path as GET var

Desired result: http://example.com/ -> index.php http://www.example.com/ -> index.php http://hello.example.com/ -> index.php?subdomain=hello ...
0
votes
0answers
15 views

mod_rewrite condition if path has two stings

What I would like to do is to get value from path in case where are only two values. Ex. 127.0.0.1/myApp/<anyName> and should be translated to ...
0
votes
1answer
9 views

htaccess remove file extension for domain and subdomains (eg. example.com and test.example.com)

I have a root domain www.example.com, and a subdomain test.example.com. I'm trying to remove file extensions - so far I can remove the file extension for the root domain but not the subdomain - it ...
0
votes
1answer
31 views

Looking for php files in two places and overriding the file if exists in the main directory

I would like to have some base files to be used across two sites, and then have them override the base file if there is a file found in lets call it the parent/main directory. Otherwise look in the ...
0
votes
1answer
20 views

apache rewrite rule to add www

I've added a rule to force www in front of my domain name: browsing to mysite.fr redirects to www.mysite.fr// why does it add two slashes at the end of the URL ? Here's my full rewrite rules set: ...
0
votes
0answers
19 views

php5 curl: Recompiling does not reflect in phpinfo

I am trying to get curl to work on my Oracle Linux OS, but I am running into some walls. I am loading my phpinfo() page using an Apache + Django combined server. Furthermore, I have made sure to ...
0
votes
1answer
24 views

Having problems with RewriteRule and .htaccess

I'm having a problem with my .htaccess. This is the code: RewriteEngine On Options -MultiViews Options +FollowSymlinks #Remove .php extension RewriteCond %{REQUEST_FILENAME} !-d RewriteCond ...
0
votes
0answers
20 views

htaccess environmental variable alternative with PHP

I have been using setEnv in an .htaccess file, but the webhost recently updated the server to PHP 5.4 and since then my site has crashed due to the use of setEnv. They tell me that the function has ...
-4
votes
0answers
29 views

Internal server Error after htaccess edit

I have to edit my .htaccess file to make the $_POST array accept more than 1000 (which is the limit in the new version of PHP) But when I add the line: max_input_vars 2000 I get an internal server ...
-1
votes
0answers
10 views

including time from an atomic clock in a php site

i am building a web-Based MIS,and i want to include a clock with atomic clock time in it.can someone tell me how it can be done? i am using php for the system,on an apache server
0
votes
1answer
39 views

What is the most efficient way to redirect 1000 pages?

I know this question has been asked in many different ways, but I have not been able to find a question or answer exactly like mine. I have almost 1,000 pages that need to be redirected. There is NO ...
2
votes
2answers
48 views

php/symfony2 hiding app.php from the URL

Consider the following URL : http://www.samuel-berthelot.fr/accueil. It won't work. However http://www.samuel-berthelot.fr/app.php/accueil does work. I got rid of the .htaccess file because I want ...
2
votes
0answers
63 views

PHP scripts seem to be executing twice

I have a generic PHP maintenance script that sets a database value to prevent running at the same time as another instance. Usually run via cronjob. I cleared the database value and tried running ...
-1
votes
0answers
12 views

htaccess compression & expire headers not working [duplicate]

After long searching & test of my application I did add the following lines to my "htaccess" file, but when I tested if it has compression on, it says "no" & also for expire headers, it ...
1
vote
2answers
26 views

if i already have a working setup on my mac, is installing MAMP going to pollute it? [on hold]

I mean is it going to overwrite those config and ini files that I have with Apache and PHP? Or is MAMP just going to fit in with it? Detail: I am using Mac and have Apache, PHP and MySQL running on ...
0
votes
1answer
14 views

413: Request Entity Too Large on HTTPS

I've seen several questions with the same problem and most propose the following solutions increse the post_max_sizein the php.ini file (set to 8M) increse upload_max_filesize in php.ini file (set ...
0
votes
1answer
23 views

htaccess expire header & compression

After long searching & test of my application I did add the following lines to my "htaccess" file, but when I test the website if it has compression on, it says "no" & also for expire headers, ...
0
votes
0answers
16 views

Apache rewrite behavior changes - depending on server

I've got an apache headache, and I'm looking for some stackoverflow advil. Here's the .htaccess. php_flag display_errors off RewriteEngine On # Redirect everything to the Front COntroller ...
0
votes
0answers
25 views

url rewriting and server error

I want to hide folders in urls using .htaccess file in GoDaddy hosting like this: http://www.example.com/folder1/folder2/are_string_beans_all_right_on_the_candida_diet.php into ...
0
votes
1answer
20 views

Apache ANT Exec - Handle exec/CakePHP Console Prompts

I am fairly new to ANT but so far was able to automate majority of my tasks. I am struggling in one part and could use your help. I have a exec task as described below: $ /cakeapp/app/Console/cake ...
0
votes
0answers
8 views

User Home directly from shell_exec in PHP running on Apache

I have the following snippet of code in a PHP file: echo `whoami;cd;pwd`; When I run this script from the command line (lets call this test.php), php test.php, I get the following output: rohit ...
0
votes
2answers
32 views

.htaccess not working to hide folders in urls

I would like to remove these two folders: 'folder1s' and 'folder2' from my site's url, and the php extension but it's not taking effect with my .htaccess file. ...
0
votes
1answer
18 views

rewrite rule to remove /(forward slash) to - (minus)

I have given a task to modify a website I have completed everything but I never work with .htaccess i want to convert the url (localhost/watch-movies/movie_name/10241) to ...
1
vote
0answers
44 views

session_start() keeps the file load forever

I'm using PHP with XAMPP. My PHP files work, but if I call session_start() in anywhere in the script and run it, writing "Waiting for localhost" at the page title, and page is loading forever, just ...
0
votes
3answers
47 views

Curl doesn't get external websites

I have some troubles with cUrl configuration on my local machine (my own computer). I can only download site that is placed on localhost. Trying any other host causes failure (empty string ...
0
votes
1answer
31 views

url rewrites removing folders .htaccess

I want to remove 'articles' and 'artificial' folders from a site's urls, but when I try to introduce rewrite rules into .htaccess file I am receiving errors. ...
0
votes
1answer
17 views

centOS php 5.3 warnings are not logged to the error log

I am running PHP 5.3 on CentOS. There are no PHP warning being written to the error log. My configuration is as follows php.ini log_errors = On error_reporting = E_ALL & ~E_DEPRECATED My ...
0
votes
0answers
42 views

PHP slow on windows XP [on hold]

This a programming question I promise So a couple days ago i had a client that i built a wordpress website for. Nothing major not too extensive. When I was on the phone with her trying to get her to ...
-1
votes
1answer
9 views

How to prepend PHP file to ionCubed script

I've prepend a PHP file to all of script files using php.ini config: auto_prepend_file = "./file.php" Then I got this error while running script: Site error: the file ...
0
votes
2answers
29 views

How to prevent PHP sessions being shared between different apache vhosts?

How to PREVENT PHP sessions from being shared between different apache vhosts ? I've set up different vhosts on an apache 2.2 and everything works perfectly, until i realized that the php sessions ...
-3
votes
3answers
33 views

HTML/PHP Form Email Confusion [on hold]

I've created am HTML "Contact Us" file and a php file. PHP obtains all info from HTML variables, the PHP file is set up to send info to my email address, and the form is linked to the php file which, ...
-2
votes
1answer
58 views

Formatting .htaccess RewriteCond / RewriteRule for removing query string from URLs

I have developed a PHP site, which uses _GET variables to construct individual product pages. The current structure of the URLs for the (live) site is as follows: ...
0
votes
0answers
18 views

How to determine how many files are within a directory without counting? [migrated]

I've been having a fairly serious issue on a high traffic web server. PHP pages are slowing down considerably, and it only seems to be an issue on pages where sessions are accessed, or a certain table ...
0
votes
0answers
53 views

php suddenly showing as plain text in browser

(Mac) My .php files are suddenly showing as text in my browser. -this happened when I opened files I've used for a year when I opened them for first time in a week. -I changed the ports and the ...
0
votes
0answers
24 views

Overriding PHP extension

I tweaked PHP ldap extension a bit, and now I want to override the default ldap extension in php. I changed the name of my extension to ldap2, added extension=ldap2.so to php.ini. I do so, because ...
-3
votes
2answers
23 views

Using my own cms on localhost and the fronted site on the server?

I just wonder , for more security , can i put my own cms at localhost server that connected to DB , and the fronted site at live server , so the CMS will be more secure when its not live and its on ...
0
votes
2answers
28 views

transfer files from one webserver to another

I want to transfer files from a webserver to another approx 1GB, I have access to both server ftp and ftps. How can I do it with fast way.. I don't want to download files to my computer and then ...
0
votes
1answer
11 views

I am trying to have customized error pages - what am I doing wrong?

I am using xampp which has Apache 2.4.3. In the file xampp/apache/conf/httpd.conf I have set "AllowOverride All". In xampp/htdocs/.htaccess I have set "ErrorDocument 500 /InitialError.php". ...
0
votes
0answers
16 views

MAMP to Apache problems - PHP Sort not working on Apache but is on MAMP

Just starting to dabble with PHP, Wrote a little bit of code to try out my very limited knowledge and got all the problems ironed out on my development server (MAMP) After I had got it working I ...
-1
votes
0answers
36 views

How to start development server for Laravel 4? [on hold]

I am playing around with Laravel .I am trying to start the development server but I am facing the following problems: When I try with php artisan serve, it give me this error: [Exception] ...
8
votes
1answer
93 views

PHP Fatal error: Call to undefined function json_decode()

Apache is loggin PHP Fatal error: Call to undefined function json_decode(). After some googling, it seems this problem is a result of not having the latest version of php. Oddly, running php ...
-1
votes
2answers
41 views

Does Apache have built in DDOS protection? I'm getting interesting JMeter results

I was recently asked by a client to load test their server to see if it could handle 10,000 concurrent users. To do this I've been using JMeter but getting less than favorable results. Let me just ...
0
votes
0answers
608 views

Cant connect to Postgres from php ->Call to undefined function pg_connect()

I posting this question as answers in previews posts didn't help me. i am trying to connect to DB postgres which is located on remote server from my local computer. I am using Xampp and Netbeans IDE. ...
4
votes
7answers
11k views

CakePHP: URL rewriting is not properly configured on your server

When I try to run my project (made with cakephp framework), I receive this error: URL rewriting is not properly configured on your server. Help me configure it I don't / can't use URL rewriting I ...
4
votes
3answers
2k views

How to check if the php script is running on a local server?

Is it possible to check if the website (php) is running locally or on a hosted server? I want to enable some logs if the website is running locally and I don't want these to appear on the site ...
141
votes
6answers
66k views

HTTP_HOST vs. SERVER_NAME

When would you consider using one over the other and why?
5
votes
4answers
9k views

What permissions for PHP scripts/directories?

I am trying to help a friend moving a web-site from one web-hotel to another. The old place is already closed, I have only a flat tar file of what was in it. I apologise if this is a basic question. ...
153
votes
11answers
14k 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 ...

1 2 3 4 5 153
15 30 50 per page