RE: [PHP] Re: Generate Alphabet

2001-12-27 Thread Jerry Verhoef (UGBI)
Sorry for the late reply but maybe you should take a look at the function range. from the manual: foreach(range('a', 'z') as $letter) { echo $letter; } Jerry -Original Message- From: Daniel Harik [mailto:[EMAIL PROTECTED]] Sent: Monday, December 24, 2001 7:01 PM To: [EMAIL PROTECTED

RE: [PHP] Create a table with more than 1 column

2001-12-27 Thread Jerry Verhoef (UGBI)
I would have done it a different way, but it would look something like that this code has not been tested and is guaranteed to have bugs :) but it just to get you started on a different approach. $ultletra = ''; $row = ''; while($resultado =

RE: [PHP] RESOLVED(maybe):Warning: Cannot send session cookie

2001-12-28 Thread Jerry Verhoef (UGBI)
mysql_query($query) or die(mysql_error($link_identifier)); die stops the script. Or if you want a more subtile way you can try this $result_identifier=@mysql_query($query); if (!$result_identifier) { // Do some nice error handeling } Jerry Verhoef -Original Message- From: Dav

RE: [PHP] php code beautifier

2001-12-28 Thread Jerry Verhoef (UGBI)
What is a code beautifier? -Original Message- From: George Nicolae [mailto:[EMAIL PROTECTED]] Sent: Friday, December 28, 2001 1:47 AM To: [EMAIL PROTECTED] Subject: [PHP] php code beautifier do you know if exist a php code beautifier for win32? pls tell me the address. -- Best re

RE: [PHP] Modify someone else's session register

2001-12-28 Thread Jerry Verhoef (UGBI)
No Maybe you should consider database option or flat files to give info from one user to the another? Jerry Verhoef -Original Message- From: Alex Vargas [mailto:[EMAIL PROTECTED]] Sent: Friday, December 28, 2001 3:23 AM To: [EMAIL PROTECTED] Subject: [PHP] Modify someone else's session

RE: [PHP] Modify someone else's session register

2001-12-28 Thread Jerry Verhoef (UGBI)
this is an option but it will surely break easily. I am not completly sure, but i think that sessions variables are write to the "session handler" at the end of the script. (maybe one of guru's can clarify this?) But if this is true consider this: user 1: is running a script/requesting a page

RE: [PHP] backtracing of includes

2001-12-28 Thread Jerry Verhoef (UGBI)
Don't think that a option like this exists. But maybe you should consider using include_once or require_once Also before you define the function use the function_exist("") and if the function already exists don't redecleare it. Jerry Verhoef -Original Message- From: Henning Sprang [

RE: [PHP] Only one instance of a script at a time !

2001-12-28 Thread Jerry Verhoef (UGBI)
Pseudo code: check if pid file exists yes -> DIE no -> write pid file At end of script delete pid file Jerry Verhoef -Original Message- From: Nicolas Guilhot [mailto:[EMAIL PROTECTED]] Sent: Friday, December 28, 2001 3:32 PM To: Php General MailingList Subject: [PHP] Only one instance

RE: [PHP] Select box won't display in Netscape 4.xx

2002-01-02 Thread Jerry Verhoef (UGBI)
Did you forget the tags? Jerry -Original Message- From: Martin Schichl [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 9:57 AM To: Edwin Boersma; [EMAIL PROTECTED] Subject: Re: [PHP] Select box won't display in Netscape 4.xx Dear Edwin! Yes, I have had this problem befo

RE: [PHP] A real simple question...

2002-01-30 Thread Jerry Verhoef (UGBI)
Take a look at exec() passthru() system() Keep in mind that the webserver usally runs as User nobody or an equivilant of that. So this user should have rights to run the program. Kind Regards, Jerry Verhoef > -Original Message- > From: Liam MacKenzie [mailto:[EMAIL PROTECTED]] > Sent:

RE: [PHP] How can I decrypt a password I previously coded with md5()?

2002-01-30 Thread Jerry Verhoef (UGBI)
Not MD5 is a hash code not an encryption! Jerry Verhoef > -Original Message- > From: Jose [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 30, 2002 10:51 AM > To: [EMAIL PROTECTED] > Subject: [PHP] How can I decrypt a password I previously coded with > md5()? > > > > I'm mak

RE: [PHP] How can I decrypt a password I previously coded with md5()?

2002-01-30 Thread Jerry Verhoef (UGBI)
Take a look at the mcrypt libary http://www.php.net/manual/en/ref.mcrypt.php Jerry Verhoef > -Original Message- > From: Jose [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 30, 2002 11:10 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] How can I decrypt a password I previously >

RE: [PHP] POST 2X

2002-01-30 Thread Jerry Verhoef (UGBI)
I think I speak for everone: HUH Maybe some more info? A piece of code? Some clear infomation on what is going wrong and when does this happen? And what action is happening two times? kind regards, Jerry Verhoef > -Original Message- > From: M-H-d [mailto:[EMAIL PROTECTED]] > Sent

RE: [PHP] POST 2X

2002-01-30 Thread Jerry Verhoef (UGBI)
t which makes the request (the script with the form) Jerry Verhoef > -Original Message- > From: Miftakhul Huda [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 30, 2002 12:45 PM > To: Jerry Verhoef (UGBI) > Subject: Re: [PHP] POST 2X > > > I grab this from my Ap

RE: [PHP] Novice question - Please Help

2002-01-30 Thread Jerry Verhoef (UGBI)
Take a look at split, explode > -Original Message- > From: brendan conroy [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 30, 2002 1:10 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Novice question - Please Help > > > Hi, >thanks for reading this. Ive looked at every php site an

RE: [PHP] session data vs cookie data

2002-01-30 Thread Jerry Verhoef (UGBI)
> -Original Message- > From: Erik Price [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 30, 2002 3:30 PM > To: PHP > Subject: [PHP] session data vs cookie data > > > I have read elsewhere that depending on Cookie data for site > authentication is false economy, because Cookie da

RE: [PHP] session data vs cookie data

2002-01-30 Thread Jerry Verhoef (UGBI)
When that happens a user has to relogin. No data will be lost. Jerry > -Original Message- > From: Michael Kimsal [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 30, 2002 3:53 PM > To: Jerry Verhoef > Cc: PHP > Subject: Re: [PHP] session data vs cookie data > > > Jerry Verhoef wro

RE: [PHP] Printing from mysql

2002-02-01 Thread Jerry Verhoef (UGBI)
That is a feature of internet explorer. You can disable this in one of the config screens. I believe it is the print dialog window. Kind Regards, Jerry > -Original Message- > From: Rambo Amadeus [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 31, 2002 11:31 PM > To: [EMAIL PROTECTED

RE: [PHP] ReFilling mySQL Database with CSV file!!

2002-02-01 Thread Jerry Verhoef (UGBI)
First structure only second data only Don't forget to check the check box for complete inserts and extended inserts reload in new db. create the DB upload the 1 file and then the second file Done > -Original Message- > From: Thomas Edison Jr. [mailto:[EMAIL PROTECTED]] > Sent: Friday

RE: [PHP] Making your include files invisible (header() in if loop)

2002-02-01 Thread Jerry Verhoef (UGBI)
Or even better put them outside your www root. > -Original Message- > From: Erik Price [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 01, 2002 4:19 PM > To: qartis > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Making your include files invisible (header() in if > loop) > > > > On T

RE: [PHP] whic OS is under?

2002-02-04 Thread Jerry Verhoef (UGBI)
http://www.php.net/manual/en/function.php-uname.php Take a look at the example there > -Original Message- > From: Ivo Stoykov [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 04, 2002 2:45 PM > To: [EMAIL PROTECTED] > Subject: [PHP] whic OS is under? > > > Hi group: > > Is there a

RE: [PHP] Re: Sending files to the user...?

2002-02-05 Thread Jerry Verhoef (UGBI)
Your are on the right track. Using the Header function is the way to do it. But I guess you forget to take a look at the manual page. There are all questions that you ask answered :) So take a look http://www.php.net/manual/en/function.header.php . in short: RFC: http://www.w3.org/Protocol

RE: [PHP] How do I find double values in an associative array

2002-02-05 Thread Jerry Verhoef (UGBI)
http://www.php.net/manual/en/function.array-count-values.php Jerry I feel like a manual... > -Original Message- > From: Rainer [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, February 05, 2002 2:51 PM > To: [EMAIL PROTECTED] > Subject: [PHP] How do I find double values in an associative a

RE: [PHP] Convert 24hr to 12hr

2002-02-06 Thread Jerry Verhoef (UGBI)
RTFM http://www.mysql.com/doc/D/a/Date_and_time_functions.html select date_format(,"%r") from or select time_format(,"%r") from Look in the manual for more options... MUCH MORE :) Anyone know the difference between %h: 01-12 hour notation and %I: 01-12 hour notation ? Kind regards,

RE: [PHP] php help needed, is there a bright spark out there!

2002-02-06 Thread Jerry Verhoef (UGBI)
Heheh... Nice problem :) But the approach I would take (ALERT PERSONAL OPINION) step one: Check in which row an item order by row desc (C first L last) is located (ROW C,F,I,L in your Xcel sheet) step two: Loop in list of row. And let him always start at the first row! step three: Three options!

RE: [PHP] Re: Seams not to be possible

2002-02-07 Thread Jerry Verhoef (UGBI)
$glacer[0]="test"; $category[0]="glacer"; echo ${$category[0]}[0]; echo returns test. That is what you wanted to do?? > -Original Message- > From: Aric Caley [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 07, 2002 4:46 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Re: Seams not

RE: [PHP] mime emails

2002-02-08 Thread Jerry Verhoef (UGBI)
http://php.resourceindex.com/detail/00896.html GOOGLE is the ultimate programmers tool. And i used this some time ago... :) > -Original Message- > From: Kunal Jhunjhunwala [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 08, 2002 9:23 AM > To: php-list > Subject: [PHP] mime emails >

RE: [PHP] modDb Contribution

2002-02-08 Thread Jerry Verhoef (UGBI)
unusual?? Don't know ... but i never ever saw a request like this on the list before, if that is what you mean. But the ppl on this list are mostly developers and most of them including me. We don't buy we make :) (at least we try to :) I understand your frustration. But what you could do: 1 tr

RE: [PHP] ODBC_EXECUTE has a DANGEROUS 'feature'!!!

2002-02-08 Thread Jerry Verhoef (UGBI)
This is what we call a BUG Report it on http://bugs.php.net thx > -Original Message- > From: * R&zE: [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 08, 2002 1:44 PM > To: PHP General Mailinglist > Subject: [PHP] ODBC_EXECUTE has a DANGEROUS 'feature'!!! > > > Hi folks, > >

RE: [PHP] Stripping the first line of a file

2002-02-08 Thread Jerry Verhoef (UGBI)
Use $aFile=file(); //$aFile[0] contains the unwanted line echo $aFile[1]; // displays line 2 echo $aFile[n]; // displays line n where n is an positieve interger and not greater then the number of lines in the file http://www.php.net/manual/en/function.file.php HTH Jerry > -Original Mes

RE: [PHP] Stripping the first line of a file

2002-02-08 Thread Jerry Verhoef (UGBI)
Friday, February 08, 2002 4:22 PM > To: Jerry Verhoef (UGBI) > Cc: [EMAIL PROTECTED] > Subject: RE: [PHP] Stripping the first line of a file > > > Thank you! Works. I have a few more questions! I am working on > converting a program from perl to PHP as it is the new >

RE: [PHP] Stripping the first line of a file

2002-02-08 Thread Jerry Verhoef (UGBI)
printf NEW ("%-193.193s"); printf ("%-193.193s",); HTH > -Original Message- > From: Jerry Verhoef (UGBI) [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 08, 2002 4:35 PM > To: 'Scott'; Jerry Verhoef (UGBI) > Cc: [EMAIL PROTECTED]

RE: [PHP] check this new site

2002-02-08 Thread Jerry Verhoef (UGBI)
LOL And i just thought it looked like spam Sorry my mistake >:) > -Original Message- > From: JSheble [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 08, 2002 5:09 PM > To: php list > Subject: Re: [PHP] check this new site > > > > looks like every other SLashdot, PHP-Nuke o

RE: [PHP] escaping ?>

2002-02-11 Thread Jerry Verhoef (UGBI)
this should work $contents = str_replace("", "", $contents); btw. a welformed xml documented uses a space between "1.0" and ?> > -Original Message- > From: Martin Towell [mailto:[EMAIL PROTECTED]] > Sent: Sunday, February 10, 2002 11:07 PM > To: 'Steven Jarvis'; [EMAIL PROTECTED] > Subj

[PHP] RE: problem finding out original filename while using php to upload.

2001-12-17 Thread Jerry Verhoef (UGBI)
You could also use the function getimagesize this will tell what kind of image it is, and if it is not an image it will return false. GD LIB is NOT needed for getimagesize. Kind Regards, Jerry Verhoef -Original Message- From: Daniel Grace [mailto:[EMAIL PROTECTED]] Sent: Monday, Decembe

RE: Re: [PHP] Passing through Array's to another script

2001-12-18 Thread Jerry Verhoef (UGBI)
Maybe you should take a look at serialize and unserialize? http://nl.php.net/manual/nl/function.serialize.php http://nl.php.net/manual/nl/function.unserialize.php With serialize you translate a variable to a string. With unserialize you translate it back to the original variable Jerry Verhoef

RE: [PHP] Arrays/Hashes

2001-12-19 Thread Jerry Verhoef (UGBI)
You forgot the printf method printf("Some text %s\n",$myhash['mykey']); Jerry -Original Message- From: jimtronic [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 5:59 PM To: TD - Sales International Holland B.V. Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Arrays/Hashes I've n

RE: [PHP] Re: max # of characters for links to work in emails?

2001-12-19 Thread Jerry Verhoef (UGBI)
The maximum allowed of characters in a domain name is 3 (www) + 64 (domainname) + 3 (tld) = 70 chars. So if you try to limit it within the 70 chars you should be safe. Jerry -Original Message- From: Chris Lee [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 6:10 PM To: [EMAIL

RE: [PHP] Re: MySQL Native Function in PHP Query Not Working?

2001-12-19 Thread Jerry Verhoef (UGBI)
LAST_INSERT_ID() only works in a select. This should be the correct syntax, but MySQL 3.xx.xx doesnot support SubQueries. I believe that MySQL 4 does or will in the near future. SELECT * FROM table WHERE aid=(SELECT LAST_INSERT_ID()) Jerry Verhoef -Original Message- From: Chris Lee [mai

RE: [PHP] Re: max # of characters for links to work in emails?

2001-12-19 Thread Jerry Verhoef (UGBI)
work in emails? Don't think thats necessarily true - what about news.bbc.co.uk or games.yahoo.com. Neither of them fits into the spec you described there... Richy -Original Message- From: Jerry Verhoef (UGBI) [SMTP:[EMAIL PROTECTED]] Sent: 19 December 2001 08:41 To: '

RE: [PHP] Limit script memory usage !!

2001-12-20 Thread Jerry Verhoef (UGBI)
There is a setting in de php.ini called "memory_limit". Remember it is in bytes! Jerry -Original Message- From: Nicolas Guilhot [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 20, 2001 4:09 PM To: Php General MailingList Subject: [PHP] Limit script memory usage !! Hi all, I need to

RE: [PHP] arrays

2001-12-21 Thread Jerry Verhoef (UGBI)
Maybe you should take a look at XSL http://www.w3schools.com/xsl/ http://www.w3.org/Style/XSL/ -Original Message- From: php dood [mailto:[EMAIL PROTECTED]] Sent: Friday, December 21, 2001 2:04 AM To: [EMAIL PROTECTED] Subject: [PHP] arrays I'm trying to figure out how to parse an xml d

RE: [PHP] PHP / SSL

2001-12-21 Thread Jerry Verhoef (UGBI)
I am sorry to say. But it is bullshit wot you are saying. I am quite sure that a 256 bit encryption can cracked (brute force way) by the big players (US, MS, etc) within a reasonable time say 2 or 3 months! And yes you can buy computers or clusters for 100.000 $. And they are 100 more like

RE: [PHP] Login Script

2001-12-21 Thread Jerry Verhoef (UGBI)
Line 10 is? $sid (login($user, $pass)); <--- missing = -Original Message- From: Necro [mailto:[EMAIL PROTECTED]] Sent: Friday, December 21, 2001 1:40 PM To: [EMAIL PROTECTED] Subject: [PHP] Login Script Lo all, I am trying to get the following script to work.. http://localhost/hq.php

RE: [PHP] Mommy, is it true that...?

2001-12-24 Thread Jerry Verhoef (UGBI)
Ermmm are we forgetting the sprintf function? That is doing exactly what you are trying (and succedding) to accomplish if ($delete && $id) $sql=sprintf("delete from tbl where id = %d",$id); Personally I also use a small extra security if ($delete && $check==md5( . $delete)) $sql