[PHP] Re: date formatting

2007-08-30 Thread Haydar TUNA
Hello, You can DATE_FORMAT MySQL Command in your SQL Query. For example: select DATE_FORMAT(yourdatetimefield,'%Y-%m-%d') from yourtable -- Republic Of Turkey - Ministry of National Education Education Technology Department Ankara / TURKEY Web: http://www.haydartuna.net ""Mike Ryan"" <[

[PHP] Re: Include files....

2007-05-19 Thread Haydar TUNA
Hello, Short tags () are only available when they are enabled via the short_open_tag php.ini configuration file directive, or if php was configured with the --enable-short-tags option. Did you configure your php.ini file? -- Republic Of Turkey - Ministry of National Education Education Tec

[PHP] Re: form validation

2007-04-07 Thread Haydar TUNA
Hello, You can use javascript and Ajax together. If you use the ajax, you can validate your data with PHP code. Please visit the web site below. You will find information about PHP and Ajax::) http://www.w3schools.com/php/default.asp -- Republic Of Turkey - Ministry of National Edu

[PHP] Re: read only texbox to html with php

2007-04-07 Thread Haydar TUNA
Hello, If you use read only textbox in HTML, you can use like a following HTML code.:) -- Republic Of Turkey - Ministry of National Education Education Technology Department Ankara / TURKEY Web: http://www.haydartuna.net ""Ross"" <[EMAIL PROTECTED]>, haber iletisinde þunlarý yazdý:[

[PHP] Re: Simple question on simplexml

2007-04-07 Thread Haydar TUNA
Hello, You can use following example:) body[0]->addChild("book", "Atatürk The Rebirth Of A Nation"); ?> Republic Of Turkey - Ministry of National Education Education Technology Department Ankara / TURKEY Web: http://www.haydartuna.net "Timothy Murphy" <[EMAIL PROTECTED]>, haber iletisin

[PHP] Re: Sending mail through another (SMTP authenticated) host

2007-04-02 Thread Haydar TUNA
Hello, You can use phpmailer from http://phpmailer.sourceforge.net/ web adress:) . You can use examples like this: IsSMTP(); // send via SMTP $mail->Host = "post.somehost.com"; // SMTP servers $mail->SMTPAuth = true; // turn on SMTP authentication $mail->Username = "somebady"; // SMTP u

[PHP] Re: Another SimpleXMLElement question...

2007-03-23 Thread Haydar TUNA
Hello, This is Simple XML extensions. The SimpleXML extension requires PHP 5!. For this reason you can only use other XML extensions such as XML parser.:) -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department Ankara / TURKEY Web: http

[PHP] Re: install problems

2007-03-18 Thread Haydar TUNA
2.2.4, my problem could be solved.:) -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department Ankara / TURKEY Web: http://www.haydartuna.net "jekillen" <[EMAIL PROTECTED]>, haber iletisinde sunlari yazdi:[EMAIL PROTECTED] > Hello;

[PHP] Re: Preventing unwanted chars from outputting

2007-03-18 Thread Haydar TUNA
Hello, What is your database program? If your database program is MySQL, what is your default charset of database? These questions are more importont to solve your problem.:) -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department Ankara

[PHP] Re: php +html mail

2007-03-17 Thread Haydar TUNA
Hello, If you are new to php or other web technologies, you can find many information,examples about PHP and other web technologies in http://www.w3schools.com/ web sites. This is a great web site for web technology education. :) -- Haydar TUNA Republic Of Turkey - Ministry of National

[PHP] Re: php - web service (ajax/jscript)

2007-03-15 Thread Haydar Tuna
easily. You can find any information about nuSOAP in the http://sourceforge.net/projects/nusoap/ web site:) -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department Ankara / TURKEY Web: http://www.haydartuna.net ""bruce"" <[EMA

[PHP] Re: displaying image from MySQL DB using HTML/PHP

2007-03-13 Thread Haydar Tuna
id, id, student number and so on and then you can call the image from your main program. For example . -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department Ankara / TURKEY Web: http://www.haydartuna.net ""Bruce Gilbert"" <[EMA

[PHP] Re: Capitalizing the first letter

2007-03-13 Thread Haydar Tuna
Hello Again, You can use ucwords() functions except my method. This function returns a string with the first character of each word in str capitalized, if that character is alphabetic. :) -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department

[PHP] Re: Capitalizing the first letter

2007-03-13 Thread Haydar Tuna
Hello Again, You can use ucwords() functions except my method. This function returns a string with the first character of each word in str capitalized, if that character is alphabetic. :) -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department

[PHP] Re: Capitalizing the first letter

2007-03-13 Thread Haydar Tuna
Hello Again, You can use ucwords() functions except my method. This function returns a string with the first character of each word in str capitalized, if that character is alphabetic. :) -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department

[PHP] Re: Capitalizing the first letter

2007-03-13 Thread Haydar Tuna
ike a following examples in your code:) -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department Ankara / TURKEY Web: http://www.haydartuna.net "Todd Cary" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I would like to

[PHP] Re: question regarding form filtering

2007-03-13 Thread Haydar Tuna
(such as digit count is 4), you can write like a checknumber($number,$digit). With this function, you can use like length of variable function, removing special character function, checking number or string function and trimming blank lines function together. :) -- Haydar TUNA Republic Of Turkey

[PHP] Re: php 4 and 5

2007-03-13 Thread Haydar Tuna
brary than PHP 4 and so on:))) -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department Ankara / TURKEY Web: http://www.haydartuna.net ""Tony Marston"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > &q

[PHP] Re: Posting variable outside of the post form

2007-03-12 Thread Haydar Tuna
HTML form fields appear on your browser address bar and if you want to hide HTML form fields before send , you can use POST method. For a long HTML form variable you can use POST method:) -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department Ankara

[PHP] Re: Redirecting in a PHP script

2007-03-12 Thread Haydar Tuna
Hello, In my many projects, I have used PHP header function for redirecting any URL so you can use like a following command. I haven't got any problem with this command until now :) header("Location: http://www.domain.com";); -- Haydar TUNA Republic Of Turkey - Minis

Re: [PHP] Re: php 4 and 5

2007-03-12 Thread Haydar Tuna
Hello, Yes, you are right I mean supports more OOP features. PHP 5 support more OOP features than PHP 4. :) -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department Ankara / TURKEY Web: http://www.haydartuna.net "Robert Cummings&quo

[PHP] Re: Data Types Problem

2007-03-12 Thread Haydar Tuna
ariable value at the same time:) $a = = = $b Identical TRUE if $a is equal to $b, and they are of the same type. (introduced in PHP 4) -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department Ankara / TURKEY Web: http://www.haydartuna.net

[PHP] Re: Why won't this query go through?

2007-03-12 Thread Haydar Tuna
this in the mysql command line. If you get an errors, there is a problem on your SQL. :) -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department Ankara / TURKEY Web: http://www.haydartuna.net "Mike Shanley" <[EMAIL PROTECTED]> w

[PHP] Re: php 4 and 5

2007-03-12 Thread Haydar Tuna
Hello, Most important change is Object Oriented Features. PHP 5 support Object Oriented programming features. PHP 5 also supports more library than PHP 4.:) -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department Ankara / TURKEY Web: http

Re: [PHP] [X-POST] PHP script to make sure MySQL is up?

2007-03-03 Thread Haydar Tuna
e or false. In shell script , you can control that ENV variable. if ENV variable is false, your can start your mysql server:) -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department Ankara / TURKEY Web: http://www.haydartuna.net ""Ric

[PHP] Re: rich html emailer

2007-03-03 Thread Haydar Tuna
Hello, You can use AJAX technologies. In this technology, You can call the PHP functions with JavaScript and then you can use returning values of PHP functions with JavaScript. Returning values of PHP functions can be only one variable or array variables :) -- Haydar TUNA Republic Of

[PHP] Re: advise on consulting fees

2007-03-03 Thread Haydar Tuna
Hello, You can developed private web site template for your clients. This template can be personal page, company page and so on. if you try this, you can deal with only graphic design. Your development time for the web site will decrease. :) -- Haydar TUNA Republic Of Turkey

[PHP] Re: Your input would be appreciated.

2007-03-02 Thread Haydar TUNA
Hello, In some questions, you can use combobox for easiest data analysis such as countries . except this, it's very good survey:) -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department Ankara / TURKEY Web: http://www.haydartuna.net &l

Re: [PHP] Help! I cannot send e-mail to your mail groups

2007-03-02 Thread Haydar Tuna
:) -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department Ankara / TURKEY Web: http://www.haydartuna.net ""Haydar Tuna"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hello Again, If I send e-mail to y

Fw: [PHP] Help! I cannot send e-mail to your mail groups

2007-03-02 Thread Haydar Tuna
Error Number: 0x800CCC0E - Original Message - From: "Németh Zoltán" <[EMAIL PROTECTED]> To: "Haydar Tuna" <[EMAIL PROTECTED]> Cc: Sent: Friday, March 02, 2007 12:19 PM Subject: Re: [PHP] Help! I cannot send e-mail to your mail groups 2007. 03. 2, pén

[PHP] Help! I cannot send e-mail to your mail groups

2007-03-01 Thread Haydar Tuna
Hello, I have been Linux user for 7 years and I have been membership of Linux Community group for 3 years in Turkey. As you know, linux users share all of experiences and knownledges and I'm writing a book about PHP. I'm a PHP professional for this reason I want to help any people on the world

[PHP] Re: GET doesn't work as POST

2007-02-24 Thread Haydar TUNA
Hello, if you send your complete code, I can help you.:) -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department Ankara / TURKEY Web: http://www.haydartuna.net "Otto Wyss" <[EMAIL PROTECTED]>, haber iletisinde sunlari yazdi:

[PHP] Re: When to use exception, or When not to use exception

2007-02-23 Thread Haydar TUNA
Hello, You can use the following tutorial for error handling in PHP :) http://www.devshed.com/c/a/PHP/Error-Handling-in-PHP-Introducing-Exceptions-in-PHP-5/ -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department Ankara / TURKEY Web: http

[PHP] Re: JPG Not supported on my server, but GDlib enabled?

2007-02-22 Thread Haydar Tuna
library and such as --with-jpeg-dir option for jpeg library. If you use --with-gd option without not write any folder name , PHP will use default GD folder ( extension directory). http://www.libgd.org/Downloads ftp://ftp.uu.net/graphics/jpeg/ -- Haydar TUNA Republic Of Turkey - Ministry of

[PHP] Re: Enable login prompt with main page of phpmyadmin

2007-02-22 Thread Haydar Tuna
/) After this step, you can choose http in authentication and choose localhost in host:) -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department Ankara / TURKEY Web: http://www.haydartuna.net <[EMAIL PROTECTED]> wrote in message news:[EMAIL PRO

[PHP] Re: can this be fone with PHP?

2007-02-22 Thread Haydar Tuna
Hello, You can use the fpdf free package. I have used this PDF package in my many project. It's very easy to use and free:) www.fpdf.org -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department Ankara / TURKEY Web: http://www.haydartun

[PHP] Re: Capture the whole URL

2007-02-22 Thread Haydar Tuna
Hello, URL consist of two part HOST and URI respectivetely. HOST part likes example www.domain.com . URI part likes main.php?id=5 and so on. You can get the HOST part of URL with $HTTP_HOST and URI part of URL with $REQUEST_URI.:) -- Haydar TUNA Republic Of Turkey - Ministry of

[PHP] Re: How to call image from mySql to php file

2007-02-21 Thread Haydar TUNA
Hello again, I make a mistake in the image.php code at echo($row['resim']); line. if you change this line echo($row['picture']) , your problem will be fixed. : I have written table field in Turkish. in Turkish picture means that resim :))))) -- Haydar TUN

[PHP] Re: How to call image from mySql to php file

2007-02-21 Thread Haydar TUNA
image to your main application from image.php file with like the following HTML2 code. HTML 1 Code - for get variables HTML 2 Code - for session variables image.php -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department Ankara / TURKEY Web: http

Re: [PHP] Re: Securing user table with sha function

2007-02-20 Thread Haydar Tuna
wledges or experiences. Again I'm sorry if you see me the wise guy. I only like helping people:) Sincercely. Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department Ankara / TURKEY Web: http://www.haydartuna.net ""Richard Lynch"

[PHP] Re: php forcing a post??

2007-02-20 Thread Haydar TUNA
Hello, You can use the tutorial in the following link :) http://www.phpbuilder.com/tips/item.php?id=239 -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department Ankara / TURKEY Web: http://www.haydartuna.net ""blackwater dev"&quo

Re: [PHP] Understanding session variables with input field and register_global

2007-02-20 Thread Haydar TUNA
Hello, Can you send your code? I can help you :) -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department Ankara / TURKEY Web: http://www.haydartuna.net ""Jay Blanchard"" <[EMAIL PROTECTED]>, haber iletisinde sunla

[PHP] Re: New To PHP

2007-02-20 Thread Haydar TUNA
Hello, if you test your machine support PHP, you can use the following script. if this script properly execute, your machine can execute php script. if not you must support PHP.:) -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department

[PHP] Re: Securing user table with sha function

2007-02-20 Thread Haydar Tuna
d username for session authentication. for example if I want to action on the usernames or list of usernames , what can I do this? All of usernames are crypted. Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department Ankara / TURKEY Web: http://www.hayd

[PHP] Re: importing contacts

2007-02-19 Thread Haydar Tuna
x.php/about/libgmailer/ Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department Ankara / TURKEY Web: http://www.haydartuna.net "kumar3k" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > hai > I am doing MCA in In

[PHP] Re: Securing user table with sha function

2007-02-18 Thread Haydar Tuna
must use session variables for username 4) if user forget his or her password, you can send email to the user when the user answer password protected question. -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department Ankara / TURKEY Web: http

[PHP] Re: Help with sessions on Log in and Log out

2007-02-18 Thread Haydar TUNA
the page. quit.html code window.top.location="index.php" -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department Ankara / TURKEY Web: http://www.haydartuna.net ""Ashish Rizal"" <[EMAIL PROTECTED]>, haber iletisin

[PHP] Re: reverse http authentication

2007-02-18 Thread Haydar TUNA
unction verify($username, $password) { $usercount = 1; $myusername = array (0=>"username"); $mypassword = array (0=>"password"); $auth = false; for ($i = 0; $i < $usercount; $i ++) if ( ($myusername[$i] == $username) && ($mypassword[$i] == $password) ) $auth = true; re

[PHP] Re: PHP Startup: Unable to load dynamic library

2007-02-18 Thread Haydar TUNA
Hi, I think , you work on a Linux machine and you install together PHP and Apache in the source code. Can I give your ./configure paratemether. I think there is a problem in the configuration parameters. "Noah" <[EMAIL PROTECTED]>, haber iletisinde sunlari yazdi:[EMAIL PROTECTED] > > Hi,