[PHP] Array HELP PLEASE
(Before you write RTFM, please know that I have checked www.php.net, zend.com, phpbuilder.com, et all, and--in the eternal words of Bono--I still haven't found what I'm looking.) The situation: I extract an array from a MySQL table. Code: $models = mysql_fetch_array(mysql_query(SELECT * FROM models WHERE lang='$lang' AND key1='data' AND key2='$series',$db)); Based on the above criteria, there should be two rows in $modelsrow, with each row containing about twenty elements. (A two-dimensional array, right?) All I want to do is display the contents of $models. With the following... for ($i = 1; $i = 20; $i++) { echo $models[$i].p; } ...I get just one row. How can I also display the other row? I've tried variations of $models[1][2], but I just can't get right syntax. (Help is much appreciated. Thanks.) If you know of a good tutorial on multidimension arrays + mySQL, that would be nice too. ...Rene -- 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] Error control and the like
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Gb Clark II) wrote: Let me give you an example of what I'm wanting in pseudo-code. connect to database exec query error in query catch error rollback database It is almost like exceptions. Exception handling isn't available in PHP, but for what you want to do one or more of these should be of assistance: http://www.php.net/manual/en/function.die.php http://www.php.net/manual/en/function.assert.php http://www.php.net/manual/en/function.set-error-handler.php -- CC -- 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] Array HELP PLEASE
Oops, guess I posted too soon. Just figured out the problem myself (use a do/while...). Thanks anyways. -Original Message- From: René Fournier [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 08, 2001 3:25 PM To: Php-General Subject: [PHP] Array HELP PLEASE (Before you write RTFM, please know that I have checked www.php.net, zend.com, phpbuilder.com, et all, and--in the eternal words of Bono--I still haven't found what I'm looking.) The situation: I extract an array from a MySQL table. Code: $models = mysql_fetch_array(mysql_query(SELECT * FROM models WHERE lang='$lang' AND key1='data' AND key2='$series',$db)); Based on the above criteria, there should be two rows in $modelsrow, with each row containing about twenty elements. (A two-dimensional array, right?) All I want to do is display the contents of $models. With the following... for ($i = 1; $i = 20; $i++) { echo $models[$i].p; } ...I get just one row. How can I also display the other row? I've tried variations of $models[1][2], but I just can't get right syntax. (Help is much appreciated. Thanks.) If you know of a good tutorial on multidimension arrays + mySQL, that would be nice too. ...Rene -- 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 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] Array HELP PLEASE
read this page a little closer! http://www.php.net/manual/en/function.mysql-fetch-array.php the mysql_fetch_array(); does not pull all the results in one big array. it IS only a single row of data. try this out, it should do what you are looking to do. $results = mysql_query(SELECT * FROM models WHERE lang='$lang' AND key1='data' AND key2='$series',$db); while ($models = mysql_fetch_array($results)) { echo $models .p; } Jim - Original Message - From: René Fournier [EMAIL PROTECTED] To: Php-General [EMAIL PROTECTED] Sent: Thursday, November 08, 2001 2:25 PM Subject: [PHP] Array HELP PLEASE (Before you write RTFM, please know that I have checked www.php.net, zend.com, phpbuilder.com, et all, and--in the eternal words of Bono--I still haven't found what I'm looking.) The situation: I extract an array from a MySQL table. Code: $models = mysql_fetch_array(mysql_query(SELECT * FROM models WHERE lang='$lang' AND key1='data' AND key2='$series',$db)); Based on the above criteria, there should be two rows in $modelsrow, with each row containing about twenty elements. (A two-dimensional array, right?) All I want to do is display the contents of $models. With the following... for ($i = 1; $i = 20; $i++) { echo $models[$i].p; } ...I get just one row. How can I also display the other row? I've tried variations of $models[1][2], but I just can't get right syntax. (Help is much appreciated. Thanks.) If you know of a good tutorial on multidimension arrays + mySQL, that would be nice too. ...Rene -- 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 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] Array HELP PLEASE
Or maybe not. :-) Although I got both rows displaying, they're actually two long to fit comfortably (w/o horizontally scrolling). So... I'd like to flip the axis of the table, so my header row runs vertically. But with the vagaries of html tables, I'm kinda stumped as to how to run the do/while+for loop. This is what I've got now (more or less): fld1fld2fld3 big red house little bluedog longyellow string With this code: === // MODELS A echo table border=1 cellpadding=2 cellspacing=0; echo tr; for ($i = 6; $i = 25; $i++) { echo td valign=top align=left class=deemph.stripslashes($modelsheader[$i])./td; } echo /tr; do { echo tr; for ($i = 6; $i = 25; $i++) { echo td valign=top align=left class=normal.stripslashes($models[$i])./td; } echo /tr; } while ($models = mysql_fetch_array($result)); echo /table; = This is what I WOULD LIKE to have: fld1big little long fld2red blueyellow fld3house dog string == I can't figure how I would display element 1 of $modelsheader and every first element of $models, then increment and loop... That is, I would like to be able to refer to $models such that $models[0][0] referred to the first element of the first row and, say, $models[1][0] referred to the first element of the second row, and so on. -Original Message- From: René Fournier [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 08, 2001 3:39 PM To: Php-General Subject: RE: [PHP] Array HELP PLEASE Oops, guess I posted too soon. Just figured out the problem myself (use a do/while...). Thanks anyways. -Original Message- From: René Fournier [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 08, 2001 3:25 PM To: Php-General Subject: [PHP] Array HELP PLEASE (Before you write RTFM, please know that I have checked www.php.net, zend.com, phpbuilder.com, et all, and--in the eternal words of Bono--I still haven't found what I'm looking.) The situation: I extract an array from a MySQL table. Code: $models = mysql_fetch_array(mysql_query(SELECT * FROM models WHERE lang='$lang' AND key1='data' AND key2='$series',$db)); Based on the above criteria, there should be two rows in $modelsrow, with each row containing about twenty elements. (A two-dimensional array, right?) All I want to do is display the contents of $models. With the following... for ($i = 1; $i = 20; $i++) { echo $models[$i].p; } ...I get just one row. How can I also display the other row? I've tried variations of $models[1][2], but I just can't get right syntax. (Help is much appreciated. Thanks.) If you know of a good tutorial on multidimension arrays + mySQL, that would be nice too. ...Rene -- 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 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 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] Array HELP PLEASE
try changing these lines: echo tr; for ($i = 6; $i = 25; $i++) { echo td valign=top align=left class=normal.stripslashes($models[$i])./td; } echo /tr; to: echo trtd valign=top align=left class=normal; for ($i = 6; $i = 25; $i++) { echo stripslashes($models[$i]).br; } echo /td/tr; Martin T -Original Message- From: René Fournier [mailto:[EMAIL PROTECTED]] Sent: Friday, November 09, 2001 10:06 AM To: Php-General Subject: RE: [PHP] Array HELP PLEASE Or maybe not. :-) Although I got both rows displaying, they're actually two long to fit comfortably (w/o horizontally scrolling). So... I'd like to flip the axis of the table, so my header row runs vertically. But with the vagaries of html tables, I'm kinda stumped as to how to run the do/while+for loop. This is what I've got now (more or less): fld1fld2fld3 big red house little bluedog longyellow string With this code: === // MODELS A echo table border=1 cellpadding=2 cellspacing=0; echo tr; for ($i = 6; $i = 25; $i++) { echo td valign=top align=left class=deemph.stripslashes($modelsheader[$i])./td; } echo /tr; do { echo tr; for ($i = 6; $i = 25; $i++) { echo td valign=top align=left class=normal.stripslashes($models[$i])./td; } echo /tr; } while ($models = mysql_fetch_array($result)); echo /table; = This is what I WOULD LIKE to have: fld1big little long fld2red blueyellow fld3house dog string == I can't figure how I would display element 1 of $modelsheader and every first element of $models, then increment and loop... That is, I would like to be able to refer to $models such that $models[0][0] referred to the first element of the first row and, say, $models[1][0] referred to the first element of the second row, and so on. -Original Message- From: René Fournier [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 08, 2001 3:39 PM To: Php-General Subject: RE: [PHP] Array HELP PLEASE Oops, guess I posted too soon. Just figured out the problem myself (use a do/while...). Thanks anyways. -Original Message- From: René Fournier [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 08, 2001 3:25 PM To: Php-General Subject: [PHP] Array HELP PLEASE (Before you write RTFM, please know that I have checked www.php.net, zend.com, phpbuilder.com, et all, and--in the eternal words of Bono--I still haven't found what I'm looking.) The situation: I extract an array from a MySQL table. Code: $models = mysql_fetch_array(mysql_query(SELECT * FROM models WHERE lang='$lang' AND key1='data' AND key2='$series',$db)); Based on the above criteria, there should be two rows in $modelsrow, with each row containing about twenty elements. (A two-dimensional array, right?) All I want to do is display the contents of $models. With the following... for ($i = 1; $i = 20; $i++) { echo $models[$i].p; } ...I get just one row. How can I also display the other row? I've tried variations of $models[1][2], but I just can't get right syntax. (Help is much appreciated. Thanks.) If you know of a good tutorial on multidimension arrays + mySQL, that would be nice too. ...Rene -- 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 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 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] Error control and the like
On Thursday 08 November 2001 11:25, Sam Masiello wrote: What database engine are you using? Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 X289 [EMAIL PROTECTED] Hi, I'm using PostgreSQL. GB Subject: Re: [PHP] Error control and the like On Thursday 08 November 2001 09:49, Sam Masiello wrote: If you are just looking for something that will display all of your warning/error messages to show where fallibilities occur in your code, you can use the error_reporting() function at the top of your script. No, What you've described is like the perl 'use strict' and '-w'. Let me give you an example of what I'm wanting in pseudo-code. connect to database exec query error in query catch error rollback database It is almost like exceptions. Thanks, GB Subject: [PHP] Error control and the like Hi, I'm comming from a Perl background and I'm used to using evail{code;}; to catch things that would kill the server/program and then do things based on the error code. Can anyone suggest a way to implement the same thing in PHP? I've been looking at some of the error control functions, but I've not seen any examples. Any ideas, locations or whatever? Thanks for the help. GB -- GB Clark II | Roaming FreeBSD Admin [EMAIL PROTECTED] | General Geek CTHULU for President - Why choose the lesser of two evils? -- 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] phpChess - need beta testers
Hello, I have recently created a phpChess script to play Chess using PHP/mySQL. I'm not sure if it's been done yet or not, but I needed something to do... so I did one myself. I'd like anyone out there that likes chess to help me test it out. After a couple weeks of good testing, I'll release the version 1.0 source to most of the popular script databases. It's at http://www.smashland.com/chess/ ... anyone that would be interested in helping me clean up my code... email me, and I'll let you know how you can help. thanks, Brian -- 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] CF convert question..
Hi there, In the middle of porting over a large cold fusion project to php. CF has a tag called cflocation which lets you jump to another page/location. Does php have an equivalent? I've been able to get the combo of an include/exit to work in a similar fashion, it just seems a bit heavy handed. Seems basic, but I didn't see anything else in the docs. TIA, Kelly -- 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] CF convert question..
In the middle of porting over a large cold fusion project to php. How are your experiences so far? Any bigger problems? Missing Features? CF has a tag called cflocation which lets you jump to another page/location. Does php have an equivalent? Yes. Give http://www.php.net/header a try. Daniel -- 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] HTTP_SESSION_VARS
Regarding the same topic of session management, I am using PHP 3.09 and when I call session_start() or $HTTP_SESSION_VARS['someVariable] I get : Fatal error: Call to unsupported or undefined function session_start() So, my question is that: Is there any session management in PHP3.09? If the answer is no, what weould be an alternative? Regards, Ozgur - Original Message - From: Chris O'Brien [EMAIL PROTECTED] To: Ron Clark [EMAIL PROTECTED] Cc: PHP general list [EMAIL PROTECTED] Sent: Friday, November 09, 2001 3:06 AM Subject: Re: [PHP] HTTP_SESSION_VARS I am working on a major PHP project using sessions and would like to run PHP with register_globals turned off. Trouble is, with PHP-4.0.6 I lose all the session variables and my program breaks. Tried - $username = $HTTP_SESSION_VARS['username']; print $username; and got nothing. print_r($HTTP_SESSION_VARS) shows an empty array. Is this a bug in 4.0.6. Try calling session_start(); before trying to grab the session variables, on each page that needs to use the variables. * Chris O'Brien ([EMAIL PROTECTED]) * Excel.Net,Inc. - http://www.excel.net/ * (920) 452-0455 - Sheboygan/Plymouth area * (888) 489-9995 - Other areas, toll-free -- 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 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] HTTP_SESSION_VARS
Regarding the same topic of session management, I am using PHP 3.09 and when I call session_start() or $HTTP_SESSION_VARS['someVariable] I get : Fatal error: Call to unsupported or undefined function session_start() So, my question is that: Is there any session management in PHP3.09? If the answer is no, what weould be an alternative? Native session management arrived with PHP 4.0. If you are stuck with 3.x, you might look at PHPLIB, which has a session management class. The best bet, IMHO, is to upgrade to 4.x, tho. Kirk -- 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] help with Auth in Apache
On Fri, 9 Nov 2001 01:38, Christian Dechery wrote: This is really not a PHP question... but I'm sure there's someone that can help me out... How can I implement a kinda of super-user in Apache with .htaccess... something like, I'd have the following dir tree: / /site1 /site2 /site1/crap /site2/crap2 so I sould create users: site1 and site2 and place .htaccess files in their dirs right? And they would ONLY have access to their respective dirs.. But I want a user that can access ALL the dirs, including / ... how can I do this? thanks... If you mean only being able to ftp into the defined structure, and you are using a unix variant, look into chroot - system command, not php. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA C:\DOS C:\DOS\RUN RUN\DOS\RUN -- 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] Multiple SUBMIT Buttons and Default
Hi I use java script like this: head script language=javascript function highlight() { document.options.continue.focus(); } /script /head body onload=highlight() form name=options action=whatever.php method=post input type=submit name=cancel value=Cancel input type =submit name=continue value=Continue /form /body Tom At 07:51 AM 9/11/01, Jason Caldwell wrote: On some of my forms I have multiple Submit buttons; for example Button1 = Cancel, and Button2 = Continue Is there a way to make one of them the *default* button so that when a user presses their Return / Enter Key, *that default* button will be processed? Thanks. Jason [EMAIL PROTECTED] -- 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 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] Append to STDIN
Hi guys... I have a perl script which adds automatically contents to my html file. I have been done this manualy, from a unix shell, but now I want to make the PHP do-it-for-me. As I already have the perl script, I won't rewrite it again, so, how can I make a PHP variable ($foo) to go to the STDIN? In other words, I want to execute my htmladd.pl with the file argument, and get the STDIN. like echo STDIN| htmladd.pl my_html_file.html But I want to STDIN be a PHP variable, that is because I want to make the updates over the net. Thanks! Hey, sorry for my bad english! Take care! Cleber S. Mori Monitor Lab Linux 2o Ano - Bacharelado em Ciências da Computação ICMC - Instituto de Ciências Matemáticas e de Computação USP - Universidade de São Paulo - São Carlos HPage: http://grad.icmc.sc.usp.br/~cleber/ E-mail: [EMAIL PROTECTED] ICQ/UIN:1409389 -- 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] sessions and SSI
Doesn't sessions work with SSI? I have a page that uses sessions extensively called miec.php... if you call miec.php right out on the browser, the sessions works fine... the session is set and then persists normally... but if a file I have, called demo.shtml, uses a SSI - !--#include virtual=miec.php-- -, then the session stops working... why?? Isn't a SSI supposed to be in a separate process? And the weird thing is... If I call miec.php directly, it sets the session right? So if right after I call demo.shtml, the session is still there and as good as it gets... so, an SSI included file can't create a session, but can use it if it is set by another page? I don't understand... _ . Christian Dechery . . Gaita-L Owner / Web Developer . . http://www.webstyle.com.br . . http://www.tanamesa.com.br -- 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] Append to STDIN
On Fri, 9 Nov 2001 11:58, Cleber S. Mori wrote: Hi guys... I have a perl script which adds automatically contents to my html file. I have been done this manualy, from a unix shell, but now I want to make the PHP do-it-for-me. As I already have the perl script, I won't rewrite it again, so, how can I make a PHP variable ($foo) to go to the STDIN? In other words, I want to execute my htmladd.pl with the file argument, and get the STDIN. like echo STDIN| htmladd.pl my_html_file.html But I want to STDIN be a PHP variable, that is because I want to make the updates over the net. Thanks! Hey, sorry for my bad english! Take care! Look at exec(), system() and perhaps the use of backticks [``] to executa a command and pass a variable. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA I put all my money into an IRA, Tom said interestedly. -- 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] html2pdf
On Tue, 6 Nov 2001, Valentin V. Petruchek wrote: Hello everyone! I'm looking for powerful (e.g. table and css support) generator html2pdf, preferable written in php. Well it's not written in PHP, but it works well enough with it: http://www.easysw.com/htmldoc It's a good package, the table support was good enough for my uses, though I don't know how well css is supported. -burk -- [EMAIL PROTECTED] -- 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] Part Time PHP/MySQL Work Available in Wash. DC
I don't know of a better place to post this. I have a part time position available in Northern Virginia. You MUST be into European cars. MUST work local, NO REMOTE inquiries please. All types of PHP/MySQL work needed. Helpful if you know Perl and Postgres. Rate commensurate w/ experience. Email me w/ qualifications, reference links, etc. Thanks, Charlie -- 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] email receipt confirmation
Hi all, I have a form which sends off the contents of a page as an HTML formatted email. However, it appears that certain attempts to send these emails never show up at the intended email address even though no errors are reported upon sending while others work perfectly. It there any way to confirm if an email was received (opened/read) using headers or some other method? Thanks -Merle -- 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] Want to remove some special from text
I want to remove all html related tags, such as html/htmlbody/bodytable... etc But want to keep the rest data as it is. Just want to remove those tags. Any idea how to do it ? manisha
Re: [PHP] email receipt confirmation
Using standard internet mail, no. You can *request* that a read receipt be sent when the email is opened by the recipient, but there is no guarantee that that person will allow the receipt to be sent. Read receipts also often annoy the recipient and can be perceived as rude and intrusive. You could try something fancy with HTML mail, but again, that's not guaranteed since not all MUAs can (or do) understand HTML mail. --kurt On Thursday 08 November 2001 08:02 pm, you wrote: Hi all, I have a form which sends off the contents of a page as an HTML formatted email. However, it appears that certain attempts to send these emails never show up at the intended email address even though no errors are reported upon sending while others work perfectly. It there any way to confirm if an email was received (opened/read) using headers or some other method? Thanks -Merle -- 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] Want to remove some special from text
http://www.php.net/manual/en/function.strip-tags.php On Thursday 08 November 2001 08:01 pm, you wrote: I want to remove all html related tags, such as html/htmlbody/bodytable... etc But want to keep the rest data as it is. Just want to remove those tags. Any idea how to do it ? -- 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] Troubles compiling Apache with PHP4
Hello, I am trying to compile apache_1.3.19 with php4.06 and mysql 3.23.43 I am running Slackware with kernel version 2.2.13 I have mysql up and running without troubles. With PHP I ran; ./configure --with-mysql=../mysql --with-apache=/var/lib/apache_1.3.19 --with-ftp make make install Then I go into /var/apache_1.3.19 and run; ./configure --prefix=/var/lib/apache --activate-module=src/modules/phph4/libphp4.a This completes without error, then when I run 'make' (in /var/lib/apache_1.3.19)I get the following; /usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function 'my_compress_alloc': my_compress.o(.txt+0x12a): undefined reference to 'compress' collect2: id returned 1 exit status make[2]: ***[target_static] Error 1 make[1]: ***[build-std] Error 2 make: ***[build] Error 2 What am I missing? any help would be appreciated, Thanks Eric -- 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] Append to STDIN
Hi again... I had already RTFM... Neither in exec or ``'s I found any thing about STDIN... I just wondered if some one have any tips. thanks again! Cleber S. Mori Monitor Lab Linux 2o Ano - Bacharelado em Ciências da Computação ICMC - Instituto de Ciências Matemáticas e de Computação USP - Universidade de São Paulo - São Carlos HPage: http://grad.icmc.sc.usp.br/~cleber/ E-mail: [EMAIL PROTECTED] ICQ/UIN:1409389 -- 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] Append to STDIN
this wouldn't be something similar to C's ungetch() ?? -Original Message- From: Cleber S. Mori [mailto:[EMAIL PROTECTED]] Sent: Friday, November 09, 2001 3:16 PM To: [EMAIL PROTECTED] Subject: [PHP] Append to STDIN Hi again... I had already RTFM... Neither in exec or ``'s I found any thing about STDIN... I just wondered if some one have any tips. thanks again! Cleber S. Mori Monitor Lab Linux 2o Ano - Bacharelado em Ciências da Computação ICMC - Instituto de Ciências Matemáticas e de Computação USP - Universidade de São Paulo - São Carlos HPage: http://grad.icmc.sc.usp.br/~cleber/ E-mail: [EMAIL PROTECTED] ICQ/UIN:1409389 -- 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] Re: Forking and BG processes in PHP
Massimiliano Bariola wrote: Hello Yasuo, Tuesday, November 06, 2001, 12:12:59 PM, you wrote: YO *SNIP* YO Try to redirect stdout stderr to /dev/null (If you are on Unix YO like systems) YO Then it will return immediately to PHP. YO -- YO Yasuo Ohgaki Sorry Yasuo, but I don't understand well what you mean. Can you clarify? thank you For example system('/usr/bin/find / -name core /dev/null 21 '); if you would like to take a look at output system('/usr/bin/find / -name core /tmp/corefiles 21 '); 'find / -name core' should take some time, but system() will return immediately when you redirect stdout/stderr to files and put the command background. -- Yasuo Ohgaki _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- 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 echo data in a textarea
Could someone please show me how to echo data into a textarea field of a form? e.g. I have used the following in text fields: input type=text name=id value=? echo $id; ? size=3 maxlength=3, but textareas don't have the value attribute and I haven't been able to come up with a way that works or find a working example. Thanks, SW -- 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] Re: pass javascript variable to php?
A. Dixon wrote: So say I have a link on the page that the checkbox is on to a file called program.php How would I add name value pairs to the querystring when someone clicks on the checkbox? Then when I click on the link program.php it should read program.php?checkbox1=on where checkbox1 is the name of the checkbox that is selected. When you can use JavaScript, you can set/get any query string with location object and can make a new request with the query string. You can catch any event that JavaScript supports including click at checkbox,etc, to change query string, to make a new request, etc. Try to take a look at JavaScript book/reference, you'll see how it can be done :) -- Yasuo Ohgaki Thanks, Aaron On Thu, 8 Nov 2001, Yasuo Ohgaki wrote: Aaron wrote: I've got checkbox that I get the status of with javascript and I put the status into a javascript variable. How do I get that variable over to php? I don't want to hit the submit button to get the variable into php. Use query string or cookie. Just becareful with cookie isn't on always and has limitations. You cannot use too large query string also. _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- 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] how to echo data in a textarea
No problem: TEXTAREA NAME=Note ROWS=4 COLS=40 Here is the default text that will appear in the text box. /TEXTAREA Later, Jeff At 06:40 PM 11/8/01 -0500, Scott wrote: Could someone please show me how to echo data into a textarea field of a form? e.g. I have used the following in text fields: input type=text name=id value=? echo $id; ? size=3 maxlength=3, but textareas don't have the value attribute and I haven't been able to come up with a way that works or find a working example. Thanks, SW -- 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] how to echo data in a textarea
Scott try this is standard html, you will find this out even if you open Wintendo Frontpage textarea rows=3 name=namehere cols=30? echo $text; ?/textarea really you should be able to write html before learning php Regards Chris Kay - Tech Support - IDEAL Internet email: [EMAIL PROTECTED] phone: +61 2 4628 fax: +61 2 4628 8890 -Original Message- From: Scott [mailto:[EMAIL PROTECTED]] Sent: Friday, November 09, 2001 10:40 AM To: [EMAIL PROTECTED] Subject: [PHP] how to echo data in a textarea Could someone please show me how to echo data into a textarea field of a form? e.g. I have used the following in text fields: input type=text name=id value=? echo $id; ? size=3 maxlength=3, but textareas don't have the value attribute and I haven't been able to come up with a way that works or find a working example. Thanks, SW -- 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 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] *.png - wrapping text
I'm playing with some code to put text on an image: http://www.collegeSherbrooke.qc.ca/languesmodernes/course/image/marc.php Because I'm using a fixed font, I know I don't want to go over 34 characters per line. I calculate my maximum number of chatraacters to be 476. How can I parse $string to wrap, keeping in mind spaces between words and the occasional \n that $string might contain? I know it would have somethig to do with strlength and exploding to count spaces, but ... ? Thanks, John Here is the code I am playing with: ?php Header(Content-type: image/png); //$string=implode($argv, ); $string=1234567890123456789012345678901234; //$string=urldecode($string); $im = imagecreatefrompng(button1.png); $orange = ImageColorAllocate($im, 255, 0, 64); $px = (imagesx($im)-7.5*strlen($string))/2; //image //font built-in //position x //position y //string //colour // ImageString($im,3,$px,9,$string,$orange); ImageString($im,3,241,30,$string,$orange); ImageString($im,3,241,40,$string,$orange); Imagepng($im); ImageDestroy($im); ? -- 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] Download script - sometime works sometime not
Its works for file .html or.zip or .tar or .tar.gz But it is not for text file.. Could you recommend how I download text file ? What do I have to do in my scripts...? I read the manual about HTTP functionsand search through mailing list about header functions but still no clue.. Thank you... - Original Message - From: speedboy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 07, 2001 3:16 PM Subject: Re: [PHP] Download script - sometime works sometime not My problem,...this script works with somefile but sometime it does not ! Is the problem related to php.ini or apache configuration ? I think you'll find it's a browser problem. I have given up on trying to do anything like this. It just doesn't work except for very simple browsers. I tested it on lynx and it's perfect. On IE and Netscape, Mozilla you get varying results. -- 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 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] Download script - sometime works sometime not
Its works for file .html or.zip or .tar or .tar.gz But it is not for text file.. Could you recommend how I download text file ? What do I have to do in my scripts...? I read the manual about HTTP functionsand search through mailing list about header functions but still no clue.. Thank you... If you send a text file, MSIE will probably view it anyway. Netscape will behave. Alternative? Send a completely madeup mime type, forcing MSIE to go into download mode. Jason -- 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] Looking for security annoucements
Hi, I'm running a PHP/mySQL site which has been hacked twice this week :-((( I'm not so bad at security but I don't know any active resource to be aware of hole in PHP and/or MySQL, which forum/newsgroup/list wouldbe advice? Nice day to all, by the way.. Jimmy Carpe diem...today is another - good - day :))) -- 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] Looking for security annoucements
Hi Jimmy, @ 2:08:09 AM on 11/9/01, Jimmy wrote: I'm running a PHP/mySQL site which has been hacked twice this week :-((( I'm not so bad at security but I don't know any active resource to be aware of hole in PHP and/or MySQL, which forum/newsgroup/list wouldbe advice? Would you happen to be running PHP-Nuke? -- -Brian Clark | PGP is spoken here: 0xE4D0C7C8 Please, DO NOT carbon copy me on list replies. -- 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] Looking for security annoucements
Am Freitag, 9. November 2001 08:14 schrieb Brian Clark: Hi Jimmy, @ 2:08:09 AM on 11/9/01, Jimmy wrote: I'm running a PHP/mySQL site which has been hacked twice this week :-((( I'm not so bad at security but I don't know any active resource to be aware of hole in PHP and/or MySQL, which forum/newsgroup/list wouldbe advice? Would you happen to be running PHP-Nuke? Perhaps this would help a bit: http://softwaredev.earthweb.com/script/article/0,,12063_918141,00.html -- WA-P: Programmierung - Beratung - Hosting Stuttgarter Strasse 3 - D-73033 Göppingen http://internet.wa-p.de - [EMAIL PROTECTED] -- 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] Looking for security annoucements
@ 2:14:00 AM on 11/9/01, Brian Clark wrote: I'm running a PHP/mySQL site which has been hacked twice this week :-((( I'm not so bad at security but I don't know any active resource to be aware of hole in PHP and/or MySQL, which forum/newsgroup/list wouldbe advice? Would you happen to be running PHP-Nuke? Gotta go - Nevertheless, these are must reads: http://www.cgisecurity.com/papers/fingerprint-port80.txt http://www.securereality.com.au/studyinscarlet.txt http://www.php.net/manual/en/security.php You also might want to subscribe to Bugtraq: http://www.securityfocus.com/cgi-bin/subscribe.pl There was a PHP-Nuke advisory dated Nov 8 on Bugtraq: Copying and Deleting Files Using PHP-Nuke And if you do run PHP-Nuke: http://www.phpnuke.org/forums/viewforum.php?forum=539 http://www.phpnuke.org/forums/index.php (Not sure what happened to that site, but they used to have `Topics' with security announcements. Looks like a ghost town..) -- -Brian Clark | PGP is spoken here: 0xE4D0C7C8 Please, DO NOT carbon copy me on list replies. -- 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] MySQL/PHPMyAdmin
-Brian Clark | PGP is spoken here: 0xE4D0C7C8 Please, DO NOT carbon copy me on list replies. :) Then add .delete to your return address : [EMAIL PROTECTED] (Brian Clark) Anybody know of a good MySQL/PHPMyAdmin provider where I can get myself a cheap account? J -- 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]