TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 02-04-2009, 06:18 PM   #1 (permalink)
The Wanderer
 
Join Date: Jan 2009
Posts: 16
Thanks: 3
DotNetTim is on a distinguished road
Unhappy Wamp working, but what next? Help!

Hi,

I've got Wamp working now, after I deleted my "Inetpub" folder (which is weird and I didn't find in any docs, but found with googling my install problems).

I'm not sure what IDE to use to develop my PHP Scripts? I have Netbeans IDE for PHP downloaded, and I think I've downloaded the correct Eclipse IDE, but I'm not sure how to get them to work and to use them while working with WAMP, and FTP, and I need to be able to Debug, and Netbeans recommends XDebug. I'm not sure Xdubug will work with WAMP? Anyone have any good tutorials that will help me find out how to get started with Wamp, PHP, SQL a good debugging tool to work with Wamp, SQLlite, etc? Also, I have a web host that offers PHP and mySQL and I need to be able to develop locally and then upload to the host, and so I need to learn how to develop on PHP and SQL site locally within WAMP? Sorry for all the questions.

Thanks in advance..
Tim
DotNetTim is offline  
Reply With Quote
Old 02-06-2009, 05:40 PM   #2 (permalink)
The Contributor
 
Join Date: Apr 2005
Location: Kent, UK
Posts: 54
Thanks: 0
Dr John is on a distinguished road
Default

You first create a folder in the htdocs folder which is inside your wamp folder, one folder for each project you are working on of course, and start the server service as required.

You don't use a debugger with wamp, as it just runs the server services that you need. Your debugger uses the IDE, as far as I known anyway.

Then to see what you have done, you point your web browser at the folder and file using localhost/foldername/filename

When it is all working, you upload the php files to your online server, and use a mysql dump to get a copy of your database to upload. Easy Peasy.

However, the name of your database, the username and password, for the online host will not be the same as those for your local server. What I do is put all that database connection info in a single file, and use an include to load it into each php file that needs it.

In more detail, I create one file called, say, fred-local.php and another called fred-remote.php, each with the appropriate database connection stuff in them. I then make a copy of fred-local.php and rename it to just fred.php, and it is fred.php that I include into the php files that need it. Then when it is time to upload to the remote server, I delete fred.php, make a copy of fred-remote.php and rename it as fred.php That way I don't have to alter ANY other php file, as they don't know that fred has undergone a transplant operation. And if I need to do more editing of the files, I copy and rename fred-local.php to fred.php and continue working. Very simple, very easy.

PS Use Eclipse - it rocks.
__________________
www.kidneydialysis.org.uk
Dr John is offline  
Reply With Quote
Old 02-07-2009, 02:05 AM   #3 (permalink)
The Wanderer
 
Join Date: Jan 2009
Posts: 16
Thanks: 3
DotNetTim is on a distinguished road
Default

Thank you so much. How hard is it to set up Eclipse? I don't know if I even downloaded the right file..
DotNetTim is offline  
Reply With Quote
Old 02-07-2009, 10:05 AM   #4 (permalink)
The Contributor
 
Join Date: Apr 2005
Location: Kent, UK
Posts: 54
Thanks: 0
Dr John is on a distinguished road
Default

RTFM

http://wiki.eclipse.org/FAQ_Where_do...all_Eclipse%3F

"To install Eclipse, all you do is unpack the zip file download in the desired directory. No further work is required (other than making sure you have a Java Runtime Engine installed). When you unzip the file, it creates a subdirectory called "eclipse", with multiple subdirectories under that. So, for example, in Windows you could unpack the zip file in the root directory (e.g., C:\) and Eclipse would be installed in C:\eclipse. Note that installing Eclipse does not change the Windows registry. "

If you have downloaded Eclipse, then you have the "right" version as it is an editor. To make it more suitable for PHP it has add-ins or plugins or whatever it calls them (can't remember at this moment), and if you don't have the ones you need, you just go and get them.

But just to help you, I spent 1 minute looking for the version you need and here it is
http://www.eclipse.org/pdt/

PS as for a de-bugger, it sounds as if you are just starting on this, and so your programs will be as simple as mine, and I don't use a de-bugger.
__________________
www.kidneydialysis.org.uk
Dr John is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
setup sub domain on wamp? sarmenhb General 3 06-25-2011 04:09 AM
Mod Rewrite only partially working Gareth General 6 12-24-2008 06:08 PM
function that returns an array -- why not working? Dave Absolute Beginners 3 08-13-2008 05:01 PM
Wamp 2 Error Orc General 8 06-20-2008 01:02 PM
Wamp Servers? Nor General 16 04-29-2008 04:50 PM


All times are GMT. The time now is 11:35 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design