The `phpinfo()` function outputs information about PHP's configuration.
0
votes
0answers
12 views
gd2 not showing in phpinfo, is showing in php -i
I'm trying to get the gd2 extension to work on a WAMP stack (Win7(x64), Apache 2.4, PHP 5.3.26)
I've enabled extension=php_gd2.dll in php.ini and restarted Apache.
I believe my extension directory ...
0
votes
2answers
149 views
mySQL PDO not enabled in phpinfo()
I am trying to setup a local PHP development envrironment but am having trouble getting mySQL enabled for PDO and am fairly new to this type of setup...so Im not sure what I could be missing.
I have ...
3
votes
1answer
98 views
php directives in .htaccess?
I have attempted to make a few changes to php via .htaccess, yet none have yielded any results. For example:
php_value memory_limit 256M within will not activate.
Attempting to set SetEnv PHPRC ...
0
votes
0answers
100 views
WAMP MySQL upgrading not updating phpinfo?
I have been running WAMP for a little while on my local computer, and recently re-installed, and put the newest version of WAMP on the system (along with a ton of other stuff, beside the point). I ...
0
votes
0answers
99 views
PHP Loads Different MySQL Server Version
I have installed MySQL 5.6.9 dev on Ubuntu 12.10 32bit, instead of using apt-get to install stable version 5.5.29.
My PHP5, Apache and MySQL are all working, however, I do not see MySQL section using ...
0
votes
1answer
174 views
php.ini not found in location reported by phpinfo()
We use an unmanaged Rackspace cloud server here at work. It's running Ubuntu 11.10. I wanted to install the gearman library and extension so I need to find the currently loaded php.ini file. Running ...
0
votes
0answers
78 views
apache2-mpm-itk seems not working for me
OS: Ubuntu 11.10
<IfModule mpm_itk_module>
AssignUserId www-qi www-qi
</IfModule>
Why the User/Group is still www-data in phpinfo() output? Please see the screenshot attached.
The ...
0
votes
1answer
113 views
php 5.2.17 date('T') gives incorrect timezone. Server time+phpinfo time are correct
I am having a bit of a weird issue:
the date function gives timezone=MST
the date function from the centOS prompt gives me EST
the phpinfo() function returns America/New_York
As Plesk was showing ...
0
votes
1answer
130 views
Block access to php.ini and phpinfo.php in root
I read another question on how to do this, and the most highlighted solution was the following:
<Files php.ini>
order allow,deny
deny from all
</Files>
I can't really fiddle with this ...
0
votes
1answer
159 views
phpinfo displays date.timezone warning in MAMP
I ran a phpinfo() function in MAMP, and received the following warning, embedded in the php info table:
Warning: phpinfo() [function.phpinfo]: It is not safe to rely on the system's timezone ...
2
votes
1answer
82 views
How to define was page requested over https or http? [duplicate]
Possible Duplicate:
PHP: HTTP or HTTPS? How can one tell?
Is there a way to define this?
$_SERVER superglogal doesn't provide such info. Even only it's ['SERVER_PROTOCOL'] ...
1
vote
1answer
694 views
$_SERVER['REQUEST_METHOD'] does not exist
I've just installed WAMP and I can access localhost and get the phpinfo() output.
However, although I can see _SERVER['REQUEST_METHOD'] is set to GET, I'm trying to use the following PHP:
if ...
0
votes
1answer
730 views
Symfony 2.1 Session Local Value and Master Value (read on phpinfo)
I'm having problems with sessions when i sarted migration from symfony 2.0 to symfony 2.1.
I'm using simplesamlphp for authentication and everything was working ok on symfony 2.0.
On Symfony 2.1 it ...
-1
votes
2answers
315 views
smtp, phpinfo, sendmail
I am trying to send email using PHPmailer but when I change the SMTP server in php.ini, it is not updating in the phpinfo - it's still showing localhost. I'm assuming that this why I'm getting the ...
0
votes
2answers
146 views
How do i check mysql database extension enable/disable on server in php?
I am working on a PHP install script, and I need to check many server settings before installing applications there.
So, how do I check the mysql database extension if it is enabled/disabled on ...
1
vote
3answers
561 views
fwrite() not permitted, but phpinfo() says it should be
I am getting the following from a script I am trying to run:
Notice: fwrite() [function.fwrite]: send of 7 bytes failed with errno=1 Operation not permitted in ...
0
votes
1answer
4k views
phpMyAdmin isnt working
When I run phpmyadmin it shows me this message:
phpMyAdmin - Error
The mysqli extension is missing. Please check your PHP configuration. <a href="Documentation.html#faqmysql" ...
0
votes
2answers
3k views
phpinfo() is not working it shows blank page but other php working
I am completely lost as to why this is happening.
I am on a server x10hosting
i have a phpfile named "phpinfo.php"
inside this file it says
<?php phpinfo(); ?>
it doesn't say
for all i can ...
-3
votes
1answer
717 views
Allowed memory size of 33554432 bytes exhausted (tried to allocate 11264 bytes)
I'm trying to upload file using simple form. Size of file is 1.37 MB.
After page reload, i get this error:
Allowed memory size of 33554432 bytes exhausted (tried to allocate 11264 bytes)
This is ...
-1
votes
4answers
274 views
php.ini variable not set throgh htacess
Which php.ini variables we can not set through phpfiles or with htaccess.
Means if we want to set the variable then we have to directly configure at php server files.
can anyone give me list of ...
0
votes
1answer
857 views
phpinfo() outputs nothing
I've tried phpinfo() but it output nothing. It is interesting that php-r "phpinfo();" works correctly while using phpinfo() in web outputs nothing.
Again, nothing is written to error.log too. php.ini ...
0
votes
0answers
106 views
Phpinfo not working, redirects to web root [closed]
I have a script on my website which solely has a phpinfo call in it <?php phpinfo(); ?> however you'll notice when you go to this it redirects straight to root instead.
No idea why
0
votes
1answer
119 views
Is there some php_info-like method in ruby?
Is there some method to show Session, ENV, POST, and GET data in a Ruby web app?
0
votes
2answers
1k views
MAMP changes to Apache 'document root' are ineffective
I seek help finding why MAMP fails to effect changes to the Apache 'document root', and fixing this problem. This second edit of the original filing includes substantial additional information that ...
0
votes
0answers
236 views
Unable to edit session.hash_function in php.ini (PHP 5.3.6)
I am developing a Web app with the MAMP solution stack (v2.0.5), which includes:
Mac OS X (v10.7.3)
Apache v2.2.21
MySQL v5.5.9
PHP v5.3.6
The path to my loaded php.ini configuration file: ...
0
votes
0answers
774 views
pecl oauth package installed but not reflected in phpinfo
I have installed the php oauth 1.2.2 consumer extension aside PHP 5.3.3 on Ubuntu:
~$ pecl list
Installed packages, channel pecl.php.net:
=========================================
Package Version ...
2
votes
1answer
55 views
why can not I see the value (status) of safe_mode and register_globals
why can not I see the value (status) of safe_mode and register_globals
I use this code from php.net:
echo 'display_errors = ' . ini_get('display_errors') . "\n";
echo 'register_globals = ' . ...
0
votes
1answer
2k views
How do I change upload_max_filesize and max_execution_time in php.ini?
I am trying to change my upload_max_filesize and max_execution_time in my php.ini
I've tried
upload_max_filesize = 80M
max_execution_time = 300
and
ini_set('max_execution_time', '45')
...
2
votes
2answers
438 views
How was my running php compiled?
I'm trying to compile a new instance of PHP (5.4.0) from the source code and want to keep compatibility with the one (PHP 5.3.6-13ubuntu3.6) already installed from the distro, Ubuntu-11.10. That is, I ...
5
votes
1answer
231 views
How are codeigniter's session system seprated with PHP's built in $_SESSION?
As the manual says:
Note: The Session class does not utilize native PHP sessions. It
generates its own session data, offering more flexibility for
developers.
But when I store some data ...
1
vote
2answers
601 views
Detecting register_argc_argv in PHP
I need to check if register_argc_argv is enabled in my PHP application installer.
I wrote a code, but it's not working. It always saying it's disabled while it's enabled already in php.ini:
...
0
votes
0answers
298 views
phpinfo shows wrong version [closed]
I've installed PHP version 5.3.10. the latest one which is currently in the php.net webpage.
However when I run phpinfo() it shows the version as PHP Version 5.2.4RC3-dev
I'm also not seeing all ...
0
votes
1answer
3k views
PHP :mbstring module install
I have tried to install the mbstring module for PHP. I have entered the below commands:
yum install php-mbstring
/usr/local/apache/bin/apachectl restart
Module is now installed but the errors has ...
0
votes
2answers
2k views
MongoDB / PHP on WAMP — phpinfo vs php -i
I'm trying to set up MongoDB with PHP and WAMP. I had WAMP 64 bit installed previously, but I see that the PHP drivers don't work with that, so I uninstalled it and installed 32 bit. I downloaded ...
0
votes
2answers
6k views
How to check mod_headers and mod_expires modules enabled in apache
I want to check whether mod_headers and mod_expires modules enabled or not in my server
Is there a way available to list apache enabled/disabled modules using some php function just like we list php ...
0
votes
0answers
269 views
Packages are installed on server but not displaying in phpinfo()
I have installed imagemagick and ffmpeg on my CentOs 5.5 Godaddy VPS.
I have added extension in php.ini also.
I can able to see the installed packages in /usr/local/bin.
But when I print phpinfo(), ...
1
vote
1answer
212 views
PHP script just hangs on large file uploads
I have a php script that allows users to upload multiple files to server on POST, then redirect to next page.
It seems to have been working for some time but lately users are reporting it hanging ...
1
vote
2answers
393 views
xdebug: Don't get rid of machine name as xdebug.idekey
I am fighting to get xdebug working with my Apache 2.x, PHP 5.3 and my Netbeans 6.9:
I got to the point that everything looks good in phpinfo, except:
local value local value master ...
1
vote
2answers
77 views
Apache Problem, phpinfo gives following arror
Simply calling phpinfo(); gives the following info..
Fatal error: Using $this when not in object context in /var/www/phpinfo.php on line 2
It is a fresh Ubuntu + Apache install on Amazon EC2.
5
votes
3answers
690 views
phpinfo - an easy way for seeing it?
Each time I want to see the phpinfo(); I have to:
create a info.php file;
write phpinfo(); in it.
go to the browser and type my "thisproject.dev/info.php"
I'm on Ubuntu and my question is..
Isn't ...
2
votes
3answers
339 views
get and save path to php.ini file
Is it possible to get the path to the php.ini file with a php script and save this path to a variable? I know I can call phpinfo() to find out the path, but it prints a lot of info and I only need the ...
1
vote
0answers
308 views
DOTNET class not found, what does “not present in this build” mean?
I have tried installing ZendServer, WampServer, and XAMPP. When I installed ZendServer, my code that instantiates a new DOTNET() works. With WampServer and XAMPP, however, it gives me the error "Class ...
0
votes
1answer
921 views
how to display phpinfo()?
I have phpinfo() text and I want to send text with post data to another php page and I want to display php info in this page.
my code :
index.php
<html>
<form action = "go.php" method = ...
0
votes
1answer
700 views
PHP Apache phpinfo hide environment variables
Is it possible to obfuscate or remove environment variables from phpinfo?
If not, is the only alternative to display the phpinfo function?
Thinking about it further, someone could easily ...
2
votes
1answer
364 views
Is there a way to force phpinfo() to output its stuff without formatting. Just like in CLI mode?
But of course in normal mode not CLI. Formated output included among other HTML destroys existing webpage layout.
2
votes
2answers
1k views
Make PHP command line display phpinfo page by page?
When I use the PHP CLI to get the phpinfo all I end up with is the last half. Here is the command:
> php -i
I'm not sure what it would be call? But is there a way of controlling the output so ...
3
votes
2answers
1k views
Problem of different PHP versions reported
I have upgraded to PHP 5.3 on a development machine (Windows 7 box).
php-v shows
PHP 5.3.3 (cli) (built: Jul 21 2010 20:36:55)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright ...
-2
votes
3answers
174 views
PHP new page in same file?
I'm working on a PHP project and I need some help. I need to work with one php file and have multiple links on that php page. If a user clicks on one it will show phpinfo(); for example.
So how can I ...
0
votes
0answers
1k views
Fatal error: Call to undefined function mysqli_init()
I have a really strange error. My httpd server have been working fine until last Wednesday, when I uninstalled the MS SQL and visual studio C#. When I restarted the PC, Ii discovered that some parts ...
0
votes
0answers
104 views
One server sending email, the other not doing it: what to look for in phpinfo?
Using phpmailer I'm sending emails with no problems when the script is stored in one server, but I'm having problems in another server when uploading the same script. In this other server, the emails ...