How to turn on display_errors
Posted 06 August 2011 - 11:45 PM
In any case I'm getting pissed off that UniServer is not helping me learn Ajax OR sql without a complete run around.
Posted 07 August 2011 - 06:34 AM
Seriously there is not enough information to help you.
Double clicking on index.html will directly run the page in your default browser (server is bypassed)
Running the page by typing http://localhost/index.html into your browser Apache immediately servers the page as is, with no processing.
If you change file extension to php entering http://localhost/index.php into your browser Apache will pass the content to the PHP processor for processing and server the resulting page.
Posted 07 August 2011 - 09:36 AM
I,m also guessing you're right when you say there isn't enough information, though I don't think the UniServer team would advertise that you have to convert all your html to php to get the full benifit of the server.
Unfortunatley I did not have any choice as I deleted ISS and visual studio programing from my original WIN XP PRO SP3 and Microsoft hasn't provided a way to reload them without the disc and often regards systems without them as illegal copies.
I really didn't understand how big a part of the OS those components where.
Even the pdf file Mastering phpMyAdmin seems to fall short in describing how you change PHP =values. I'm guessing your going to be locked into PHP one way or the other. The language selection is just a part of the browser OS war and Dom vs MS model.
Correct me if I'm wrong but you are saying that I need to convert my index.html into index.php? No pun on the? intended. Something I never got wind of.
Posted 08 August 2011 - 11:53 AM
It looks like you have gotten too far ahead of yourself here.
First, I suggest you set up a new, separate install of US, like D:\basic\UniServer. Then DON'T CHANGE ANYTHING in it. Use this ONLY to look over all the code, especially www\index.php. Study how it works, and solutions to several of your problems will become obvious. You can then make a COPY of that server directory, changing the name and then make whatever changes you wish, step-by-step.
Look at the application plug-ins for examples of fully configured apps. Install one, like WordPress, and look over the MySQL connection information. There's a LOT of information in the Wiki you really must read.
Secondly, one of the features of The Uniform Server is to switch between development and production PHP configs. Do a left-click on the tray icon, then choose Advanced. You'll see "php.ini switch to Development", which will copy php.ini_development_nano to php.ini. After restarting Apache, this will display all errors to the screen.
This is all covered in excruciating detail in the Wiki.
Finally, it's not The Uniform Server's charter to be a tutorial system. Rather it is a straight-forward and compact implementation of EXISTING components, namely Apache, MySQL, PHP and some glue to hold them together. It is a great base for all sorts of testing, but there are no lesson plans included.
Posted 08 August 2011 - 02:46 PM
Thanks for the response. Will try everything you said and the Wiki. Frustration with fatal error on the div change this morning made me check out a lot but if phpinfo() shows php configure file path=c/windows then it's not going to work anyway. I checked the php.ini and PHPINdir on Apache and found that all was directed corectly and uncommented etc.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users