I've been through the manual and searched this site, and still haven't found the answer to my question. If it has been covered, I'd appreciate knowing where.
My situation: I'm using PHP on a linux box, all of which was set up by my ISP. PHP works. File uploading doesn't. After the file is uploaded from the HTML page, on the PHP page, $userfile=="none" is true. It sure looks like a file uploaded, based on the monitor.
More info: when I look at phpinfo(), it says that upload_max_filesize is 2M. However, I have changed the php.ini file to be 100M. It still says 2M. I restarted httpd services and refreshed my browser. It still says 2M. My ISP (although the name is a misnomer, as their service isn't the greatest) states that the number won't update, as these are the settings when the 'file was compiled.'
So I guess my questions are two-fold: can anyone tell me based on info I've given why I'm having a problem uploading? And two: Doesn't phpinfo() look at the current environment?
I've just installed Apache 2.2.4, MySQL 5.0.45, and PHP 5.2.3 on a WinXP platform for the first time. Apache is running all services, MySQL service is running, php5apache2_2.dll is loaded under Apache. I get no output at all after loading http://localhost/phpinfo.php from my browser (Firefox 22.214.171.124). The code is: <?php phpinfo(); ?> and the folder is: Apachehtdocs.
The software came with a starter guide. The instructions for installing are very simple to follow. I have moved dll file to the correct location etc. I have added the addmodule line and addtype application line to the httpd.conf file. I then created a php file with the <?php phpinfo(); ?> and typed http://localhost/phpinfo.php into the browser but the file was not found. If I type http://localhost/ , then the apache default page shows but not the phpo file.
I need to find out the IP address of my web server, which I believe is under a name-based virtual host. I used phpinfo() to check what the IP address is, but then I thought since my website is stored in a name-based virtual host, which a couple of host names can have the same IP address. So that wouldn't be the correct way to go for, right? Is there a way I can find out the correct IP address.
I have a very strange problem. My site has pages that are generated by browsing directories on my computer. If these directories have too many files, IE will attempt to load the page and then give me a page cannot be displayed error. This also happens if I try to echo the phpinfo() function.
Netscape can display the pages but I noticed that sometimes, the source output will have unreadable characters in it. It seems completely random, as in if I reload the page the unreadable characters move or don't show up at all. I think it might be a problem with my server. I am running Apache on a Windows XP Pro platform.
I'm wondering why, after fixing the path in php.ini and removing the from infront of the extension=php_mysql.dll the "Additional Modules" on the page returned by phpinfo() doesn't show anything. I can communicate with MySql via PHP okay, just wondering about the "Additional Modules" thing...
I'm an aix sysadmin who is filling in for our linux/apache/php expert solving some security issues that popped up after an audit.After having sought for a few hours with google and on forums i will ask a question here.I have an apache webserver running with php version 4.3.9.Is it possible to disable the phpinfo function for this version?In php.ini I have tried two different directives to disable it:
safe_mode = on disable_functions = phpinfo
After stopping and starting the httpd daemon both directives give me the same result, a test still provides me with phpinfo
My question is what does this show my version of PHP supports ? Most Tutorials say... " and now we will use SAX to parse "... I don't want to go through a lengthy tutorial to discover I can't use my new found knowledge.
I was trying to follow some instructions on installing Smarty and suddenly found php.ini is not where phpinfo lists it to be. 1. Is /usr/local/lib the default location for the php.ini 2. In old versions of PHP, did php.ini install by default and not have to be copied? The thing is I've installed PHP on my own home servers for years and never...
I built an Apache 1.3.26 binary with PHP 4.2.1 support for AIX. When I used this binary on another system, it worked great, the only thing that bothered me is when I created a test page using the phpinfo() function, the "System" field has the hostname of the machine I created the binary on.
I am running Php5.0 on Windows XP. When I run phpinfo script it tells me that the configuration file php.ini is located in C:Windows. This seems odd as I have put the PATH to php as D:php where the php.ini file is located.
Does anyone know how I can fix it so that the php.ini file comes up as being in the D:php folder not C:Windows?
I am asking this question as I would like to get php5 and Mysql working but they are not.
When I run phpinfo, it diaplays the same thing regardless of changes I make to php.ini. For instance, php.ini shows register globals on max upload filesize of 16M. etc, etc. But phpinfo always shows register globals off and max file upload size of 2M. Any idea what is going on?
In the code below, invoked with CLI PHP, it would make good sense to have phpinfo() include HTML tags with its output. Is there any way to effect this? My attempt using ini_set("html_errors", "1"); did not make any difference.
I read the instructions on how to install the LDAP module on a windows machine in the php manual at http:://phpbuilder.com/manual/en/ref.ldap.php . All it said was to put the libeay32.dll and ssleay32.dll files in the windows SYSTEMS folder. Either C:WINDOWSSYSTEM or C:WINNTSYSTEM32. The manual did not say anything about installing K5ADM. The rest of the detailed information on that page was for a linux platform. I also took out the ; in the extension=php_ldap.dll line in php.ini.
When I did that I then restarted my web browser and ran a page that only had PHPINFO() in the html. I did not see anywhere on the output page where LDAP or K5ADM shown. Are these modules supposed to show up in a phpinfo page? And if not how do I know they are running?
One of my clients is having database issues, and one of the things I've come across trying to debug is that phpinfo is showing the MySQL client version as 5.0.18 while when I run SELECT VERSION through a mysql_query it shows 4.1.22-max.
Is this normal, is the server possibly misconfigured, or could it be either? I don't think this is related to the problem they're having. I guess I'm just more curious how phpinfo gets the MySQL version since it's different than how I'm doing it with code.
I just installed Apache 2 and PHP 5.0.4 on my Windows XP SP2 box, however when I run phpinfo() there is no PHP_AUTH_USER variable appearing on the page. Is there something I have to set on Apache or PHP to make PHP_AUTH_USER variable available?
We have authorized ftp access to our clients apache-php server. Alas our clients administrators has recently decided to block the phpinfo() function. Is there any way to simulate that built-in function. Maybe somebody has the same function written in php.
I've got this in my php.ini upload_max_filesize = 25M post_max_size = 25M and I've got this in my .htaccess php_value upload_max_filesize 26214400 php_value post_max_size 26214400
as shorthand can only be used in the php.ini [URL]...
but no matter what I do, when i call phpinfo() I get
Directive Local Value Master Value upload_max_filesize 4M 25M
I've looked at all other php.ini files, my .htaccess, ini_set(). Anything I could think of and nothing will change it from 4M. Any help would be great! EDIT: restarting apache didn't work, i've check my httpd.conf, it seems like an external file or something. any other places to check?
I am running PHP and Apache on Leopard (the base install that comes with Leopard) and I need pdo_mysql support. I have followed the directions at [URL] and when I do a php -m from the command line, I see that PDO, and pdo_mysql are listed, but when I check phpinfo(); I do not see pdo_mysql.
I've installed libmemcached and memcached pecl extension for php and for some reason it's not installing correctly? i've got memcached.so in /usr/lib64/php/ with the right permissions and libmemcache.so in /usr/local/lib/
Everything seemed to build correctly without error, and I restarted apache?
i also have the daemon installed.
I somehow easily got the Memcache class easily installed for php before, but I realized what i wanted was the Memcached (note the d) class. let me know if more info is needed!
EDIT: I previously had memcache (without the d) working in php so I know i was manipulating the correct php.ini!
EDIT 2: there WAS indeed an apache error!
Unable to load dynamic library '/usr/lib64/php/modules/memcached.so' - /usr/lib64/php/modules/memcached.so: undefined symbol: php_json_encode in Unknown on line 0
Windows 7 - 64-bit XAMPP 1.7.4 XDebug [php_xdebug-2.1.0-5.3-vc9-x86_64.dll]
When I run phpinfo() from Xampps homepage, XDebug it is not listed anywhere. I checked the Apache error logs and there are no errors, so it seems to load the module without problem? I haven't used PHP in years so I have no clue why this isn't working.
i am going to be tackling creating pdf files using php on the fly... php would get information from the database and then create a pdf copy of the relevant info gathered. Now, first things first, i need to check if my php installation can accomplish the task. someone told me to use phpinfo () function to see if pdf library is loaded but i dont know what i am looking for. im using php 5.2.
I am trying to use a phpinfo script to check the version that I have installed. I wrote the script and saved it but when I try to open it, the page is blank. The page has a title (PHP Info page), and the title appears, so I know that the page has been found, however, there is nothing displayed on the screen. This is the code that I used. I am just learning php and am a little lost, any ideas why it might be blank?
I'd like to compare the settings I have on 2 different servers. Both are shared hosting so I don't think I have enough access to do it any other way but programmatically with phpinfo. So now that I have the 2 outputs, I'd like to compare them without examining them manually. Is there an automated way for this?
Also, as a side but related note, I think phpinfo is the output of php.ini. Is this correct?