GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rating: Thread Rating: 2 votes, 5.00 average.
  #1  
Old 12-Dec-2004, 17:16
onauc onauc is offline
New Member
 
Join Date: Nov 2004
Posts: 28
onauc is on a distinguished road

Help ! I need help starting up on Php !


Hiya,

Ok, I really need help now.
I want to learn Php programming.
I use windows but I guess the Php scripts I write will be running on Unix/Linux since most webservers of this world are Uniz/linux.

Now, my question is :

Since there are 2 Php versions (one for Windows and one for Unix/Linux) then will that cause any trouble ?
I mean, the tutorials out there, is there a windows tutorial version and a Unix/Linux tutorial version ?
If I read the Windows tutorials and the source codes from it then will they work in webservers under Unix/Linux and vice-versa ?

Frankly, I am stuck !
I do a search on google and many websites come-up and one says do this and another says do that.
So, what should I do ?
Where do you recommend I go to download and install Php ?
I know, I can always use my webhost's server to upload the Php codes and experiment there but that would mean me losing a lot of band-width while "experimenting" and that's why I preferred to download and install Php on my own computer (Windows) but I am worried that the codes that will work on Windows (my computer) might not work on Unix/Linux (my website).
Actually, I can't afford to learn 2 versions of Php (one WIndows and one Unix/Linux) because it is hard enough to learn one version (syntax) in the first-place.
So, what do you all suggest ?
I definietly need help here as I am totally stuck and don't know what to do.
  #2  
Old 12-Dec-2004, 19:00
crystalattice's Avatar
crystalattice crystalattice is offline
Aspiring author
 
Join Date: Apr 2004
Location: Japan (again)
Posts: 1,627
crystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nice
Two versions of PHP is new to me. PHP is embedded within your HTML pages, so the server processes it and spits out the equivalent HTML (in a nutshell). There is only one version of PHP; as long as a server (Windows, Unix, Linux, Mac, etc.) has the PHP "plug-in", the PHP in your web site will work.

If you want to run PHP on your personal computer, you'll have to install a web server (IIS, Apache, etc.) and include the PHP package for that server. There are several versions of Apache available that already have PHP (and MySQL et al.) installed, so all you'd have to do is get the one Apache file and install it (I can't think of names off-hand, sorry).

Other people will have a better run down on installing this. Uploading to your webhost shouldn't be that bad, since all your really sending is text files, and getting a functioning web server on your system can be difficult. So don't totally throw away the idea of just posting to your web host.
__________________
Start Programming with Python-A beginner's guide to programming and the Python language.
-------------
Common Sense v2.0-Striving to make the world a little bit smarter.
  #3  
Old 13-Dec-2004, 09:39
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
PHP scripts you will write in the future always work on Linux (if they work on your Windows setup). There are rare occasions where the converse is not true.

Every PHP script I write, I write (and test) on my faithful Windows ME machine and I have yet to find myself stuck, just because I am developing them on a win32 machine.

There are indeed PHP functions that are not supported in the win32 environment and if so, it will be clearly indicated as such in the PHP manual. Take for example the windows-specific notes for Shared Memory Functions but seriously, how often do you see yourself using those?

About downloading PHP, this is a good place to do that : http://www.php.net/downloads.php

As I said, you write PHP scripts just one way and they should work on all supported platforms. Sometimes you need to know exactly which OS the script is being run on so that you can manage a script to handle each situation in it's own way for some specific reason. This is what I usually do (a simple example), since I only write my scripts to work either on Linux or Windows usually.

PHP Code:

<?php

// check if we're on Windows
define( 'IN_WINDOWS', (strtolower(PHP_OS)==='win32' ? true : false) );

// further down the script where we need to check if we're on WINDOWS or LINUX
if( IN_WINDOWS )
{
  // some specific code for the win32 environment;
}
else
{
  // some specific code for Linux...;
}
?>

  #4  
Old 14-Dec-2004, 03:04
besttoolbars
 
Posts: n/a
Yes, www.php.net is a place to go I got my PHP there ) But if you don't want to configure your server and your PHP separetely, you may look for ready-to-use kits. They also my include MySQL, that also will be very useful to you.
  #5  
Old 15-Dec-2004, 09:46
ARTzWeb.net ARTzWeb.net is offline
New Member
 
Join Date: Nov 2004
Posts: 17
ARTzWeb.net is on a distinguished road
One of the main advantages of PHP over other programming languages is that it is cross-platform compatible. Meaning what works on the environment you develop, should work on any other platform which supports PHP,
  #6  
Old 15-Dec-2004, 15:26
onauc onauc is offline
New Member
 
Join Date: Nov 2004
Posts: 28
onauc is on a distinguished road

easy php


some guy told me to just get easy php as it comes with apache, php, php myadmin and mysql all in one package.
What do you think ?
  #7  
Old 20-Dec-2004, 05:08
besttoolbars
 
Posts: n/a
As I said before, you may use such a way, especially if you are a novice. When you'll get more experience you will be able to install & configre it by yourself
  #8  
Old 20-Dec-2004, 18:07
ipreferplants ipreferplants is offline
New Member
 
Join Date: Dec 2004
Posts: 2
ipreferplants is on a distinguished road

EasyPHP


When I started teaching myself php I installed easyphp to set my Windows pc up as a test server.

It was a complete doddle and I was up and running very quickly with no problems. I don't know how it compares with other systems as it worked so well that I didn't try any others. Don't be put off by the French, there is an English translation to download.

Get it from www.easyphp.org
  #9  
Old 01-Jan-2005, 18:15
Zurke Zurke is offline
New Member
 
Join Date: Dec 2004
Posts: 12
Zurke is on a distinguished road
http://www.appservnetwork.com/index.php?modules=news&applang=en

I loaded appserv. I have 2.5.2 installed now, it runs excellent. It is also an easy set up, just make sure you install everything on C: drive to make life easy for yourself.

The package has everything you would need to run a server on a local host (which is your machine[pc]). And its absolutely no strings free.

Hope it helps.

I am 4 months ahead of you. Cheers mate.
  #10  
Old 03-Jan-2005, 16:05
dopee dopee is offline
Awaiting Email Confirmation
 
Join Date: Feb 2004
Location: south africa
Posts: 109
dopee will become famous soon enough
za2.php.net
 
 

Recent GIDBlogProgramming ebook direct download available by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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 Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache and PHP mikenowo Apache Web Server Forum 0 27-Oct-2004 09:36
PHP crashing/restarting Apache - PLEASE HELP ME!! faulkj Apache Web Server Forum 4 27-Sep-2004 15:50
uisng php to display php dopee MySQL / PHP Forum 6 14-May-2004 19:40
php software dopee MySQL / PHP Forum 0 04-May-2004 12:26
All the big PHP script collections that matter jrobbio MySQL / PHP Forum 5 06-Jun-2003 17:14

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 16:18.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.