php-general Digest 29 Jul 2005 10:24:49 -0000 Issue 3594

2005-07-29 Thread php-general-digest-help
php-general Digest 29 Jul 2005 10:24:49 - Issue 3594 Topics (messages 219563 through 219584): Re: Debugging mail() 219563 by: Todd Cary 219564 by: Philip Hallstrom 219565 by: Todd Cary Dropdown Building Function 219566 by: Jack Jackson Re: PHP form not

[PHP] PHP noobie

2005-07-29 Thread Bob Stia
Hello PHP list First allow me to apologize if this is the wrong place for this and direct me to the proper place. (be nice now!) I know nothing about PHP and have read at least 100 faqs and googled for hours. I don't even know some of the basics. Allow me to explain. I am the webmaster for a

[PHP] Re: How Can I send mail in php in HTML format?

2005-07-29 Thread Manuel Lemos
Hello, on 07/28/2005 04:30 PM Tomás Rodriguez Orta said the following: Hello friends. How Can I send mail from php in HTML format?. I use the mail() function, but I dont know doing.somebody can I help me? You may want to take a look at this class that can compose and send HTML messages, if

Re: [PHP] PHP noobie

2005-07-29 Thread Dotan Cohen
On 7/29/05, Bob Stia [EMAIL PROTECTED] wrote: Hello PHP list First allow me to apologize if this is the wrong place for this and direct me to the proper place. (be nice now!) I know nothing about PHP and have read at least 100 faqs and googled for hours. I don't even know some of the

Re: [PHP] PHP noobie

2005-07-29 Thread Mary-Anne Nayler
I've used Cutenews before and found it to be ok: http://www.cutephp.com/ Bob Stia wrote, On 29/07/05 08:47 AM: Hello PHP list First allow me to apologize if this is the wrong place for this and direct me to the proper place. (be nice now!) I know nothing about PHP and have read at least

Re: [PHP] PHP noobie

2005-07-29 Thread Jochem Maas
Bob Stia wrote: Hello PHP list First allow me to apologize if this is the wrong place for this and direct me to the proper place. (be nice now!) this list is really for people who are programmning in php. as you describe it your looking for a php solution as an end user, so no this is not

Re: [PHP] function with argument of type array

2005-07-29 Thread Jochem Maas
Marcus Bointon wrote: On 28 Jul 2005, at 12:07, André Medeiros wrote: On Thu, 2005-07-28 at 11:08 +0200, marc serra wrote: Hi, i want to know if it is possible to create a function and declare that one of its arguments is array type. In fact i want to do something like this function

[PHP] time()

2005-07-29 Thread virtualsoftware
Hi, I have the date when users registered stored in the database using time() function format. I have to search for users that are registered this week, this month and this year. How can i do that? I mean how can i found the beginning of this week? Or the beginning of this month? Thanks in

Re: [PHP] function with argument of type array

2005-07-29 Thread Marcus Bointon
On 29 Jul 2005, at 08:19, Jochem Maas wrote: unless String is a class you defined that won't work at all. basic data types cannot be hinted (e.g. bool, int, string, float) There's been quite a bit about this on php-internals. It seems to be because PHP doesn't differentiate between these

Re: [PHP] time()

2005-07-29 Thread Marcus Bointon
On 29 Jul 2005, at 08:37, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have the date when users registered stored in the database using time() function format. Hm. I hope this means you're storing it as a TimeStamp format, or better, DateTime, and not as a simple integer field. I have

RE: [PHP] safe mode

2005-07-29 Thread Kim Madsen
-Original Message- From: Bostjan Skufca @ domenca.com [mailto:[EMAIL PROTECTED] Sent: Thursday, July 28, 2005 1:38 PM I would *never* host anything on a server with safe_mode on! What are your reasons for this decision? I correted it in a mail 5 minutes after. With safe_mode

Re: [PHP] function with argument of type array

2005-07-29 Thread Jochem Maas
Marcus Bointon wrote: On 29 Jul 2005, at 08:19, Jochem Maas wrote: unless String is a class you defined that won't work at all. basic data types cannot be hinted (e.g. bool, int, string, float) There's been quite a bit about this on php-internals. It seems to be because PHP doesn't

[PHP] Visit to Germany

2005-07-29 Thread DL Neil, Newsletter a/c
Greetings, I'm hoping to visit the Stuttgart area* for one week ~ ten days commencing c.Friday 19 August, to visit my brother-in-law and take a short vacation. If there are any PHP-related gatherings or activities I would be interested to meet up (last time I tried, I missed out by one

[PHP] overwrite private class members in php5?

2005-07-29 Thread Norbert Wenzel
Hi, I've done something like this: class MyClass { private $var; function __construct($value) { $this-var = $value; } public function printVar() { echo($this-var); } } $object = new MyClass('1'); $object-printVar(); // prints 1 $object-var = 3; // Fatal Error as expected

[PHP] Re: overwrite private class members in php5?

2005-07-29 Thread Norbert Wenzel
Norbert Wenzel wrote: public function printVar() { echo($this-var); } I have to do a little correction, i wrote $this-$var to see the variable, otherwise i don't see anything. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] overwrite private class members in php5?

2005-07-29 Thread Rasmus Lerdorf
Norbert Wenzel wrote: Hi, I've done something like this: class MyClass { private $var; function __construct($value) { $this-var = $value; } public function printVar() { echo($this-var); } } $object = new MyClass('1'); $object-printVar(); // prints 1

[PHP] PHP and ISMAP

2005-07-29 Thread Michelle Konzack
Hello *, I have a landmap splited into 100x100 pixel parts and show it in a grid of e.g. 8x6. Now I like to use ISMAP to get infos about places on this card. The problem is, that I can not send additonal Card infos like A href=card.php?MAP=offenburgCARD=00041_00037 IMG

[PHP] pgp-gd and netpbm (pamdice)

2005-07-29 Thread Michelle Konzack
Hello *, I like to upload new topographical maps into my System and split it into smaller parts. Curently I am using exec() to do the Job, but like to use php native tools to do the Job. Also I need better naming schemes as netpbm (pamdice) do. Exactly I will like to give a horizontal vertical

[PHP] Fundamental question about ADTs

2005-07-29 Thread Jasper Bryant-Greene
Hi all Recently I've been reading /Code Complete/ by Steve McConnell, and in it he recommends the use of ADTs, or Abstract Data Types, which I have been thinking about implementing in a major project I am currently embarking on. Basically the question that I have for the list is this: If I

Re: [PHP] PHP noobie

2005-07-29 Thread Miles Thompson
Bob, Try two things: 1. create a small file, name it phpinfo.php, which consists of these lines: ? phpinfo(); ? 2. upload it to your web site 3. run it - http://www.your.url/phpinfo.php where www.your.url is the address of yorur site. A. If PHP is installed, you will get a page full of

Re: [PHP] Fundamental question about ADTs

2005-07-29 Thread Miles Thompson
Because the OOP religion requires everything to be done with methods? Remember CC comes from the MSFT world, not the PHP corner of it. And in the larger world, public properties of your class, such as Caption, have corresponding local vars such as m_caption. That is, Caption is not

Re: [PHP] Fundamental question about ADTs

2005-07-29 Thread Jochem Maas
Jasper Bryant-Greene wrote: Hi all Recently I've been reading /Code Complete/ by Steve McConnell, and in it he recommends the use of ADTs, or Abstract Data Types, which I have been big words :-) guess it means he can charge more per hour ;-) thinking about implementing in a major project

[PHP] is it possible.

2005-07-29 Thread jenny mathew
hello group, i have a problem and hope anybody here will be able to hep me out. i have a downloads folder in my server which contains all the files in zipped form to be downloaded by members.members are authenticated by entering username and password.and when they click to download the files

Re: [PHP] is it possible.

2005-07-29 Thread André Medeiros
When deppending on authentication, never link the files directly. You can create a download.php file that gets an ID through the URL, checks if the user is authenticated and then read the file. You will need these functions: http://pt.php.net/file_get_contents http://pt.php.net/header Header()

Re: [PHP] PHP and ISMAP

2005-07-29 Thread André Medeiros
Why not using a rewrite rule that would point to an index.php or somesuch? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php mysql field update not looping properly ..

2005-07-29 Thread Gregory Machin
Hi please could you advise.. I'm trying to prase a column in a table, to grep each field's contens, one contains a web page, and there are about 1000 pages in the column, thus they have to be one at a time so as not to over load the server /php .. the script below , gets an array of the table

[PHP] php array and java fold out menu

2005-07-29 Thread Gregory Machin
Hi . Please could you advise. I'm insearch of a java fold out menu that looks good, and can acept an array containg the links and link names etc from a php array ... i havent worked in java script yet so please help :-)... Many thanks -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED]

[PHP] Re: PHP and ISMAP

2005-07-29 Thread Michelle Konzack
Please no CC, I am on the list. Am 2005-07-29 14:20:47, schrieb André Medeiros: Why not using a rewrite rule that would point to an index.php or somesuch? And then ? I have e.g. 8x6 click maps, pointing all to the same index.php ? How do the CGI know on which map I have clicked ? And using

Re: [PHP] Re: PHP and ISMAP

2005-07-29 Thread André Medeiros
On Fri, 2005-07-29 at 14:47 +0200, Michelle Konzack wrote: Please no CC, I am on the list. Am 2005-07-29 14:20:47, schrieb André Medeiros: Why not using a rewrite rule that would point to an index.php or somesuch? And then ? I have e.g. 8x6 click maps, pointing all to the same

Re: [PHP] PHP and ISMAP

2005-07-29 Thread Jochem Maas
Michelle Konzack wrote: Hello *, I have a landmap splited into 100x100 pixel parts and show it in a grid of e.g. 8x6. Now I like to use ISMAP to get infos about places on this card. The problem is, that I can not send additonal Card infos like A href=card.php?MAP=offenburgCARD=00041_00037

[PHP] logging in using ssl

2005-07-29 Thread Gregory Machin
Hi Please advise . I have a site that needs to move over to ssl only when the user login authenticates the log in .. How would i go about this, the cms is exponent writen in php.. Many Thanks -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za Web Hosting Solutions Scalable

[PHP] help with ORDER BY query

2005-07-29 Thread Jesús Alain Rodríguez Santos
I have a query: $query = mysql_query(SELECT event FROM table WHERE month = 'x' ORDER BY day ASC); I have all days of the month insert in day field: 1, 2, 3, 4, 5 ... when I print the query: if ($query_r = mysql_fetch_array($query)) { do { echo td width='8%'.$query_r['event']./td\n; }

RE: [PHP] help with ORDER BY query

2005-07-29 Thread Carlo Razzeto
The following line: $query_r = mysql_fetch_array($query) Will pop off the first result from the query, you can avoid this problem by using mysql_num_rows instead: if( mysql_num_rows( $query ) 0 )... Carlo Razzeto Programmer Mortgage Information Services Phone: (216) 514-1025 ex. 1212

Re: [PHP] Including Check box ifo in PHP mail

2005-07-29 Thread Chirantan Ghosh
Hi Everybody, The reference PHP is http://www.primarywave.com/BrokerOutpost_Contact.php. I want it have Checkbox like http://www.primarywave.com/BrokerOutpost_Contact.htm have it sent vis POST form action like the PHP sited before. My ignorace is getting the best of me do help please. The

Re: [PHP] help with ORDER BY query

2005-07-29 Thread André Medeiros
if( mysql_num_rows( $query_r ) 0 ) { while( $currentResult = mysql_fetch_array( $query_r ) ) { // do something with the result. } } else { echo 'No results.'; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] help with ORDER BY query

2005-07-29 Thread John Nichel
Jesús Alain Rodríguez Santos wrote: I have a query: $query = mysql_query(SELECT event FROM table WHERE month = 'x' ORDER BY day ASC); I have all days of the month insert in day field: 1, 2, 3, 4, 5 ... when I print the query: if ($query_r = mysql_fetch_array($query)) { -^

Re: [PHP] PHP noobie

2005-07-29 Thread John Nichel
Bob Stia wrote: Hello PHP list First allow me to apologize if this is the wrong place for this and direct me to the proper place. (be nice now!) I know nothing about PHP and have read at least 100 faqs and googled for hours. I don't even know some of the basics. The fact that you've

Re: [PHP] logging in using ssl

2005-07-29 Thread Dotan Cohen
On 7/29/05, Gregory Machin [EMAIL PROTECTED] wrote: Hi Please advise . I have a site that needs to move over to ssl only when the user login authenticates the log in .. How would i go about this, the cms is exponent writen in php.. Many Thanks -- Gregory Machin [EMAIL PROTECTED] [EMAIL

Re: [PHP] is it possible.

2005-07-29 Thread jenny mathew
i used following code for downloading file.whenever the members cicked the file for downloading ,the download request (with the variable containing file id) was send to download.php .The download.php on recieving the file id fetches the url of the fileand redirects to the file url using

[PHP] isUserInRole equivalent in PHP

2005-07-29 Thread Saqib Ali
Hello All, Java has a function to check if the logged in user is assigned a certain Roles in LDAP. The function is called: isUserInRole http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpServletRequestWrapper.html#isUserInRole(java.lang.String) Is there a PHP equivalent of

[PHP] Sessions Issue

2005-07-29 Thread Tom Ray [Lists]
We built a box about 7 months or so ago using the SuSE 9.1 cd's, straight install from the CDs. While I've read that sessions are turned on by default, when we try to call on the sessions functions (like with phpOpenChat or start_session()) we get calls to undefined function errors. This is

RE: [PHP] isUserInRole equivalent in PHP

2005-07-29 Thread Jay Blanchard
[snip] Java has a function to check if the logged in user is assigned a certain Roles in LDAP. The function is called: isUserInRole http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSer vletRequestWrapper.html#isUserInRole(java.lang.String) Is there a PHP equivalent of this?

Re: [PHP] Sessions Issue

2005-07-29 Thread John Nichel
Tom Ray [Lists] wrote: We built a box about 7 months or so ago using the SuSE 9.1 cd's, straight install from the CDs. While I've read that sessions are turned on by default, when we try to call on the sessions functions (like with phpOpenChat or start_session()) we get calls to undefined

Re: [PHP] isUserInRole equivalent in PHP

2005-07-29 Thread Saqib Ali
Have you checked http://www.php.net/ldap ? yes. couldn't find one. i can implement the function myself. i was just wondering if there is something already available. -- In Peace, Saqib Ali http://www.xml-dev.com/blog/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] PHP Spider/Crawler for Emails possible?

2005-07-29 Thread Chirantan Ghosh
Hi, I was wondering if one could create Spiders/Crawlers in PHP? I need for the PHP code to email me a list of emails, of domains listed in that page. Is this possible? Thanks, C -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP Spider/Crawler for Emails possible?

2005-07-29 Thread Jay Blanchard
[snip] I was wondering if one could create Spiders/Crawlers in PHP? [/snip] Yes. [snip] I need for the PHP code to email me a list of emails, of domains listed in that page. Is this possible? [/snip] Yes. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] PHP Spider/Crawler for Emails possible?

2005-07-29 Thread Chirantan Ghosh
Hello Jay, Pardon my ignorance but can you enlighten me a little more please? Like where can I look for them or how to code? As always all members are more than welcome to ask me for graphics I hope to be benevolent that way. Thanks a lot, C - Original Message - From: Jay Blanchard

Re: [PHP] PHP Spider/Crawler for Emails possible?

2005-07-29 Thread John Nichel
Jay Blanchard wrote: [snip] I was wondering if one could create Spiders/Crawlers in PHP? [/snip] Yes. [snip] I need for the PHP code to email me a list of emails, of domains listed in that page. Is this possible? [/snip] Yes. Imagine that. ;) -- John C. Nichel ÜberGeek KegWorks.com

RE: [PHP] PHP Spider/Crawler for Emails possible?

2005-07-29 Thread Jim Moseby
Hi, I was wondering if one could create Spiders/Crawlers in PHP? I need for the PHP code to email me a list of emails, of domains listed in that page. Is this possible? Of course it is, but I'm afraid you might crawl the web, collect email addresses, and send spam to the good people,

RE: [PHP] PHP Spider/Crawler for Emails possible?

2005-07-29 Thread Jay Blanchard
[snip] Pardon my ignorance but can you enlighten me a little more please? Like where can I look for them or how to code? [/snip] Start here http://www.php.net/file_get_contents [snip] As always all members are more than welcome to ask me for graphics I hope to be benevolent that way. [/snip] I

Re: [PHP] PHP Spider/Crawler for Emails possible?

2005-07-29 Thread tg-php
You might get a cold response because it sounds like you're asking if you can write a program in PHP that harvests email addresses from web pages. Typically this would be used for mass email marketing aka 'spam'. Not a lot of people want to support that kind of programming project. But maybe

[PHP] Calendar program like on php.net

2005-07-29 Thread Reuben D. Budiardja
Hello, Anyone knows a simple calendar program that will let people to add event, and then after the event is approved by webmaster / moderator, the event would be added to the calendar ? Just like the calendar for Upcoming Events on www.php.net. What program is that ? I've looked at

RE: [PHP] PHP Spider/Crawler for Emails possible?

2005-07-29 Thread Jay Blanchard
[snip] Of course it is, but I'm afraid you might crawl the web, collect email addresses, and send spam to the good people, or sell their email adresses to someone else who will. [/snip] Why be afraid? That's just paranoid. I also noticed that the thread started as a RE:, was this thread

RE: [PHP] PHP Spider/Crawler for Emails possible?

2005-07-29 Thread Jim Moseby
[snip] Of course it is, but I'm afraid you might crawl the web, collect email addresses, and send spam to the good people, or sell their email adresses to someone else who will. [/snip] Why be afraid? That's just paranoid. I also noticed that the thread started as a RE:, was this

RE: [PHP] Calendar program like on php.net

2005-07-29 Thread Jim Moseby
Hello, Anyone knows a simple calendar program that will let people to add event, and then after the event is approved by webmaster / moderator, the event would be added to the calendar ? Just like the calendar for Upcoming Events on www.php.net. What program is that ? I've

Re: [PHP] PHP Spider/Crawler for Emails possible?

2005-07-29 Thread Chirantan Ghosh
Hi Jay Jim, Let me apologize for mis-communication. I HATE sp#ammers like any normal being in the net. What I intend to do is build a customer forum(Purely opted in) People come to a web page deliberately add their Real Estate website and sign up for our product news letter. Real estate

Re: [PHP] PHP Spider/Crawler for Emails possible?

2005-07-29 Thread Saqib Ali
Why code this yourself, when Google can do it for you. Google provides an API for this. See the book called Google Hacks for details. I was wondering if one could create Spiders/Crawlers in PHP? I need for the PHP code to email me a list of emails, of domains listed in that page. -- In

Re: [PHP] PHP Spider/Crawler for Emails possible?

2005-07-29 Thread eoghan
On 29 Jul 2005, at 19:16, Jay Blanchard wrote: I also noticed that the thread started as a RE:, was this thread hijacked? yeah... was PHP noobie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Spider/Crawler for Emails possible?

2005-07-29 Thread tg-php
I guess my question at this point is that it sounds like you have control of the system. Why not have it so when they enter their email address, they can check a box saying Add me to your mailing list.. and it'll put them directly into the database? Why the need to parse already built

Re: [PHP] PHP Spider/Crawler for Emails possible?

2005-07-29 Thread Chirantan Ghosh
Hi TG, I do not have the admin to all local sites. Well calling it doomsday device sure should scare anyone who believes email privacy but I HARDLY think an Image Designer of my coding capability can manage any harm even indenting so. I just don't have enough tech knowledge hence, the appeal

Re: [PHP] PHP code in a MySQL record

2005-07-29 Thread Kristen G. Thorson
Is there a particular reason you need *PHP* in the database? If not, then use a placeholder system of some sort ( like #var# ) and str_replace(): while( $row=mysql_fetch_row($result) ) { echo str_replace( '#var#', $that_var, $row['entry'] ); } kgt Nathaniel Hall wrote: I am working

Re: [PHP] Dropdown Building Function

2005-07-29 Thread Jack Jackson
Hi, can anyone even point me in a *direction*? I suppose this is the most complex thing I've ever tried to do and I have been at it for tens of hours and am still completely baffled. Jack Jackson wrote: Hi, because that last topic on multipage forms was so exciting, I decided to database

[PHP] Safe mode subdirectory workaround patch

2005-07-29 Thread Bostjan Skufca
Hi everyone, I created a patch which enables subdirectories to be created and used even if PHP is running with safe mode enabled (common problem on shared hosts where Apache/PHP runs as user 'nobody' or 'www'). Patch can be found here: http://www.lenivec.com/php/patches/ Comments are welcome!

RE: [PHP] Dropdown Building Function

2005-07-29 Thread Jay Blanchard
[snip] Hi, can anyone even point me in a *direction*? I suppose this is the most complex thing I've ever tried to do and I have been at it for tens of hours and am still completely baffled. Jack Jackson wrote: Hi, because that last topic on multipage forms was so exciting, I decided to

Re: [PHP] Safe mode subdirectory workaround patch

2005-07-29 Thread John Nichel
Bostjan Skufca wrote: Hi everyone, I created a patch which enables subdirectories to be created and used even if PHP is running with safe mode enabled (common problem on shared hosts where Apache/PHP runs as user 'nobody' or 'www'). Patch can be found here:

Re: [PHP] Dropdown Building Function

2005-07-29 Thread Kristen G. Thorson
I'm not 100% sure where you're saying you're stuck, but I think you're trying to do with one query what you will probably find is best to do with several. Hopefully the following will help some: //first get all the questions $sql = select * from questions; $result = mysql_query( $sql );

Re: [PHP] Dropdown Building Function

2005-07-29 Thread Jack Jackson
Hi, Jay, I see perhaps I *was* thinking too complex. However this is *just* a bit off: Jay Blanchard wrote: [snip] Hi, can anyone even point me in a *direction*? I suppose this is the most complex thing I've ever tried to do and I have been at it for tens of hours and am still completely

Re: [PHP] Dropdown Building Function

2005-07-29 Thread Jack Jackson
Kristen, Thank you so much this is precisely what I was trying to accomplish. However I was also trying to learn how to do it with those arrays you mentioned which I figure will help me emerge from total newbieness. To date, I hope the list has seen I've progressed from absolutely *no*

Re: [PHP] is it possible.

2005-07-29 Thread Gorm
You could copy the file to a temp-file file_id.zip and delete it after download. But perhaps it is possible to just have the file in cache ? jenny mathew wrote: i used following code for downloading file.whenever the members cicked the file for downloading ,the download request (with the

[PHP] print value from db

2005-07-29 Thread Jesús Alain Rodríguez Santos
Hi, I have a table with: month, day, year, value I need to print every value corresponding to a day, for example: value[day1], if exist.. value[day2], if exist.. vale... etc It is possible? -- Este mensaje ha sido analizado por MailScanner en busca de virus y otros contenidos

RE: [PHP] print value from db

2005-07-29 Thread Jay Blanchard
[snip] Hi, I have a table with: month, day, year, value I need to print every value corresponding to a day, for example: value[day1], if exist.. value[day2], if exist.. vale... etc It is possible? [/snip] Welcome to Is It Possible Day at the PHP Ranch. :) Yes, it is possible to print

Re: [PHP] is it possible.

2005-07-29 Thread Matt Darby
jenny mathew wrote: hello group, i have a problem and hope anybody here will be able to hep me out. i have a downloads folder in my server which contains all the files in zipped form to be downloaded by members.members are authenticated by entering username and password.and when they click to

Re: [PHP] Dropdown Building Function

2005-07-29 Thread Jack Jackson
And of course, I am finding that this way of yours is the easiest!! Thanks, again, Kristen JJ Kristen G. Thorson wrote: I'm not 100% sure where you're saying you're stuck, but I think you're trying to do with one query what you will probably find is best to do with several. Hopefully the

Re: [PHP] Dropdown Building Function

2005-07-29 Thread Aaron Greenspan
Jay, This is why I think frameworks are helpful Here's how I'd do it with Lampshade in one line of code with my own hypothetical field names: dropdownBox('answerid', SELECT answerid, CONCAT(questions.description,' - ',answers.description) AS display FROM questions LEFT JOIN answers ON

Re: [PHP] Dropdown Building Function

2005-07-29 Thread Jack Jackson
Aaron, Thanks for showing me this it is very cool indeed. However maybe I am being dumb and obdurate but what I am really trying to do is build some of these things myself (with, thankfully, help) so that I understand enough that when I see a great tool like yours I'll actually appreciate

Re: [PHP] Dropdown Building Function

2005-07-29 Thread David Christensen
On Fri, 2005-07-29 at 15:58 -0400, Jack Jackson wrote: Hi, can anyone even point me in a *direction*? I suppose this is the most complex thing I've ever tried to do and I have been at it for tens of hours and am still completely baffled. Jack Jackson wrote: Hi, because that last

Re: [PHP] Dropdown Building Function

2005-07-29 Thread Jack Jackson
Kristen G. Thorson wrote: I'm not 100% sure where you're saying you're stuck, but I think you're trying to do with one query what you will probably find is best to do with several. Hopefully the following will help some: //first get all the questions $sql = select * from questions;

[PHP] Automated Numerical Filenames for Directory

2005-07-29 Thread Smittie
Hi everybody Have this headache and hope there is someone that can help: I need to generate numerical filenames in a directory, first filename being 20001.php The next filename should be 20002.php etc.- no problem and easy enough BUT, if you have files in the directory ; 20001.php 20002.php

Re: [PHP] PHP code in a MySQL record

2005-07-29 Thread André Medeiros
Either what Kris says, or you can use a templating engine. See Smarty (http://smarty.php.net) On 7/29/05, Kristen G. Thorson [EMAIL PROTECTED] wrote: Is there a particular reason you need *PHP* in the database? If not, then use a placeholder system of some sort ( like #var# ) and

[PHP] How to generate MD5 passwords

2005-07-29 Thread Michelle Konzack
Hello *, I like to generate md5 password but I have not found a command or something like this to generate it. Curently I am using $PASSMD5=exec(echo $PASSCLEAR |md5sum) Is there a better way ? Greetings Michelle -- Linux-User #280138 with the Linux Counter, http://counter.li.org/

RE: [PHP] How to generate MD5 passwords

2005-07-29 Thread Martin B. Nielsen
Are you maybe looking for something like this: ? $passwords = test; $pass = md5($passwords); echo $pass; ? The above will output: 098f6bcd4621d373cade4e832627b4f6 as MD5 hash value. For more info, http://se2.php.net/manual/en/function.md5.php Best regards, Martin -Original Message-

[PHP] exec nor shell_exec not doing as expected.

2005-07-29 Thread leonski
Greetings. I've practically worn my eyeballs out trying to figure out a problem and in desperation am posting here in the hope for familiar eyes to guide me, so thanks in advance. check out this code section: if (file_exists($imagefile)) { $execstring =

[PHP] exec / shell_exec issues

2005-07-29 Thread leonski
Greetings. I've practically worn my eyeballs out trying to figure out a problem and in desperation am posting here in the hope for familiar eyes to guide me, so thanks in advance. check out this code section: if (file_exists($imagefile)) { $execstring =

Re: [PHP] exec / shell_exec issues

2005-07-29 Thread Robert Cummings
On Fri, 2005-07-29 at 20:49, leonski wrote: Greetings. I've practically worn my eyeballs out trying to figure out a problem and in desperation am posting here in the hope for familiar eyes to guide me, so thanks in advance. check out this code section: if (file_exists($imagefile)) {

Re: [PHP] exec / shell_exec issues

2005-07-29 Thread leonski
Robert Cummings wrote: On Fri, 2005-07-29 at 20:49, leonski wrote: Greetings. I've practically worn my eyeballs out trying to figure out a problem and in desperation am posting here in the hope for familiar eyes to guide me, so thanks in advance. check out this code section: if

Re: [PHP] exec / shell_exec issues

2005-07-29 Thread Jason Wong
On Saturday 30 July 2005 08:49, leonski wrote: sh: line 1: /usr/local/bin/mogrify /tmp/phpS1KCen -resize 320x240! : No such file or directory sh: line 1: /usr/local/bin/mogrify /tmp/phpS1KCen -resize 95x72! : No such file or directory beats me how it gets inside the if, if it doesn't

Re: [PHP] exec / shell_exec issues

2005-07-29 Thread leonski
Jason Wong wrote: On Saturday 30 July 2005 08:49, leonski wrote: sh: line 1: /usr/local/bin/mogrify /tmp/phpS1KCen -resize 320x240! : No such file or directory sh: line 1: /usr/local/bin/mogrify /tmp/phpS1KCen -resize 95x72! : No such file or directory beats me how it gets inside the if, if

Re: [PHP] exec / shell_exec issues

2005-07-29 Thread Robert Cummings
On Fri, 2005-07-29 at 22:17, leonski wrote: Jason Wong wrote: On Saturday 30 July 2005 08:49, leonski wrote: sh: line 1: /usr/local/bin/mogrify /tmp/phpS1KCen -resize 320x240! : No such file or directory sh: line 1: /usr/local/bin/mogrify /tmp/phpS1KCen -resize 95x72! : No such file

Re: [PHP] exec / shell_exec issues

2005-07-29 Thread leonski
Robert Cummings wrote: On Fri, 2005-07-29 at 22:17, leonski wrote: Jason Wong wrote: On Saturday 30 July 2005 08:49, leonski wrote: sh: line 1: /usr/local/bin/mogrify /tmp/phpS1KCen -resize 320x240! : No such file or directory sh: line 1: /usr/local/bin/mogrify /tmp/phpS1KCen -resize

[PHP] Re: Automated Numerical Filenames for Directory

2005-07-29 Thread Smittie
Okay - figured it out and have it working now Thanks - Original Message - From: Smittie [EMAIL PROTECTED] To: php-general@lists.php.net Sent: 28 July 2005 10:29 Subject: Automated Numerical Filenames for Directory Hi everybody Have this headache and hope there is someone that can

Re: [PHP] exec / shell_exec issues

2005-07-29 Thread Jason Wong
On Saturday 30 July 2005 10:17, leonski wrote: Jason Wong wrote: On Saturday 30 July 2005 08:49, leonski wrote: sh: line 1: /usr/local/bin/mogrify /tmp/phpS1KCen -resize 320x240! : No such file or directory sh: line 1: /usr/local/bin/mogrify /tmp/phpS1KCen -resize 95x72! : No such file

Re: [PHP] exec / shell_exec issues

2005-07-29 Thread Robert Cummings
On Fri, 2005-07-29 at 22:45, leonski wrote: Robert Cummings wrote: On Fri, 2005-07-29 at 22:17, leonski wrote: Jason Wong wrote: On Saturday 30 July 2005 08:49, leonski wrote: sh: line 1: /usr/local/bin/mogrify /tmp/phpS1KCen -resize 320x240! : No such file or directory sh: line

Re: [PHP] exec / shell_exec issues

2005-07-29 Thread leonski
WAIT - DISREGARD THAT LAST POST - I forgot to // some other debug lines - the output is inconsistent with what I was testing (Robert's code) - I'll do better. leonski wrote: Robert Cummings wrote: On Fri, 2005-07-29 at 22:17, leonski wrote: Jason Wong wrote: On Saturday 30 July

Re: [PHP] exec / shell_exec issues

2005-07-29 Thread leonski
Robert Cummings wrote: On Fri, 2005-07-29 at 22:45, leonski wrote: Robert Cummings wrote: On Fri, 2005-07-29 at 22:17, leonski wrote: Jason Wong wrote: On Saturday 30 July 2005 08:49, leonski wrote: sh: line 1: /usr/local/bin/mogrify /tmp/phpS1KCen -resize 320x240! : No such file