Free Web Hosting PHP/mySQL
GlobalWeb.com.ru Forum Index GlobalWeb.com.ru
Free Web Hosting :: Commercial Web Hosting :: PHP/mySQL :: CGI/Perl
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Php tutorials

 
Post new topic   Reply to topic    GlobalWeb.com.ru Forum Index -> PHP
Author Message
LastEast



Joined: 28 Feb 2004
Posts: 8
Location: Montreal, Canada

PostPosted: Mon Mar 01, 2004 12:37 pm    Post subject: Php tutorials Reply with quote

Need good php tutorials for learning php, please post them here.
_________________
Simply the best.
Back to top
View user's profile Send private message
macabist
Banned


Joined: 01 Mar 2004
Posts: 35

PostPosted: Mon Mar 01, 2004 1:51 pm    Post subject: Reply with quote

me to
please give us some links
Back to top
View user's profile Send private message
IH8Purple



Joined: 29 Feb 2004
Posts: 105
Location: Ottawa, Canada

PostPosted: Mon Mar 01, 2004 2:11 pm    Post subject: Reply with quote

well the ones I can recommend off the top of my head are

- www.php.net
- www.php.net/

both of which have excelent beginer tutorials, and of course, there is also the great tutoruial to everything www.google.com
_________________
To Hell With Purple HQ (under constuction)
Cool webmaster forum
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
tcach



Joined: 01 Mar 2004
Posts: 35
Location: pakistan

PostPosted: Mon Mar 01, 2004 5:00 pm    Post subject: here you get one Reply with quote

Let's deal with MySQL first, as we'll need it before we get PHP going.
MySQL central is http://www.mysql.com/. As befits a program of its stature, there are a zillion mirrors located all over the globe, so do the Internet a favor and pick the one closest to you.
You've got plenty of choices at this point. If you're a do-it-yourselfer, then grab the source code. If you're not that brave, there are some precompiled binaries for other platforms already available for download.
In addition, there is a shareware version of MySQL for Windows users. It is an older version of MySQL. If you want the latest version, you'll have to purchase a license. There are also ODBC drivers that let your applications talk to MySQL. Various other exciting bits and pieces are lurking about on the site, too, so take a look.
The precompiled Unix versions and the Windows version are as simple as unpacking and going, and they don't require much explanation. So let's compile from the source code. Windows users, please keep in mind that you need to run mysqld in the mysql/bin directory.
Download the compressed file into your source directory and uncompress and untar it using gzip and tar. The fast way of doing this is to type:
gunzip < mysql-xxxx.tar.gz | tar xvf -
The xxxx is where you put the version number. This will create a directory called mysql-xxxx, which contains all the source files. Move to that directory by typing cd mysql-xxxx and check out the various README and INSTALL files. They're lifesavers in sticky situations.
MySQL comes with a handy configuration script. Simply type ./configure and let things take care of themselves. If you need to specify what happens and where, typing ./configure --help gives you a list of options to choose from. For example, if you're compiling on a machine with little memory, you can opt for the --with-low-memory flag. I like MySQL to install in one handy directory tree rather then in various locations on my machine, so I specify an install location with the --prefix flag.
You can also specify lots of other options, such as what to compile and what to skip. Let's assume that we want everything under /usr/local/mysql on our server. This means we'd type ./configure --prefix=/usr/local/mysql.
The configure script will run and inspect your system and then build the necessary files to successfully compile. If it fails, you'll usually get a helpful error message saying why. Quite often, you'll find the script will fail when it's looking for threading libraries. Check that you've got MIT-pthreads installed on your machine, and if not, add them. Linux users will have to download LinuxThreads. These are critical libraries that allow MySQL to multithread (i.e., run multiple versions of itself). Recent distributions of Linux may already have these libraries installed.
If everything goes according to plan, simply type make and go get a coffee. MySQL is a complex program and takes some time to compile. If you get an error, check the documentation to see if there is anything specific that you've missed for your particular OS.
Next, type make install and all the necessary files will be installed in all the necessary spots. Now you're almost ready to roll! If you are a MySQL virgin and you've never installed MySQL before, you need to create the default permissions, so type ... scripts/mysql_install_db to set these up.
That's it. We're ready to roll. All we need to do is add the ability to start and stop the server at boot-up and shutdown times. And yes, there's a script for that as well. Typing mysql.server start starts the server, and mysql.server stop stops the server. It's kind of obvious, really. To start the server manually (so you can play without rebooting) enter the root directory in your MySQL installation (/usr/local/mysql) and type bin/safe_mysqld &.
You're halfway there. Now on to PHP.
in the next topic
bye for now
_________________
You dont have a paypal account . dont worry try this

Get an account here its free for now
Back to top
View user's profile Send private message Visit poster's website
chandan
Site Admin


Joined: 29 Feb 2004
Posts: 317
Location: India

PostPosted: Tue Mar 02, 2004 11:49 pm    Post subject: good... Reply with quote

ok... this was good.... as for the PHp tuts... u can go to www.w3schools.com they have some pretty useful tutorials there...
_________________
get free PHP scripts

Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
tcach



Joined: 01 Mar 2004
Posts: 35
Location: pakistan

PostPosted: Wed Mar 03, 2004 8:08 am    Post subject: Reply with quote

Hopefully you've got MySQL all up and running by now. That was almost fun! Now for PHP ... This process is slightly easier, but the array of options is dazzling. Don't be daunted, though. You can always go back later and recompile PHP to add or remove options as needed.
The home of PHP is http://www.php.net/. The PHP site is a mine of information, from project listings to bug reports. As with MySQL, you should choose a nearby mirror. Obviously you'll want the Downloads section to get PHP. I'll be taking you through an installation of PHP3. To learn how to tackle PHP4, read Webmonkey Julie's detailed PHP4 installation instructions.
Your range of options here is a little more limited. A few precompiled binaries are available, but these are experimental. If you're on anything except a Windows platform, grab the source code and compile it yourself.
But first let's cover Windows. When using PHP, a common practice is to develop on a Windows machine and then run your site on a Unix server. It may end up that you will do this yourself, which means you need to be proficient in installing on both platforms.
Let's grab the Windows binary and uncompress it using our favorite Zip decompression tool into a directory on your C drive called php3. The supplied README file deals with the installation in some detail, but here's the Reader's Digest version:
If you want to install PHP to a folder other than C:\php3, you'll need to edit the .inf file that comes with PHP.
In the php3 directory, you'll find a lot of .dll files. Take all the .dll files that don't begin with php_ and move them into your \windows\system directory.
Then rename php.ini-dist to php3.ini and move it into your \windows directory. If you open up that file, you'll see there are lots of interesting things to change. For now just "uncomment" the line:
extension=php3_mysql.dll
If you're using Apache for Win32, set up Apache to recognize and parse PHP files. Depending on the version of Apache you're using, you'll need to add the following to either the httpd.conf or srm.conf file:

ScriptAlias /php3/"c:/path-to-php-dir/"
AddType application/x-httpd-php3 .php3
Action application/x-httpd-php3"/php3/php.exe"

Or if you're using IIS or PWS, right-click on php_iis_reg.inf and select 'Install'. You'll need to reboot for IIS to see this change.
OK, now that Windows is out of the way, let's get to Unix. Of course, we'll be compiling from source code. As with MySQL, download and unpack the source code. Again, PHP comes with a configure script. You can't get away with going for defaults here, though. Run ./configure -help | more to see pages and pages of new and interesting options. You have to decide between compiling as a CGI or as an Apache module. If you are using the Apache Web server and you are able to recompile it, use the module: It's faster and easier to use. Otherwise, you can go with the CGI version. We also need to compile in MySQL support.
For now we'll assume that we're running the module with MySQL support. If you want to add other options or other libraries, you can do this later. Type:

./configure --with-apache=/path/to/apache/dir --with-mysql=/usr/local/mysql

Skip the -with-apache option if you're creating a CGI version. The configure process will run and produce the relevant system files. Now simply type make again.
It's time for another coffee. If you start feeling a bit nervous and shaky at this point, don't worry about it. We all get a little anxious during our first PHP install. Have some more coffee.
If you've created a CGI version, you're now ready to roll. Simply copy the resulting executable file into your CGI file. For Apache module users, type make install to copy files to your Apache directory. From there, follow the instructions to add a module to Apache and recompile.
You'll need to tell your Web server how to process pages through the PHP program now. If you're not using Apache, you'll need to check your Web server documentation on how to get it to process documents with a .php3 extension. Apache 1.3.x users can simply add AddType application/x-httpd-php3 .php3 to the httpd.conf or srm.conf file. If you're using the CGI version, you'll need to add the following before AddType:


ScriptAlias /php3/"/path-to-php-dir/" AddType application/x-httpd-php3 .php3 Action application/x-httpd-php3"/php3/php"

That's it. With any luck, you've now got MySQL running and PHP functioning. Don't forget to check the FAQs and documentation if you get stuck. Also try the mailing lists.

Now that we've managed all that, lets put this stuff in motion!

In the next topic soon
_________________
You dont have a paypal account . dont worry try this

Get an account here its free for now
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    GlobalWeb.com.ru Forum Index -> PHP All times are GMT
Page 1 of 1

 


Free Web Hosting, Commercial Web Hosting, PHP/mySQL Copyright © 2009
Free Scripts Directory | Free Software Downloads | Newsgroups Directory | Optel.net | Mirroraty | Cruised.net | Hardware Keylogger