hey there i just got my hands on a new project, but was wondering if i will be able to deliver it... anyways, the project if making a database driven php site.... and for the same i am referring to this book... "SitePoint Build Your Own Database Driven Website Using PHP MySQL" ... before going forward let me add tht i know the following lang. HTML / CSS / Java Script... thtz it.. firstly, i would like to know if i can run php pages on my PC? cause everytime i open a php page i only see the codings no design... !! also, wht is AJAX.. i know tht it is something tht i used for dynamically changing the page contains.. so can i use this formy php site... ??? thankz
to run php you should need to install a server on your computer. Run a search for wamp and you can get the one i generally use. You have to do this because php is a server side language. You can check out their read me files to figure out how to view things. Ajax uses java to check other files for information and send it back, you can check a variety of files including php and xml. For a good example of ajax check out the dp spy which updates as people post.
yes, you can run php on your pc... but you need to have a web server (e.g. apache) and php installed first. even then, you can only actually 'run' the pages through a browser served by the web server installed on your pc... not worth the hassle if you ask me - might as well get a fat client application...
You CAN setup a PHP system on your PC, if you have some know-how. Earlier, I used to test all my scripts, even the silliest ones by uploading to my webhost. This was driving me nuts. Finally I installed PHP,MySQL and Apache manually on my system and its very easy to test the scripts now. The only thing thats hard will be to configure the PHP to make it work correctly. Everything else is easy. You can try the EasyPHP Package. http://easyphp.org/ It seems to be good. Haven't tried it though. Another thing is... This is not true. AJAX does NOT use java, it uses JAVASCRIPT, which is an entirely different thing. Need proof? Check this out: http://en.wikipedia.org/wiki/Javascript . Ajax basically provides you with the functions to send an HTTP request using Javascript. So you can send requests to your server without reloading the page and update the values on the page using Javascript only. A very good free library that can be used code with AJAX is this: http://www.modernmethod.com/sajax/ Hmm... They should have hired me as their marketing rep or something... I dunno how many times I have recommended this to someone .. . But I think you should learn PHP, before you start with Javascript. After you learn PHP, you can use some light-weight PHP framework, like Code Ignitor, http://www.codeigniter.com/ It makes it very easy to develop applications with PHP. Thomas
I also wouldn't bother programming a PHP/MySQL driven site from scratch, I would just use an Open Source tool such as Joomla. It will save you loads of time and headaches
Or perhaps you should stop accepting projects that you are not qualified to do... I know if I hire an expert to do work for me that I can't do myself I expect them to know what they're doing. If I were hiring you and I found out you're on forums trying to figure out what to do and considering building my site based on a tutorial you found on sitepoint I'd be pissed. You'll probably deliver a project full of security holes and have no idea how to support them if it breaks.
While you make a good point GeorgeB, you have to admit that the majority of software/services sales people sell greater than what they can deliver
I agree. You would be better off building yourself a php/mysql website before unleashing something full of bugs onto your client. Don't forget that if something doesn't work you will be the one who has to fix it.
firstly thankz a lot coderlinks & Klown... well as for taking projects tht i dont know here is my say for it... you see there is always a first time for everyone.. and the project will i am wrkin on is for one of my dear friend who already knows wht i know and can do.... so there is no harm in tryin.. to be clr m not wrkin on some highly paid stuff... and i like to be proud of the work i do.. so not cuttin in tht... anyways, thankz again guys... i ahve installed wamp and now wrkin on makin a PHP site.. and then will slowly add some AJAZ to the same ... will chk postin here it i need hellp and upadates...
no prob, if you want an easy to understand ajax example go here to download. it uses php btw so use wamp