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 188.8.131.52). 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.