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
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
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[
(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
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,
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
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
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
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
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
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
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
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
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
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
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
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
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=
"'$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
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
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
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..
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
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
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
25 matches
Mail list logo