Re: [PHP] changing unix password in php?

2002-01-22 Thread Mehmet Kamil ERISEN
I have not done it, but i can be done by using a form and calling the shell script that does the job. Of course shell script has to be executable by everybody. It may be a security concern. or, you can add the shell script to your cron tab. and keep the password change requests in a file and

[PHP] Edit program

2002-01-20 Thread Mehmet Kamil ERISEN
Dear List member, Plesae forgive me for asking and OT question. Can you please recommend an edit program, (Freely downloadable). Thanks, Erisen Mehmet Erisen http://www.erisen.com - Do You Yahoo!? Send FREE video emails in Yahoo! Mail.

Re: [PHP] Passing PHP Variables

2002-01-17 Thread Mehmet Kamil ERISEN
If you are using sessions, use it as a session variable. --- John (News) [EMAIL PROTECTED] wrote: I need to pass a variable e.g. $var1 from one PHP page to another. The only conditions are that the variable cannot be shown in the source code on the end users machine nor can it be passed

Re: [PHP] PHP as a cron job

2002-01-16 Thread Mehmet Kamil ERISEN
Hi, I have to sweat my way through /usr/bin/php if that does not work try /usr/local/bin/php or ask the Unix Sysadmin. one problem I still have to overcome is that everything works,( I mean DB Connection etc.) but I can not use mail() function. Any body have any ideas why I can't use

RE: [PHP] sql question

2002-01-15 Thread Mehmet Kamil ERISEN
Hi do you care about case sensitivity? Nathan Cassano [EMAIL PROTECTED] wrote: select * from tbl_lit where lit_source like 'c%'; Check out http://www.sqlcourse.com/ -Original Message- From: Wolf-Dietrich von Loeffelholz [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 15, 2002

Re: [PHP] Mysql

2002-01-14 Thread Mehmet Kamil ERISEN
Hi, Sorry if I am being a rude, but you need to read the document on how to create a table: www.mysql.com and www.php.net (assuming that you will use php) thx. --- -=LukA=- [EMAIL PROTECTED] wrote: Hello php-general, Hi everybody Please help me. If i want to create a table in some

Re: [PHP] help with include

2002-01-12 Thread Mehmet Kamil ERISEN
I have installed phpBB several times. Your problem should not be the password protected directory. The install.php script tries to wright into the config file. so, you have to chmod your file and give r/w access to everybody. once insallation is completed, then change it the was it was

[PHP] ENUM COL to php

2002-01-11 Thread Mehmet Kamil ERISEN
Hi, If I have en ENUM column in a mysql table, can I leverage this through PHP to restrict user entry with a list? Other option that I have is to create a lookup table, or use an array. = Mehmet Erisen http://www.erisen.com __ Do You Yahoo!?

[PHP] two mysql issues :)

2002-01-11 Thread Mehmet Kamil ERISEN
Hi All, I am in sql mode today. Two issues that bother me: 1- I had a script select user_id, username from users having user_id = max(user_id) my max user_id = 150 or something, but script kept bringing 122 I fixed the issue by using a select max(user_id) and select username from users

[PHP] cron job problem.

2002-01-10 Thread Mehmet Kamil ERISEN
Hello All, I have a php script that i tested first through my browser. If has a simple mail() command. It workd fine and I received the email. not I tried to run it as a cron job by adding #!/usr/local/bin/php -q My webmaster account receives the confirmation that cron job has run, but I do not

Re: SV: [PHP] cron job problem.

2002-01-10 Thread Mehmet Kamil ERISEN
Hi, thanks for the reply. I did setup the crontab already to run every minute. the webmaster account receives the report. Here is the output that I get when I remove the #!/usr/local/bin/php -q /home/webvoire/www/cm/test.php: ?php: No such file or directory /home/webvoire/www/cm/test.php:

Re: AW: AW: [PHP] MORE QUESTION - Editing Database

2002-01-10 Thread Mehmet Kamil ERISEN
hi, download one of the php forum programs and look into their code. www.phpBB.com should be a good reference. --- Dani [EMAIL PROTECTED] wrote: Hi ! How do I allow HTML entries into my database? I tried to insert a pre-formated text into my database. When I pull the data out and put it

[PHP] me and my CRON JOB

2002-01-10 Thread Mehmet Kamil ERISEN
hi, here is the question: I know I need to add a line like: #!/usr/local/bin/php to the begining of my php page followed by ?php my code ? Then set a cron job, so it runs. I have done all that. aslo made the php file executable. The file is executing. First I did not put the line

Re: [PHP] me and my CRON JOB

2002-01-10 Thread Mehmet Kamil ERISEN
= get_user_stat($CONF) ; while (list($key,$value)=each($array)) { echo $key $valueBR; } ? --- Rasmus Lerdorf [EMAIL PROTECTED] wrote: Well, does /usr/local/bin/php exist? On Thu, 10 Jan 2002, Mehmet Kamil ERISEN wrote: hi, here is the question: I know I need to add a line like

Re: [PHP] Delete on exit

2002-01-09 Thread Mehmet Kamil ERISEN
Hi, You can store all shopping cart activites in a cookie until it is written to your database. When they login, call the cookie and insert the cookie SC to the database --- Ryan Kelley [EMAIL PROTECTED] wrote: I am writing an online store and have setup sessions to run when a user

Re: [PHP] need help looping through each record with a query - stumped

2002-01-09 Thread Mehmet Kamil ERISEN
Hi, If I am not missing anything, you are not sorting SELECT Month, Score FROM scores WHERE Username = '$Username' Also, the requirement is not three consecutive test in a month, so I would not break the loop into months. once you have it ordered it by the date : while (list($Month,

RE: [PHP] need help looping through each record with a query - st umped

2002-01-09 Thread Mehmet Kamil ERISEN
If you are querying the Score = 75 how are you ging to take the Consecutive requirement into the account. --- Martin Towell [EMAIL PROTECTED] wrote: could you change this $query2 = (SELECT Month, Score FROM scores WHERE Username = '$Username'); to $query2 = (SELECT count(*)

Re: [PHP] How MySQL Query and Fetch work?

2002-01-08 Thread Mehmet Kamil ERISEN
Hi, Suppose you have a table students: student_id / student_name / GPA here is the code: $sql = select * from students; $result = mysql_query($sql); while(list($student_id, $student_name,$gpa)=mysql_fetch_array($result) { echo $student_name. has a GPA of.$gpa.BR; } btw, this

[PHP] Arrays

2002-01-07 Thread Mehmet Kamil ERISEN
Hi, Can anybody suggest a good reading on how to work with arrays with multiple keys? thanks. = Mehmet Erisen http://www.erisen.com __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- PHP General

Re: [PHP] bcc

2002-01-06 Thread Mehmet Kamil ERISEN
Dear List, I is always a good idea to check out the manual before asking questions. The answer to Leon's question about files is in the manual as well as the answer to this questions. I hope the following links help. File Operations: http://www.php.net/manual/en/ref.filesystem.php Bcc can be

Re: [PHP] IF in mysql query results problem

2002-01-06 Thread Mehmet Kamil ERISEN
Hi Jason, I am not too familiar with IF statements in SQL, but one thing may be the reason you see the incorrect results: You have three tables, player, coach and co_bookmarks, but you only join player and coach. Shouldn't you join coach with co_bookmarks. I hope this helps. erisen

Re: [PHP] MySQL error... but it works!!??

2002-01-05 Thread Mehmet Kamil ERISEN
Hi, So far the best way to troubleshoot mysql+php for me has been to add an or die after the sql exec. $crdate = date(Y-m-d); $result = mysql_query(SELECT * FROM sites WHERE creation_date = '$crdate' AND status = 'T') or die ('CAN NOT EXEC SQL'); Or you can do $sql = SELECT * FROM sites

[PHP] sorting and limitin sql in php pages??????

2002-01-05 Thread Mehmet Kamil ERISEN
Hi, As the data grows I like to add the functionality that people see 30 lines of the result on one page. Also I like to give users the ability to sort per columns... I know this is done pretty much everwhere. What's the best or easiest way of doing it? Mehmet Erisen

Re: [PHP] Re: php-general Digest 3 Jan 2002 12:22:53 -0000 Issue 1089

2002-01-04 Thread Mehmet Kamil ERISEN
you can aslo go to www.php.net and read the emails from your browser. --- Garth Dahlstrom [EMAIL PROTECTED] wrote: If you don't like getting 50 messages a day, I suggest using this list's digest mode, then you get 1 big message with your daily dose of 50 messages tucked away neatly inside.

Re: [PHP] php+mysql simple query help me pls! ty.

2002-01-03 Thread Mehmet Kamil ERISEN
I hope I am not wrong, but the problem is with the mysql_result() functions. Instead, I would use: whilie ($myrow=mysql_fetch_array($result)) { //put whatever you like here. } and instead of mysql_result($result,0,asl) $myrow[asl] I hope this helps. from the manual

Re: [PHP] printing php variable into html print $result; ?

2002-01-03 Thread Mehmet Kamil ERISEN
use $sql = select .. ; $result = mysql_query($sql); echo $sql; --- louie miranda [EMAIL PROTECTED] wrote: Hi, is it possible to print the sql query? i mean i want to print the output of the command SELECT * FROM members; and output it into html, i tried print $result; -- it gives me

Re: [PHP] mysql_fetch_array

2001-12-30 Thread Mehmet Kamil ERISEN
Hi, In your SQL, you can say select t1.col colt1, t2.col colt2 from table1 t1, table2 t2 where t1.something = t2.samething In other words, you can name your columns differently in your select clause. I Bogdan Stancescu [EMAIL PROTECTED] wrote: If everything else fails, you should consider

[PHP] Time function question/

2001-12-27 Thread Mehmet Kamil ERISEN
Hi, Can anybody suggest a function that will generate a random date between 01-Jan-1967 31-Dec-1985 thanks. = Mehmet Erisen http://www.erisen.com __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- PHP

Re: [PHP] Passing Logined in Name form One Form to other Page

2001-12-20 Thread Mehmet Kamil ERISEN
Hi, May I suggest that you take a look at the code library at zend.com, and devshed.com . I remember seeing a login application using the SESSIONS. Alternatively, you can use cookies to let your browser know who is browsing. Jack [EMAIL PROTECTED] wrote: Dear all I had create the Login

Re: [PHP] How to backup records in mySQL DB?

2001-12-20 Thread Mehmet Kamil ERISEN
Dear Friend, If I were you, I would take my biz elsewhere. BTW, which company is that? Anyway, I will recommend you to use the phpMyAdmin. It's a mysql database management tool written in PHP, free of charge of course, that lets you manage your database. One of the cool things it that it

[PHP] Translate question

2001-12-20 Thread Mehmet Kamil ERISEN
Hello, I am trying to transalte entry in Turkish Characters to English Characters. I wrote the following code. function translate_turkish($string) { $estring = strtr($string, ç, c); $estring = strtr($string, ç, c); $estring = strtr($estring, ð, g); $estring = strtr($estring, G, G);

[PHP] Book.

2001-12-19 Thread Mehmet Kamil ERISEN
Hi All, I have a good understanding of PHP. I like to read more documentation advanced PHP topics and also some more information on how to run PHP from Unix, as a cron job, how can PHP scripts be called from Shell Scripts etc... Any book or doc suggestions. Thanks, erisen. = Mehmet Erisen

Re: [PHP] sessions var

2001-12-19 Thread Mehmet Kamil ERISEN
One problem that I have with sessions it that if your login page is in www.yoursite.com and the you pop a page yoursite.com I think the Session is not recognized. just a hint. --- William Sanchez Sanchez [EMAIL PROTECTED] wrote: I need some help with sessions. I need to pass variables to a

Re: [PHP] Book.

2001-12-19 Thread Mehmet Kamil ERISEN
Hi, I think I'm misunderstood. I do not want to run in cgi mode. Thanks, Mehmet. --- Martín Marqués [EMAIL PROTECTED] wrote: On Mié 19 Dic 2001 19:14, you wrote: Hi All, I have a good understanding of PHP. I like to read more documentation advanced PHP topics and also some more

[PHP] How deep can I go with embedded if s.

2001-12-17 Thread Mehmet Kamil ERISEN
Hello All, Is anybody aware of any limitations of php on embedded if ..else statements? For example: if ($a$b) { if ($c$d) { this(); } else { if ($gg==$dd) { echo 'ladooo'; } else { echo

Re: [PHP] Opening a new window.

2001-12-14 Thread Mehmet Kamil ERISEN
I would use javascript for that. --- Brandon Orther [EMAIL PROTECTED] wrote: Does anyone know how I could have php open a new windows with the url I specify? Thanx, Brandon = Mehmet Erisen http://www.erisen.com __ Do You Yahoo!?

RE: [PHP] Opening a new window.

2001-12-14 Thread Mehmet Kamil ERISEN
tag so it would work just fine _without_ javascript ... Mark C. -Original Message- From: Mehmet Kamil ERISEN [mailto:[EMAIL PROTECTED]] I would use javascript for that. --- Brandon Orther [EMAIL PROTECTED] wrote: Does anyone know how I could have php open a new windows

Re: [PHP] Searching for a new provider

2001-12-12 Thread Mehmet Kamil ERISEN
Hi, I use connecticut-web.com. Pretty good. fast. The most important value is that the customer service is excellent. They provide email and icq service and very prompt in returning requests. --- R'twick Niceorgaw [EMAIL PROTECTED] wrote: take a look at aletia hosting (www.aletiahosting.com).

Re: [PHP] Date

2001-12-12 Thread Mehmet Kamil ERISEN
what's your raw data. I mean, what is the value of $row[mydatafield]; --- Max [EMAIL PROTECTED] wrote: Hi to all, I'm using this to get date from mySQL database: ... $p_datum = $row[mydatefield]; $mydate = getdate($p_datum); $month = $mydate['month']; $mday = $mydate['mday'];

Re: [PHP] session

2001-12-11 Thread Mehmet Kamil ERISEN
Hi, I think you can include pages from other sites, servers. SESSIONS (I think) are server specific, cuz the info is kept on the server. If you tell me what u gonna be doing, I can give you ideas. thx. erisen --- Jordan [EMAIL PROTECTED] wrote: is there anyway to drag session variables to

[PHP] Redirect + SESSION question!!!

2001-12-10 Thread Mehmet Kamil ERISEN
Hello All, I have switched hosting companies. previous server was php4.04pl1 now I am on a server that is php4.06. I have a file (functions.php) that stores all my SESSION and other functions. A Header file, that has the general feel and look of the site. In brief most of my pages have

Re: [PHP] Redirect + SESSION question!!!

2001-12-10 Thread Mehmet Kamil ERISEN
of the index.php page. Woow. I guess the problem was all the sudden the $SESSION[] operations were considered output bu Header(). Gurus, do you think I am filling up my pages with garbage, or what I am saying is making sense? Thanks. Erisen --- Mehmet Kamil ERISEN [EMAIL PROTECTED] wrote: Hello All, I have