Re[2]: [PHP] How do I check GD version?

2001-12-09 Thread faeton

Hello Rasmus,

9  Dec 2001, 1:55:56, you've written:
RL phpinfo() would tell you.  Look for the block titled GD.  If you don't
RL see one, you don't have GD support in your PHP build.

And what if it is written there that i've got GD version 1.6.2 or
higher?


Ivan 'Faeton aka xetrix' Danishevsky
ICQ(240266) [EMAIL PROTECTED] www.xemi.info


-- 
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]




[PHP] off

2001-12-05 Thread faeton



Linux is like a wigwam - no windows, no gates, aðache inside!



Ivan 'Faeton aka xetrix' Danishevsky
ICQ(240266) [EMAIL PROTECTED] www.xemi.info


-- 
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]




Re[2]: [PHP] Re: Something wrong with the file() command.

2001-12-03 Thread faeton

Hello Valentin,

Hehe, Valentin. Send my regards to beloved Zaporozhye and it's ppl :)
Haven't been there for ages. Eh...

VVP Try this:
VVP ?php
VVP echo pre;
VVP print_r ($temp);
VVP echo /pre;
?
VVP and look for $temp content.


--
Ivan 'Faeton aka xetrix' Danishevsky
ICQ(240266) [EMAIL PROTECTED] www.xemi.info


-- 
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]




Re[2]: [PHP] file_exists problems

2001-12-01 Thread faeton

Hello Prolog,

If course it doesn't use relative positioning.
You should do it like that file_exists(images/...) instead of
(/images/...). That's all :)



P I've since tried that also.  It too seems to return the same error.  I'm
P curious if the file_exists can't use relative positionslike it has to be
P in the same folder or you have to use the whole line like c:\  I'm
P working on a box that isn't mine of the net...if that's the case I don't
P know my full directory line.  Just a thought but I'm not sure.  I'll include
P my full code below...as it sits now.  Maybe you can see something that I
P can't.



Ivan 'Faeton aka xetrix' Danishevsky
ICQ(240266) [EMAIL PROTECTED] www.xemichat.com
::: Ñåãîäíÿ òðè ðàçà ïîäóìàë... Î÷åíü óñòàë... :::


-- 
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]




Re[2]: [PHP] Getting the filesize of an image?

2001-12-01 Thread faeton

Hello Matt,

Of course it does not, but as i've already said file() with strlen()
can be used. :)

MM If you want the size of a remote file, you'll have to download it; HTTP
MM doesn't provide a way to query a remote file's size.  FTP does, if you have
MM FTP access.



Ivan 'Faeton aka xetrix' Danishevsky
ICQ(240266) [EMAIL PROTECTED] www.xemichat.com


-- 
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]




Re[2]: [PHP] Getting the filesize of an image?

2001-12-01 Thread faeton

Hello Matt,

So does that problem have a solution?

MM Not on binary files.  For an image that's 4494 bytes, file/join/strlen gives
MM me 3512.  And since file() on a remote file is downloading it anyway, you
MM might as well do it right:
MM $fp = fopen('http://example.com/image.jpg','r');
MM while (!feof($fp))
MM $image .= fread($fp,1024);
MM echo strlen($image);
MM Matt



Ivan 'Faeton aka xetrix' Danishevsky
ICQ(240266) [EMAIL PROTECTED] www.xemichat.com


-- 
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]




[PHP] system(), flush() and so on...

2001-11-30 Thread faeton

Salute, PHP list :),

  Aloha, ppl.
  Could anybody explain 2 me what da heck is wrong with flush(). What
  is needed for it to run as needed? :) If I'm to mistaken that should
  be an php module for apache? And what if it's compiled together with
  apache? I dunno what 2 do.



Ivan 'Faeton aka xetrix' Danishevsky
ICQ(240266) [EMAIL PROTECTED] www.xemichat.com


-- 
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]




Re: [PHP] Re: system(), flush() and so on...

2001-11-30 Thread faeton

Hello Julio,

Hm... I don't even know what to specify :)
The exact problem is using system(traceroute host.com), but it
should've returned its results line by line, instead of executing the
whole command and then outputting its result.

That is done by flush(), which is executed by system() foo itself, but
i couldn't understand why i have needed result on some servers and on
others - vice versa.

JNT   Hi, please be more specific. Including what error you are getting, what is
JNT the tools being used, and their versions.
JNT   Here's a quick help for producing better questions, wich will in turn make
JNT us answer faster and with more quality:
JNT http://www.tuxedo.org/~esr/faqs/smart-questions.html
JNT   PS: btw, I am far away from being a 'hacker', don't get me wrong whole
JNT list people :-)


Ivan 'Faeton aka xetrix' Danishevsky
ICQ(240266) [EMAIL PROTECTED] www.xemichat.com


-- 
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]




Re[2]: [PHP] Re: system(), flush() and so on...

2001-11-30 Thread faeton

Hello Darren,

-- manual cut 
The system() call also tries to automatically flush the web server's
output buffer after each line of output if PHP is running as a server
module.
-- manual cut 

Hehe. The problem is not in flushing ability of system() foo, but
flush() itself is not working :(
I've tried to install PHP as a module (as written above), cgi,
compiled with apache. But nothing worked.

DG flush() will just empty the contents of the output buffer when it's called.
DG You should do this after you output the command, yes, or the user will have
DG to wait until the rest of the page is loaded.  But this won't let you see
DG the output as it is generated by the system() function.

DG You may want to try popen instead.  This gives you a pipe to the process, so
DG you _should_ be able to read in lines of the output and display them as they
DG appear, whilst using flush()  (although I have never tried this myself so I
DG can not vouch for it).



Ivan 'Faeton aka xetrix' Danishevsky
ICQ(240266) [EMAIL PROTECTED] www.xemichat.com


-- 
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]




Re[6]: [PHP] Re: system(), flush() and so on...

2001-11-30 Thread faeton

Hello Darren,

You can try it yourself : www.xemi.info/test.php
What do you think?

Server config:
RedHat 7.1, Apache 1.3.20, PHP 4.0.6 loaded as a module.

PS. I tried everything. Simply everything.

DG I am not sure what the problem is, then.  I presume that you installed these
DG via RPMs, and have PHP operating as an Apache module.  Does the simple
DG script provided fail as well?
DG Have you tried some simple scripts with sleep() and flush() to see if
DG flush() works?
DG If you don't hear from anyone else on the list, you may want to try posting
DG a bug report.


Ivan 'Faeton aka xetrix' Danishevsky
ICQ(240266) [EMAIL PROTECTED] www.xemichat.com


-- 
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]




Re[10]: [PHP] Re: system(), flush() and so on...

2001-11-30 Thread faeton

Hello Darren,

Something quick is like that?
for($i = 0; $i  10; $i++) {
print $i.br\n;
flush();
sleep(3);
};

Yeah? There it is:
www.xemi.info/flush.php

DG Then I'm not sure.  Perhaps someone in-the-know will respond to your
DG question.  Else, file a bug report.  Your script runs fine on my 'puter,
DG FYI.
DG Otherwise, it would be worthwhile to write something quick to test flush()
DG with.  If it is also not working, it will provide more evidence as to the
DG cause of the problem.



Ivan 'Faeton aka xetrix' Danishevsky
ICQ(240266) [EMAIL PROTECTED] www.xemichat.com


-- 
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]




Re[2]: [PHP] Strange problem...

2001-11-30 Thread faeton

Hello Daniel,

$date = $birth_year.-.$birth_month.-.$birth_day;

And you can try inserting such kind o' date to a DATETIME field.

There's an alternative way:
$time = mktime(0,0,0, $birth_month, $birth_day, $birth_year);
That would return a unix timestamp that can be written to a BIGINT
field and in future returned by using date(m.d.Y, $time) from your
sql query.

He.

DA Thanks Jim.
DA but how would i actually do that? I have studied the date() function in the
DA manual - but can´t find a way of inserting a set value from user input as a
DA valid date.
DA - D



Ivan 'Faeton aka xetrix' Danishevsky
ICQ(240266) [EMAIL PROTECTED] www.xemichat.com


-- 
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]




Re[2]: [PHP] Getting the filesize of an image?

2001-11-30 Thread faeton

Hello Uchendu,

Maybe comething like that would do that:

?
$fo = implode(\n, file(http://www.foo.net/image.jpg;));
$size = strlen($fo);
?

Eh? :)

UN Not the dimensions. Of course I knew that.
UN I want the file size, as in 'how many bytes'. GetImageSize() doesn't do
UN that.



Ivan 'Faeton aka xetrix' Danishevsky
ICQ(240266) [EMAIL PROTECTED] www.xemichat.com
::: #95# Format C: complete. Format another? (Y/Y) :::


-- 
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]




Re: [PHP] file_exists problems

2001-11-30 Thread faeton

Hello Prolog,


Hm... And what about:
print 'img src=/images/$filename';
instead of readfile?


P  if(file_exists(/images/$filename))
P  {
P   readfile(/images/$filename);
P  }
P  else
P  {
P   readfile(images/npat.jpg);
P  }




Ivan 'Faeton aka xetrix' Danishevsky
ICQ(240266) [EMAIL PROTECTED] www.xemichat.com
::: Ñòîèò òîëüêî çàîñòðèòü âîïðîñ, êàê ñðàçó ïðîñÿò çàêðóãëÿòüñÿ. :::


-- 
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]




Re: [PHP] call_user_func problem

2001-11-30 Thread faeton

Hello C,


That means that you should create a .htaccess file containing that:

php_value allow_call_time_pass_reference 1

That should work :)

C Prior to 4.0.6 it worked fine, however, now when I try:

C $result = call_user_func(foo, $bar);

C function foo( $bar ) {
C$bar .= 'foobar';
Creturn 1;
C }

C I get this:

C Warning: Call-time pass-by-reference has been deprecated - argument passed
C by value; If you would like to pass it by reference, modify the declaration
C of call_user_func(). If you would like to enable call-time
C pass-by-reference, you can set allow_call_time_pass_reference to true in
C your INI file. However, future versions may not support this any longer.

C Does that mean I can't pass by reference anymore? I kinda need to (the two
C functions above are not my actual functions btw)



Ivan 'Faeton aka xetrix' Danishevsky
ICQ(240266) [EMAIL PROTECTED] www.xemichat.com
::: Ñëîíû ïî äåpåâüÿì íå ëàçàþò. Îíè ìîãyò, íî èõ ëîìàåò. :::


-- 
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]




Re[2]: [PHP] Getting the filesize of an image?

2001-11-30 Thread faeton

Hello Matt,

filesize() works only on local filesystems.

MM It scares me that nobody has answered with filesize() yet.
MM Matt



Ivan 'Faeton aka xetrix' Danishevsky
ICQ(240266) [EMAIL PROTECTED] www.xemichat.com
::: Documentation - The worst part of programming. :::


-- 
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]




Re: [PHP] problem with urlencode

2001-11-29 Thread faeton

Hello Sjoerd,

U can try using htmlentities().

OSv I have a problem putting through a variable which contains an  in the
OSv string.
OSv When the variabele is something like: 
OSv a href=test.php?name=robsjoerdclick here/a



Ivan 'Faeton aka xetrix' Danishevsky
ICQ(240266) [EMAIL PROTECTED] www.xemichat.com


-- 
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]




Re: [PHP] Help anyone

2001-11-29 Thread faeton

Hello Dan,

Thursday, November 29, 2001, 7:11:22 PM, you've written:
DM I need to edit a entry into the database via an admin script, how do I work in a 
radio selection
DM box, and populate it with the correct selection?

Something like that, maybe :)

input type=radio name=var value=1
input type=radio name=var value=2
input type=radio name=var value=3




Ivan 'Faeton aka xetrix' Danishevsky
ICQ(240266) [EMAIL PROTECTED] www.xemichat.com


-- 
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]




Re[2]: [PHP] Help anyone

2001-11-29 Thread faeton

Hello Mike,

And cleaner:
?
print 'option value=On-Line'.($edit['status'] == 'On-Line' ? ' selected' : '').'';
print 'option value=Off-Line'.($edit['status'] == 'Off-Line' ? ' selected' : 
'').'';
?

:)

ME select name=status
ME option value=On-Line? if ($edit['status'] == 'On-Line') { echo ' 
ME selected=selected'; } ?On-Line/option
ME option value=Off-Line? if ($edit['status'] == 'Off-Line') { echo ' 
ME selected=selected'; } ?Off-Line/option
ME /select
ME ?
ME There's much better/general ways to do it, but the above is a nice,
ME clean, quick and dirty way of doing it. Yes, clean and dirty. ;)



Ivan 'Faeton aka xetrix' Danishevsky
ICQ(240266) [EMAIL PROTECTED] www.xemichat.com
::: Äåíüãè - çëî. È òåì áîëüøå, ÷åì èõ ìåíüøå. :::


-- 
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]




[PHP] resizing images.

2001-11-29 Thread faeton

BTW, could anybody share its experience in writing scripts that can
resize images? And what extensions should be installed on server 4
such operationz.

Thanx.

--- Hit any user to continue. --- :)


Ivan 'Faeton aka xetrix' Danishevsky
ICQ(240266) [EMAIL PROTECTED] www.xemichat.com
::: Fatal error: memory size too big. :::


-- 
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]




Re: [PHP] Re: resizing images.

2001-11-29 Thread faeton

Hello Henrik,

That should be oK 4 my server, but how about my home apache+php on
win? Any solution?

HH here are some examples:
HH http://www.zend.com/codex.php?CID=344
HH you need GDlib installed or a command line tool such as imagemagick.



Ivan 'Faeton aka xetrix' Danishevsky
ICQ(240266) [EMAIL PROTECTED] www.xemichat.com


-- 
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]




Re: [PHP] Enabling magic quotes and sybase quotes for just one domain on a virtual server

2001-11-29 Thread faeton

Hello Alain,

In httpd.conf (or .htaccess) you can make:

php_value magic_quotes_gpc On
php_value magic_quotes_sybase On

Yeah, just like that :)

AD magic_quotes_gpc= On
AD magic_quotes_sybase = On

AD The problem is that if i modify the php.ini file the other applications 
AD will go with many bugs ...

AD So, is there a way to modify theses parameters for an entire domain 
AD name, i've notice that it will be perharps possible in some messages, 
AD but don't find how to do this ...

AD If somebody know how to do this ...



Ivan 'Faeton aka xetrix' Danishevsky
ICQ(240266) [EMAIL PROTECTED] www.xemichat.com
::: Äåâóøêàì íå õâàòàåò æåíñòâåííîñòè, à æåíùèíàì - äåâñòâåííîñòè. :::


-- 
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]




Re: [PHP] storing dates 2038

2001-11-28 Thread faeton

Maybe You should try multiplying two date values? :)
JL I hope this is the right place to ask this.
JL How can you use mktime() to store a date in integer format that is  2040?
JL We are archiving material, some of which is closed for a set period if
JL time (e.g. 40 years, 50 years, etc.)



Ivan 'Faeton aka xetrix' Danishevsky
ICQ(240266) [EMAIL PROTECTED] www.xemichat.com


-- 
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]




Re[2]: [PHP] Help - html mail

2001-11-28 Thread faeton

Hello Hank,

Wednesday, November 28, 2001, 11:11:38 PM, you've written:
HM http://www.php.net/stripslashes
HM ... in short they are there to ease db insertions.

Turn off magic quotes or use stripslashes().

:)


Ivan 'Faeton aka xetrix' Danishevsky
ICQ(240266) [EMAIL PROTECTED] www.xemichat.com


-- 
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]




Re: [PHP] include or fread a binary file?

2001-11-28 Thread faeton

Hello Bryant,

Thursday, November 29, 2001, 12:56:07 AM, you've written:
BB I have a flash file that I need to embed in an iframe on a page. I
BB dynamically get the path to the file from a MySQL database. I've
BB tried to include the file and use fopen/fread to execute the
BB file, but I only get binary code back, which makes sense actually.
BB What's the best way to go about this?

Maybe something like:
header(Content-type: image/swf-flash);
(if I am not mistaken)

Or just embed src=filename.swf/embed would be easier? :)



Ivan 'Faeton aka xetrix' Danishevsky
ICQ(240266) [EMAIL PROTECTED] www.xemichat.com


-- 
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]




[PHP] ? print $val; ?

2001-11-28 Thread faeton

Does anyone know that ? print $val; ? is equal ?=$val?, eh? :)
Just wanted you to know :)



Ivan 'Faeton aka xetrix' Danishevsky
ICQ(240266) [EMAIL PROTECTED] www.xemichat.com


-- 
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]