Tagged Questions
0
votes
3answers
12 views
Save file with file_put_contents in folder
file_put_contents('image.jpg',file_get_contents('http://static.adzerk.net/Advertisers/12f0cc69cd9742faa9c8ee0f7b0d210e.jpg'));
This working ok - save file in current folder, but if i try:
...
0
votes
0answers
17 views
REST .htaccess causing a 500
I am trying to set up a REST Server (Restler) in php, it works fine in MAMP
But as soon as I put it on my live server with Cent OS 6.2, it gives me a 500 error. What things would cause this ?
Here ...
1
vote
2answers
9 views
restrict Apache RewriteRule to one forward slash per URL element
I have this Apache RewriteRule configured below, which has the problem that it allows the following URL without returning a HTTP 404 error.
...
1
vote
1answer
23 views
configure laravel without making virtual host
I am new bee in Laravel. I have able to run it by making virtual host as given in this tutorial .
But I is there any other way to configure and run laravel correctly without touching my conf file or ...
2
votes
1answer
17 views
could not find oci pdo driver in windows
We installed apache and php on windows server 2008 to try to be connected with oracle database with php command.
We inserted in php.ini the following lign : extension_dir.
But when we tried to connect ...
0
votes
1answer
11 views
Zend Session 2 common cookie domains
I have 3 domains:
example.com
m.example.com
dev.example.com
Session should be common for example.com and m.example.com. How I have made it.
Bootstrap.php:
protected function _initSession()
{
...
0
votes
2answers
21 views
How to redirect localhost/test/test.php to redirect localhost/test/test
Here is my code of .htaccess
Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On**RewriteBase /RewriteRule ^test/?$ test.php [L,NC]
but it is not redirecting me to ...
0
votes
0answers
13 views
base64 in htaccess for url rewriting?
Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ...
0
votes
0answers
12 views
Using DirectoryIndex is not changing index in Apache
This is the change I made in in the httpd.conf file to make index.php the home page
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
most answers say to look ...
0
votes
1answer
20 views
apache2.4 build not finding php5.3
I am setting up a test server before upgrading an elderly version of mediawiki on a production server. I am trying to duplicate what will be on the production server - apache2.4 and php5.3.
When I ...
-1
votes
2answers
21 views
php5.ini Godaddy Shared Account [closed]
I need to change post_max_size and upload_max_filesize on php.ini on Godaddy Shared Hosting. I did necessary changing on local ini file but didn't affect.
Then I ran phpinfo and I found out, Apache's ...
-1
votes
0answers
22 views
Introduction to Linux and Server Administration [closed]
Let me start by framing my question a little. I am not a systems admin and I don't have a ton of knowledge about C, C++, or the Linux OS. Here is what I do know: PHP, MySQL, HTML, JS and CSS. I also ...
0
votes
1answer
13 views
httpd.conf Rewrite resulting page layout break
I am trying to rewrite all my ".php" extension to "/" for example: www.example.com/about.php to www.example.com/about
I modified the httpd.conf file as follow.
<Directory "/var/www/example">
...
0
votes
3answers
20 views
Require username/password to execute PHP script
I'm working on a website in which I -as an admin- need to be able to access a PHP script that no one else can. Building a whole login system with accounts would be overkill in this case, as I would be ...
0
votes
2answers
19 views
htaccess restrict post access to specific url
I have one site witch is encrypted and i cant make this inside code. So i know that we can redirect or throw 404 error via mod_rewrite.
Also my url is in cyrillic so in Chrome looks like
...