PHP
Please post all PHP help and support topics here.
284 topics in this forum
-
I am trying to install the phar extension into the 5.6a nano server. After spending several hours trying to compile it using the PEAR installer, I gave up after reading numerous posts that the installer does not work with windows. The only other alternative I knew of was to download a precompiled .dll file. Once again after quite some time searching I found one at http://kromann.info/download.php?strFolder...strIndex=PHP5_2. I followed any and every instruction I could find on installing the extension, which basically came down to copying the file to the extensions folder and adding a line to the php.ini file. In the end, I am still unable to make use o…
-
- 0 replies
- 4.3k views
-
-
I have the oracle client installed on the machine. I downloaded the 5.3.2.0 PHP from PHP.NET so I have the php_oci8.dll, and php_pdo_oci.dll. I uncommented the extensions in the php.ini file, restarted apache server and keep getting the "Fatal error: Call to undefined function oci_connect() ". Outside of Uniformserver but on the local machine, I set up the full php and I connect fine. What am I missing? Thanks in advance for your replies
-
- 1 reply
- 12.7k views
-
-
A green novice in Unform. Installed the latest Unformserver. Doesn't seem to have php_imap functionality so downloaded and replaced php with the windows 5.3.2 binary. Now I click on Server Status, I get a warning about the compiled version not matching php version. ... and imap still doesn't work even tho I see the php_imap.dll in the etc directory. Suggestions
-
- 3 replies
- 35.2k views
-
-
I edit php.ini file: extension=php_openssl.dll extension=php_pdo.dll extension=php_pdo_firebird.dll extension=php_pdo_mssql.dll extension=php_pdo_mysql.dll extension=php_pdo_oci.dll extension=php_pdo_oci8.dll extension=php_pdo_odbc.dll extension=php_pdo_pgsql.dll extension=php_pdo_sqlite.dll And then copy that files into folder UniServer\usr\local\php\extensions , restart Apache, but can not run PDO script because "could not find driver"... and this code <?php try { $dbh = new PDO('mysql:host=localhost;dbname=blog', 'root', 'root'); foreach ($dbh->query('SELECT * from sad_cat') as $row) { print_r($row); } $dbh = null; } catch (PDOException $e…
-
- 2 replies
- 5.8k views
-
-
Hi, I would be most grateful for instructions on how to enable support for XSLT in PHP (version 5.2.10 -- I am using Uniform Server 5.0-Nano). Reason I need to know is that I am trying to install Symphony CMS, which requires XSLT. (I should mention that I am very far from an expert in PHP...) Many thanks!
-
- 2 replies
- 5.4k views
-
-
I tried out the latest version (Nano-5.5) of Uniform Server and found that it would timeout while trying to connect to anything using MySQL other than phpMyAdmin in the admin panel. After much fiddling around I was able to pinpoint the problem down to PHP 5.3.1 after I switched it with PHP 5.3.0 from Nano-5.1 and found I could connect again. I've only tested on Windows 7 (I use the Professional x64 version) so I don't know if it happens on other OSs. This is the code that I used to test (works with 5.3.0, timeout on 5.3.1): <?php error_reporting(0); $connect = mysql_connect("localhost", "root", "root"); $connect; echo "Connection was "; if (!$connect) { echo "not"; …
-
- 3 replies
- 9.9k views
-
-
Hello, This is strange: Running UniformServer - Apache2+PHP+MySql under WinXP. I wrote a PHP maintenance task for MySql database which runs in an infinite loop. I activated the task through a JavaScript embbeded in an HTML page. Since then it is impossible to get rid of this session, and it just keeps running. Tried so far: 1. Remove Z:\tmp\ses_* files 2. Remove folders under Z:\RECYCLER 3. Restart UniController 4. Restart WinXP Any advice? Thanks! Ori
-
- 4 replies
- 5.3k views
-
-
Greetings, I am trying to set up KalturaCE, which requires php-cli. I've looked at the US wiki, but I don't understand how to solve this error: I realize that I have limited skill and understanding, which is the root of my issue, but if anyone would be so kind as to offer explanation, I would be most appreciative. Thanks, J
-
- 2 replies
- 5.2k views
-
-
Hello, I am trying out a very simple code snippet - Example #1 from this page: http://php.net/manual/en/language.exceptions.php this code is as follows: <?php function inverse($x) { if (!$x) { throw new Exception('Division by zero.'); } else return 1/$x; } try { echo inverse(5) . "\n"; echo inverse(0) . "\n"; } catch (Exception $e) { echo 'Caught exception: ', $e->getMessage(), "\n"; } // Continue execution echo 'Hello World'; ?> When opening the test file in my browser instead of the desired output I get: 0.2 Fatal error: Uncaught exception 'Exception' with message 'Division by zero.' in W:\www\test.php:4 Stack trace: #0 W:\www\test.php(11): inverse…
-
- 0 replies
- 4.4k views
-
-
Hello, I'd like to experiment with installing Piwik (web analytic software, see www.piwik.org for details) on my localhost. If all looks good, I will eventually FTP the software to my host. During the Piwik installation process, the software performed a system check and informed me that: Piwik requires either the mysqli extension or both the PDO and pdo_mysql extensions. On a Windows server you can add the following lines to your php.ini: extension=php_mysqli.dll extension=php_pdo.dll extension=php_pdo_mysql.dll Found out that I did not have "php_pdo.dll" (I do have the other 2 dlls). So I tried downloading a copy of the dll (version 5.1.2.2) and added it to my …
-
- 2 replies
- 4.8k views
-
-
I just updated php to 5.2.9 so that it reflects the version running on my hosting account and it seems that I can no longer view my php includes (php parsed in HTML files). Upgrading php is all the I have done - the includes were working fine before. I can access a Prestashop shop that I have set up (uses php), so the php is running correctly. I don't know whether it is just php being parsed in html files that is no longer working or the php include function itself. Any ideas?
-
- 6 replies
- 9.5k views
-
-
I have been using Uniserver for a few years with no problems. I installed 5.3 on my XP box and it appears not to execute the PHP part of a web page the HTML part is ok. I have also installed on a new PC running Win 7 with the same result. Can someone please help.
-
- 2 replies
- 4.5k views
-
-
I have a site that I'm trying to run locally with uniform server, and am having issues. For some reason I can't get my include() statements in php to work. They just come through as text, rather than get interpreted as php scripts. The includes are all .php files. I tried adding "allow_url_include = on" to both the php.ini file in my site's top directory, and adding it to the main php.ini, but neither worked. I tried running uniserver as a service, and as a process, that also didn't work. Any ideas?
-
- 6 replies
- 6.6k views
-
-
When I start Uniform Server I get two error windows from Apache.exe stating "Unable to Locate Component" - "php_mbstring.dll was not found". Tried re-extracting the .zip a few times - did not help. Also can't access mySQL through phpAdmin - says Cannot load mysqli extension. Are these problems related?
-
- 4 replies
- 13.2k views
-
-
Hello, I'm testing Uniform server, works nice, light, but at this time, I can't succeed in installing sqlite support (pdo...). Please, can anybody tell the right direction : what to download and where, working with MiniServer_ Apache 2.2.9 PHP 5.2.6 Portable (to be installed in /extensions directory ?) and what to do in .ini I did several tests, and failed : can't see sqlite listed in php info. Thank you for your help.
-
- 0 replies
- 3.9k views
-
-
I just upgraded from the 4.3 version to the Uniform Server 5.0-Nano Beta3. After copying my WWW root and MySQL databases everything was working as expected. I started to adjust a script and noticed the page stayed blank, no problem since error reporting was Off. I changed it in the Admin Panel to On. (I made sure I was in the development php.ini before I did this). I saved the settings and tried again. Still I got a blank page phpinfo() told me display_errors are Off. So I edited 3 php.ini files (dev/prod/current in use) and made sure everything was set to display_errors On (even the remarked ones to be sure). After starting the services phpinfo() still showed display_e…
-
- 4 replies
- 6.9k views
-
-
I copied this file (php_ldap.dll) into /php/extensions and uncommented "extension=php_ldap.dll" in the php.ini For some reason the function still is not found. Is there anything else I need to do to enable this function?
-
- 7 replies
- 14.2k views
- 1 follower
-
-
Hi, Can someone help me with connecting UniServer Nano beta2 to Oracle 10g2. I copied php_pdo_oci.dll and php_oci8.dll files into extensions directory end uncomment next 2 lines in all php.ini files: extension=php_oci8.dll extension=php_pdo_oci.dll After stop and then start Apache server the message about missing oci.dll apears. I am running UniServer on one machine and Oracle server on another machine. The oci.dll is on remote machine - comes with Oracle instalation. Is it possible that I have to run both UniServer and Oracle on the same machine? Thanx, Jani
-
- 2 replies
- 5.5k views
-
-
I have a php site that uses SSH to communicate with a remote machine. I can not debug the site using Uniform Server because the SSH utility can not be found. I have Cygwin installed and running but still can not locate the SSH command to execute commands to my remote machine. Any ideas??
-
- 0 replies
- 4.1k views
-
-
Hi, I have a problem reading from sqlite 3 database. I use UniServer Nano beta 2. I have copied php_pdo_sqlite.dll file (from original PHP 5.3) to php extensions directory and add line extension=php_pdo_sqlite.dll in php.ini file. When try reading next error message is displayed: could not find driver. Reading with php_pdo_mysql is OK. The PHP code is tested on mini uniform server with php_pdo_sqlite.dll added and php.ini file modification. Thanx for help, Jani
-
- 3 replies
- 12.8k views
-
-
Hi, this is my first time to do things like this. I wanted to test my site from internet in my uniformserver. I downloaded my site folders and database, I imported database and now I should change paths in configuration file of Joomla. yesterday I didn't succeed, therefore I try now again and I ask for advice. I suppose this path should be changed: var $log_path = '/home/vol5/07x.net/blabla/htdocs/amb/logs'; var $tmp_path = '/home/vol5/07x.net/blabla/htdocs/amb/tmp'; here is my path (as you see, "F" means that I installed uniformserver in my USB): F:\UniServer\www\ambasada\amb\logs F:\UniServer\www\ambasada\amb\tmp 1) so, what should I write in: var $log_path = ' …
-
- 2 replies
- 9.5k views
-
-
when i load the page i get an error saying: Warning: dl() [function.dl]: Not supported in multithreaded Web servers - use extension=php_w32api.dll in your php.ini in Z:\www\win32_test.php on line 2 Fatal error: Call to undefined function w32api_register_function() in Z:\www\win32_test.php on line 3 i already made sure the line "extension=w32api.dll" is uncommented and the dl() function is enabled in the php.ini file and the actual w32api.dll IS in my extensions folder. here's my code: function mBox() { dl("php_w32api.dll"); w32api_register_function("User32.dll","MessageBoxA","long"); MessageBoxA(NULL, $str, "blahblahblah", MB_OK); }
-
- 4 replies
- 8k views
-
-
Hey all, I have been working on getting this PHP Ice compiled into PHP and I have it working, but not in the way I would like it. PHP Ice requires about 8 .dll files. One is: php_ice.dll which I put into PHP extensions folder. The other .dll files I had to put into %SYSTEM32% folder. I was hoping to put these local to other extension .dll files but if I do that, I get a error saying this .dll could not be loaded. As soon as I put these files in %SYSTEM32%, it loads and I can use my script. What can I do to make these .dll files run from PHP local directory? I want to be able to transport my configuration from PC to PC without putting files in Windows Core Directorie…
-
- 4 replies
- 7.6k views
-
-
I'm trying to use the php function file(), which can take a url attribute ie: file('https//www.somesite.com/somefile.txt') I want to read a text file from an external, secure site. I get this error message and cannot figure out how to add the wrapper for https: Message: file() [function.file]: Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? I do confirm that the wrapper "https" is NOT enabled with my install of 3.5 Apollo. My php.ini contains this switch: allow_url_fopen = On How do I enable the https wrapper? Thanks Dave
-
- 2 replies
- 5k views
-
-
The following script works with Uniserver3_2a, but fails with Uniserver3_5 Error messages says that the font file is missing. Where can I get a font file and what is the location I have to put it? Thanks, Han ++++++++++++++++++++++++++++ function vertText($text, $id) { // Create the image $im = imagecreatetruecolor(20, 80); $background = imagecolorallocate($im, 253, 208, 23); $black = imagecolorallocate($im, 0, 0, 0); imagefilledrectangle($im, 0, 0, 19, 79, $background); $font = 'arial.ttf'; // Add the text imagettftext($im, 12, 270, 5, 5, $black, $font, $text); // Create the image with vertical text imagepng($im, "$id.png"); imagedestroy($im); }
-
- 4 replies
- 12.2k views
-