Re: [PHP] array within an array

2002-03-15 Thread Jan Rademaker
can I access the values within $filed_row_array[]? > > I want to do something like > > $table_row_array[0 [1]]; (the second value from the array that is the first > of $table_row_array) $table_row_array[0][1]; > > I know this isnt the syntax > > Thanks in advance >

[PHP] Somebody knows about SecureLink?

2002-03-15 Thread Jan Grafström
ifiedserver.com", 443, 80 SecureLink.SetContentServer "www.webshop.com", 80,"/webshop/" SecureLink.SetKeyFileName "c:/programs/securelink/secrets/flat_o.kf" SecureLink.SetOfrFileName "c:/programs/securelink/osl40.ofr" SecureLink.SetApplStoreID "00" SecureL

[PHP] PHP Document not found

2002-03-16 Thread Jan Weidhaase
file input spicified on line 0" or something like that. Does anybody no about this problem? Thank you Jan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Please explain...

2002-03-19 Thread Jan Rademaker
Can someone explain why this works? $x = 0; if ($x == "foo") { print "yeah"; } This prints 'yeah', but i can't figure out why... -- Jan Rademaker <[EMAIL PROTECTED]> http://www.ottobak.com -- PHP General Mailing List (http://www.php.net/)

[PHP] How do I make tab spaces in a mail?

2002-03-19 Thread Jan Grafström
, $subject, $message, $headers); How do I write to get the tab spaces? -- Regards Jan Grafström sweden -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Apache

2002-03-21 Thread Jan Rademaker
- > > ' ' ' Collège de Sherbrooke: > ô¿ô http://www.collegesherbrooke.qc.ca/languesmodernes/ >- Université de Sherbrooke: > http://compcanlit.ca/ > 819-569-2064 > > > > -- Jan Rademaker <[EMAIL PROTECTED]> http://www.ottobak.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] using a counter in a foreach loop

2002-03-26 Thread Jan Rademaker
there a > way that I can achieve this effect? Thanks for any advice, well... put $i = 1; outside your loop...? $i = 1; foreach ($months) { // do some things $i++; } -- Jan Rademaker <[EMAIL PROTECTED]> http://www.ottobak.com -- PHP General Mailing List (http://w

Re: [PHP] syntax

2002-03-27 Thread Jan Rademaker
ind me what the correct syntax for this is ! > in a loop > and want individual > > $ned_1_city = blah > $ned_2_city = blur > > I've been trying this but its wrong > > $ned_.$i._city = $ned_city ; > > thanks > john > > > > > -- Jan Radem

[PHP] Re: User authentication?

2001-11-04 Thread Jan Grafström
Hi Daniel! Phpbuilder have some articles with examples under security. http://www.phpbuilder.com/columns/ Regards Jan Grafstrom Lillemans Hus AB Sweden "Daniel alsén" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi,

[PHP] Re: .inc files

2001-11-04 Thread Jan Grafström
Hi Rudi! Check out this example from Hotscripts. http://www.hotscripts.com/cgi-bin/dload.cgi?ID=12367 Regards Jan Grafstrom "Rudi Ahlers" <[EMAIL PROTECTED]> skrev i meddelandet 008401c16534$dcb77580$0c00a8c0@camelot">news:008401c16534$dcb77580$0c00a8c0@camelot... >

[PHP] copy image from database

2001-12-08 Thread Jan Grafström
UERY($query); $image = @MYSQL_RESULT($result,0,"bin_data"); echo $image; $destfile="image.jpg"; copy($image,$destfile) ----- Thanks for any help Regards, Jan -- Jan Grafström Lillemans Hus AB Sweden 46 (0)611-60920 46 (0)70-6409073 -- PHP General Mailing List (http://www.

[PHP] error with php 4.1

2001-12-11 Thread Jan Grafström
ntrer=\"Admin Basta\""); header("HTTP/1.0 401 Unauthorized"); echo "Access in-autorizado..."; exit; } It worked well under PHP 4.04. Anbody knows why? Thanks in advance for any help. Regards, Jan -- Jan Grafström Lillemans Hus AB Sweden 46 (0)611-60920

[PHP] Antialiasing with GD..?

2001-12-12 Thread Jan Maska
Hi, I have the following problem: Using the database, I create a graph like __.--._.--._/\.__ In order to keep exact colors and prevent a JPEG detail distortion, I use PNG format as output. This has one disadvantage: all lines are rough and I don't know how to antialias them. Can anyone help

[PHP] another GD problem

2001-12-17 Thread Jan Maska
I have a problem.. I build some images by GD library via PHP.. Next, I need them to contain some text (i.e. date) I use the ImageString function, with color allocation black (ImageColorAllocate($img,0,0,0)). And there's the problem: IE5.0+ display the pictures properly... bud NN 4.7 draws the pict

[PHP] Re: another GD problem

2001-12-17 Thread Jan Maska
I take it back.. after some time of tracing the error, I found out that I handed over the date as a string argument (img src="image.php?date=25. 01. 2001"...) And the problem were the whitespaces.. If you run into similiar trouble, just URLEncode the string, and before using it in imagePHP, simpl

Re: [PHP] php in free()

2001-12-18 Thread Jan Maska
I'm not sure which way you create the connection, but I suppose that you use FSockOpen.. This is a buggy function, as far as I know.. Zend promised to take care of it in the 4.0.4 release of PHP, but since that nothing has changed, apparently. I had the same problem some week ago. In the end I ha

[PHP] Sessions php and flash5, cookies disabled

2001-12-25 Thread Jan Grafström
SID=PHPSESSID%3D193a33f9b7421c17302d1bd58478b20b&var3=1. "=" has changed to "%3D". and php does not recognice the session. part of code on mypage.php3: http://myserver.com/second.php3?\"; method=\"get\"> Thanks for any help. -- Jan Grafström Lillemans Hus AB Sw

Re: [PHP] Sessions php and flash5, cookies disabled

2001-12-25 Thread Jan Grafström
Thanks Brian! There is no differens using only ".SID." or ".$SID." and this line : automatically givs this responsestring in the urlfield of your browser (IE6): second.php3?SID=PHPSESSID%3D193a33f9b7421c17302d1bd58478b20b&var3=1 I will try to manipulate the string Re

[PHP] page3 will not work

2001-12-26 Thread Jan Grafström
ntinue, click here -- page2.php: //this code doesn´t work -- page3.php//I can´t get the session recogniced so I always get "nopermission.htm" Thanks for any help. Regards, Jan -- Jan Grafström Lillemans Hus AB Sweden 46 (0)611-60920 46 (0)70-6409073 -- PHP General Ma

[PHP] Can You get a file unlinked after one month?

2001-03-25 Thread Jan Grafström
Hi! I wonder if it is possible to delete a file using unlink and a time function. I wont the file to be automtically unlinked after a month. I am very thankful for any help. Regards Jan Grafstrom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] login without database

2001-03-30 Thread Jan Grafström
Hi! Can I use php to make a login system for users? I don´t have a databas on my server. I only want to have a few users. When I send variables to php the string is always cached by IE5.5 and it´s very easy to se the username and password if you look i cache. Is there a way to get this done only o

Re: [PHP] login without database

2001-03-30 Thread Jan Grafström
Thank You Romeo! This may be something I can use. Regards Jan Romeo Manzur wrote: > You can do this: > require('acces.inc.php'); > if ( (!isset($PHP_AUTH_USER)) || ! (($PHP_AUTH_USER == $st_LOGIN) && ( > $PHP_AUTH_PW == "$st_PASSWORD" )) ) { > hea

[PHP] How to send a mail in html format

2001-04-01 Thread Jan Grafström
Hi! Can I add something in this string to get a htmlpage sent as mail? mail($recipient,$subject,$corps,"From: $admail\nReply-To:$admail\nX-Mailer: PHP/"); Thanks in advance. Regards Jan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] session question

2001-04-02 Thread Jan Grafström
Hi! I am trying to learn about sessions and set up this file, This seams not to work on the file fillista.xml, I can still read it afterwords in IE:s cache. How do I pass the session to a xml-file on server? Thanks for any help. Regards jan -- PHP General Mailing List (http://www.php.net

[PHP] Can php read and than print file like it is

2001-04-02 Thread Jan Grafström
Hi! I have a file with text on 17 rows and when I let php read it ,get filezise and than print I only get the first row. I want all rows exatly like it is in the file, is it possible? My file: some rows here Thanks in advance for all help I can get. Regards Jan -- PHP General

Re: [PHP] Can php read and than print file like it is

2001-04-02 Thread Jan Grafström
Thank You Steve! Here is my php -- Regards Jan Steve Werby wrote: > "Jan Grafström" <[EMAIL PROTECTED]> wrote: > > I have a file with text on 17 rows and when I let php read it ,get > > filezise and than print I only get the first row. > > I want a

[PHP] problem with php-ftp ftpbuf?

2001-04-04 Thread Jan Grafström
Hi! I tryed the ftp script found in php manual. I got this errormessage: --- Warning: Unable to find ftpbuf 0 in /home/myName/public_html/sess/ftpfile.php3 on line 6 --- What does ftpbuf mean? Thanks for any help. Regards Jan -- PHP General Mailing List (http://www.php.net/) To

[PHP] How to don´t write if exist

2001-04-05 Thread Jan Grafström
$fp, $string); fclose ($fp); --- I want to add: If the variable word exist, don´t add it to the string. Thanks for any tips. Regards Jan -- 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] Array of words in textfile?

2001-04-05 Thread Jan Grafström
Hi! I want to read a textfile (cat, dog, rat,) and get it like this: $namesArray = array("cat,", "dog,", "rat,"); If I can do this than I can go on and make changes in my array. Like the examples in php manual. Thanks in advance for any tips. Regards Jan --

[PHP] php search xml-file

2001-04-08 Thread Jan Grafström
You only ask for "for"? I have just started to learn about php search and I am very thankful for any help. Regards Jan -- 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] edit xml with php?

2001-07-17 Thread Jan Grafstrom
the $fru[i], I have tryed inside the forloop but than it replaces all. Thanks in advance for any help. Regards Jan -- 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]

Re: [PHP] Re: limiting lines

2001-07-29 Thread Jan Wilson
e end of each line. > > Anyone know how to convert that to a "\n" ? I don't understand what you're saying about the new lines and end of paragraphs. But if you want to convert CRLF to LF, try: str_replace("\r\n","\n",$string); -- J

Re: [PHP] foreach and multiple arrays

2001-07-29 Thread Jan Wilson
quot;Banana","Yellow","10","20") ); foreach($array2d as $rowNum => $rowVal) { print "Row $rowNum:\n"; print "Title is $rowVal[0]\n"; print "Value is $rowVal[1]\n"; print "Size1 is $rowVal[2]\n"; print &

[PHP] PHP snapshot & librecode problem

2001-07-31 Thread Jan Pavlík
=../recode --disable-posix What I do bad? -- Jan PAVLIK -- [EMAIL PROTECTED], [EMAIL PROTECTED] mobil 0777/555730 ICQ 6611951 -- 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

Re: [PHP] age

2001-08-05 Thread Jan Wilson
27;],$next['mday'],$next['year']); $daysThisYear = ($nextUnix-$lastUnix)/(24*60*60); $daysSinceLast = ($todayUnix-$lastUnix)/(24*60*60); if ($yearDecimals > 0) { // give decimal fraction $age += $daysSinceLast/$daysThisYear;

Re: [PHP] RE: Reliable PHP web hosts

2001-08-13 Thread Jan Wilson
t on some questions I had about PHP support. It could be that they don't really know ;-) -- Jan Wilson, SysAdmin _/*]; [EMAIL PROTECTED] Corozal Junior College | |:' corozal.com corozal.bz Corozal Town, Belize | /' chetumal.com & linux.bz Reg. Linux user

[PHP] for and emailmessage

2001-09-02 Thread Jan Grafström
a htmlmail but how do I write the for script for all tablerows? Thanks in advance for any help. Regards Jan -- 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] socket_set_timeout() on win32?

2001-09-09 Thread Jan Havel
ou for any info. Jan -- 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] How to list 2-6 in while script?

2001-09-11 Thread Jan Grafström
Hi! I have this script and wonder how to change it to get it list only number 2 to number 6 and not each? while (list ($key,$val) = each ($headers)) { print ""."$val".""; } Thanks in advance. Regards Jan -- PHP General Mailing List (http://www.php.net/)

[PHP] File extension inc?

2001-10-03 Thread Jan Grafström
Hi! How does server handle the .inc extension and for what do I use it ? Where can I read about it? Thanks in advace Jan Grafström -- 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

[PHP] Thanks Jason

2001-10-03 Thread Jan Grafström
Regards Jan Jason Stechschulte wrote: > On Wed, Oct 03, 2001 at 02:13:54PM +0200, Jan Grafström wrote: > >>How does server handle the .inc extension and for what do I use it ? >>Where can I read about it? >> > > This depends on the setup of the web server. On s

Re: [PHP] Can PHP be used to snatch images cross-domain?

2008-12-17 Thread Jan Kaštánek
Chris: > > curl can handle timeouts much better (file_get_contents will timeout when > the server on the other end says so). If you use stream context, you can set timeout to file_get_contents() as well. -- toby http://toby.cz/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Code Not entering the value in the Database

2009-01-20 Thread Jan G.B.
2009/1/20 Chris Carter : > > Hi, > > My code is not giving error but not doing the desired action. > But it can do a lot more than your desired action. > // insert new entry in the database if entry submitted > > $emailAddress = $_POST['emailAddress']; > $passw

Re: [PHP] mysql_query and my.cnf?

2009-01-20 Thread Jan G.B.
2009/1/20 Waynn Lue : > Hey guys, > > I've been noticing that large queries cause a connection lost to mysql > server problem, so I'm trying to figure out what settings I need to tweak in > my my.cnf file to get it to work. Have you had a look on your (mysql) Logfiles and/or are you echo'ing mysql

Re: [PHP] About printing functions

2009-01-22 Thread Jan G.B.
2009/1/21 Thodoris : >> > ob_start(); >> badFunctionThatSpitsInsteadOfReturning(); >> $sReturned = ob_get_contents(); >> ob_end_clean(); >> ?> > > That's a good though thanks. Although I was aware of output buffering I used > to ignore that ob_end_clean actually exists... You can even mak

Re: [PHP] About printing functions

2009-01-22 Thread Jan G.B.
2009/1/22 Török Alpár : > > > 2009/1/22 Jan G.B. >> >> 2009/1/21 Thodoris : >> >> $sReturned = ob_get_contents(); >> >> ob_end_clean(); >> > That's a good though thanks. Although I was aware of output buffering I >> > used

Re: [PHP] best practice wrt multi-lingual websites, gettext() etc.

2009-01-27 Thread Jan Kaštánek
Per Jessen: > > The gettext db doesn't support UTF8??? Uh oh, that's a show-stopper. It supports. We use it. But only in MsgStr (translation), not in MsgId (original strings). -- toby http://toby.cz/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/

Re: [PHP] Connection error on URI

2009-01-28 Thread Jan G.B.
2009/1/28 Skip Evans : > Hey all, > $url="http://xx.xx.xx.xx:1972/csp/test/SASS.Web1.cls?soap_method=FindMemBySASSNum&SNum=".$user_sass; > $xml_response = file_get_contents($url, true); > > But this transaction times out and returns an empty transaction, even with > the call to urlencode, which I t

Re: [PHP] [PHP]: php validate user password

2009-02-09 Thread Jan G.B.
2009/2/9 Andrew Williams : > Hi, > Hi, > Can some body help out on how to validate user password from the database? There are several possibilities. This would be one. > > Thanks > Andrew > Bye,bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

Re: [PHP] php validate user password

2009-02-09 Thread Jan G.B.
2009/2/9 Stuart : > 2009/2/9 Michael Kubler : >> These days SHA should really be used instead of MD5, and you should be >> SALTing the password as well. >> Here's a great guide : http://phpsec.org/articles/2005/password-hashing.html > > Good advice. Absolutley. I used mysqls md5() function only as

Re: [PHP] php validate user password

2009-02-09 Thread Jan G.B.
2009/2/9 Stuart : > 2009/2/9 Jan G.B. : >> 2009/2/9 Stuart : >>> I would also advise against stripping and trimming >>> anything from passwords. >>> >> Trimming could be left out but it minimizes user errors and users >> pretending to know their pas

Re: [PHP] php.ini not loaded?

2009-02-12 Thread Jan G.B.
ble (r-x) *for the www-daemon-user*? Regards, Jan >> you may also need to check the perms on /apps/local/php5 to ensure the >> webserver user has rx on that dir as well. >> >> -nathan >> > > > -- > PHP General Mailing List (http://www.php.net/) > To un

Re: [PHP] Header - Redirect Command Not Working

2009-03-11 Thread Jan G.B.
Hi Dave (?) 2009/3/11 revDAVE : > Hi Bastien - Stuart & Daniel > > Thanks for your help! > > > On 3/10/2009 12:16 PM, "Bastien Koert" wrote: > >> Are you getting an error? What does 'not working' mean? > > No errors the page just stayed on the > header('Location: show.php'); page - never went to:

Re: [PHP] php fop (XSLFO)

2009-03-11 Thread Jan G.B.
2009/3/9 Tom Sparks : > > is there a php Fop (XSLFO)? > if not are there any that are not java based and can be run o a website that > has php support only? > > > tom_a_sparks Hi tom, I do it the easy way: system(sprintf('/usr/local/bin/fop -bleh %s', $param)); be sure to escape any shell op

Re: [PHP] Header - Redirect Command Not Working

2009-03-13 Thread Jan G.B.
2009/3/11 Daniel Brown : > On Wed, Mar 11, 2009 at 12:38, Jan G.B. wrote: >> wrong: >> "Location: file.txt" >> and this is correct >> "Location: http://www.x.x/file.txt"; >> >> Not all clients behave like yours and accept the wro

Re: [PHP] htmlentities is incomplete: does not cover rsquo etc

2009-03-13 Thread Jan G.B.
2009/3/13 Heddon's Gate Hotel : > The string function htmlentities seems to have very incomplete coverage of > the HTML entities listed in the HTML 4 spec.  For example, it does not know > about rsquo, lsquo, rdquo, ldquo, etc.  This is confirmed by looking at the > output of get_html_translation_t

Re: [PHP] Fatal error: Call to undefined function: mysqli_connect() in

2009-03-14 Thread Jan G.B.
Gary, you can check this by either creating a file containing this: and putting it up on your webserver, then open in with your browser, or you could look at the output of "php -i | less" on the command line. After you enabled the mysqli extension on your host, you might change mysqli_connect('$v

Re: [PHP] Fatal error: Call to undefined function: mysqli_connect() in

2009-03-14 Thread Jan G.B.
2009/3/14 Jan G.B. : > One side node.. you should apply addslashes() also to > $_SERVER['REMOTE_ADDR'), because an evil person could manipulate the > value of that variable to execute SQL-Injections. forget that part - i didn't see that this var is only used in the

Re: [PHP] Re: The PHP filter class I'm working on (securiity)

2009-03-14 Thread Jan G.B.
2009/3/15 Martin Zvarík : > "The browser will only execute script in source files from the white-listed > domains and will disregard everything else, including embedded and inline > scripts. " > > wtf, can't you just take care of the INPUT and type > strip_tags($_GET['my_name']) ?? > > This won't b

Re: [PHP] left join does not work, why?

2009-03-15 Thread Jan G.B.
2009/3/15 PJ : > Daniel Brown wrote: >> On Sat, Mar 14, 2009 at 19:51, PJ wrote: >> >>> $sql1 = "SELECT b.id, b.title, b.sub_title, b.descr, b.comment, >>> b.bk_cover, b.copyright, b.ISBN, b.language, b.sellers, c.publisher, <--- >>> CONCAT_WS(' ', first_name, last_name) AS Author >>> FROM book AS

Re: [PHP] left join does not work, why?

2009-03-15 Thread Jan G.B.
2009/3/15 PJ : >> -Original Message- >> From: Jan G.B. [mailto:ro0ot.w...@googlemail.com] >> so this is just wrong: >> $x = " select * >> // from foo >> from bar"; >> and that query would be valid >> "SELECT this/*, that*/

Re: [PHP] Problem with passing and Area in a $_POST

2009-03-15 Thread Jan G.B.
2009/3/15 Jason Pruim : > Personally... I don't care who's code it is, if it was me, I'd still go > out and validate it... If someone typed something out real quick and > missed a period, it wouldn't be their fault :) > > As has been said by some big higher up's in this very mailing list... "Treat

Re: [PHP] Which hashing algorithm is best to check file duplicity?

2009-03-15 Thread Jan G.B.
2009/3/15 Martin Zvarík : > I want to store the file's hash to the database, so I can check next time to > see if that file was already uploaded (even if it was renamed). > > What would be the best (= fastest + small chance of collision) algorithm in > this case? > > Is crc32 a good choice? guess n

Re: [PHP] Anyone know of a project like Redmine written in PHP?

2009-03-17 Thread Jan G.B.
Yes, recently the developer of "JotBug" anounced his project. I guess the project still needs help. All I have is the public CVS acces so far.. Check out http://www.jotbug.org/projects http://code.google.com/p/jotbug/ byebye 2009/3/17 mike : > http://www.redmine.org/ > > Looks pretty useful; I wa

Re: [PHP] Re: Anyone know of a project like Redmine written in PHP?

2009-03-18 Thread Jan G.B.
Mantis is a pain in the a*** (for non technical persons). We (we as in 'the IT department') are using mantis, but all other persons in the firm fail to do so. Not very useful. Most persons doesn't even get how the filters work. byebye 2009/3/17 Micah Gersten : > mike wrote: >> http://www.redmin

Re: [PHP] linux sha1sum .vs php sha1

2009-03-20 Thread Jan G.B.
well, echoing a file name and hashing this name with an added carriage return is not the same as hashing the string you can see in your file. bye echo -n 123 | sha1sum && php -r 'echo sha1(123)." -\n";' 2009/3/20 bruce : > hi... > > doing some testing with linux sha1sum, and php's sha1 function

Re: [PHP] Having trouble with a form to mail script.

2009-03-23 Thread Jan G.B.
2009/3/21 Linda Stark : > > > I’m not sure if I am > in the right forum but thought I would give this a shot… > Sure, you are > > I just > created a new mail form in Dreamweaver for a web site.  I’m > working on a form to mail script that I started after reading a few on line > tutorials, and ca

Re: [PHP] So called "PHP Expert"

2009-03-23 Thread Jan G.B.
2009/3/20 דניאל דנון : > I'm a member of some forums about some topics, > One of them include a programming forum. > > Now, I've visited there a week ago and saw a topic with the title "Free > security", > Someone who calls himself a PHP expert (and said that he could teach me PHP > since my level

Re: [PHP] Problems with implode

2009-03-24 Thread Jan G.B.
2009/3/24 Toke Herkild : > Hi All, > > I've an array() with approx 1200 items (list of id-mappings) that part works > fine. > > Now I want to add this list to a query: > $where = "id in (".$idList.")"; > > To accomplish that i do an implode: > $idList = implode(',', $TidList); Are all of the Ids

Re: [PHP] Tripple The Fun

2009-03-24 Thread Jan G.B.
It won't take long until someone digs out the old joke... touch unzip, strip ... I can't read it anymore! 2009/3/24 Nick Cooper : > echo 'won\'t it just end up as lots of echos and prints?'; > > ?> > > 2009/3/24 abdulazeez alugo > >> >> Hello guys, >> >> The list seems boring to me today so I've

Re: [PHP] Re: Rusu Ionut, PHP Question

2009-03-26 Thread Jan G.B.
Erm, aren't "extends" what you're looking for? To accomplish the auto-loading of needed subclasses? example: greeting = parent::$x; } } $test = new BAR(); echo $test->greeting; ?> Prints out "Hello World". Sure - the if you put class FOO in a separate file, than you need to require_once(it)

Re: [PHP] foreach and form submission.

2009-03-30 Thread Jan G.B.
That would be correct. but two things I have to add: * it's called bad style to re-write (override) predefined vars like _POST, _GET, _SERVER ... * using strip_tags() to clean user-input for safe output ist not O.K.! use htmlspecialchars(), at least. Regards, 2009/3/28 Virgilio Quilario : >> Hi

Re: [PHP] Working in UTF-8 - BOM trouble

2009-03-31 Thread Jan G.B.
2009/3/31 Merlin Morgenstern : > that php has trouble with files that are saved in UTF-8 with BOM. It is > causing strange bahavior like adding extra headers. On the other hand most > editors only save UTF-8 with BOM. > > Has somebody experienced the same problem? How did you overcome it? > Use an

Re: [PHP] Button id's - firefox and IE different ?

2009-04-02 Thread Jan G.B.
2009/4/2 Igor Escobar : > If you don't want change your form, do some function in Javascript witch > control the last button you clicked. > Javascript is bad and you don't need it. >> Delete >> Delete >> Delete > > > > I wanna make a advice to you learn more about HTML and Web Standards... I wa

Re: [PHP] [php] scheduled task in php

2009-04-02 Thread Jan G.B.
Or even with CRONw if "via window" is an indicator for the evil OS. http://cronw.sourceforge.net/ (I personally didn't test this software) bye 2009/4/2 Michel OLIVIER : > hi, > with a cron and wget? > > 2009/4/2 Andrew Williams : >> All, >> >> Please how can you run a timed php script file via win

Re: [PHP] [php] scheduled task in php

2009-04-03 Thread Jan G.B.
2009/4/3 Chris : > Andrew Williams wrote: >> >> I want to created a window schedule a task that will run every 2 minutes >> and >> run my php script(www.domain.com/script.php).  But I need to know how to >> create a php.exe that I can select as a window schedule a task so that the >> php.exe file c

Re: [PHP] Button id's - firefox and IE different ?

2009-04-03 Thread Jan G.B.
t; something. > > Have a nice day. > > Regards, > Igor Escoar > Systems Analyst & Interface Designer > > -- > > Personal Blog > ~ blog.igorescobar.com > Online Portifolio > ~ www.igorescobar.com > Twitter > ~ @igorescobar > > > > > > On

Re: [PHP] syntax woes

2009-04-03 Thread Jan G.B.
2009/4/3 : > Hi all, > > For any one following this thread, here is how I worked around the > apache/php/chown limitation. > > script snippet (and if any one has a more elegant style, please share as I > am an amateur script kiddie). > > $path = "/homes".$username; > $chowncmd = "/usr/bin/sudo /bi

Re: [PHP] Button id's - firefox and IE different ?

2009-04-03 Thread Jan G.B.
ng by the right way...can be sure that. > > > Regards, > Igor Escoar > Systems Analyst & Interface Designer > > -- > > Personal Blog > ~ blog.igorescobar.com > Online Portifolio > ~ www.igorescobar.com > Twitter > ~ @igorescobar > > > > > >

Re: [PHP] Button id's - firefox and IE different ?

2009-04-03 Thread Jan G.B.
Is it mandatory to annoy the whole list with your crap? If you want to keep on informing me or insulting me or feel free to send it directly to me. I'll add you to my killfile in no time. get a life 2009/4/3 Igor Escobar : > Better then READ is UNDERSTAND. > >> >> >> 2009/4/2 Igor Escobar : >> >>

Re: [PHP] file_get_contents for URLs?

2009-04-07 Thread Jan G.B.
Well, you might want to do it with curl, you might want to write your own socketscript, or your just check the return variable of file_get_contents() - it'll be false on failure and it won't try to get an invalid URL forever. Guess the error is somewhere else, when your script continues indefinitel

Re: [PHP] difficult select problem

2009-04-08 Thread Jan G.B.
2009/4/7 Bastien Koert : > On Tue, Apr 7, 2009 at 1:10 PM, Michael A. Peters wrote: > >> PJ wrote: >> >>> Bob McConnell wrote: >>> From: PJ > First, let me thank you all for responding and offering suggestions. I > appreciate it and I am learning things. > However, it looks l

Re: [PHP] codeigniter 'secure, non-secure content' pop up message in IE7

2009-04-09 Thread Jan G.B.
2009/4/9 Yannick Mortier : > 2009/4/9 9el : >> -- Forwarded message -- >> From: Sabrina Akter >> Date: Thu, Apr 9, 2009 at 1:12 AM >> Subject: codeigniter 'secure, non-secure content' pop up message in IE7 >> To: phpexpe...@yahoogroups.com >> >> >> Hello Experts, >> >> I badly need

Re: [PHP] Escape Data In/Out of db

2009-04-09 Thread Jan G.B.
2009/4/9 tedd : > Hi gang: -.- > > I'm gathering information from a user, storing that data in a db, and then > showing it back to the user. It's a simple process and can bee seen here in > this address book demo (not real people): > > http://php1.net/a/edit-db-demo > > I gather information from

Re: [PHP] $_GET

2009-04-14 Thread Jan G.B.
2009/4/12 Ron Piggott : > > At the very start of my index.php I have the following lines of code: > > foreach($_GET as $key => $val) { > $$key = $_GET[$val]; > echo $_GET[$val] . ""; > } > > What I don't understand is why the output is > > > Well, this would happen if you open /page.php?var= tha

Re: [PHP] what to use instead of foreach

2009-04-14 Thread Jan G.B.
2009/4/13 PJ : > I have already tried with several count and for schemes. None work > because foreach ignores any counters once in the loop. Also, this > foreach is nested within another foreach; don't know if that affects > anything. Have you heard of while()? You can use it in combination with

Re: [PHP] What was the unix timestamp of last week, Monday 12:00 am?

2009-04-14 Thread Jan G.B.
2009/4/13 René Fournier : > "What was the unix timestamp of last week, Monday 12:00 am?" > Depends on when I read your message. :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] problem with my class

2009-04-16 Thread Jan G.B.
2009/4/16 Luke : > Hi guys, > > I've been learning about object oriented programming and I wrote this test > class but it doesn't seem to be working, it throws no errors but doesn't > insert anything to the database either. I have made sure that the data being > sent when the class is instantiated

Re: [PHP] problem with my class

2009-04-16 Thread Jan G.B.
r 16, 2009 at 2:41 PM, Thijs Lensselink >> wrote: >> >> > Luke wrote: >> > > 2009/4/16 Jan G.B. >> > > >> > >> 2009/4/16 Luke : >> > >>> Hi guys, >> > >>> >> > >>> I've been l

Re: [PHP] problem with my class

2009-04-16 Thread Jan G.B.
Excuse my bad spelling. I should have read the message again before hitting send. :-) 2009/4/16 Jan G.B. : >> I think the problem was with the $title. As above, you defined the private >> variable $rtitle but you were trying to call the variable later as $title. >> > > &

Re: [PHP] escape your variables

2009-04-21 Thread Jan G.B.
2009/4/21 Chris : > How does one deal with that? Do you use mysql_real_escape_string? e.g. >>> $db_host = 'localhost'; $db_user = 'auser'; $db_pwd = 'apassword'; $database = 'adatabase'; $table = 'authorBook'; if (!mysql_connect($db_host, $db_user,

Re: [PHP] error with hosting

2009-04-21 Thread Jan G.B.
2009/4/21 ®0L¥ : > I have a littli application in PHP that I do with appserv, in my local > server work ok but when I upload de page.php to the hosting server don't > work, the hosting say in your page that support php and the web server is > apache because the directory is httpdocs, and why my pag

Re: [PHP] MySQL, MD5 and SHA1

2009-04-21 Thread Jan G.B.
2009/4/21 Andrew Ballard : > On Tue, Apr 21, 2009 at 8:34 AM, Grega Leskovsek wrote: >> provided I want to store hash of a password in MySQL ... Using MySQL, >> the whole check can be achieved with a SQL query, since the MD5 >> function is provided as part of the database query language ... >> Can

Re: [PHP] MySQL, MD5 and SHA1

2009-04-22 Thread Jan G.B.
2009/4/21 Per Jessen : > Jan G.B. wrote: > >> A web application that uses an external db server would be quite ... >> uhm... slow! Anyone did this, yet? ;) > > Certainly, and it's not slow.  It depends entirely on your connection to > the public internet. > >

Re: [PHP] MAIL Error

2009-04-22 Thread Jan G.B.
I believe that you all should just overread the huge signature. You've wasted a lot bandwidth with this discussion about the signature. :-) It's not interesting. You could have send your pointless replies to the person, skipping the mailing list, so that we aren't annoyed by your drivel which is se

Re: [PHP] [php] graph with two or more input display

2009-04-24 Thread Jan G.B.
2009/4/24 Andrew Williams : > Hi All, > > Does anyone know of any php grahp that will enable you to show/analyse more > than one inputs like price versus time? > Hi Andrew, we're using PEAR:Image_graph here and it's good for our needs. Maybe you should check it out. PEAR:Image_graph http://pea

Re: [PHP] MAIL Error

2009-04-24 Thread Jan G.B.
2009/4/22 Daniel Brown : > On Wed, Apr 22, 2009 at 12:31, Jan G.B. wrote: >> I believe that you all should just overread the huge signature. >> You've wasted a lot bandwidth with this discussion about the signature. :-) >> It's not interesting. >> You could ha

Re: [PHP] MAIL Error

2009-04-24 Thread Jan G.B.
2009/4/22 tedd : > At 6:31 PM +0200 4/22/09, Jan G.B. wrote: >> >> I believe that you all should just overread the huge signature. >> You've wasted a lot bandwidth with this discussion about the signature. >> :-) >> It's not interesting. >> You cou

Re: [PHP] error with hosting

2009-04-24 Thread Jan G.B.
2009/4/24 Andrew Ballard : > On Tue, Apr 21, 2009 at 1:20 PM, Jan G.B. wrote: >> Do yourself a favour: >> >> * remopve that 1337 hax0r name - it makes you look like a dumbass > > This coming from someone whose e-mail address is ro0ot.w...@? > Sounds a little ir

Re: [PHP] MAIL Error

2009-04-24 Thread Jan G.B.
2009/4/24 Bastien Koert : > > > On Fri, Apr 24, 2009 at 10:03 AM, tedd wrote: >> Whereas, your opinion doesn't matter much because you haven't contributed >> anything I can remember Tedd, it's not my problem that your sight is limited. I don't believe the Netiquette states that "whatever one say

<    1   2   3   4   >