Re: [PHP] apache 2, mysql 5.0.1.rpm and php 5.0.2 on RH9
hi, i manged to install php but with mysqli support only, i want to configure it mysql and mysqli support. as it turned out the error occured when i tred to install both mysql and mysqli support, for the time i am living with mysqli support only untill i figure out what i wsa doing wrong. i have MySQL-client-5.0.1-0.i386.rpm,MySQL-Max-5.0.1-0.i386.rpm,MySQL-shared-5.0.1- 0.i386.rpm,MySQL-bench-5.0.1-0.i386.rpm,MySQL-devel-5.0.1-0.i386.rpm and MySQL-server-5.0.1-0.i386.rpm installed. waiting for comments on how to install both mysql and mysqli support. Regards, Haseeb - Original Message - From: Greg Donald [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 12:52 AM Subject: Re: [PHP] apache 2, mysql 5.0.1.rpm and php 5.0.2 on RH9 On Mon, 8 Nov 2004 07:19:30 +0500, Haseeb Iqbal [EMAIL PROTECTED] wrote: /usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x9d0): first defined here collect2: ld returned 1 exit status make: *** [libphp5.la] Error 1 Does /usr/lib/mysql/libmysqlclient.a actually exist? After you installed MySQL from rpms, did you run ldconfig? -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] apache 2, mysql 5.0.1.rpm and php 5.0.2 on RH9
using apache 2, mysql 5.0.1 rpm install, php 5.0.2 i want to install php with both mysql and mysqli support. but everytime i get this error. help please. configure command == ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr --with-mysqli=/usr/bin/mysql_config --with-mysql-sock=/var/lib/mysql/mysql.sock --with-zlib --with-zlib-dir --with-bz2 --with-gd --enable-gd --enable-gd-native-ttf --with-jpeg-dir --with-png-dir --with-ttf --with-freetype-dir=/usr/local/freetype2/ --with-iconv=/usr/local/libiconv/ --with-curl=/usr/local/curl/ --enable-track-vars --with-gettext --with-config-file-path=/usr/local/apache2/conf --enable-trans-id --enable-ftp --with-cpdflib=/usr/local --enable-mbstring configure ends ok but when i make i get this. === usr/lib/mysql/libmysqlclient.a(dbug.o)(.data+0xc): multiple definition of `_db_on_' /usr/lib/mysql/libmysqlclient.a(dbug.o)(.data+0xc): first defined here /usr/lib/mysql/libmysqlclient.a(dbug.o)(.data+0x10): multiple definition of `_db_pon_' /usr/lib/mysql/libmysqlclient.a(dbug.o)(.data+0x10): first defined here /usr/lib/mysql/libmysqlclient.a(dbug.o)(.data+0x14): multiple definition of `_no_db_' /usr/lib/mysql/libmysqlclient.a(dbug.o)(.data+0x14): first defined here /usr/lib/mysql/libmysqlclient.a(dbug.o)(.text+0x0): In function `_db_push_': : multiple definition of `_db_push_' /usr/lib/mysql/libmysqlclient.a(dbug.o)(.text+0x0): first defined here /usr/lib/mysql/libmysqlclient.a(dbug.o)(.text+0x310): In function `_db_pop_': : multiple definition of `_db_pop_' /usr/lib/mysql/libmysqlclient.a(dbug.o)(.text+0x310): first defined here /usr/lib/mysql/libmysqlclient.a(dbug.o)(.text+0x3f0): In function `_db_enter_': : multiple definition of `_db_enter_' /usr/lib/mysql/libmysqlclient.a(dbug.o)(.text+0x3f0): first defined here /usr/lib/mysql/libmysqlclient.a(dbug.o)(.text+0x530): In function `_db_return_': : multiple definition of `_db_return_' /usr/lib/mysql/libmysqlclient.a(dbug.o)(.text+0x530): first defined here /usr/lib/mysql/libmysqlclient.a(dbug.o)(.text+0x650): In function `_db_pargs_': : multiple definition of `_db_pargs_' /usr/lib/mysql/libmysqlclient.a(dbug.o)(.text+0x650): first defined here /usr/lib/mysql/libmysqlclient.a(dbug.o)(.text+0x670): In function `_db_doprnt_': : multiple definition of `_db_doprnt_' /usr/lib/mysql/libmysqlclient.a(dbug.o)(.text+0x670): first defined here /usr/lib/mysql/libmysqlclient.a(dbug.o)(.text+0xb10): In function `_db_keyword_': : multiple definition of `_db_keyword_' /usr/lib/mysql/libmysqlclient.a(dbug.o)(.text+0xb10): first defined here /usr/lib/mysql/libmysqlclient.a(dbug.o)(.text+0x750): In function `_db_dump_': : multiple definition of `_db_dump_' /usr/lib/mysql/libmysqlclient.a(dbug.o)(.text+0x750): first defined here /usr/lib/mysql/libmysqlclient.a(dbug.o)(.text+0x10c0): In function `_db_setjmp_': : multiple definition of `_db_setjmp_' /usr/lib/mysql/libmysqlclient.a(dbug.o)(.text+0x10c0): first defined here /usr/lib/mysql/libmysqlclient.a(dbug.o)(.text+0x10e0): In function `_db_longjmp_': : multiple definition of `_db_longjmp_' /usr/lib/mysql/libmysqlclient.a(dbug.o)(.text+0x10e0): first defined here /usr/lib/mysql/libmysqlclient.a(dbug.o)(.text+0x1170): In function `_db_lock_file': : multiple definition of `_db_lock_file' /usr/lib/mysql/libmysqlclient.a(dbug.o)(.text+0x1170): first defined here /usr/lib/mysql/libmysqlclient.a(dbug.o)(.text+0x1190): In function `_db_unlock_file': : multiple definition of `_db_unlock_file' /usr/lib/mysql/libmysqlclient.a(dbug.o)(.text+0x1190): first defined here /usr/lib/mysql/libmysqlclient.a(pack.o)(.text+0x0): In function `net_field_length': : multiple definition of `net_field_length' /usr/lib/mysql/libmysqlclient.a(pack.o)(.text+0x0): first defined here /usr/lib/mysql/libmysqlclient.a(pack.o)(.text+0x70): In function `net_field_length_ll': : multiple definition of `net_field_length_ll' /usr/lib/mysql/libmysqlclient.a(pack.o)(.text+0x70): first defined here /usr/lib/mysql/libmysqlclient.a(pack.o)(.text+0xe0): In function `net_store_length': : multiple definition of `net_store_length' /usr/lib/mysql/libmysqlclient.a(pack.o)(.text+0xe0): first defined here /usr/lib/mysql/libmysqlclient.a(client.o)(.data+0x0): multiple definition of `mysql_port' /usr/lib/mysql/libmysqlclient.a(client.o)(.data+0x0): first defined here /usr/lib/mysql/libmysqlclient.a(client.o)(.data+0x4): multiple definition of `mysql_unix_port' /usr/lib/mysql/libmysqlclient.a(client.o)(.data+0x4): first defined here /usr/lib/mysql/libmysqlclient.a(client.o)(.data+0x8): multiple definition of `unknown_sqlstate' /usr/lib/mysql/libmysqlclient.a(client.o)(.data+0x8): first defined here /usr/lib/mysql/libmysqlclient.a(client.o)(.data+0xc): multiple definition of `not_error_sqlstate' /usr/lib/mysql/libmysqlclient.a(client.o)(.data+0xc): first defined here
[PHP] IMAP connect problem
hi all, when i try to connect to imap server i get this and the script aborts. what should i do to fix. Certificate failure for localhost: self signed certificate: /C=US/ST=NY/L=New York/O=Courier Mail Server/OU=Automatically-generated IMAP SSL key/CN=localhost/[EMAIL PROTECTED] consider myself a newbie in the world of linux. Haseeb
Re: [PHP] Fatal error help
the class you are defining is already or the file in which you have defined the class in somehow included twice.. consider using require_once for you class include file. HTH, Haseeb - Original Message - From: robi [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 19, 2004 1:15 PM Subject: [PHP] Fatal error help hello I am programing a simple chat and I am using my own classes and I get this error I have no idea what it is. pls help. Fatal error: Cannot redeclare class ch in /var/www/html/class/common.php on line 3 troby -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] IMAP connect problem
i am using standard port 143. - Original Message - From: raditha dissanayake [EMAIL PROTECTED] To: Haseeb Iqbal [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, May 19, 2004 9:10 PM Subject: Re: [PHP] IMAP connect problem Hi, Haseeb Iqbal wrote: hi all, when i try to connect to imap server i get this and the script aborts. what should i do to fix. Certificate failure for localhost: self signed certificate: /C=US/ST=NY/L=New York/O=Courier Mail Server/OU=Automatically-generated IMAP SSL key/CN=localhost/[EMAIL PROTECTED] Guess you might want to start by reading up on IMAP ;-) Looks to me like you are connecting using IMAPS (IMAP + TLS) instead of IMAP, it would also appear that the certificate you are using has expired. Try using plain old IMAP (on port 143). If you still have trouble please first try to login using mozilla to confirm that the server is indeed accepting connections. Alternatively you can try to connect using good old telnet and try to execute imap commands. Hope this helps. consider myself a newbie in the world of linux. There are IMAP servers for the M$ system as well :-) Haseeb -- Raditha Dissanayake. - http://www.raditha.com/megaupload/upload.php Sneak past the PHP file upload limits. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] gd for windows not working
try restarting apache.i am not an expert but it might do the trick. Haseeb - Original Message - From: Firman Wandayandi [EMAIL PROTECTED] To: Joe Patiani [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, March 10, 2004 10:26 AM Subject: Re: [PHP] gd for windows not working Hi Joe! PHP will always runaway, doesn't matter with php.ini. There are some location where php.ini located, as following: 1. SystemRoot e.g C:\Windows (on WinXP, Win9x), C:\WinNT (on WinNT4, Win2000) 2. ServerRoot e.g C:\Apache\conf I think the problem is your configuration directive, please make sure all of them are correct. Regards, Firman - Original Message - From: Joe Patiani [EMAIL PROTECTED] To: Jason Sheets [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, March 11, 2004 2:02 AM Subject: RE: [PHP] gd for windows not working I`ve tried to make my php configuration become error. But my phpinfo() always came right. I don`t know idea, how php read the php.ini. I`ve renamed all php.ini into another name. Which php.ini read by phpinfo(). I think something wrong has happen. And gd ini my phpinfo() doesn`t show up. I think the configuration in the php.ini and the phpinfo() doesn`t match. What error actually is ?. How can I fix it? -- joe patiani Geophysic and Meteorology Department Institut Teknologi Bandung Labtex XI Jl. Ganesha 10 Bandung 40132 Indonesia -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Mysql Insert/Update Problem
here is what i am trying to achieve,i have 2 servers. Win2k and linux. mysql is running on my linux server.now i have quite a lot of that i need to update on linux server from win2k machine. here is what i am trying to do.i have a PHP CLI script that will open a dbx file extract records from the dbf file one by one check is the record is already on the linux server (mysql database). if the record is already on the linux server then it will update the mysql database on the linux server. but if the record is not in the mysq database running on linux then it will insert the record. the script is running on win2k server. there are 6 dbf file that i need to extract. comcat.dbf contains 581 records comgrp.dbf contains 79 records comsub.dbf contains 1896 records manuf.dbf contains 793 records prodaux.dbf conatins 17+ records products.dbf conatins 17+ records the script it taking to much time while inserting. it almost 24 hours now and still it isnt finished.what can i do to update the db faster. thanx for any help in advance Haseeb Iqbal.
Re: [PHP] Mysql Insert/Update Problem
i have index the db properly. what next?? Haseeb - Original Message - From: Rolf Brusletto [EMAIL PROTECTED] To: Haseeb Iqbal [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, January 08, 2004 4:04 AM Subject: Re: [PHP] Mysql Insert/Update Problem Haseeb - I would look at the indexes that it requires for the select statments, if the db isn't indexed properly, it could be just filesorting on each select(when you query to see if the record is in the database on the mysql server). You can find out by putting explain in front of your select query and running it at command line, or whatever you use as a mysql database front end.. This tutorial shows how to use it a little more in depth : http://www.phpexamples.net/tutorial-2-1.html Hope it helps, Rolf Brusletto www.phpexamples.net www.emailfeeds.com Haseeb Iqbal wrote: here is what i am trying to achieve,i have 2 servers. Win2k and linux. mysql is running on my linux server.now i have quite a lot of that i need to update on linux server from win2k machine. here is what i am trying to do.i have a PHP CLI script that will open a dbx file extract records from the dbf file one by one check is the record is already on the linux server (mysql database). if the record is already on the linux server then it will update the mysql database on the linux server. but if the record is not in the mysq database running on linux then it will insert the record. the script is running on win2k server. there are 6 dbf file that i need to extract. comcat.dbf contains 581 records comgrp.dbf contains 79 records comsub.dbf contains 1896 records manuf.dbf contains 793 records prodaux.dbf conatins 17+ records products.dbf conatins 17+ records the script it taking to much time while inserting. it almost 24 hours now and still it isnt finished.what can i do to update the db faster. thanx for any help in advance Haseeb Iqbal. -- Rolf Brusletto rolf[at]emailfeeds[dot]com http://www.emailfeeds.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Script timeout Problem
i tried this but to noavail. anyother sugestion really this problem is really annoying me now Haseeb - Original Message - From: Marek Kilimajer [EMAIL PROTECTED] To: Haseeb Iqbal [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, December 19, 2003 10:23 PM Subject: Re: [PHP] Re: Script timeout Problem Haseeb Iqbal wrote: how can i do that? btw the script runs on a local machine but updates the records on a webserver i mean live server. this is also a factor for the timeout. the script was running smoothly for 24000 recods before but now it suddenly timeout after 800records. i dont know what is heppening Try placing mysql_ping function just before $nConn-doQuery($strQuery); It will check the connection and reconect if it is lost. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Script timeout Problem
hi, i need to update a mysql table with a dbf file, the dbf file contains more then 16 records. i knew that the script will not be able to update 16 records in 1 go so i am refreshing the page after speacific no of records. but still the same problem. the script timeout.i tried changing the timeout limit to 300 secs but to noavail. i am pasting the code here.plz take a look may by you can tell me what i am doing wrong ? define(strPath,./); define(_MySqlEnable,TRUE); set_time_limit(0); require_once(strPath.paths.php); $strDBName=strPath.uploads/.Date(d-m-Y).-products.dbf; $DBPointer=dbase_open($strDBName,0) or die(Cannot open file for reading); $nNoOfRecs=dbase_numrecords($DBPointer); $nLoopBreak=1500; $nConn=GetCon(); if (empty($nLoopStart)) { $nLoopStart=1; } if ($nNoOfRecs $nLoopBreak) { $nLoopTill=$nLoopStart + $nLoopBreak; $nFinal=FALSE; } else { $nLoopTill=$nLoopBreak; $nFinal=TRUE; } for ($nCount=$nLoopStart;$nCount=$nLoopTill;$nCount++) { $arrData=dbase_get_record($DBPointer,$nCount); $GRP=CheckString($arrData[0]); $CAT=CheckString($arrData[1]); $SUB=CheckString($arrData[2]); $VEND_CODE=CheckString($arrData[3]); $MANU_PART=CheckString($arrData[4]); $PART_NUM=CheckString($arrData[5]); $DESCR=CheckString($arrData[6]); $COST=CheckString($arrData[7]); $RETAIL=CheckString($arrData[8]); $QTY=CheckString($arrData[9]); $LIST_PRICE=CheckString($arrData[10]); $EFF_DATE=CheckString($arrData[11]); $TECH_FAX=CheckString($arrData[12]); $STATUS=CheckString($arrData[13]); $UPC=CheckString($arrData[14]); $strQuery=SELECT * FROM products WHERE grp='.$GRP.' AND cat='.$CAT.' AND sub='.$SUB.' AND vend_code='.$VEND_CODE.' AND manu_part='.$MANU_PART.' AND part_num='.$PART_NUM.'; $nConn-doQuery($strQuery); if ($nConn-cntResult()==0) $strQuery=INSERT INTO products(products.grp,products.cat,products.sub,products.vend_code,products.manu_part,products.part_num,products.desc,products.cost,products.retail,products.qty,products.list_price,products.eff_date,products.tech_fax,products.status,products.upc) VALUES('.$GRP.','.$CAT.','.$SUB.','.$VEND_CODE.','.$MANU_PART.','.$PART_NUM.','.$DESCR.','.$COST.','.$RETAIL.','.$QTY.','.$LIST_PRICE.','.$EFF_DATE.','.$TECH_FAX.','.$STATUS.','.$UPC.'); else $strQuery=UPDATE products SET products.part_num='$PART_NUM',products.desc='$DESCR',COST='$COST',retail='$RETAIL',qty='$QTY',list_price='$LIST_PRICE',eff_date='$EFF_DATE',tech_fax='$TECH_FAX',status='$STATUS',upc='$UPC' WHERE grp='.$GRP.' AND cat='.$CAT.' AND sub='.$SUB.' AND vend_code='.$VEND_CODE.' AND manu_part='.$MANU_PART.' AND part_num='.$PART_NUM.'; //echo brnCOunt - $nCount -.$strQuery; $nConn-doQuery($strQuery); } $nCount++; $nLoopStart=$nCount; if ($nFinal==FALSE) { //1500 records updated so refresh the page ? meta http-equiv=Refresh content=2; URL=mypage.php?nLoopStart=?=$nLoopStart;? ? } else { // all records updated so redirst to calling page. ? meta http-equiv=Refresh content=2; URL=main.php?nStatus=1 ? } ? Haseeb
Re: [PHP] Re: Script timeout Problem
how can i do that? btw the script runs on a local machine but updates the records on a webserver i mean live server. this is also a factor for the timeout. the script was running smoothly for 24000 recods before but now it suddenly timeout after 800records. i dont know what is heppening Haseeb - Original Message - From: Jas [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, December 19, 2003 3:16 AM Subject: [PHP] Re: Script timeout Problem Have you tried setting a limit on your MySQL insert and update statements to limit the amount trying to be processed? Haseeb Iqbal wrote: hi, i need to update a mysql table with a dbf file, the dbf file contains more then 16 records. i knew that the script will not be able to update 16 records in 1 go so i am refreshing the page after speacific no of records. but still the same problem. the script timeout.i tried changing the timeout limit to 300 secs but to noavail. i am pasting the code here.plz take a look may by you can tell me what i am doing wrong ? define(strPath,./); define(_MySqlEnable,TRUE); set_time_limit(0); require_once(strPath.paths.php); $strDBName=strPath.uploads/.Date(d-m-Y).-products.dbf; $DBPointer=dbase_open($strDBName,0) or die(Cannot open file for reading); $nNoOfRecs=dbase_numrecords($DBPointer); $nLoopBreak=1500; $nConn=GetCon(); if (empty($nLoopStart)) { $nLoopStart=1; } if ($nNoOfRecs $nLoopBreak) { $nLoopTill=$nLoopStart + $nLoopBreak; $nFinal=FALSE; } else { $nLoopTill=$nLoopBreak; $nFinal=TRUE; } for ($nCount=$nLoopStart;$nCount=$nLoopTill;$nCount++) { $arrData=dbase_get_record($DBPointer,$nCount); $GRP=CheckString($arrData[0]); $CAT=CheckString($arrData[1]); $SUB=CheckString($arrData[2]); $VEND_CODE=CheckString($arrData[3]); $MANU_PART=CheckString($arrData[4]); $PART_NUM=CheckString($arrData[5]); $DESCR=CheckString($arrData[6]); $COST=CheckString($arrData[7]); $RETAIL=CheckString($arrData[8]); $QTY=CheckString($arrData[9]); $LIST_PRICE=CheckString($arrData[10]); $EFF_DATE=CheckString($arrData[11]); $TECH_FAX=CheckString($arrData[12]); $STATUS=CheckString($arrData[13]); $UPC=CheckString($arrData[14]); $strQuery=SELECT * FROM products WHERE grp='.$GRP.' AND cat='.$CAT.' AND sub='.$SUB.' AND vend_code='.$VEND_CODE.' AND manu_part='.$MANU_PART.' AND part_num='.$PART_NUM.'; $nConn-doQuery($strQuery); if ($nConn-cntResult()==0) $strQuery=INSERT INTO products(products.grp,products.cat,products.sub,products.vend_code,products. manu_part,products.part_num,products.desc,products.cost,products.retail,prod ucts.qty,products.list_price,products.eff_date,products.tech_fax,products.st atus,products.upc) VALUES('.$GRP.','.$CAT.','.$SUB.','.$VEND_CODE.','.$MANU_PART.',' $PART_NUM.','.$DESCR.','.$COST.','.$RETAIL.','.$QTY.','.$LIST_PRI CE.','.$EFF_DATE.','.$TECH_FAX.','.$STATUS.','.$UPC.'); $strQuery=INSERT INTO products(products.grp,products.cat,products.sub,products.vend_code,products. manu_part,products.part_num,products.desc,products.cost,products.retail,prod ucts.qty,products.list_price,products.eff_date,products.tech_fax,products.st atus,products.upc) VALUES('.$GRP.','.$CAT.','.$SUB.','.$VEND_CODE.','.$MANU_PART.',' $PART_NUM.','.$DESCR.','.$COST.','.$RETAIL.','.$QTY.','.$LIST_PRI CE.','.$EFF_DATE.','.$TECH_FAX.','.$STATUS.','.$UPC.' LIMIT 200); else $strQuery=UPDATE products SET products.part_num='$PART_NUM',products.desc='$DESCR',COST='$COST',retail='$R ETAIL',qty='$QTY',list_price='$LIST_PRICE',eff_date='$EFF_DATE',tech_fax='$T ECH_FAX',status='$STATUS',upc='$UPC' WHERE grp='.$GRP.' AND cat='.$CAT.' AND sub='.$SUB.' AND vend_code='.$VEND_CODE.' AND manu_part='.$MANU_PART.' AND part_num='.$PART_NUM.'; $strQuery=UPDATE products SET products.part_num='$PART_NUM',products.desc='$DESCR',COST='$COST',retail='$R ETAIL',qty='$QTY',list_price='$LIST_PRICE',eff_date='$EFF_DATE',tech_fax='$T ECH_FAX',status='$STATUS',upc='$UPC' WHERE grp='.$GRP.' AND cat='.$CAT.' AND sub='.$SUB.' AND vend_code='.$VEND_CODE.' AND manu_part='.$MANU_PART.' AND part_num='.$PART_NUM.'LIMIT 200; //echo brnCOunt - $nCount -.$strQuery; $nConn-doQuery($strQuery); } $nCount++; $nLoopStart=$nCount; if ($nFinal==FALSE) { //1500 records updated so refresh the page ? meta http-equiv=Refresh content=2; URL=mypage.php?nLoopStart=?=$nLoopStart;? ? } else { // all records updated so redirst to calling page. ? meta http-equiv=Refresh content=2; URL=main.php?nStatus=1 ? } ? Haseeb That might help out with the timeouts too. Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] help!
in php.ini (that will be in wondows folder or in wondows/systems folder) search for cgi.force_redirect and the set it to 0 HTH Haseeb - Original Message - From: Mårten Palm [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, November 01, 2003 12:11 AM Subject: [PHP] help! I have installed PHP 4.3.3 with the installer. i am runnig a PWS server on my Windows Me. I have turned the cgi.force-redirect to 0. When ii try to install acces a certain php script (the install script for PHPBB2 forum) i get an error which says: Security Alert! The PHP CGI cannot be accessed directly. This PHP CGI binary was compiled with force-cgi-redirect enabled. This means that a page will only be served up if the REDIRECT_STATUS CGI variable is set, e.g. via an Apache Action directive. what is the problem??? _ Lättare att hitta drömresan med MSN Resor http://www.msn.se/resor/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] OOT Payflow Urgent
hi all, i am using curl to post data to the payflow link server. now here are the questions that i want to ask. here is the server stats Linux+ php + mysql + curl + ssl 1) now i want to know if curl is safe to use? i know about the payflow sdk but i also know that i can execute the sdk by exec call and if anyone is loged on the computer at the time of the transection he/she can view all the data passed to the sdk by simply one command.(i.e. ps.). as also don't want to show the user any page from verisign. but when i send the data i get back html output. i want some kind of error codes.how can i achieve this. know there must some way around this problem. i want to collect all the information on my page send the data to the payflow link without leaving my site the get back the result from the transection and show the result to the user. thanx in advance Haseeb
Re: [PHP] securing a graphic
yeah there is a way you have to use some third party tools for that. http://www.antssoft.com/htmlprotector/index.htm .php can't do this AFAIK - Original Message - From: Ryan Holowaychuk [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Sent: Friday, June 20, 2003 2:26 AM Subject: [PHP] securing a graphic Is there a way in PHP that I can secure a graphic, so that when the page is loaded it will show the graphic, but is not able to be right clicked on or downloaded to there desktop. Thanks Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] pagenting logic to cut short
hi, i made this script i think this will help all others as well i am not very good at PHP soo if you find anything that you things you can make better then plz do so and give me a copy as well so that i can also benefit. one problem this function was made for MSSQL will need some changes and will work for mysql as well. if you change can make this script work for mysql email me the script so that i can use this here is the code //== /* nTNOP :total no of pages, strUrl :url of the page where the links should point, nCP :current page that is showing nSNP :Show Next Previous nSPL :Show Pages As Links nNOPTS :no of pages to show only applicable if nSPL is TRUE nNPT : next previous type : 1 for text ( ) ( ) : 2 for image strNCOI : Next Character Or Image (Character if nNPT==1 And Image If nNPT==2) strPCOI : Previous Character Or Image (Character if nNPT==1 And Image If nNPT==2) strQSTR : Query string that we want to move along the links without sign script will add this */ function ShowNavLink($nTNOP,$strUrl='',$nCP,$nSNP=TRUE,$nSPL=TRUE,$nNOPTS=15,$nNPT=1, $strNCOI='',$strPCOI='',$strQSTR='') { if ($nTNOP 1) { return FALSE; } if (empty($strQSTR)) { $strQSTR=''; } else $strQSTR=.$strQSTR; if (empty($strUrl)) { $strUrl=GetPageName(); } if (empty($nSNP)) { $nSNP=TRUE; } if (empty($nSPL)){ $nSPL=TRUE; } if (empty($nNOPTS)) { $nNOPTS=15; } if (empty($nNPT)){ $nNPT=1; } if (empty($strNCOI)) { $strNCOI=''; } if (empty($strPCOI)) { $strPCOI=''; } if ($nTNOP==1) // if there is only one page so no next previous link { $SN=FALSE; $SP=FALSE; } elseif ($nTNOP == $nCP) // if we are on the last page { $SN=FALSE; $SP=TRUE; } elseif ($nCP == 1) // if current page is the first page { $SN=TRUE; $SP=FALSE; } elseif ($nCP 1 || $nCP $nTNOP) // if we are in between the first page and the last page { $SN=TRUE; $SP=TRUE; } if ($nNPT==2) { $strNCOI=img src=\$strNCOI\ border=\0\ hspace=\5\; $strPCOI=img src=\$strPCOI\ border=\0\ hspace=\5\; } if ($nTNOP $nNOPTS) // this means that we have a larger result { if ($nCP =1 $nCP = CEIL($nNOPTS/2)) { $nStart=1; $nEnd=$nNOPTS; } elseif (($nCP =($nTNOP-CEIL($nNOPTS/2))) $nCP = $nTNOP) { $nStart=$nTNOP-$nNOPTS; $nEnd=$nTNOP; } else { $nStart=$nCP - (CEIL($nNOPTS/2)) + 1; $nEnd=$nCP + (CEIL($nNOPTS/2)) - 1; } } else { $nStart=1; $nEnd=$nTNOP; } echo table cellspacing=\0\ cellpadding=\0\ width=\100%\\n; echo tr\n; echo td\n; echo table cellspacing=\0\ cellpadding=\0\ width=\100%\\n; echo tr\n; echo td\n; echo Showing Page .$nCP. Of Total .$nTNOP; echo \n/td\n; echo /tr\n; echo /table\n; echo /td\n; echo /tr\n; echo tr\n; echo td align=\center\\n; echo table\n; echo tr\n; if ($SP) { echo td\n; echo a href=\.$strUrl.?nCP=.($nCP-1).$strQSTR.\$strPCOI/a\n; echo /td\n; } for ($i=$nStart;$i=$nEnd;$i++) { echo td\n; if ($i==$nCP) echo a href=\.$strUrl.?nCP=$i.$strQSTR.\font color=\red\.$i./font/a\n; else echo a href=\.$strUrl.?nCP=$i.$strQSTR.\.$i./a\n; echo /td\n; } if ($SN) { echo td\n; echo a href=\.$strUrl.?nCP=.($nCP+1).$strQSTR.\$strNCOI/a\n; echo /td\n; } echo /tr\n; echo /table\n; echo /td; echo /tr\n; echo /table\n; } function NavPageCount($nRPP=20,$strTableName,$strFieldSet='*',$strWhere='') { $strQuery=SELECT COUNT(.$strFieldSet.) AS nCount FROM .$strTableName. WHERE .$strWhere; $nResult=DoQuery($strQuery); $nCount=0 + Get(nCount,$nResult); [EMAIL PROTECTED]($nCount/$nRPP); return $nCount; } function Navigation($nRPP=20,$nCP=1,$strTableName,$strFieldSet='*',$strSortOn='',$str Where='') { if (empty($strWhere)) { $strWhere=''; $strNewWhere=''; } else $strNewWhere= AND .$strWhere; $strQuery=SELECT TOP .$nRPP. .$strFieldSet. FROM .$strTableName. WHERE .$strSortOn. NOT IN (SELECT TOP .($nRPP * ($nCP -1)) . .$strSortOn. FROM .$strTableName. WHERE .$strWhere. ORDER BY .$strSortOn.) .$strNewWhere. ORDER BY .$strSortOn; $nResult=DoQuery($strQuery); return $nResult; } here is an examle of using this if (empty($nRPP)) { $nRPP=10; } if (empty($nCP)) { $nCP=1; } $nResult=Navigation($nRPP,$nCP,tblSMov MS,tblMov MOV,'MOV.*',MOV.mov_name,MOV.mov_id=MS.smv_mov_id,''); echo table width=\100%\ cellspacing=\0\ cellpadding=\0\ border=\0\; while (odbc_fetch_row($nResult)) { GET ALL THE DATA HERE }
Re: [PHP] imap_open()
check if you have complied php with imap support and if you are on windows then check if it is uncommencted in the ini Haseeb - Original Message - From: buttoz [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 02, 2003 1:46 AM Subject: [PHP] imap_open() hi, i have problem with imap_open function, my code is : ?php $inbox = imap_open({pop.012.net.il:110/pop3}INBOX, user, password); $total = imap_num_msg($inbox); print $total; ? when i run i recive : Fatal error: Call to undefined function: imap_open() in c:\inetpub\wwwroot\besthd\mail\myemail.php on line 2 what this mean , please help me. thanks, zuhear -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Strange Behaviour of cookies
Hi all, don't know for sure if this is heppening to me only or there are others who faced the same problem here is whats wrong when ever i set a cookie it didn't get set even i refresh the page (with php header function) but then i echo something on the page and then use HTML meta refresh the cookie becomes availble on the next page. what is it that i am missing here. Haseeb
[PHP] Cookies Probelm,
hi guys i am having this strange problem.i want to store quite a lot of data in cookie as an array but the problem is when ever my arrays size get equal to 4 it starts over. what could be the problem? here is the array that i get Array ( [Cart] = Array ( [14] = Array ( [nItmId] = Array ( [1] = 5 [4] = 0 ) ) [15] = Array ( [nQuan] = 1 [nSerId] = 1 [nItmId] = Array ( [3] = 86 [34] = 1 [1] = 5 [4] = 0 ) ) [16] = Array ( [nQuan] = 1 [nSerId] = 1 [nItmId] = Array ( [3] = 86 [34] = 1 [1] = 5 [4] = 0 ) ) [17] = Array ( [nQuan] = 1 [nSerId] = 1 [nItmId] = Array ( [3] = 86 [34] = 1 [1] = 5 [4] = 0 ) ) ) ) thanx in advance Haseeb _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Cookies Probelm,
thanx for the information. how can i overcome this ? any idea? Haseeb - Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: Haseeb Iqbal [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, May 30, 2003 11:01 PM Subject: RE: [PHP] Cookies Probelm, [snip] hi guys i am having this strange problem.i want to store quite a lot of data in cookie as an array but the problem is when ever my arrays size get equal to 4 it starts over. what could be the problem? [/snip] There are size limits for cookies dependent upon the browser. I am going to guess that you are testing with Netscape or Mozilla where the limit is 4kb. HTH! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] vpopmail what is it???
hi, can anyone direct me.i want information about vpopmail and what is does . a tutorial or something will work thanx in advance. i searched google but got only manual pages of php. but there isn't any info there. Creativity is inventing, experimenting, growing, taking risks, breaking rules, making mistakes, and having fun. Haseeb Iqbal
Re: [PHP] vpopmail what is it???
Actually i know what vpopmail is but to be abs clear i want to read more. i have a few questions in my mind. that i want to be clear about.i want to make a script that would create new users on a qmail server.i want to be sure this is what i want. now any suggestions welcome Creativity is inventing, experimenting, growing, taking risks, breaking rules, making mistakes, and having fun. Haseeb Iqbal - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 29, 2003 02:43 PM Subject: Re: [PHP] vpopmail what is it??? On Friday 30 May 2003 04:16, Haseeb Iqbal wrote: can anyone direct me.i want information about vpopmail and what is does . a tutorial or something will work thanx in advance. i searched google but got only manual pages of php. but there isn't any info there. If you don't already know what vpopmail is then I doubt whether you need to know. But if you do want to know then search google. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] alignment
this is off topic but anyway try this table border=1 width=100% height=430 tr td width=100% colspan=2 height=61 nowrapimg src=C:\DocumentsandSettings\mangesh\My Documents\My pictures\crows_eating_md_wht.gif align=ansMiddle div align=centerh1u'; $string.=$wname; $string.='/u/h1/div/td /tr don't use div as it gives line break automaticly Friendship is always a sweet responsibility, never an opportunity. HaSeEb IqBaL. 0300-4258030 - Original Message - From: Diksha Neel [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, April 06, 2003 4:08 PM Subject: [PHP] alignment dear all, hi! an html file is being created by my php script. i have used tables for the alignment of html file's text and images. i have an image and the value of variable $cname to be displayed in a cell. i want both of these items to appear on the same line. but what happens is the $cname value appears under the image in the center of the page. my question is is there any way without nesting tables to ensure that my text will appear in the horizontal line same as that of the image? the code is as under. thanks, diksha. table border=1 width=100% height=430 tr td width=100% colspan=2 height=61img src=C:\DocumentsandSettings\mangesh\My Documents\My pictures\crows_eating_md_wht.gif div align=centerh1u'; $string.=$wname; $string.='/u/h1/div/td /tr ___ Odomos - the only mosquito protection outside 4 walls - Click here to know more! http://r.rediff.com/r?http://clients.rediff.com/odomos/Odomos.htmodomosw n -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] chill out
hi all, just like to add something here, (which i recmended before) there should be a automated way to email all the new users about what php is, that explain them that php is server side and it can't do client side, just a plain email will do this will certinaly minimize the no of off topic posts,what you people think? i think it will help Friendship is always a sweet responsibility, never an opportunity. HaSeEb IqBaL. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Help in sorting
hi, i want to sort messages in a sequence the sequence is 23,12,25 (these are message nos) now when i call like this $nMsgSeq=23,12,25; imap_fetch_overview($pIMAP,$nMsgSeq,0); i get an array sorted like Array ( [0] = stdClass Object ( [uid] = 21 [msgno] = 12 [recent] = 0 [flagged] = 0 [answered] = 0 [deleted] = 0 [seen] = 1 [draft] = 0 ) [1] = stdClass Object ( [uid] = 34 [msgno] = 23 [recent] = 0 [flagged] = 0 [answered] = 0 [deleted] = 1 [seen] = 1 [draft] = 0 ) [2] = stdClass Object ( [uid] = 36 [msgno] = 25 [recent] = 0 [flagged] = 0 [answered] = 0 [deleted] = 1 [seen] = 1 [draft] = 0 ) ) i want the array just like the sequence what should i do? Friendship is always a sweet responsibility, never an opportunity. HaSeEb IqBaL. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Problem with mail
hi all while sending mail from php i keep getting this Server Error on line 2 and this is on line 2 mail([EMAIL PROTECTED], the subject, hi,From: [EMAIL PROTECTED].Reply-To: [EMAIL PROTECTED].X-Mailer: PHP/ . phpversion()); what is wrong with this what i am going wrong ?? regards Haseeb
Re: [PHP] Problems with post data
hi, i have seen some script using a unique method.they grab all the global variables in a array and then unset the global variables.ofcourse they are not handling file uploads.i think its a good idea if you are not uploading files. any suggestions are welcome Haseeb I'v noticed that when the directive register_globals is set to off as it is recommended in the php.ini file no variables are passed on to other pages. Switching it to on would be the simplest solution, but scripts like phpMyAdmin do not seem to have these problems. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Test tables existance
use mysql_query(show tables); get them in array and then scan the array thats what i would do if there isn;t any function Friendship is always a sweet responsibility, never an opportunity. HaSeEb IqBaL. 0300-4258030 - Original Message - From: Antti [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 31, 2003 1:34 AM Subject: [PHP] Test tables existance How do I test if a mysql table exists or not? Is there a function for this? I didn't find a good one. -antti -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] what could be wrong
i am doing this $arr=imap_sort($pIMAP,1,1); and getting this error Notice: (null)(): Error in IMAP command received by server. (errflg=2) in Unknown on line 0 what could be wrong here regards Friendship is always a sweet responsibility, never an opportunity. HaSeEb IqBaL. 0300-4258030 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] what could be wrong
thanx everyone i got it the problem was i was opening connection with OP_HALFOPEN Friendship is always a sweet responsibility, never an opportunity. HaSeEb IqBaL. 0300-4258030 - Original Message - From: Haseeb Iqbal [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 12:09 AM Subject: [PHP] what could be wrong i am doing this $arr=imap_sort($pIMAP,1,1); and getting this error Notice: (null)(): Error in IMAP command received by server. (errflg=2) in Unknown on line 0 what could be wrong here regards Friendship is always a sweet responsibility, never an opportunity. HaSeEb IqBaL. 0300-4258030 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Is there a PHP for Dummies?
if you don't find anything from the php manual or from the php lists then you wont find it from any book.so i say you stick to this list and php manual. Haseeb. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Help Cookies
hi how can i set the cookies life to non expireable and what action should i take when the user signs out? Regards. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Image size, (not weight) help
here is something for you from php manual The getimagesize() function will determine the size of any GIF, JPG, PNG, SWF, SWC, PSD, TIFF, BMP or IFF image file and return the dimensions along with the file type and a height/width text string to be used inside a normal HTML IMG tag. Returns an array with 4 elements. Index 0 contains the width of the image in pixels. Index 1 contains the height. Index 2 is a flag indicating the type of the image: 1 = GIF, 2 = JPG, 3 = PNG, 4 = SWF, 5 = PSD, 6 = BMP, 7 = TIFF(intel byte order), 8 = TIFF(motorola byte order), 9 = JPC, 10 = JP2, 11 = JPX, 12 = JB2, 13 = SWC, 14 = IFF. These values correspond to the IMAGETYPE constants that were added in PHP 4.3. Index 3 is a text string with the correct height=yyy width=xxx string that can be used directly in an IMG tag. Friendship is always a sweet responsibility, never an opportunity. HaSeEb IqBaL. 0300-4258030 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] File Type Validation problem.
i think the comparision is case sensitive. try strlower for image types and compare with lower cases. also note that for IE image type for jpg is pjpeg so include this to Friendship is always a sweet responsibility, never an opportunity. HaSeEb IqBaL. 0300-4258030 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] combining multi-dimensional arrays from multiple parse_ini_file results
some information from php manual array_merge() merges the elements of two or more arrays together so that the values of one are appended to the end of the previous one. It returns the resulting array. If the input arrays have the same string keys, then the later value for that key will overwrite the previous one. If, however, the arrays contain numeric keys, the later value will not overwrite the original value, but will be appended. Friendship is always a sweet responsibility, never an opportunity. HaSeEb IqBaL. 0300-4258030 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Anything that is changed when the browser is closed
hi, just wanna know if there is anything in php that can be used (besides sessions) to get anything from the $_SERVER that is unique and gets changed each time we close the browser. anything at all to check if the user has closed the browser. regards Haseeb
[PHP] Session Theft
i just want to figure out a way by which i can stop session theft.i thought if i can get something from user end that is unique for that user.for e.g. his/her IP .but it will not work when they are behind firewall.they will be assigned same IP.is there a way for me to get the IP (e.g.202.202.202.202 thats just an e.g. ) plus computer ip(192.168.0.1 e.g.) i saw once a java chat server do this.if we can do this then it will help us (SOMEWHAT). if anyone has better suggestion just let me know Haseeb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Qmail question
i just want to know what format does qmail use to store password in the password file.what function should be used to generate that password thanx in advance for the answers Haseeb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] last questions
thanx to all those who replied to my previous question. 1 more question.i need help with reqular expressions.i want to check valid (email) usernanes for my mail server .i.e. Qmail. any help welcome. thanx in advance Haseeb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Internet Explorer toolbar
hello, just want to suggest something to the list manager. there should be a way to email every newly subscribed user about what php can do and what php can't this will help solve many problems.i have been subscribed to this list for 10 days or so and i have recieved more then 50% of the mails about php doing client side stuff.and everytime the nice people explain to them what php can do. i think all new users should get an email explaining what php is and what can it do. just a suggestion no hard feelings. Haseeb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Problem Parsing message/rfc822
hi, i have paresed entire messaage into an array. everything was ok untill i encountered a message/rfc822 subtype.it was a farwaded message.now my array contains everything from images to headers in a subscript 'TEXT'. the actual array returned is Array ( [Date] = Tue, 18 Mar 2003 13:28:07 + (GMT) [Subject] = Fwd: somesubject [FR] = [FU] = [FA] = [FD] = [FX] = [FF] = [To] = someone [EMAIL PROTECTED], [From] = SomeOne [EMAIL PROTECTED] [CC] = [BCC] = [Type] = multipart/mixed [Encoding] = 7bit [IsDesc] = 0 [IsId] = 0 [Bytes] = [IsDisp] = 0 [IsDPara] = 0 [IsPara] = 1 [Para] = Array ( [0] = Array ( [Atr] = boundary [Val] = 0-1759809281-1047994087=:91467 ) ) [IsParts] = 1 [Parts] = Array ( [0] = Array ( [PartNo] = 1 [Type] = multipart/alternative [Encoding] = 7bit [IsDesc] = 0 [IsId] = 0 [Bytes] = [IsDisp] = 0 [IsDPara] = 0 [IsPara] = 1 [Para] = Array ( [0] = Array ( [Atr] = boundary [Val] = 0-1446890343-1047994087=:91467 ) ) [IsParts] = 1 [Parts] = Array ( [0] = Array ( [PartNo] = 1.1 [Type] = text/plain [Encoding] = 8bit [IsDesc] = 0 [IsId] = 0 [Bytes] = 136 [IsDisp] = 0 [IsDPara] = 0 [IsPara] = 1 [Para] = Array ( [0] = Array ( [Atr] = charset [Val] = iso-8859-1 ) ) [IsParts] = 0 ) [1] = Array ( [PartNo] = 1.2 [Type] = text/html [Encoding] = 8bit [IsDesc] = 0 [IsId] = 0 [Bytes] = 471 [IsDisp] = 0 [IsDPara] = 0 [IsPara] = 1 [Para] = Array ( [0] = Array ( [Atr] = charset [Val] = iso-8859-1 ) ) [IsParts] = 0 ) ) ) [1] = Array ( [PartNo] = 2 [Type] = message/rfc822 [Encoding] = 8bit [IsDesc] = 0 [IsId] = 0 [Bytes] = 177048 [IsDisp] = 0 [IsDPara] = 0 [IsPara] = 0 [IsParts] = 0 ) ) ) the subscript 'IsParts' shows weather this message has further parts or not. as there is no part of last subs soo i try to get the body of the part speacified.but it returns all the message plus images.what should i do know.need to deliver this asap.help me. Haseeb
[PHP] Problem Parsing message/rfc822
hi, i have paresed entire messaage into an array. everything was ok untill i encountered a message/rfc822 subtype.it was a farwaded message.now my array contains everything from images to headers in a subscript 'TEXT'. the actual array returned is Array ( [Date] = Tue, 18 Mar 2003 13:28:07 + (GMT) [Subject] = Fwd: somesubject [FR] = [FU] = [FA] = [FD] = [FX] = [FF] = [To] = someone [EMAIL PROTECTED], [From] = SomeOne [EMAIL PROTECTED] [CC] = [BCC] = [Type] = multipart/mixed [Encoding] = 7bit [IsDesc] = 0 [IsId] = 0 [Bytes] = [IsDisp] = 0 [IsDPara] = 0 [IsPara] = 1 [Para] = Array ( [0] = Array ( [Atr] = boundary [Val] = 0-1759809281-1047994087=:91467 ) ) [IsParts] = 1 [Parts] = Array ( [0] = Array ( [PartNo] = 1 [Type] = multipart/alternative [Encoding] = 7bit [IsDesc] = 0 [IsId] = 0 [Bytes] = [IsDisp] = 0 [IsDPara] = 0 [IsPara] = 1 [Para] = Array ( [0] = Array ( [Atr] = boundary [Val] = 0-1446890343-1047994087=:91467 ) ) [IsParts] = 1 [Parts] = Array ( [0] = Array ( [PartNo] = 1.1 [Type] = text/plain [Encoding] = 8bit [IsDesc] = 0 [IsId] = 0 [Bytes] = 136 [IsDisp] = 0 [IsDPara] = 0 [IsPara] = 1 [Para] = Array ( [0] = Array ( [Atr] = charset [Val] = iso-8859-1 ) ) [IsParts] = 0 ) [1] = Array ( [PartNo] = 1.2 [Type] = text/html [Encoding] = 8bit [IsDesc] = 0 [IsId] = 0 [Bytes] = 471 [IsDisp] = 0 [IsDPara] = 0 [IsPara] = 1 [Para] = Array ( [0] = Array ( [Atr] = charset [Val] = iso-8859-1 ) ) [IsParts] = 0 ) ) ) [1] = Array ( [PartNo] = 2 [Type] = message/rfc822 [Encoding] = 8bit [IsDesc] = 0 [IsId] = 0 [Bytes] = 177048 [IsDisp] = 0 [IsDPara] = 0 [IsPara] = 0 [IsParts] = 0 ) ) ) the subscript 'IsParts' shows weather this message has further parts or not. as there is no part of last subs soo i try to get the body of the part speacified.but it returns all the message plus images.what should i do know.need to deliver this asap.help me. Haseeb
[PHP] Help Please
Hi All, i am new to qmail and linux so bear with me.first of all i would like to clearly state my situation here.we have to servers linux+windows.we have qmail installed on linux.wesite is hosted on windows.now i want to create user from my webbased signin form.(which is on win2k).how can i do this?. 2nd thing.is it necessary to create system accounts for users on linux.(just want to give them email account from qmail).what is the best colution for this. please help me.as i am new to qmail. thanx Haseeb --- Msg sent via Mail - http://atmail.nl/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php