Re: [PHP] Image thumbnail creation

2001-07-09 Thread Ethan Schroeder
You must have the gd library compiled into PHP for this http://www.php.net/manual/en/ref.image.php - Original Message - From: "Steph" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 09, 2001 11:27 AM Subject: [PHP] Image thumbnail creation > Hi all! New to the list and

Re: [PHP] Objects and sessions

2001-07-02 Thread Ethan Schroeder
If what you mean is if PHP sessions can register objects, that is true and quite effective. Ethan Schroeder - Original Message - From: "Brandon Orther" <[EMAIL PROTECTED]> To: "PHP User Group" <[EMAIL PROTECTED]> Sent: Monday, July 02, 2001 4:36 PM Sub

Re: [PHP] reading records alphebetically

2001-06-30 Thread Ethan Schroeder
You can either select the letter you want through mysql with "SELECT * FROM table WHERE name LIKE '$letter%' Or you can select everything: $result = mysql_query("SELECT * FROM table order by name"); while ($row = mysql_fetch_array($result)) { extract($row); $first_letter = strtolower($name[

Re: [PHP] Solution to "headers already sent" error.

2001-06-18 Thread Ethan Schroeder
(PHP4) In your php.ini file: output_buffering = On Now you can send header calls and session calls whenever you want. Also, take a look at: http://www.php.net/manual/en/ref.outcontrol.php Ethan - Original Message - From: "Alexander Wagner" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sen

Re: [PHP] INSERT problem with MySQL/PHP

2001-06-18 Thread Ethan Schroeder
replace $result = mysql_db_query('item_db', $sql_query, $connection_id); with $result = mysql_db_query('item_db', $sql, $connection_id); or just mysql_query($sql); - Original Message - From: "Todd A. Jacobs" <[EMAIL PROTECTED]> To: "PHP General" <[EMAIL PROTECTED]> Sent: Monday, June 18,

Re: [PHP] image retrival from db?

2001-06-18 Thread Ethan Schroeder
I meant to say Header("Content-type: image/gif"); - Original Message - From: "Steve" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 18, 2001 3:56 PM Subject: [PHP] image retrival from db? > Anyone have a pointer to a script or documentation on how to retrieve an > image

Re: [PHP] image retrival from db?

2001-06-18 Thread Ethan Schroeder
You need to set the content type. eg: echo "Content-type: image/gif"; echo $row[image]; Ethan - Original Message - From: "Steve" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 18, 2001 3:56 PM Subject: [PHP] image retrival from db? > Anyone have a pointer to a script o

Re: [PHP] Converting MySQL Date (2001-05-21) to Friendly Date (21 May 2001)

2001-05-23 Thread Ethan Schroeder
You could shorten it by having mysql convert the date into a timestamp: $result = mysql_query("SELECT UNIX_TIMESTAMP(date) as somedate FROM dates"); $row = mysql_fetch_array($result); echo date("jS F Y", $row[somedate]); Ethan - Original Message - From: "Pavel Jartsev" <[EMAIL PROTECT

Re: [PHP] Encrypt Password for Session

2001-05-17 Thread Ethan Schroeder
file or database or wherever. If they match, you let them in. Ethan Schroeder - Original Message - From: "Troy Moreland" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 17, 2001 10:41 AM Subject: [PHP] Encrypt Password for Session > All, > > I

Re: [PHP] RE: Processing time in PHP. better to use php tags inline or pri nt("");

2001-05-16 Thread Ethan Schroeder
Here's an example usage: $timer = new c_Timer; $timer->start(); echo ""; $timer->stop(); echo $timer->elapsed(); */ ?> - Original Message - From: "Ethan Schroeder" <[EMAIL PROTECTED]> To: "Mer

Re: [PHP] RE: Processing time in PHP. better to use php tags inline or pri nt("");

2001-05-16 Thread Ethan Schroeder
The following code is not mine, so I take no credit for it. It seems to work fine for me, though: t_start = microtime(); } function stop(){ $this->t_stop= microtime(); } function elapsed() { if ($this->t_elapsed) { r

Re: [PHP] need some ideas here...

2001-05-14 Thread Ethan Schroeder
I should correct myself. The .htaccess file doesn't overwrite the php.ini value, rather it overrides it. Ethan Schroeder - Original Message - From: "Ethan Schroeder" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "Christian Dechery" <[EMAIL PROTECT

Re: [PHP] need some ideas here...

2001-05-14 Thread Ethan Schroeder
send mail off properly. Ethan Schroeder - Original Message - From: "Christian Dechery" <[EMAIL PROTECTED]> To: "Ethan Schroeder" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, May 14, 2001 6:30 PM Subject: Re: [PHP] need some ideas here... > wh

Re: [PHP] need some ideas here...

2001-05-14 Thread Ethan Schroeder
Find where there sendmail is and put this in an .htaccess file: php_value sendmail_path '/path/to/sendmail -t' Ethan Schroeder - Original Message - From: "Christian Dechery" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, May 14, 2001 7:04 P

Re: [PHP] Redirection in PHP ? (newbie)

2001-05-14 Thread Ethan Schroeder
header("Location: page.phtml"); http://www.php.net/manual/en/function.header.php Ethan Schroeder - Original Message - From: "Nicolas Mermet" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, May 14, 2001 6:57 PM Subject: [PHP] Redirection in PHP

Re: [PHP] ssh

2001-05-14 Thread Ethan Schroeder
I use mindterm sometimes, as well. I love it. Ethan Schroeder - Original Message - From: "Dennis Gearon" <[EMAIL PROTECTED]> To: "Ethan Schroeder" <[EMAIL PROTECTED]> Sent: Monday, May 14, 2001 7:04 PM Subject: Re: [PHP] ssh > WOW! installation

Re: [PHP] ssh

2001-05-14 Thread Ethan Schroeder
Simple. Get putty. It is, by far, the best free ssh client out there. http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html It's small, too. Ethan Schroeder - Original Message - From: "Dennis Gearon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> S

Re: [PHP] One database, different forms

2001-05-14 Thread Ethan Schroeder
Oh, here is the update code, which uses the same concepts: $column = mysql_list_fields("$db","$table"); for($i = 1; $i < mysql_num_fields($column); $i++) { $value = mysql_field_name($column,$i); $name = $value; $value = $$value; $values .= "$name=

Re: [PHP] One database, different forms

2001-05-14 Thread Ethan Schroeder
"'$value'"; if($i != mysql_num_fields($column)-1) $values .= ","; } $sql = "INSERT INTO $table VALUES ($values)"; mysql_query($sql); Ethan Schroeder - Original Message - From: "midget2000x" <[EMAIL PR

Re: [PHP] multiline text areas and mysql doesn't work :(

2001-05-13 Thread Ethan Schroeder
It should be storing them unless you are doing something to the data before inserting it into the database. Have you tried outputting the data through nl2br() ?http://www.php.net/manual/en/function.nl2br.php Ethan Schroeder - Original Message - From: "Ciaron Nixon" <[EM

Re: [PHP] check if a variable is in a number of states.

2001-05-12 Thread Ethan Schroeder
How about a case-swtich? http://www.php.net/manual/en/control-structures.switch.php Ethan Schroeder - Original Message - From: "DRN" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, May 12, 2001 4:40 PM Subject: [PHP] check if a variable is in a numbe

Re: [PHP] Site search engine suggestion.

2001-05-12 Thread Ethan Schroeder
Wow, thanks for the heads up =) Ethan Schroeder - Original Message - From: "Ryan W. Zajicek" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, May 12, 2001 12:50 PM Subject: RE: [PHP] Site search engine suggestion. > Just a side not here..

Re: [PHP] referencing a constant inside an object

2001-05-12 Thread Ethan Schroeder
global $PHP_SELF; global $REMOTE_USER; - Original Message - From: "cw" <[EMAIL PROTECTED]> To: "Php-General" <[EMAIL PROTECTED]> Sent: Saturday, May 12, 2001 11:28 AM Subject: [PHP] referencing a constant inside an object > I'm trying to reference $PHP_SELF and $REMOTE_USER inside a cl

Re: [PHP] Site search engine suggestion.

2001-05-12 Thread Ethan Schroeder
I use udmsearch and love it. If you want php pages searchable it does actual http requests, so it doesn't give source code. If you don't want php searchable, you can configure it to ignore any file extensions you want. It comes with a php interface built in, also. Ethan

Re: [PHP] Newbie Question.

2001-05-12 Thread Ethan Schroeder
In your apache conf, make sure you have something similar to: AddType application/x-httpd-php .php .phtml .inc If you don't, add it and restart apache. - Original Message - From: "Raven" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, May 12, 2001 12:04 PM Subject: [PHP] Newb