Jeffery J. Jensen, PE
Adjunct Professor
University of Nevada Las Vegas
Department of Civil and Environmental Engineering
4505 S Maryland Pkwy
Box 454015
Las Vegas NV 89154-4015
Email: jefferyjjensen@gmail.com
Mobile: 702-327-9294
Jeff Jensen Notes MySQL
PHP Topics
XAMPP Install
PHP Background
- <?php phpinfo(); ?>
- older php tags but are considered as bad form <? ?> and <?= ?>
- compare to ASP tags which are also considered as bad form <% %> and
<%= %>
- Must have the file type of *.php inserting PHP code in an HTML
file (*.html) will not run.
- Hello World example, save file as helloworld.php
-
PHP and WAMP Install
- WAMP Forum username: jefferyjjensen, password: normal,
email: jefferyjjensen@gmail.com
- PHP 5.2 and later Windows Installer
- WampServer - Install PHP 5, Phpmyadmin, Apache and MySQL on Windows
- download, see
http://sourceforge.net/projects/wampserver
- PHP Designer from MPSoftware.dk
- PHP FAQ
- Install WAMP Server
- How to uninstall PHP (WAMP)? Using the Windows Control Panel, click the
Add or Remove Programs and select WAMP to remove.
- Step 1: backup data and database
- Step 2: stop the WAMP service (wampapache and wampmysql)
either through the wamp tray icon or
in the Windows Task Manager
- Step 3: uninstall WAMP using the Windows Control Panel
- Step 4: might have to restart the computer
- Step 3: remove the WAMP folder (C:\WAMP). Getting a problem
with wampmanager.exe, I had to reboot the computer before I was
able to delete this file and the C:\WAMP directory.
- Step 4: regedit to search and delete wampapache and
wampmysql services. Use Ctrl+F to find these services. Note, these
where already deleted when I did an uninstall and reboot.
- Step 5: restart the computer
- Step 6: install new WAMP
- WAMP asks for my default web browser, I just select
C:\Program Files\Internet Explorer\iexplore.exe
- Step 7: set or reset the MySQL password
- Step 7: restore data and database
- Run WAMP from the system tray
- Test installation
- Step 1: Test your server
- default webserver folder: c:\wamp\www
- http://localhost/index.php
- alternative - http://127.0.0.1/
- Window Services
- Step 2: Test your IP address
- PHP Help
PHP Support
- Custom DNS allows you to setup a domain like www.yourname.com to point to your
IP address. Custom DNS is a paid service and dynamic DNS is free.
- If your ISP is blocking port 80, try the HTTP redirection called
WebHop
- Remote Desktop Tutorial