RE: [PHP] crypt salt question

2007-08-30 Thread Andras Kende
I figured out finally:) Actually the random salt is always the first 2 character of the encryoted password, so this works fine now : Thanks, Andras -Original Message- From: Satyam [mailto:[EMAIL PROTECTED] Sent: Thursday, August 30, 2007 3:00 PM To: Andras Kende; php-general

[PHP] crypt salt question

2007-08-30 Thread Andras Kende
Hello, I'm trying to move some app from postgresql to mysql but unable to find out how to authenticate against the current crypted passwords with php.. insert to database: $cset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789./"; $salt = substr($cset, time() & 63, 1)

RE: [PHP] mysql_fetch_array to associative array

2007-07-16 Thread Andras Kende
-Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Monday, July 16, 2007 6:12 PM To: Andras Kende Cc: php-general@lists.php.net Subject: RE: [PHP] mysql_fetch_array to associative array On Mon, 2007-07-16 at 13:37 -0700, Andras Kende wrote

RE: [PHP] mysql_fetch_array to associative array

2007-07-16 Thread Andras Kende
-Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Monday, July 16, 2007 1:46 PM To: Andras Kende Cc: php-general@lists.php.net Subject: RE: [PHP] mysql_fetch_array to associative array On Mon, 2007-07-16 at 13:37 -0700, Andras Kende wrote: > >

RE: [PHP] mysql_fetch_array to associative array

2007-07-16 Thread Andras Kende
-Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Monday, July 16, 2007 7:52 AM To: Andras Kende Cc: php-general@lists.php.net Subject: Re: [PHP] mysql_fetch_array to associative array On Mon, 2007-07-16 at 07:41 -0700, Andras Kende wrote: > Hello, > >

[PHP] mysql_fetch_array to associative array

2007-07-16 Thread Andras Kende
Hello, I use the following GetArray for returning an array from mysql results. But having a hard time modifying it for returning a simple associative array Like: $conn->GetAssoc('SELECT id, name from manufacturers') Array ( [2] => BMW [1] => MAZDA [9] => FORD ) function GetAr

[PHP] serving video files with php

2006-06-15 Thread Andras Kende
Hello, Is there any drawback servings video files through php downloader script on high load site? Or just straight link to the videos are more efficient? Thank you, Andras Kende http://www.kende.com

RE: [PHP] Add Multiple Items, Qty to Cart from html form

2006-05-18 Thread Andras Kende
-Original Message- From: Wolf [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 17, 2006 9:47 PM To: Andras Kende Cc: php-general@lists.php.net Subject: Re: [PHP] Add Multiple Items, Qty to Cart from html form Andras, Apples Will get you where you need to go on the HTML side of things

[PHP] Add Multiple Items, Qty to Cart from html form

2006-05-17 Thread Andras Kende
Hello, I trying to add multiple items to a shopping cart with selectable quantity and price form text field like.. apple : qty: [__] price: [__] orange : qty: [__] price: [__] I could add multiple items with checkboxes but without selecting quantity and price.. if (isset($_POST['item

Re: [PHP] php session in ie

2005-11-11 Thread Andras Kende
used this article for sessions with success http://www.sitepoint.com/article/users-php-sessions-mysql Best regards, Andras Kende http://www.kende.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] imagestring to picture

2005-08-22 Thread Andras Kende
text", $textcolor); imagejpeg($destimg); Best regards, Andras Kende http://www.kende.com -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.13/78 - Release Date: 8/19/2005 -- PHP General Mailing List (http://www.ph

[PHP] build sql query struture and values from form fields

2005-08-20 Thread Andras Kende
ct.=$variable","; $sqldata.=$value."\"','\""; } $query="insert into db ($sqlstruct) VALUES ($sqldata)"; Best regards, Andras Kende http://www.kende.com -- No virus found in this outgoing messag

[PHP] Large forms to Mysql table...

2005-08-13 Thread Andras Kende
? Just don’t want to do Mysql table with 70 fields… Thanks, Andras Kende http://www.kende.com -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 0.0.338 / Virus Database: 267.10.8/71 - Release Date: 8/12/2005

RE: [PHP] 404 Not Found -> refresh to directory

2005-07-14 Thread Andras Kende
w.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php .htaccess: RewriteEngine on RewriteRule ^([\w-]+)$ index.php/$1 index.php: Best regards, Andras Kende http://www.kende.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mysql regexp select questions

2005-04-07 Thread Andras Kende
... Thanks!! Andras Kende -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] fpassthru(); corrupts files on win 5.0.4 ??

2005-04-02 Thread Andras Kende
Hello, windows 2003 server iis6 with php 5.0.4 isapi... The following code was working perfectly on 5.0.3 since 5.0.4 upgrade dowloaded files gets corrupted.. Any hint where the problem could be? Thanks, Andras Kende http://www.kende.com/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] GIF instead of JPG..

2005-03-22 Thread Andras Kende
nti-Virus. > Version: 7.0.308 / Virus Database: 266.8.0 - Release Date: 3/21/2005 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Hello Ryan, Im using the code below and works fine ... Best regards, Andras Kende http://www.kende.com // // -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Apache 2.0.52 / PHP 4.3.10 Integration Question...

2004-12-31 Thread Andras Kende
^design-(.*) design.php http://www.juhaszdesign.com/list-barstools.html http://www.juhaszdesign.com/design-hastings-barstool.html Andras Kende http://www.kende.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] newbie web services

2004-11-28 Thread Andras Kende
o for an easy implementation.. It will hosted on IIS6 PHP5. Thanks, Andras Kende [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP Session Variables Not Being Set For Certain Browsers

2003-12-27 Thread Andras Kende
be greatly appreciated. Thank you. Regards, Andy - Andy, Not sure, but maybe AOL users on proxy and their ip address can change. Andras Kende http://www.kende.com - -- PHP General Mailing List (http://www.php.net/) To unsubsc

[PHP] Insert into array...

2003-12-26 Thread Andras Kende
=> someting 2 => Array (11) Name => MARY Order => 12590 Newitem => something I can do one at the time like: $orders[1]['Newitem'] = "something"; But not for the whole array Thanks, Andras Kende -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] beginner: remove the string after the first whitespace

2003-08-28 Thread Andras Kende
Hello All, I have a very simple question: Want to remove the string after the first whitespace like: "here is a text what i have" to: "here" Thanks !! Andras Kende -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] beginner: cut text after " "

2003-08-28 Thread Andras Kende
Hello All, I have a very simple question: Want to remove the string after the first whitespace like: "here is a text what i have" to: "here" Thanks !! Andras Kende -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Maximum execution time exceeded when using dial up

2003-03-06 Thread Andras Kende
this?? Thanks, Andras Kende -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP 4.3 JPG Support. Whats needed?

2002-12-30 Thread Andras Kende
m' '--with-ttf' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-track-vars' '--enable-wddx=shared' '--enable-mm=shared' '--enable-xml' '--enable-ftp' '--disable-debug' '--with-libdir=/usr

[PHP] php zip/store locator code.....

2002-05-03 Thread Andras Kende
Hello All, I looking for a zip / store locator based with php/mysql I find this 2 similar but no luck yet. http://px.sklar.com/author.html?author_id=296 http://www.sanisoft.com/ziploc/ Any where should I look around... Thank, Andras Kende -- PHP General Mailing List (http

[PHP] ZIP/STORE LOCATOR

2002-04-25 Thread Andras Kende
Hello All, I looking for a php ZIP/STORE LOCATOR for website.. Anyone knows where to look?? Thanks, Andras Kende -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] str_replace question

2002-04-15 Thread Andras Kende
$metakeywords)); $metakeywords=str_replace("4",'',strtolower($metakeywords)); $metakeywords=str_replace("5",'',strtolower($metakeywords)); $metakeywords=str_replace("6",'',strtolower($metakeywords)); .. Thanks :) Andras Kende -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] meta tags from mysql

2002-04-15 Thread Andras Kende
Hello All, I looking to to generate different meta tags from mysql for each page on a dynamic site which has about 400 pages from mysql database . Searched around but didnt find anything which will give me some hint whats the best way doing it Any help appreciated :) Thanks, Andras

[PHP] Got an error reading communication packets

2002-04-15 Thread Andras Kende
[Sun Apr 14 22:23:32 2002] [notice] child pid 29360 exit signal Segmentation fault (11) Cobalt Raq4i Apache version 1.3.20 PHP 4.1.2 MySQL 3.23.37 Where is the problem ?? Is the apache, php or mysql settings are misconfigured?? Any idea what would be the best way to fix it?? Best regards, Andras

[PHP] PDF creation with PDF-LIB samples?

2002-02-28 Thread Andras Kende
some hint where to start? Thanks, Andras Kende -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Mysql Curdate problem

2002-01-01 Thread Andras Kende
I looking for some advice hos to modify my query or the php code.. Thanks Andras Kende -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] substr trim functions..

2001-12-14 Thread Andras Kende
I trying to convert some full names to last names only like: -get the subtext from the end until the space "joe blue" -> "blue" "bill western" - "western" Looked around at php.net docs but im not sure... Thanks Andras -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-ma

[PHP] string conversion

2001-09-20 Thread Andras Kende
Hi, I trying to cut the last 4 char of a string but sometimes its cut 3 sometime 4 char $pic1=$amyrow["picture"]; $pic2 = substr("$pic1", 0, -4); Actually I have some pictures where I need to cut off the extensions... amamm.jpg 33.jpg 321.gif to amamm 33 321 Is any other way than substr

[PHP] insert space to a string (newbie)

2001-09-08 Thread Andras Kende
Hi, I have a simple question... How can a space inserted to a string after the 3rd char ?? washington ->> was hington Thanks :) Andras -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To cont

[PHP] search engine friendly php + form

2001-08-24 Thread Andras Kende
Hello, I was successfully created search engine friendly php from a tutorial on zend site.. like: salescomps.php?city=Canada&month=feb&year=2000 to salescomps.php/cityCanada/month/feb/year/2001 Is there any way to modify a submit form to result a page with search engine friendly format withou

[PHP] insert hyperlink to mysql query result

2001-08-22 Thread Andras Kende
Hello, I have a mysql query with addresses , trying to insert a link to a map line 51 echo "http://www.expedia.com/pub/agent.dll?qscr=mcst&strt1=$amyrow["address";] &city1=$amyrow["city"]&stnm1=CA&zipc1=&cnty1=4>Map"; echo ""; Error Message: Parse error: parse error, expecting `T_STRING' or `T

[PHP] begginer how to make integer ?

2001-08-21 Thread Andras Kende
Hello, I have a query but it not creating integer result: $saleprice=$amyrow["saleprice"]+$saleprice; $squarefeet=$amyrow["squarefeet"]+$squarefeet; $dom=$amyrow["dom"]+$dom; result: Total listings: 18 -- Average Price: $339166.6667 Average Square Foot: 1596.61 Average DOM:

[PHP] php authentication system

2001-08-10 Thread Andras Kende
Hello, I need to password protect some webpages right now its passwords everywhere Probably need some cookie based php authentication system where users login once Where can I find a simple but good script?? Thanks :) Andras -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Alternative to phpMyAdmin

2001-07-11 Thread Andras Kende
Steph, This one is cgi based and works well too.. http://www.gossamer-threads.com/scripts/mysqlman/index.htm Why phpMyAdmin doesn't work on the new server? maybe you need newer development versions? Andras - Original Message - From: "Steph" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>

[PHP] Question about /tmp/php* files

2001-07-08 Thread Andras Kende
Hello, I noticed there are a lot of php temp files (session files) under /tmp Whats the best way to dealing with this... Thanks Andras -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

[PHP] totals from a mysql query

2001-06-22 Thread Andras Kende
|tofd|150| total should be : 100+250+150 Query: {$aresult=mysql_query("select * from testdb ,$db);} while($amyrow = mysql_fetch_array($aresult)) { echo ""; {echo $amyrow["text1"];} echo ""; {echo $amyrow["text2"];} echo ""; } echo ""

Re: [PHP] PHP Mysql query data conversion newbie

2001-05-09 Thread Andras Kende
Can I set this to check any of the cells ?? if ($amyrow["any cell"] == "-00-00 00:00:00") { echo "no date"; - Original Message - From: "Jon Haworth" <[EMAIL PROTECTED]> To: "'Andras Kende'"

[PHP] PHP Mysql query data conversion newbie

2001-05-09 Thread Andras Kende
Hello, I pull some data from mysql with the php code below. On the date field if there is no date on mysql it displays : -00-00 00:00:00 I would like to change this -00-00 00:00:00 to "no date" for example.. Or if the cel is empty to " " (because otherwise the tableborders are messed up

[PHP] if else and or ?

2001-05-07 Thread Andras Kende
Hello, I started to do a php page with mysql connection.. My problem is: I do query from a mysql, I try to setup usernames + passwords to protect the database They would need to use specific user+password+cities to be able to connect. Bad passwd would just print an access denied messsage.. ht

[PHP] passing variables + if case

2001-05-04 Thread Andras Kende
Hi All, I new to php trying to do a php page which gets a variables from an html form Somehow this if case not working 100% Is this is a correct format ??? Thanks :) Andrew if ( (($name=="1") and ($passwd=="1") and ($city=="HOU")) or (($name=="2") and ($passwd=="2") and ($city=="LAX")) or (