[PHP] Pb installaling gd extension on a win32 server

2002-12-20 Thread fragmonster
Hello, I have migrate my site from a linux to a win32 server :-{
I need to use the php_gd.dll library but my pb is that I've downloaded 
the php installer from php.net with no external extensions included. So, 
I have downloaded the php_gd.dll, put it into a directory 
(d:\php\extension) I have created, I have modified the extention_dir 
param in php.ini, but I always have a windows message box:
Unable to load dynamic library

Please help


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: JavaScript or browser detection

2002-12-19 Thread fragmonster
Hope it helps you: 
http://developer.netscape.com/docs/examples/javascript/browser_type_oo.html

Steve Vernon wrote:
Hiya,
I know it is probably out there somewhere, but I cannot find out a
script to detect the browser. I have seen it, and I sorta remember how to do
it, but I just can't find it!

I have a script that adds nice features to my webpage, but if JavaScript
is off the site still can be used. Basically the script does not work in
Netscape 4.08 but works above that, so either I could bracket out and check
the code, but in this case I cannot as it is code I am not allowed to alter,
and I include it, it is not in my HTML file.

So I need a way to say in PHP this is a bad web browser for JavaScript,
so ignore this bit of the file.

Thanks,

Steve




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] who is connected?

2002-12-18 Thread fragmonster
Hello,
Can you share your method to display the users who are connected to your 
web site?

I did it, but I don't know if it's a good way.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] who is connected?

2002-12-18 Thread fragmonster
Ok, it's exactly the same way I'm using. I was wondering if it was 
another way to do the trick.

Jason Reid wrote:
How I do it for my sites is borrowing from the concept that phpBB uses...
every time a user accesses a page within the site, update the DB with the
username and a timestamp. then have the script that figures out who is on
delete any records older then a specified time, and return the users that
are left. it doesn't display everyone who is on in real time, but any one
who was on within a certain period (usually I stick with 5 minutes)

If any one else has any interesting/creative ways, I'd love to hear them
also.

Jason Reid
[EMAIL PROTECTED]
--
AC Host Canada
www.achost.ca

- Original Message -
From: fragmonster [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 18, 2002 1:05 AM
Subject: [PHP] who is connected?




Hello,
Can you share your method to display the users who are connected to your
web site?

I did it, but I don't know if it's a good way.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php








--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Number of sessions

2002-12-17 Thread fragmonster
Hello,
Is there a way to count how many sessions are opened on a PHP web site?


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Use of undefined constant error

2002-12-17 Thread fragmonster
Hello,
I've got a strange pb. Here's my code

?
if(isset($_GET[id])){
	do something...
else
	do something else
}
?

When I call myfile.php I've got the somthing else with no error.
When I call myfile.php?id=1 I've got the something but with an error 
message Notice: Use of undefined constant id - assumed 'id' in ...

Please help


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Use of undefined constant error

2002-12-17 Thread fragmonster
Hello,
I've got a strange pb. Here's my code

?
if(isset($_GET[id])){
do something...
else
do something else
}
?

When I call myfile.php or myfile.php?id=1 I've got an error message 
Notice: Use of undefined constant id - assumed 'id' in ...

Please help


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Resize an image from URL

2002-12-10 Thread fragmonster
Hi,

I want to resize an image from an URL if it is too large. Is there a way 
to know the size (width and height) of an image from an url without 
download it?

For exemple: getWidth(http://www.toto.com/imlage.gif)


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Resize an image from URL

2002-12-10 Thread fragmonster
No,no. I just want to display distant images on my site (from another 
site). But, in order to not crash my look, just before display the image 
I want to evaluate its size. If it is too large I put a width attribute 
in the img tag.

I want to do that:

$imgWidth = getWidth(www.toto.com/image.gif);
if($imgWidth  400)
	echo img src=www.toto.com/image.gif width=400;
else
	echo img src=www.toto.com/image.gif;

I just want to know if it is possible to do the getWidth() function 
without download the image on the server.


Lokesh Setia wrote:

I dont believe that such a function would already exist.  If saving 
network bandwidth is your aim, you can open an HTTP connection yourself, 
read only the first 10 bytes, and close the connection.  The first six 
bytes of an GIF image is always 'GIF87a' or 'GIF89a'.  Then comes the 
width as a 16-bit integer (LSB first), and then the height, also as a 
16-bit integer.

see details of the format here:
http://www.daubnet.com/formats/GIF.html

hth
loki#


Fragmonster wrote:

Hi,

I want to resize an image from an URL if it is too large. Is there a 
way to know the size (width and height) of an image from an url 
without download it?

For exemple: getWidth(http://www.toto.com/imlage.gif)





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php