Jump to content
View in the app

A better way to browse. Learn more.

The Uniform Server Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

PHP

Please post all PHP help and support topics here.

  1. Started by traxxus,

    Hi @Ric Is it possible to change a line in the php.ini in Coral releases? If you want to log PHP errors you need to change the line in the active php.ini: error_log=xyz to error_log="C:\UniServer\usr\local\apache2\logs\phperror.log" This help to locate error, for example the annyoing php5ts.dll bug in Coral.

    • 0 replies
    • 3.2k views
  2. Started by jeret,

    Hi is it possible to change date & time format in the PHP.ini file to reflect to this format : dd-mm-yyyy and time to 12 hrs instead of 24 hrs. When i run a date time php script in the browser i get this format: mm-dd-yy and time 24 hrs. I would like to change the output as mentioned above. The php script i used was : <?php print strftime ('%c'); ?> Any help would be much appreciated. Thx.

  3. Started by MicroMonkey,

    I am using the 8.1.0 uniserver on windows 2003 server. All is well, except I dont know what to do to send a test email. I tested it with the MSMPT using a gmail account, but nothing happens, what am I missing? I read the wiki, but it didnt help me much. I know im missing something, but I dont know where to look.

  4. Started by Adrian,

    The php version come with uniform server 8.0 is 5.3.8. I want to use an older version 5.2.x.

    • 1 reply
    • 3.3k views
  5. Started by Joe_K,

    Just installed 8.0.0 on Windows XP SP3 Couple of problems, maybe PHP problems? 1. I cannot get phpmyadmin to launch. I get Error MySQL said: #1045 - Access denied for user 'root'@'localhost' (using password: YES) Connection for controluser as defined in your configuration failed. phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server. 2. When I browse to http://localhost I get the expected splash page. After changing the .htaccess file to permit i…

    • 5 replies
    • 13.7k views
  6. Hello, It seems that no-one attempted to test the PEAR installation before Uniformserver 8.0 was released. Because the pear-core project has moved from svn.pear.net to github, and because of this PEAR cannot be bootstrapped. Anyone have a fix for this?

    • 3 replies
    • 5.1k views
  7. Started by devo,

    I have successfully set up automatic database backups and have also set up and successfully tested sending an email thanks to the great instructions found here: http://wiki.uniformserver.com/index.php/5....Database_Backup. I have added a section to the bottom of the db_backup.php file that will email a copy of the 7z file that was just created. However the db_backup.php file does not know how to use the php mail function (which I have configured in msmtprc.ini file.) I can use the mail function within any page the exists in the www directory. (As an alternative I was going to add a Header redirection to the bottom of the db_backup.php file and send it to another php f…

    • 3 replies
    • 4.5k views
  8. Hello gang, I've been struggling for a week to get the Ajax called elements to run the external.js file script. I used get elementbyid to place an src on a blank script tag with a function that calls the Ajax call that works and alters the innerHTML of the correct div on my index.html but can't run the js on those new well styled elements unless I hardcode the events into the get.php? So I tried creating an include 'js.php' at the bottom of the get.php but only resulted in the js.php being printed out at the bottom of the responceText. Can anybody tell me if the UniServer php INI needs to be adjusted to parse js.php files differently in order to run j…

  9. Started by tomharto,

    I have a site using a few files with the filenames in ths format "_inc.somename.php" and for some reason when i try and use them on Uniserver the just show up as blank. Is this a known issue / is there a fix or work around for this?

    • 6 replies
    • 5.8k views
  10. On line 1083 I see: ; For Win32 only. http://php.net/sendmail-from sendmail_from = me@localhost.com I un-commented out the last 2 lines. For "me@localhost.com" I replaced it with my own email address going to a domain. Is this correct? I would not think so. I am not receiving mail generated by Contact Us from my CMS. Thank you in advance.

    • 4 replies
    • 9.3k views
  11. Started by Slow Steve,

    Hi, Noobie and struggling. Using 7.1.7. for testing and development. I have copied an existing site to US and added it as a virtual host. Everything works perfectly apart from the 60 or so scripts. Is there any way I can have a script run from the sites own directories and folders (cgi-bin etc.) or must they go into the US made cgi-bin outside of the site strucuture. This is important as we have a number of purchased script based functions that are installed into their own folders and sub folders. I have tried the additions to httpd.conf with no success in getting scripts below the "root" level of the site to work. I cannot get them to run at say www.mysite.com/cgi-bi…

    • 1 reply
    • 2.9k views
  12. Started by Heinz Stapff,

    I'm using ul element onclick javascript function to change div innerHTML with get mysql query but the innerHTML returns 'You have an error in your SQL syntax "undefined" at line 2'. Onclick external.js Ajax function getproduct(i){ if(i=' '){ document.getElementById('f1').innerHTML=' '; } if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else{// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("f1").innerHTML=xmlhttp.responseText; //errors declared here } } xmlhttp.open…

  13. Started by Heinz Stapff,

    Getting Access denied with this code $link=mysql_connect("localhost","root","root")or die(mysql_error( )); mysql_select_db("bwi",$link) or die(mysql_error( )); $result=msql_query("SELECT Code,Item,Description,Href,Src FROM silver")or die(mysql_error( )); What password and ussername do I have to use with mysql_connect??????????????????????????????????? I haven't changed them and Uniserver is running on thumb drive.

    • 3 replies
    • 3.3k views
  14. Started by Heinz Stapff,

    I'm just about to test some get and post requests from index.html in www folder. I'm assuming that the relevant getSilver.php should go in the same folder/directory please let me know. Might be the PHP folder? Also let me know if I can just use 'getSilver.php' or need another path name like PHP/getSilver.php etc.

    • 2 replies
    • 3.6k views
  15. Started by Heinz Stapff,

    I found this at w3 schools PHP tutorial but see it represents a Select html box and options and my site has UL, List/Li Elements that had < a tags with href and target attributes. I've stripped the jewelry UL of it's Li < a tags and want to know how to get the Li oncklick to get the database table to change the 'f1' div innerHTML. w3 School http://www.w3schools.com/php/php_ajax_database.asp The function function showUser(str) { if (str=="") { document.getElementById("txtHint").innerHTML=""; return; } if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new Acti…

    • 0 replies
    • 3.9k views
  16. Started by Camwyn,

    Hi all, Am trying to get mcrypt working on Orion, and think I have settings right, but I keep getting So far I have: put php_mcrypt.dll (from Mona) in usr/local/php/extensions put libmcrypt.dll (also from Mona) in usr/local/apache2/bin set the extension in all three php.ini files to no avail...any suggestions?

    • 2 replies
    • 3.8k views
  17. Hi, just posted this in Apache forum and wasn't sure whether or not it should be PHP. Please let me know in any resonse. "Yeah, I'm a little suprised that I found this in the Apache error log as I've been working on MySQL and had not checked Apache but the error log is continually reporting this in Apache: [eAccelerator] This build of "eAccelerator" was compiled for PHP version 5.3.6. Rebuild it for your PHP version (5.3.5) or download precompiled binaries. I believe that was right out of the box and that I have not changed the php version. It might be the version actually running on the PC but I did not know there was one. As I haven't started loading site files to…

    • 0 replies
    • 3.3k views
  18. Started by Heinz Stapff,

    Checked Apache server logs and keep getting this: [eAccelerator] This build of "eAccelerator" was compiled for PHP version 5.3.6. Rebuild it for your PHP version (5.3.5) so I guess I need to know how to reinstall php as 5.3.6 before I even start loading files. Any advice on how to do this greatly appreciated.

    • 0 replies
    • 2.8k views
  19. Started by samkash,

    I have been trying to use the uniform server to host a sort of ftp client. I have seen on the php site that to use php with its ftp_connect ssl functions on Windows, you have to compile php yourself. I assume this means that Linux builds don't? So, my question is: Is the version of php bundled with Uniserver already compiled to use the ftp_connect ssl functions? I think it involves use of openssl and ftp. Thanks in advance.

    • 6 replies
    • 7.8k views
  20. Started by Dan Dascalescu,

    I've just installed Uniform Server 7.1.1-Orion and wanted to see the version of php: php --version That command took more than FOUR SECONDS to execute, on a Core i5 CPU. What's wrong with the PHP configuration? I have the exact same version of PHP downloaded from windows.php.com, and executing that php.exe --version is instant.

    • 0 replies
    • 3.5k views
  21. Started by point3d,

    How can I convert this to preg_replace? $TEMPLATE_PATH = ereg_replace("(/)+" ,"/",$TEMPLATE_PATH); Thanks!

    • 3 replies
    • 4.2k views
  22. Started by Demonten,

    For class I have to make a "newsletter signup form". It didn't actually have to send an e-mail, but the bonus was to make it send an e-mail if the person submitted a form to remove themselves from the database. I am not really sure how to hook it up to the UniServer SMTP or anything, nor do I know how to hook it up to any other mail server. The code I have for now is: $to = $email; $subject = "You left!"; $body = "You have successfully removed yourself from our database, you treacherous scum."; if (mail($to, $subject, $body)) { echo("An e-mail has been sent confirming your removal from our database."); } else { echo("<em>failure sending e-mail</em>"); …

    • 1 reply
    • 4.5k views
  23. Started by Demonten,

    So I'm just trying to test a tiny little php file I made for my computer science class. Normally, Uniform Server works for me without trouble. Today, however, it gives me this: HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request. I restarted Uniform Server etc. I'm not really sure why that one file won't work seeing as all my other files work

    • 4 replies
    • 11.9k views
  24. Started by Mask,

    Hello, I seem to encounter some issues with the php_snmp extension: 1) Clean installed 7.0.0 2) Able to start and launch Uniform Server and use phpmyadmin and so on. 3) Uncommented the extension=php_snmp.dll in php.ini 4) Stopped apache / mysql 5) Started Apache / Mysql, about 10 seconds later it crashes with "There is no disk in the drive. Please insert a disk into drive \Device\Harddisk3\DR3". 6) Commented the extension=php_snmp.dll out again, able to launch apache / mysql as normal. I could understand there should be some "issues" with the extentions if I were to go fetch them myself, but these are the ones that are in the package with Uniform server. Or is it …

    • 2 replies
    • 5k views
  25. Started by Ollie222,

    I'm running Uniformserver 5.5 on windows 7 and I'm trying to switch on php soap. Am I right in thinking that all I should have to do is copy the php_soap.dll file into the php\extensions folder and then uncomment the following line in php.ini? extension=php_soap.dll Am I missing anything else as I've done the above and it's not being recognised. Cheers Stu

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.