| 0 comments ]

Hi.
today i was present my individual project in Web Programming II in my class. I'm not prepare anything include slide show or proposal project, because yesterday, I'm too busy prepared my assignment in networking subject. A whole day i try hard to finish my word with my friend, mohd shafiq. Collect an information from my pal and combine with my work, at last, my complete assignment had finish. Back to my today presentation, when i work up from at morning, in my mind, what a best topic should i present to my Prof in class...after couple hour :) i got an idea. In front of prof Ismail, when my turn to present, i opened my HP 6510b, after that show to all my class about why my login script fail to connect with Mysql. Using Php Designer 2008 sofware, i tell people in my class about version of php. my Mechine (HP) using PHP below 4.0, but a login script i using was 4.3 version. so how to resolve this problem. we look at next script "return mysql_real_escape_string($str);" - we only have to remove "_real" to solve problem and my login script was working. you all want my script, it ok, i'm not a stinky person. but wait for my next post. see you next time. by :)

| 0 comments ]

PHP is a widely-used general-purpose scripting language that is
especially suited for Web development and can be embedded into HTML.
PHP has more than several thousands functions for many purpose.

For writing a program in any language we need basic language construct,
syntax and a large number of functions to get the desired result from
program.

In this article I will write about the some functions of PHP which are
very useful in creating a bug free, clean and efficient program.

We used print and echo functions to send the output to browser. so they
are of course one of the necessary functions of PHP. Without using them
you can not write a PHP program or at least can not show your work to
the world.

You must know the functions describe in this article, in order to write
a good and bug free code.

These are :-


error_reporting

The error_reporting() function sets the error_reporting directive at
runtime. PHP has many levels of errors, using this function sets that
level for the duration (runtime) of your script.


isset

This function determine whether a variable is set or not. It is very
useful in avoiding Notices generated by setting your error_reporting to
E_ALL. Undefined or un-initialised variables may be the main reasons
for many irritating bugs in your program, but remember isset() only
works with variables as passing anything else will result in a parse
error. For checking if constants are set use the defined() function.

print_r

This function prints human-readable information about a variable
It displays information about a variable in a way that's readable by
humans. If given a string, integer or float, the value itself will be
printed. If given an array, values will be presented in a format that
shows keys and elements. Similar notation is used for objects.

var_dump

This function displays structured information about one or more
expressions that includes its type and value. Arrays and objects are
explored recursively with values indented to show structure. In some
ways print_r and var_dump are similar.

ini_set and ini_get

These functions sets and gets the value of the given configuration
option. Returns the old value on success, FALSE on failure. The
configuration option will keep this new value during the script's
execution, and will be restored at the script's ending.
Not all the available options can be changed using ini_set(), You can
consult the PHP manual for a full list of available variables.

set_time_limit

This function set the number of seconds a script is allowed to run. If
this is reached, the script returns a fatal error. The default limit is
30 seconds or, if it exists, the max_execution_time value defined in the
php.ini. If seconds is set to zero, no time limit is imposed. It is very
usefull if you are working with a script which may take some time to
finish like sending a large number of emails.

When called, set_time_limit() restarts the timeout counter from zero. In
other words, if the timeout is the default 30 seconds, and 25 seconds
into script execution a call such as set_time_limit(20) is made, the
script will run for a total of 45 seconds before timing out.

set_time_limit() has no effect when PHP is running in safe mode. There
is no workaround other than turning off safe mode or changing the time
limit in the php.ini.

it is said that using these functions you can write a good and
bug free code so lets keep using them.

so if all issue above resolve, we can move to the next step of PHP. why a newbie always
too slow catch up with this topic. especially for student?because, they don't have a curiosity to seeking knowledge. and for who like PHP, they try hard, but in the wrong way. so, don't afraid, we can start slowly, from the basic after that, we improve step by step, until expert in PHP programming. at last, have a nice day, TQ

for more information.go to this website.
http://www.phpstarter.net/board/index.php?topic=141.0

| 0 comments ]

PHP Triad is an installer for Windows versions of PHP, Apache, MySQL, Perl and PHPMyAdmin. Phew! I guess the Triad name has been a little outgrown, but we can overlook that!

I tried out the installation on a P4 1.8 Ghz running Win2000 Professional with no other webserver installed. The installation was performed with PHPTriad 2.11.

After downloading I ran the install script, read the quick text that explains a couple of points about the installation and proceeded. 1 minute later I went to the Start menu and under PHPTriad chose "Start Apache" followed by "Start MySQL", opened my browser and went to 127.0.0.1 to find a working webserver, with links to a quick PHPInfo script and PHPMyAdmin.

The basic install sets up the following:

  • PHP - 4.0.5
  • MySQL - 3.23.32
  • Apache - 1.3.14
  • PHPMyAdmin - 2.1.0
  • Perl - nsPerl 5.005_03

There is a separate download at present to upgrade PHP to 4.1, this is apparently an interim arrangement until the next full version is ready.

After installation, I followed the link to PHPMyAdmin and got back an error:
"Warning: Can't connect to MySQL server on 'localhost' (10061) in C:\apache\htdocs\phpmyadmin\lib.inc.php on line 255"

A quick scout in the FAQ section of the PHPGeek site showed that I needed to run "winmysqladmin.exe" from "c:\apache\mysql\bin" and choose a username and password to add a user account to the database first. With that done, phpMyAdmin worked with no problems, though you'll also find that you can do a bunch of admin tasks through winmysqladmin.exe as well.

I have earlier tried the EasyPHP installer, which also worked, but was written in French making it harder for English speakers to work out any problems that might occur. PHPTriad worked very well for me, setting up a basic webserver, database and development tools environment with no sweat broken at all. Of course all the programs are installed with the most basic settings, so you'll still need to work your way through configuring the various programs for your exact requirements. One major point to notice is that none of the Perl or PHP code libraries are installed.

If you are simply looking to get a PHP, Apache, MySQL installation up and running, I would definitely recommend PHPTriad

Links:
Homepage


download php triad from link below...
http://www.download.com/PHPTriad/3000-2165_4-10048390.html
http://sourceforge.net/projects/phptriad

| 0 comments ]


Learn Php Fast #1 -


Learn Php Fast #2 - Click here for more home videos

| 1 comments ]

PHP is scripting language include with HTML (Hypertext Markup Language) and running at serverside. It means all sintaks will be running at server and just result was send to browser.

Before start the PHP you must running well server web and PHP scricpt . To create web with PHP script you just using teks editor.

Function in PHP is uncase sensitive, but the variable is case sensitive (different between Uppercase and Lowercase). PHP script beginning with symbol “<� and then ending using with symbol “>�.

3 mothode to type PHP script, there are :

1.

PHP script

?>

2.

PHP script

?>

3.

Each instruction separate by comma symbol (;). For create or add commentar using method :

/* Comment */

// Comment

# Comment

File Practise lat1.php

</p> <p>Simple practice</p> <p>

echo (”hello word ? My name is PHP script”);

?>

File Practise lat2.php

Simple practice script PHP

Date :

/* script to print out date using command echo*/

echo date(’d F Y’);

echo ‘
’;

?>

Date :

//script to print date using command print

print (date(’d F Y’));

?>

most of the beginner leave this basic and go direct to modified script, this is wrong, the important thing is basic and must learn it. so check this out, try remember and practice all fundamental before go to the next level.

for more information, visit (http://justi.dagdigdug.com/2008/06/02/basic/)

| 0 comments ]

| 0 comments ]

salam
today i put most important PHP lecture and tutorial note from my collection to share. keep it safe and that all PHP note i give no copyright at all . so hurry up download it. i upload all file at "media fire" "http://www.mediafire.com" hosting because it so easy to upload and when u all want to download it later-it better that other file hosting others. u can download it multiple file at the same time and extra thing u don't have to register anything. just click file and download. so what waiting for... hurry up and improve your PHP skill. don't forget to download e book i post yesterday and keep track for my next PHP video tutorial for couple week later. tq

Link for download PHP pdf file note....
http://www.mediafire.com/?sharekey=8542bd3d00813401d2db6fb9a8902bda

| 0 comments ]

Author: David Powers
Paperback: 488 pages
Publisher: friends of ED (November 20, 2006)
Language: English
ISBN-10: 1590597311
ISBN-13: 978-1590597316
Format: pdf

In this book you'll learn how to:
Create dynamic websites with design and usability in mind, as well as functionality
Understand how PHP scripts work, giving you confidence to adapt them to your own needs
Bring online forms to life, check required fields, and ensure user input is safe to process
Upload files and automatically create thumbnails from larger images
Manage website content with a searchable database

http://rapidshare.com/files/136824295/p.h.p.Sols.Dync.Web.Des.Made.Eazy-virTuAlZin.rar

| 0 comments ]

klik di sini untuk mengetahui kaedah menjana pendapatan internet yang terbukti