Does any one know if you can check the dimensions of a GIF file?
Thanks
Kevin
--
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]
http://www.php.net/manual/en/function.getimagesize.php
sebastian
-Ursprüngliche Nachricht-
Von: Kevin Pratt [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 10. Juli 2001 19:05
An: [EMAIL PROTECTED]
Betreff: [PHP] Image manipulation
Does any one know if you can check the
www.php.net/GetImageSize
list($width, $height) = getimagesize(file.gif);
/* Chris Lambert, CTO - [EMAIL PROTECTED]
WhiteCrown Networks - More Than White Hats
Web Application Security - www.whitecrown.net
*/
- Original Message -
From: Kevin Pratt [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Lets say I have a black JPEG-image and I want to add yellow text to it,
how can I define the yellow color?
According to the manual, you can only get closest value of your desired
color by letting the ImageColorClosest() find it. Therefore, if the
image is totally black, you can not get the
Could try this:
$blue = ImageColorAllocate($image, 0, 0, 255);
Substitue blue for yellow and you'll be the appropriate RGB values for the
numbers.
Jeff
-Original Message-
From: SED [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 1:27 PM
To: [EMAIL PROTECTED]
Subject:
I wonder if someone would be kind enough to explain why,
if $record-Subject2 sometimes contains the word posters
this
echo $record-Subject2;
accurately prints the word or words in the field Subject2 from the found record
but this
if ($record-Subject2 == posters)
Thats the problem, if I do that and the color is not used before in the
image, I get only the closest match. Note, if I add a yellow pixle into
the JPEG-image with Photoshop, save it and try it again, then I can use
the yellow for my text. However, I dont want to have the yellow dot in
my
Hi,
I have a script that let's me update news on my site but recently whenever I
use ' apostrphe's or speechmarks I end up with a slash i.e Jack's becomes
Jack\'s
From reading here and in the archives it appears I have to edit the script
with the stripslashes function.
I was wondering if
And don't forget the 'no-no' of requiring javascript for basic
functionality... Split it onto 2 pages, or have it resubmit to $PHP_SELF
with a hidden field (how about a button that says Get Cities ?) and
populate from there..
If you're hell-bent on having it auto-populate the second select box,
But remember that once a user has accessed the .swf once, they can then
get the path and call the file directly afterwards. Even worse, the .swf is
in the computer's cache.
py
- Original Message -
From: Chris Lambert - WhiteCrown Networks [EMAIL PROTECTED]
To: AVisioN:::nomoremedia:::
Well, exhibit hall is free... I'll be there.. of course, its only 10 minutes
away. *grin*
--
Aaron
- Original Message -
From: Uri Even-Chen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 10, 2001 9:11 AM
Subject: [PHP] PHP Conference in California
I have heard about the
Hi list
In my application,I need to generate some files for each
user who comes to my site.These files need to be deleted
once the user logs off. Pls suggest some way to delete these
files once the user logs off ; perhaps with the use of sessions
Regards
Anurag
Hi list
In my application,I need to generate some files for each
user who comes to my site.These files need to be deleted
once the user logs off. Pls suggest some way to delete these
files once the user logs off ; perhaps with the use of sessions
Regards
Anurag
But the advantage of checking user agents would be that they'd either have
to write a new flash script, or manually post to the form via sockets, as
using I.E. to go to game.php?winner=me wouldn't work.
/* Chris Lambert, CTO - [EMAIL PROTECTED]
WhiteCrown Networks - More Than White Hats
Web
It didn't look like much is being exhibited, though.
It'd be quite a trip coming from Israel, but I'm sure Zeev's doing it... ;-)
You just need to evaluate how much the sessions tutorials are worth to you
or your company. If there's nothing that interests you, its probably not
worth going.
[EMAIL PROTECTED] (Anurag Bhalla) wrote:
1. (*) text/plain
Hi list
In my application,I need to generate some files for each
user who comes to my site.These files need to be deleted
once the user logs off. Pls suggest some way to delete these
files once the user
Sessions support garbage removal, where the temp files will be deleted at a
random time after the user has left.
/* Chris Lambert, CTO - [EMAIL PROTECTED]
WhiteCrown Networks - More Than White Hats
Web Application Security - www.whitecrown.net
*/
- Original Message -
From: Anurag Bhalla
The suggestion to use the .php extension instead of the .inc extension
doesn't work.
I created to identical files, swordfish.php and swordfish.inc, containing
the following script:
?php
define(PASSWORD, swordfish);
?
When I use the following lines
include
I didn't read the first parts of this thread, but the reason for it working
in the first example and not the second is because the web server/php engine
process php files when they're called over HTTP. This means that the
define() call is being executed, but your primary script only includes what
Hey!
I was wondering if anyone knows if there is a limit to how long a string
can be when used as a key in an array. Also, what if they are the same
up to some point? For example,
$string = SomeStringUsedAsKey;
$string2 = SomeStringUsedAsKeyAgain;
$myArray[$string] = some value;
Hi Thomas!
On Tue, 10 Jul 2001, Thomas David Kehoe wrote:
include ('http://www.friendshipcenter.com/Objects/swordfish.inc');
echo Your password is , PASSWORD;
it works, i.e., prints Your password is swordfish.
When I use the following lines
include
Hey Ivo
When PHP find an empty string, it returns this message
In this case no one has logged in, so, it doesnot find user_name
Include: Make sure the path of the file within the () is correct. So if the
file is in the same directory, this might be good, but if it's in a
different folder, you
Can anyone explain how to install the Win32 version of mcrypt? I've
downloaded the Win32 zip file and there are no docs on how to install.
Thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
there is a limit of # of root entries. But the number of files per directory
is much higher. Running RH6.2 I tried this test: I have an SGI xfs
partition that does billion of entries per directory, like reiser, but for
an ext2 partition this perl script is for testing
for ($index = 1; $index =
Put it outside webscope, that way it won't be possible to browse the db-file
directly...
--
Lasse
Jon Yaggie [EMAIL PROTECTED] wrote in message
030101c1095b$f235f1a0$0100a8c0@piiimonster">news:030101c1095b$f235f1a0$0100a8c0@piiimonster...
i am setting up a flat file database. i want to
Sveiki, php-general,
Could someone remind me, how to enable graphic in PHP. I have Apache
server on Win32.
Does someone know any www page where i could read about it.
2001.07.10, antradienis
Marius Pertravèius
[EMAIL PROTECTED]
--
PHP General Mailing
Maybe it contains whitespaces... Have you tried:
if (trim($record-Subject2) == posters)
{
echo (PrintFormat1);
}
else
{
echo
Hello All,
is there anyway to get a PHP script to talk to Groupwise? I'd like to be able to
make
some of my web info be able to be entered into a groupwise calendar.
I really don't use Gwise but I've had people ask about this.
any suggestions are appreciated.
chris worth
--
PHP
Nicklas af Ekenstam wrote:
Hi
I'm currently trying to rewrite one of my old perl applications to php
and everything works great except one thing:
I can't figure out how to write a piece of code that will fetch and
unencode all binaires, if any, from an e-mail message in an imap stream
and
ok, I'm having some continual regex
issues and perhaps someone can help
me out with this. I've got a series
of line of html that I am changing
to xhtml and in doing so, each of those
lines need to be appended with a /
before the closeting bracket.
the only pattern that they share is
that the
My thoughts exactly Comrade
--Navid Yar
-Original Message-
From: Kurt Lieber [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 9:27 AM
To: Maxim Maletsky; [EMAIL PROTECTED]
Subject: [PHP] Removing quotes (was stripping white space?)
Will IE 6 support this non-standard coding
Well, I am using htpasswd files for the passwords but I took all the
htaccess or mod_auth directives out of httpsd.conf. I guess I could
learn mysql (yeay), and infact, that looks like a real good idea, but
the double prompting is due to the fact (I think) that I have the
following in the
Hi,
I've written a picture rotation script, file paths are stored in a file and are called
depending on a random number generator..
The problem is that out of 14 possible numbers only 7 are been generated.
the code I'm using is...
srand ( (double) microtime()*1000);
$numbertodisplay =
Is it worth going there for the exhibit hall only? I am also interested
in the sessions tutorials, but it looks quite expensive to participate
in them.
By the way, do you live in San Diego?
Uri.
Aaron Bennett wrote:
Well, exhibit hall is free... I'll be there.. of course, its only 10
several people seem the have the case sensitivity problem
regarding different mysql versions - see this extract from
the mysql manual:
Prior to MySQL Version 3.23.4, REGEXP is case sensitive, and the previous query
will return no rows. To match either lowercase or uppercase `b', use this
Hmm, I create my image from scratch and haven't tried drawing on an existing
pallette. If your start image is always a blank black box you could always
create it on the fly...
-Original Message-
From: SED [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 1:52 PM
To: [EMAIL
SELECT version() AS version
-Original Message-
From: Jakob [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 2:57 PM
To: [EMAIL PROTECTED]
Subject: [PHP] how to find out the mysql version from php?
several people seem the have the case sensitivity problem
regarding different
Greetings!
I'm running Debian Potato 2.2.19 with php 4.0.4-pl1. I'd recently compiled
an Mcrypt.so module, then added the extension line into my php.ini file.
After reloading Apache and trying to run any php script which includes ANY
mcrypt related function, the code immediately halts and no
Have any of you seen those calendar applications that let you program
events that repeat periodically? You can set it to repeat every
thursday, every week, every third week, every six months, and so on?
I am developing such an application in PHP and I know that the client
will ask for this
Have any of you seen those calendar applications that let you program
events that repeat periodically? You can set it to repeat every
thursday, every week, every third week, every six months, and so on?
I am developing such an application in PHP and I know that the client
will ask for this
hmm.
If what I understand from your ImageColorClosest(); function, why don't you
just add yellow to the palette? that way it can be found by the function,
but isn't used in the image?
HTH,
James Cox
apologies jeff for sending it twice to you :)
-Original Message-
From: Jeff Lewis
Well the exhibit hall is free... So if you're in town, and have a day or two
sick-leave stored up, you might want to go...
I'm still unclear if exhibit passes get you into any of the keynotes, but
there will be a (heated) debate with MS sr. VP Craig Mundie and RedHat's
Michael Tiemann...
Newbie. Help on installation on a Win2K
im a newbie on this and i want a complete detail on PHP Installation on a
Win2K
thnx
--
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
Jakob,
See if this does what you're looking for.
// returns a string with the current mySQL version connecting handled by
$dbh.
$mysqlver = pos(mysql_fetch_row(mysql_query(SELECT VERSION(),$dbh)));
--
Aaron
- Original Message -
From: Jakob [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
or the more simple:
mysql_get_server_info($dbh); // where $dbh is optional.
http://www.php.net/manual/en/function.mysql-get-server-info.php
Note: this is a new function for 4.0.5+.
cheers,
Aaron
- Original Message -
From: Aaron Bennett [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; Jakob
You just gotta love religious wars.
How many people know about SGML? HTML is a standard implemented in SGML, and
so has many of the possible features of SGML which got excluded for XML such as
* ommissible end tags
* optional quotes on attribute values that don't contain spaces or
How can I add colors to JPEG-palette? I never new It had a special
palette (until now :).
-Original Message-
From: James Cox [mailto:[EMAIL PROTECTED]]
Sent: 10. júlí 2001 22:38
To: Jeff@Hyrum. Net
Cc: [EMAIL PROTECTED]; Php-General@Lists. Php. Net
Subject: RE: [PHP] How to add a new
Hi there:
I wanna select a line from a table which is in a php page resulted of a
mysql_query
So far what i have is a way to search the text from only line and then limit
the characters in substr ( )
Thats a really wierd way to do it, i think, and my problem its the page im
trying to do its a
That's something you would need to do in photoshop.
open your image, select save for web, look to the left of the image, you
should see some buttons and a black box. you need to click on the black box,
select the yellow you want, and then click ok. Then, click the button above
the yellow - that
Is this only a problem with PHP/GD versions previous to 4.0.6/2.0.1?
Does the new ImageCreateTrueColor() function fix this issue?
http://www.php.net/manual/en/function.imagecreatetruecolor.php
-Original Message-
From: James Cox [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10,
One way to do this is to create a special directory in htdocs reserved only
for temporary files. Add the following line to crontab or a user with
permissions to delete:
0 * * * * find /usr/local/apache/sitename/htdocs/specialdir/ -cmin
+1440 -exec -rm -f {}
Every hour this script will delete
On Wed, 11 Jul 2001 06:54, Nicklas af Ekenstam wrote:
If anybody here has seen or written something like that and wouldn't
mind sharing that code with me I'd be forever grateful.
Hey, this is just about exactly the opposite of what you're after!
http://www.heyes-computing.net/scripts/4/
Hi all,
I have Windows 2000 running Apache 1.3.19.
When I run the most recent 1.3.20 windows binary, it says There's already
a version of Apache. Go to add/remove programs.
Asking me to uninstall it. But, will I lose any mods or confs if I do this
and install the new version? And have
I have just installed PHP 4.0.6 on my server and although the php.ini
file shows that short open tags should be on, a look at phpinfo() shows
they are off and of course the don't work. I have a huge site already
developed using short tags and must turn them on. Does anyone know what
is wrong? I
I'm not sure I follow. I know this is how I would do it if I had a
GIF-image, but this does not include JPEG. Thats the main issue. The
JPEG is saved as an RGB-image, not index colored like GIF, therefore I'm
asking about how to add a RGB color to a non-index-color-image (JPEG).
Are you sure you
On Tue, 10 Jul 2001 22:10, Frédéric Mériot wrote:
Hello (again)
I've got a query which extract titles and categories with a group by on
the categorie. Is there a simple way to display rows like this (without
doing a second query ):
Categorie A
-titi
-toto
-tutu
Categorie B
Hello,
I want to send Blind Carbon Copies or Bcc: to a huge 100-200 person
mailing list.
But the PHP mail() has a to, subject, body format.
How can I get a Bcc: in there?
Thanks,
Marcus
--
Marcus James Christian - UNLIMITED -
Multimedia Internet Design
Yeah... I solved it using ord() in the for clause and chr() in the
output... it worked just fine...
thanks anyway...
At 11:57 10/7/2001 -0400, Jack Dempsey wrote:
Perhaps not a great answer, but this issue has been brought up before,
and it has to do with the incrementing of a string...search
well... I think u may be wrong if Z is a string and there's nothing
bigger or lower than it what is the result of strcmp(Z,a)???
I guarantee you it will not be 0...
At 01:09 11/7/2001 +0900, Maxim Maletsky wrote:
what???
are you sure it does that to you?
You sound so confident that it
On Wed, 11 Jul 2001 03:32, Dave Stewart wrote:
Hi,
I have a script that let's me update news on my site but recently
whenever I use ' apostrphe's or speechmarks I end up with a slash i.e
Jack's becomes Jack\'s
From reading here and in the archives it appears I have to edit the
script
that is exactly what I did... it worked perfectly...
At 01:40 11/7/2001 +0900, Maxim Maletsky wrote:
I would rather go for the following solution:
for($i=ord('A'); $i=ord('Z'); $i++)
echo chr($i).' ';
I know it's same and even slower as it takes two more functions
I have version 4.0.5 so I need to upgrade :)
However, I found work around on the PHP-website:
--
I experienced the same, but i use following workaround:
Create a new Jpeg, Allocate your colours, and copy your original jpg
into the new one. then you have all the colours you have
(Have the To: address be yourself, or a mail account that simply dumps
to /dev/null)
$to = [EMAIL PROTECTED];
$subject = Subject of Message;
$message = blah blah blah...
$headers = From: Optional Name of List [EMAIL PROTECTED]\nBCC:
[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED];
I believe the problem is GD previous to version 2.0.1... They could only
create images with indexed (256?) colors...
I had a PHP script that used GD to resize JPEGs to smaller thumbnails
automatically... And it would always reduce them to 256 colors, until I
upgraded to PHP 4.0.6, GD 2.0.1, and
is it possible to delete an item from an associative array by using
unset(thearray[item1]); ?
if the array item is in turn a large object, does this free up the memory
that the object was taking up?
thanks,
-kevin bullaughey
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
hi,
I want to generate some reports every night at 12.00 o'clock in the night.
The reports should get generated automatically without administrator
clicking the option. It should run some PHP file which will do the actual
report generation stuff, but how to activate this file every nigh ?
Yes
is it possible to delete an item from an associative array by using
unset(thearray[item1]); ?
if the array item is in turn a large object, does this free up the memory
that the object was taking up?
thanks,
-kevin bullaughey
--
PHP General Mailing List (http://www.php.net/)
To
Well, either use the windows own sheduled task option or get a
version of cron for win32.
a quick search on google came up with the following:
http://www.dwgsoftware.com/help/task_scheduler.html
http://www.kalab.com/freeware/cron/cron.htm
Manisha wrote:
hi,
I want to generate some
Dear folks
I was told that http referer can tell me where the user come from. But it does not
work all the time, is there anything else that work better than this?
Jack
[EMAIL PROTECTED]
Love your enemies, it will drive them nuts
Hi,
This might sound really simple but plz humour me :)
How can I tell if two text variables are equal to one another?
If I use..
if($text1 = $text2)
{
echo The variables are equal;
}
else
{
echo The variables are not equal;
}
then the code in the else state is always printed even if I know
Try
if($text1 == $text2)
{
echo The variables are equal;
}
else
{
echo The variables are not equal;
}
notice the change in the if()
Tyler
On Wed, 11 Jul 2001 03:12:56 +0100
James Bartlett [EMAIL PROTECTED] wrote:
Hi,
This might sound really simple but plz humour me :)
How can I tell
I'm not sure what you mean by that...
You could easily do:
$headers = From: Optional Name of List [EMAIL PROTECTED]\nBCC: .
$bcc_addresses;
(The dot . will concatenate the strings together)
If you didn't want the From: Header in there, you could always just:
$headers = BCC: .
I have tried that also...it still does not want to work...
- Original Message -
From: Dallas K.
To: James Bartlett ; [EMAIL PROTECTED]
Sent: Wednesday, July 11, 2001 5:43 AM
Subject: Re: [PHP] Variables
don't use the quotes
if($test1 == $test2)
{echo True;
You could always do...
If(!strcmp($text1, $text2))
{
equal;
} else {
not equal;
}
-Original Message-
From: James Bartlett [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 10:21 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Variables
No it doesn't seem to like
On 11-Jul-01 James Bartlett wrote:
Hi,
This might sound really simple but plz humour me :)
How can I tell if two text variables are equal to one another?
If I use..
if($text1 = $text2)
{
echo The variables are equal;
}
else
{
echo The variables are not equal;
}
then the
try this little form example out:
--example.php--
?php
if ( (isset($t1))(isset($t2)) ) {
if ($t1==$t2) {
echo they are equal;
} else {
echo they are not equal;
}
}
?
html
body
br
br
form name=form1 method=post action=?=$PHP_SELF?
input type=text name=t1
t1br
does anyone have/know of any existing code that allows PHP to control
.htaccess files? I'm aware of SPHPAT on sourceforge, but I'm looking for
something a little more mature.
I don't really have a set of requirements other than what I've already
stated -- I'm just looking for some examples to
Hi all,
I want to use image place holders in a mysql field. The field will store a
newsletter article and I want to include and display an image in the
article.
For example I will have:
the article text ##image_name## some more article text.
I will use str_replace to replace ##image_name##
Hi all,
I want to use image place holders in a mysql field. The field will store a
newsletter article and I want to include and display an image in the
article.
For example I will have:
the article text ##image_name## some more article text.
I will use str_replace to replace ##image_name##
This should do it for you
?
$string = Here is a picture ##flowers.jpg## of some flowers;
$string = ereg_replace(##(.+)##, img src=\\\1\, $string);
print($string);
// prints 'Here is a picture img src=flowers.jpg of some flowers'
?
The ##(.+)## parts matches any string with two # at the start
Oops. That should've been
$string = ereg_replace(##([^#]+)##, img src=\\\1\, $string);
- Original Message -
From: Philip Murray [EMAIL PROTECTED]
To: Matthew Delmarter [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, July 11, 2001 3:57 PM
Subject: Re: [PHP] using image place
I am going to take this sideways and push my own agenda. :-)
In your position, I would consider storing the newsletter text
as blobs of XML. Keep it dead simple to start with:
!ELEMENT blob (p+)
!ELEMENT p (#PCDATA|img)
!ELEMENT img (#PCDATA)
which would make your article text:
On Tuesday 10 July 2001 23:04, Jerry Lake wrote:
the only pattern that they share is
that the end of the line ends with a number,
quotes and a closing bracket i.e. 7
I can match that pattern, with .\d but
when I try to replace it, I also replace
the number at the end, and not just append
Hi,
I'm trying to write a function (see below) that will provide equivalent
functionality between ODBC and MySQL for mysql_fetch_array based upon a
preset variable. I've written something that works but A) I'm afraid it
might be quite slow; and B) I'm hoping that there is an existing function
For some reason, at random and without warning, the function just seems to
stop working and does nothing but wait and timeout at 80 seconds. When you
go to the page say www.somedomain.com it just waits and does not load
anything for 80 seconds, and when it does, the images that use
I've seen this around alot ($a-$z) and i'm woundering what it is and what
it does. I'm specifcally talking about the arrow thingy -. I've never
seen it before so i was kinda curious.
thanks
-Adam
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
101 - 186 of 186 matches
Mail list logo