php-general Digest 21 Jun 2003 10:29:11 -0000 Issue 2130
Topics (messages 152352 through 152375):
Chomp, Chomp, Chomp
152352 by: Sparky Kopetzky
152353 by: Sparky Kopetzky
152354 by: Lars Torben Wilson
152356 by: Lars Torben Wilson
152357 by: Aaron Axelsen
152358 by: Lars Torben Wilson
Re: PHP Problem regarding updating through text boxes
152355 by: electroteque
Not incrementing?
152359 by: Kyle Babich
152360 by: Lars Torben Wilson
Seating chart registration system?
152361 by: Jay Fitzgerald
152365 by: Don Read
stream_wrapper_register
152362 by: Larry E. Masters
Re: Email Valadation
152363 by: Manuel Lemos
Re: Password generator
152364 by: Manuel Lemos
Header, Directory, and SESSIONs
152366 by: nabil
152367 by: nabil
MAIL( ) - Send mail using another SMTP
152368 by: Chinmoy Barua
Re: Help
152369 by: Tirnovanu Aurel
152370 by: Naintara Jain
saving TEXTAREA data into mysql database
152371 by: Artoo
Re: securing a graphic
152372 by: Justin French
152375 by: Lars Torben Wilson
making image smaller with same aspect ratio
152373 by: Artoo
Re: GD library update
152374 by: Yury B.
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Does anyone have a piece of code that emulates a Perl 'Chomp' function? I need one.
Thanks in advance!!
Robin E. Kopetzky
Black Mesa Computers/Internet Services
www.blackmesa-isp.net
--- End Message ---
--- Begin Message ---
I looked at the documentation on rtrim. It trims ALL whitespace characters
from the end, not just the '\n'. I need only the '\n' trimmed.
Sparky
----- Original Message -----
From: "Lars Torben Wilson" <[EMAIL PROTECTED]>
To: "Sparky Kopetzky" <[EMAIL PROTECTED]>
Cc: "PHP General" <[EMAIL PROTECTED]>
Sent: Friday, June 20, 2003 16:47
Subject: Re: [PHP] Chomp, Chomp, Chomp
> On Fri, 2003-06-20 at 15:37, Sparky Kopetzky wrote:
> > Does anyone have a piece of code that emulates a Perl 'Chomp' function?
I need one.
> >
> > Thanks in advance!!
> >
> > Robin E. Kopetzky
> > Black Mesa Computers/Internet Services
> > www.blackmesa-isp.net
>
> This should do it for you: http://www.php.net/rtrim
>
>
> Good luck!
>
>
> Torben
>
>
> --
> Torben Wilson <[EMAIL PROTECTED]> +1.604.709.0506
> http://www.thebuttlesschaps.com http://www.inflatableeye.com
> http://www.hybrid17.com http://www.themainonmain.com
> -----==== Boycott Starbucks! http://www.haidabuckscafe.com ====-----
>
>
>
--- End Message ---
--- Begin Message ---
On Fri, 2003-06-20 at 15:37, Sparky Kopetzky wrote:
> Does anyone have a piece of code that emulates a Perl 'Chomp' function? I need one.
>
> Thanks in advance!!
>
> Robin E. Kopetzky
> Black Mesa Computers/Internet Services
> www.blackmesa-isp.net
This should do it for you: http://www.php.net/rtrim
Good luck!
Torben
--
Torben Wilson <[EMAIL PROTECTED]> +1.604.709.0506
http://www.thebuttlesschaps.com http://www.inflatableeye.com
http://www.hybrid17.com http://www.themainonmain.com
-----==== Boycott Starbucks! http://www.haidabuckscafe.com ====-----
--- End Message ---
--- Begin Message ---
On Fri, 2003-06-20 at 15:47, Sparky Kopetzky wrote:
> I looked at the documentation on rtrim. It trims ALL whitespace characters
> from the end, not just the '\n'. I need only the '\n' trimmed.
Look again, but check out the second argument:
<?php
error_reporting(E_ALL);
ini_set('display_errors', true);
$foo = "bar \n";
$bar = rtrim($foo);
$baz = rtrim($foo, "\n");
echo "\$foo == '$foo'; \$bar == '$bar'; \$baz == '$baz'\n";
?>
Good luck,
Torben
> Sparky
> ----- Original Message -----
> From: "Lars Torben Wilson" <[EMAIL PROTECTED]>
> To: "Sparky Kopetzky" <[EMAIL PROTECTED]>
> Cc: "PHP General" <[EMAIL PROTECTED]>
> Sent: Friday, June 20, 2003 16:47
> Subject: Re: [PHP] Chomp, Chomp, Chomp
>
>
> > On Fri, 2003-06-20 at 15:37, Sparky Kopetzky wrote:
> > > Does anyone have a piece of code that emulates a Perl 'Chomp' function?
> I need one.
> > >
> > > Thanks in advance!!
> > >
> > > Robin E. Kopetzky
> > > Black Mesa Computers/Internet Services
> > > www.blackmesa-isp.net
> >
> > This should do it for you: http://www.php.net/rtrim
> >
> >
> > Good luck!
> >
> >
> > Torben
> >
> >
> > --
> > Torben Wilson <[EMAIL PROTECTED]> +1.604.709.0506
> > http://www.thebuttlesschaps.com http://www.inflatableeye.com
> > http://www.hybrid17.com http://www.themainonmain.com
> > -----==== Boycott Starbucks! http://www.haidabuckscafe.com ====-----
> >
> >
> >
--
Torben Wilson <[EMAIL PROTECTED]> +1.604.709.0506
http://www.thebuttlesschaps.com http://www.inflatableeye.com
http://www.hybrid17.com http://www.themainonmain.com
-----==== Boycott Starbucks! http://www.haidabuckscafe.com ====-----
--- End Message ---
--- Begin Message ---
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The php chop function is suppose to act like the perl chomp.
- ---
Aaron Axelsen
AIM: AAAK2
Email: [EMAIL PROTECTED]
Want reliable web hosting at affordable prices?
www.modevia.com
Web Dev/Design Community/Zine
www.developercube.com
- -----Original Message-----
From: Lars Torben Wilson [mailto:[EMAIL PROTECTED]
Sent: Friday, June 20, 2003 6:00 PM
To: Sparky Kopetzky
Cc: PHP General
Subject: Re: [PHP] Chomp, Chomp, Chomp
On Fri, 2003-06-20 at 15:47, Sparky Kopetzky wrote:
> I looked at the documentation on rtrim. It trims ALL whitespace
> characters from the end, not just the '\n'. I need only the '\n'
> trimmed.
Look again, but check out the second argument:
<?php
error_reporting(E_ALL);
ini_set('display_errors', true);
$foo = "bar \n";
$bar = rtrim($foo);
$baz = rtrim($foo, "\n");
echo "\$foo == '$foo'; \$bar == '$bar'; \$baz == '$baz'\n";
?>
Good luck,
Torben
> Sparky
> ----- Original Message -----
> From: "Lars Torben Wilson" <[EMAIL PROTECTED]>
> To: "Sparky Kopetzky" <[EMAIL PROTECTED]>
> Cc: "PHP General" <[EMAIL PROTECTED]>
> Sent: Friday, June 20, 2003 16:47
> Subject: Re: [PHP] Chomp, Chomp, Chomp
>
>
> > On Fri, 2003-06-20 at 15:37, Sparky Kopetzky wrote:
> > > Does anyone have a piece of code that emulates a Perl 'Chomp'
> > > function?
> I need one.
> > >
> > > Thanks in advance!!
> > >
> > > Robin E. Kopetzky
> > > Black Mesa Computers/Internet Services www.blackmesa-isp.net
> >
> > This should do it for you: http://www.php.net/rtrim
> >
> >
> > Good luck!
> >
> >
> > Torben
> >
> >
> > --
> > Torben Wilson <[EMAIL PROTECTED]>
> > +1.604.709.0506
> > http://www.thebuttlesschaps.com
> > http://www.inflatableeye.com
> > http://www.hybrid17.com
> > http://www.themainonmain.com
> > -----==== Boycott Starbucks! http://www.haidabuckscafe.com
> > ====-----
> >
> >
> >
- --
Torben Wilson <[EMAIL PROTECTED]>
+1.604.709.0506
http://www.thebuttlesschaps.com
http://www.inflatableeye.com
http://www.hybrid17.com
http://www.themainonmain.com
-----==== Boycott Starbucks! http://www.haidabuckscafe.com
====-----
- --
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
iQA/AwUBPvOV0brnDjSLw9ADEQLbXACeKGsGbjjW3pGWT91Jd3cQP48wq+oAn1Ev
gb2AnVvs5zgRdejT13vmNoJ2
=gg1T
-----END PGP SIGNATURE-----
--- End Message ---
--- Begin Message ---
On Fri, 2003-06-20 at 16:16, Aaron Axelsen wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> The php chop function is suppose to act like the perl chomp.
No, chop() is an alias for rtrim(), and is identical in every way
(save for its name, of course...)
http://www.php.net/chop
Cheers,
Torben
--
Torben Wilson <[EMAIL PROTECTED]> +1.604.709.0506
http://www.thebuttlesschaps.com http://www.inflatableeye.com
http://www.hybrid17.com http://www.themainonmain.com
-----==== Boycott Starbucks! http://www.haidabuckscafe.com ====-----
--- End Message ---
--- Begin Message ---
hmm name the text fields the field of the database then put a [] in front of
them to make them an array then
then try maybe
foreach ($_POST['id'] as $key=>$value) {
//sql statement
update table set us=$_POST['us'][$key] where id=$_POST['id'][$key];
}
-----Original Message-----
From: Esteban Fernandez [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 21, 2003 6:24 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: PHP Problem regarding updating through text boxes
Hum,, i don't see the database conecction :P. It's necesary modified the
fileds on the fly ?, one by one it's more easy to do...
"Esteban Fernandez" <[EMAIL PROTECTED]> escribió en el mensaje
news:[EMAIL PROTECTED]
> Put the code in a Form tag, modified thevalues, and put a submit button in
> the Form, so, in the php page you get it the values by name, you can
> modified with 'update' mysql sentence.
>
>
> "Matt Hedges" <[EMAIL PROTECTED]> escribió en el mensaje
> news:[EMAIL PROTECTED]
> > Please take a look at http://hedges.org/code/wine.php - You'll see what
I
> > can't figure out how to do.
> >
> >
> > thanks,
> > Matt
> >
> >
> >
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I have a file, current.txt, that at the start has only the digit 1 in it. Here is my
code:
$current = readfile('setupData/current.txt');
foreach ($HTTP_POST_VARS as $index => $value) {
$index = $HTTP_POST_VARS['$index'];
}
$info = fopen("postInfo/{$current}-{$dateFile}.txt", 'w');
fwrite($info, "$author\n$email\n$dateActual");
fclose($info);
$entry = fopen("postEntries/{$current}-{$dateFile}.txt", 'w');
fwrite($entry, $body);
fclose($entry);
$currPost = fopen('setupData/current.txt', 'w');
fwrite($currPost, $current + 1);
echo $current;
fclose($currPost);
Two files are created in seperate folders, each with the same name, the current number
in current.txt, a dash, then a series of numbers and letters that represent the
current date and time exactly. That happens correctly, but then the number inside of
current.txt is supposed to increment. Every pair created should be the next number, a
dash, then the date and time. It will increment once to 2, but all created files are
1- and nothing else happens no matter how much I do it. What went wront?
Thanks,
--
Kyle
--- End Message ---
--- Begin Message ---
On Fri, 2003-06-20 at 17:07, Kyle Babich wrote:
> I have a file, current.txt, that at the start has only the digit 1 in it. Here is
> my code:
Hi there,
> $current = readfile('setupData/current.txt');
This will cause $current to contain the number of bytes read from the
file, not the contents of the file.
http://www.php.net/readfile
Instead, use fopen()/fread(); or file()/implode(); or if you have PHP
4.3.x or newer, use file_get_contents().
http://www.php.net/file_get_contents
http://www.php.net/fopen
http://www.php.net/fread
http://www.php.net/file
http://www.php.net/implode
> foreach ($HTTP_POST_VARS as $index => $value) {
> $index = $HTTP_POST_VARS['$index'];
> }
This will do two things you probably don't want: first, it will
repeatedly assign values to $index, overwriting it on each iteration;
and, it will always use the same value to do so, since
$HTTP_POST_VARS['$index'] has the single-quotes, which prevents PHP
from interpreting the contents of $index--so it's literally using the
string value '$index' instead of the value of the $index variable. You
probably want variable variables:
$$index = $HTTP_POST_VARS[$index];
...although even easier would be:
$$index = $value;
http://www.php.net/manual/en/language.variables.variable.php
[snip]
> Thanks,
> --
> Kyle
Hope this helps,
Torben
--
Torben Wilson <[EMAIL PROTECTED]> +1.604.709.0506
http://www.thebuttlesschaps.com http://www.inflatableeye.com
http://www.hybrid17.com http://www.themainonmain.com
-----==== Boycott Starbucks! http://www.haidabuckscafe.com ====-----
--- End Message ---
--- Begin Message ---
I am writing a php event registration system for lanparties and I believe I
have everything written that I need except for a seating selection chart. I
dont want to reinvent the wheel if I dont have to and am curious to know if
something like this has already been written as public source...
If not, I possibly may pay a reasonable fee for one or for someone to write
it for me...Here is what I need and maybe you could provide a direction for
me to do research or some logic as to how it can be done...
As a person goes through the event registration system, they will come to a
page that displays 8 rows of 30 seats (240 seats total)...but in the future
I would like to have admin capability to increase or decrease this amount.
When they get to that page it should display all of the open or available
seats in one color and all of the sold or reserved seats in a different
color. The registrant will then select an open seat they wish to buy or
reserve and then take them to the next step in registration where they
enter their attendee information and pay to attend via paypal or mollyguard.
Then when the next person decides to register, when they get to that page,
one less seat will be available. I would like to have as much control as
possible and I do know a minor bit of php and mysql.
Any help or guidance is appreciated.
Jay
--- End Message ---
--- Begin Message ---
On 21-Jun-2003 Jay Fitzgerald wrote:
> I am writing a php event registration system for lanparties and I believe
> I have everything written that I need except for a seating selection
> chart.
<snip>
> As a person goes through the event registration system, they will come to
> a
> page that displays 8 rows of 30 seats (240 seats total)...but in the
> future
> I would like to have admin capability to increase or decrease this
> amount.
<snip>
> Then when the next person decides to register, when they get to that
> page, one less seat will be available. I would like to have as much
> control as possible and I do know a minor bit of php and mysql.
>
> Any help or guidance is appreciated.
>
<programmer doodle>
Couple of thoughts ...
Each 'event' is unique to time and place.
So you'll need a 'event' table with datetime, interval, name,
description and a place (or 'forum' --see next paragraph).
table event (
id int unsigned auto_inc primary key,
idforum int unsigned,
ebeg datetime not null, // begins
eend datetime not null default '0', // ends
emin int unsignd default 0, // how long in minutes
name varchar(64),
descript text,
index idx_b (ebeg), // might be handy ...
index idx_f (idforum)
)
Each place is (usually) limited to hosting one 'event' at any interval.
But some places can have several events at the same time. Consider a major
hotel and all the conference rooms --or a sports stadium with all the
owner, boxholder's, home-team, & visting-team parties ...
So 'place' is a poor term. I'll suggest using 'forum' as the locale to be
to attend a particular event.
Also you'll have to think about assigned seating and/or general admission
seating.
Example:
At the downtown Hilton, the local Lions club might reserve the "Omega" room
w/ 5 seats per 4 tables, general admission.
But a dinner with President Bush in the "Omega" room is gonna run like 6
seats @ 40 tables. And definitely assigned seating.
Same room name but clearly a different 'forum'.
It's a toss-up if this should be a field in the 'event' or in the
'forum' table. I go with forum.
So there's another table:
table forum (
id int unsigned auto_inc primary,
name varchar(16),
descript text,
ftype enum('A', 'G'), // assigned or general seating
m_block int unsigned not null, // max # of seating blocks
m_seats int unsigned not null, // seats per block
block_type enum('row','table','section') not null default 'row',
// what does m_block encompass?
seat_limit int unsigned not null default 0,
// maximum seats (m_block * m_seats where ftype='A')
unique index (name)
)
Then there is seating.
When each event/forum is scheduled your app adds m_block * m_seats to
a seating table.
For general admission add block=x, seat=1 -> seat_limit.
---
The 'seating' table is where it gets tricky --and where it gets solved.
table seating (
idforum int unsigned not null, // link to forum description.
block int unsigned not null, // a dinner table or stadium row
seat int unsigned not null, // d'oh
guest int unsigned not null default 0, // who has this seat ?
primary key (idforum, block, seat),
INDEX idx_g (guest) // handy stuff.
)
Assigned seating:
As each guest reserves a [optional] seat:
"UPDATE seating SET guest='$idguest'
WHERE idforum='$idforum' AND block='$idblock' [AND seat='$idseat']
AND guest=0"
General admission:
"UPDATE seating SET guest='$idguest'
WHERE idforum='$idforum' AND block='$idblock'
AND guest=0"
</programmer doodle>
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
--- End Message ---
--- Begin Message ---
Hello all,
I do not know if this is the right place to post a question about this. I am
trying to figure out what all I can do using stream_wrapper_register
functions.
I have looked over
http://us2.php.net/manual/en/function.stream-wrapper-register.php and I am
trying to write a class that will allow everything that you can do to a
system file to be done with content in a database. I think this is the
proper function to use for that but would like a little input first.
The link above states
stream_wrapper_register() allows you to implement your own protocol handlers
and streams for use with all the other filesystem functions (such as
fopen(), fread() etc.).
My question is will this work all of the PHP functions from
http://us2.php.net/manual/en/ref.filesystem.php:
example:
filesize -- Gets file size
touch -- Sets access and modification time of file
unlink -- Deletes a file
and too many more to list
first few lines of code sample at
http://us2.php.net/manual/en/ref.filesystem.php:
class VariableStream {
var $position;
var $varname;
function stream_open($path, $mode, $options, &$opened_path)
{
$url = parse_url($path);
$this->varname = $url["host"];
$this->position = 0;
return true;
}
If so would they need to be wrote like this?
function stream_filesize($path, $mode, $options, &$opened_path)
{
// put sql here
return true;
}
function stream_touch($path, $mode, $options, &$opened_path)
{
// put sql here
return true;
}
function stream_unlink($path, $mode, $options, &$opened_path)
{
// put sql here
return true;
}
and so forth
Thanks,
Larry E. Masters
aka PhpNut
--- End Message ---
--- Begin Message ---
Hello,
On 06/17/2003 06:42 AM, Philip J. Newman wrote:
How would i valadate an email string to see if it has invalid charactors?
You may want to try this class:
http://www.phpclasses.org/emailvalidation
--
Regards,
Manuel Lemos
Free ready to use OOP components written in PHP
http://www.phpclasses.org/
--- End Message ---
--- Begin Message ---
Hello,
On 06/17/2003 06:45 AM, Davy Obdam wrote:
I have to make a password generator, but i have a little problem.
You may also want to try any of these classes:
http://www.phpclasses.org/password%20generation
--
Regards,
Manuel Lemos
Free ready to use OOP components written in PHP
http://www.phpclasses.org/
--- End Message ---
--- Begin Message ---
Hi all, wish u all a good weekend..
Guys I have a question as the following:
1- In my wwwroot I have two folders : folder1 and folder2 (actually I have
14 folders)
2- In the same two folders there are same PHP files do the same job, as db
jobs with different databases..
3- I log in the users by register a session, lab lab lab ... etc
4- the logging files in the two folders are different by registering a
different session value.
4- I want if any user jumped to the other directory and logged in with the
correct requested password TO HAVE THE FIRST SESSION UNREGISTERED
automatically, so he can't be logged in in both at same time.. and keep only
the new.. and ofcourse have to re logging if he jumped back to the first
one...
(the reason that every folder has different DB connection, and the
interface of the two section are identical.. so I need to split it .to avoid
any problems with many users ....)
5- what I m trying to do is , if there is a possibility to control the
header.. by if { /folder1 go } else { unregister session whatever}
if {/ folder2 .............. } else {.........} etc
6- IS IT A GOOD WAY TO DO IT , OR NOT? of cource I need a security in the
first place..
I HOPE I WAS CLEAR, and thanks for your patient again... :))
Regards
Nabil
--- End Message ---
--- Begin Message ---
Hi all, wish u all a good weekend..
Guys I have a question as the following:
1- In my wwwroot I have two folders : folder1 and folder2 (actually I have
14 folders)
2- In the same two folders there are same PHP files do the same job, as db
jobs with different databases..
3- I log in the users by register a session, lab lab lab ... etc
4- the logging files in the two folders are different by registering a
different session value.
4- I want if any user jumped to the other directory and logged in with the
correct requested password TO HAVE THE FIRST SESSION UNREGISTERED
automatically, so he can't be logged in in both at same time.. and keep only
the new.. and ofcourse have to re logging if he jumped back to the first
one...
(the reason that every folder has different DB connection, and the
interface of the two section are identical.. so I need to split it .to avoid
any problems with many users ....)
5- what I m trying to do is , if there is a possibility to control the
header.. by if { /folder1 go } else { unregister session whatever}
if {/ folder2 .............. } else {.........} etc
6- IS IT A GOOD WAY TO DO IT , OR NOT? of cource I need a security in the
first place..
I HOPE I WAS CLEAR, and thanks for your patient again... :))
Regards
Nabil
--- End Message ---
--- Begin Message ---
Hello Everybody,
I don't have sendmail/qmail on my web server where i
installed PHP. But I want to send mails from web
server using PHP.
Can anybody tell me, how can i use another SMTP server
to send mails? I don't like to change php.ini on my
web server.
Thank You,
- Chinmoy
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
--- End Message ---
--- Begin Message ---
Can anyone tell why this script:
$query = "INSERT INTO mos_articles (catid, title, content, date, author,
approved, published) VALUES
('5','$title','$content','$data','$author','1','1')";
$result = mysql_query($query);
add in title field "array" and not the input.
--- End Message ---
--- Begin Message ---
You possibly have a select list box named 'title[]' remove the brackets []
and rename the list box 'title'. That should work.
-Naintara
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Behalf Of Tirnovanu Aurel
Sent: Saturday, June 21, 2003 12:28 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Fw: Help
Can anyone tell why this script:
$query = "INSERT INTO mos_articles (catid, title, content, date, author,
approved, published) VALUES
('5','$title','$content','$data','$author','1','1')";
$result = mysql_query($query);
add in title field "array" and not the input.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hey,
How do you save the data from a TEXTAREA of a form into a mysql database so
that when you retrieve the data later you get the same format that the user
entered
EXAMPLE
user enters the following and cliks save
Line 1 testing
Line 2 TEST
Line 4 test
line 5 test
test
testing
result when displaying data
Line 1 testingLine 2 TESTLine 4 testline 5 testtesttesting
How do I get it so the format is the same?
Thanks
--- End Message ---
--- Begin Message ---
I'm with Steve on this. Call them (the numerous "hacks" mentioned in this
thread) deterrents if you like, but there is NO WAY to secure images.
You can brand them with a big watermark, and make sure your copyright and
terms of use notice are prominent on the page, but the nature of the web is
that they ALREADY HAVE downloaded a copy.
Justin
on 20/06/03 8:17 AM, Steve Keller ([EMAIL PROTECTED]) wrote:
> No there is not a way. The way the web works is by sending your content to
> someone else' computer. Once it's there, they have a copy, whether it's in
> their cache or actually saved as a file. There's no way to prevent a
> determined user from stealing your images, trust me on this one, a good
> number of my photoshops are being sent around as anonymous "funny" emails.
>
> You can disable right-clicking with javascript, but this is pointless. In
> IE, the user can just drag your image up to the address bar and poof, your
> javascript is gone. And on browsers that can't do that, there's still the
> cache. Even if, by some scripting voodoo you manage to keep your images
> from ending up in the cache, what's the keep the user from just doing a
> screen capture?
--- End Message ---
--- Begin Message ---
On Sat, 2003-06-21 at 00:51, Justin French wrote:
> I'm with Steve on this. Call them (the numerous "hacks" mentioned in this
> thread) deterrents if you like, but there is NO WAY to secure images.
>
> You can brand them with a big watermark, and make sure your copyright and
> terms of use notice are prominent on the page, but the nature of the web is
> that they ALREADY HAVE downloaded a copy.
>
> Justin
Yup. If my computer can display it, I can save it.
--
Torben Wilson <[EMAIL PROTECTED]> +1.604.709.0506
http://www.thebuttlesschaps.com http://www.inflatableeye.com
http://www.hybrid17.com http://www.themainonmain.com
-----==== Boycott Starbucks! http://www.haidabuckscafe.com ====-----
--- End Message ---
--- Begin Message ---
Hey all,
How do you reduse an image while keeping the same aspect ratio so not to
distort the image
Thanks
--- End Message ---
--- Begin Message ---
Thank you the problem is solved, I just downloaded php_gd2.dll from
gd site and inabled it in php.ini Now everything is working as it
should.
Yury
On 19 Jun 2003 at 17:24, Andrei BEJENARU wrote:
>
> "Yury B ." <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Hi,
> > I need to use function imagecreatetruecolor() in my script but it
> > doesn't work on my local apache+php+mysql on XP server. It works fine
> > on the real server though but i need to play with it around. What do
> > I need to do to get it work? from docs I understand I need gd 2.0.1
> > or higher, well how to get it and how to install?
> >
> > Thank you,
> >
> > Yury
>
> The gd library is shipped with the PHP distribution, so you should simply
> upgrade to version 4.3.1 or 4.3.2.
> You must download the big zip distribution, as it has all the needed
> libraries.
> Follow the instructions in the install readme file and you should have no
> problems.
>
> Andrei BEJENARU
>
>
>
<>< <>< <>< <>< God is our provider ><> ><> ><> ><>
http://www.body-builders.org/
--- End Message ---