[PHP] Fatal error

2004-10-16 Thread Pahlevanzadeh Mohsen
Dear members,I get an error,What does mean my error? : Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/html/votting/vote_implement.php on line 8 = -DIGITAL SIGNATURE--- ///Mohsen Pahlevanzadeh Network administrator programmer

[PHP] Header sending

2004-10-16 Thread Pahlevanzadeh Mohsen
Dear members,I need to post a header without Form tag. Already i have used input tag (hidden type),But i don't kbow to how do it. Please guide me Yours,Mohsen = -DIGITAL SIGNATURE--- ///Mohsen Pahlevanzadeh Network administrator programmer

[PHP] $HTTP_POST_VARS

2004-10-07 Thread Pahlevanzadeh Mohsen
Dears,I need to my program is waitting while $HTTP_POST_VARS change Please guide me.. = -DIGITAL SIGNATURE--- ///Mohsen Pahlevanzadeh Network administrator programmer My home phone is: +98213810146 My email address is

[PHP] validate a tag

2004-10-05 Thread Pahlevanzadeh Mohsen
Dear,I have a input text tag that it named question. Also i have a 2 radio bottum. When i receive their value,I want to test that question tag is empty or not.If empty,I again send to client until client fill out this tag. Can u solve my problem? ?php function display_form() { echo form

[PHP] PEAR Auth

2004-10-05 Thread Pahlevanzadeh Mohsen
I was working with Auth class.That was working good. But i receive following errror: Fatal error: Undefined class name 'db' in /var/www/html/votting/Auth/Container/DB.php on line 130 Please guide me. = -DIGITAL SIGNATURE--- ///Mohsen Pahlevanzadeh

Re: [PHP] list of Months

2004-09-30 Thread Pahlevanzadeh Mohsen
You can do it: ? $month=array(Febrey,.); echo select name=\nameofyourtag\ for ($i=1;$i13;$i++) { echo option value=\$i\$month[$i]; } echo /select --- [EMAIL PROTECTED] wrote: Hi, to create a list of all months in drop-down menu I use this code: ?php $month_names =

[PHP] GLOBAL reserved word

2004-09-26 Thread Pahlevanzadeh Mohsen
Dears,We can introduce a external variable to our function with GLOBAL reserved word.same following : ? $n=3 function nn() { global $n; echo $n; }//end of func ? But i need to introduce a array.Name of my array is month. I typed global $month;.But it didn't work. Please guide me until i

Re: [PHP] Best way to save preferences?

2004-09-26 Thread Pahlevanzadeh Mohsen
You should use XML files,But XML files will be lock when you want to multiuser read it. Also arrays is having overhead for your server.Best way is using databses. Yours,Mohsen. --- Victor SpÄng Arthursson [EMAIL PROTECTED] wrote: Which is the best way to save preferences (for a site) to make

Re: [PHP] Post vars without using html form

2004-09-26 Thread Pahlevanzadeh Mohsen
You must use Socket Programming. PHP have been supported socket programming. You can choose port 80 then use its functions. Yours,Mohsen --- Harry.de [EMAIL PROTECTED] wrote: Does anybody know, how to post vars without using html. I'd like to send data to an external website and receive the

Re: [PHP] Best way to save preferences?

2004-09-26 Thread Pahlevanzadeh Mohsen
Dear,I mean that you can't read XML file in multiuser mode. --- Marek Kilimajer [EMAIL PROTECTED] wrote: Pahlevanzadeh Mohsen wrote: You should use XML files,But XML files will be lock when you want to multiuser read it. It's not necessery to lock files for reading. Also arrays

Re: [PHP] Server's IP Adress

2004-09-25 Thread Pahlevanzadeh Mohsen
You can use getbyhostname() func. --- Kevin Javia [EMAIL PROTECTED] wrote: Greetings, How can I get Server's IP address? I know $_SERVER[SERVER_ADDRSS] but this do not work all the time. Is there any other method? Thanks a ton in advance. Kevin. -- PHP General Mailing List

Re: [PHP] Virtual Host problem

2004-09-23 Thread Pahlevanzadeh Mohsen
please send it to Apache mailling list. --- a.k.a kioto [EMAIL PROTECTED] wrote: Hi all i've try to configure Apache with Virtual Host in the main configuration file of Apache i have modify like this: #NameVirtualHost *:80 NameVirtualHost * # # VirtualHost example: # Almost any Apache

[PHP] Auth class /usr/share/pear

2004-09-16 Thread Pahlevanzadeh Mohsen
Deras,I have deleted /usr/share/pear/* Also i have downloaded PEAR.1.3.5.Then i copy content of PEAR.1.3.5 directory to /usr/share/pear But now i recv following message: Warning: _factory(Auth/DB.php): failed to open stream: No such file or directory in /var/www/html/forum/Auth/Auth.php on line

[PHP] Users of RDBMS

2004-09-08 Thread Pahlevanzadeh Mohsen
Dears, I need to create user for MySQL. Please guide me.. = -DIGITAL SIGNATURE--- ///Mohsen Pahlevanzadeh Network administrator programmer My home phone is: +98213810146 My email address is

[PHP] Auth class----MySQL user

2004-09-07 Thread Pahlevanzadeh Mohsen
Dears,My code is : ? function Login() { echo xxx; echo form method=\post\ action=\.$_SERVER['PHP_SELF']. \\; echo input type=\text\ name=\u\ br /; echo input type=\password\ name=\p\ br /; echo input type=\submit\; echo /form; } $username=$_POST['u']; $password=$_POST['p']; echo

Re: [PHP] mail() function problem

2004-09-01 Thread Pahlevanzadeh Mohsen
Please install a mailserver until your SMTP server will be up. When your SMTP server is down,mail func doesn't work. My suggesstion: Please work under UNIX systems. Yours,Mohsen --- Dre [EMAIL PROTECTED] wrote: Hi I was trying to use the mail() function, but it did not work, maybe because of

Re: [PHP] Re: mail() function problem

2004-09-01 Thread Pahlevanzadeh Mohsen
Please switch to a UNIX box.For example Fedora. Because it has everythings that you need. --- Dre [EMAIL PROTECTED] wrote: I'm using an Apache server .. doesn't it come with a sendmail program ?? I really don't know Jasper Howard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]

[PHP] My problem

2004-09-01 Thread Pahlevanzadeh Mohsen
Dears, My mysqld is up. I inserted mohsen as username, md5 of mohsen as password. I have mem as bank.usernames as my table. i have user pass as my fields. i inserted mohsen as user md5 of it as pass. It are meaning : mohsen : 80393af8b3d99736c8b0d49d9a9da4ffxxx But my code isn't work: ?

Re: [PHP] Re: mail() function problem

2004-09-01 Thread Pahlevanzadeh Mohsen
If you use Windows as your server,You must install M$Exchange server.It is a mailserver under Windows. Of course,If you want to install Linux,I can help u. It has benefit for u. Even i made a group on yahoo phplovers. You can join to my group will get help. It has 56 members. My email address is

Re: [PHP] mail functions help

2004-08-31 Thread Pahlevanzadeh Mohsen
Dear,Please use following command for test of your SMTP server: telnet localhost 25 You must recv following message if your SMTP server is up: Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'. 220 localhost.localdomain ESMTP Sendmail 8.12.10/8.12.10;

[PHP] My code has problem.

2004-08-30 Thread Pahlevanzadeh Mohsen
My code is: ? include_once('./auth/Auth.php'); function x(){echo xxx;} $parameterforauth=array(dsn=, table=usernames, usernamecol=user, passwordcol=pass); $ptr_auth_C=new auth(DB,$parameterforauth,x);

[PHP] Sessions session_start() my problem

2004-08-27 Thread Pahlevanzadeh Mohsen
Dears,I have 3 files. k.php : ? session_start(); $S_userk=$HTTP_POST_VARS['u']; $S_pass=$HTTP_POST_VARS['p']; //echo $S_pass; session_register('S_userk'); session_register('S_passk'); include 'http://1.1.1.1/membership/login.php?g=0'; ? login.php: define(HOST,localhost);

Re: [PHP] Re: Sessions session_start() my problem

2004-08-27 Thread Pahlevanzadeh Mohsen
. -- -- Jasper Howard :: Database Administration Velocity7 1.530.470.9292 http://www.Velocity7.com/ -- Pahlevanzadeh Mohsen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dears,I have 3 files. k.php

Re: [PHP] Dynamic Function with return?

2004-08-27 Thread Pahlevanzadeh Mohsen
1 way is here.You can use object OOP. --- bskolb [EMAIL PROTECTED] wrote: Sample Code: // ?PHP // version 4.3.6 function testFunction($foo) { return $foo==TEST; } function wrapper($foofunc, $foovar) { return eval(return $foofunc($foovar););

[PHP] an error before register a session

2004-08-27 Thread Pahlevanzadeh Mohsen
Dears,When i run rm -rf /tmp/sess_* ,It are meaning that i clean every session. When i want to my program,I receive following warning : Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not

Re: [PHP] Re: Need Help for Session

2004-08-27 Thread Pahlevanzadeh Mohsen
1.You must call session_start before making a HTML for client. 2.Please use if (!session_is_registered('vb1')) session_register('vb1'); --- S. Kang [EMAIL PROTECTED] wrote: Afzal Hussain ) wrote: Sir, I am afzal hussain from bangladesh. Acually i am getting