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

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

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

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

2001-11-30 Thread Darren Gamble
Good day, Oops, you're right. I did not read that line nor was I aware of that. I just tried . It works exactly as it says it should- outputs the lines as they come in. I also know flush() works fine (at least for me). Perhaps you could provide some information about your O/S and PHP versio

RE: [PHP] declaring variables mandatory???

2001-11-30 Thread Brian V Bonini
change error level reporting error_reporting() -Brian > -Original Message- > From: Andy [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 30, 2001 2:38 PM > To: [EMAIL PROTECTED] > Subject: [PHP] declaring variables mandatory??? > > > Hello, > > I have a problem with my php installatio

[PHP] Stuck on array, need a little help.

2001-11-30 Thread Brian V Bonini
I'm stuck. $key returns "Array" how can I get at each level of this array? if ($cat == 'bikes' && $sub_cat != 'Road') { while (list($val, $key)=each($bikes[$sub_cat])) { echo "\n"; echo "$val\n"; $bikes = array( "Road" => array( "Trek" => array(

Re: [PHP] Stuck on array, need a little help.

2001-11-30 Thread Jim Musil
Your script is working like you are asking it to ... Change ... while (list($val, $key)=each($bikes[$sub_cat])) { To ... while (list($key, $val)=each($bikes[$sub_cat])) { and it should work like you WANT it to ... >I'm stuck. $key returns "Array" how can I get at each >level of th

RE: [PHP] Stuck on array, need a little help.

2001-11-30 Thread Brian V Bonini
No, all that will do is reverse the placement of the values. So now it prints out Array and puts the item in the URL. Still the same problem. > -Original Message- > From: Jim Musil [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 30, 2001 4:54 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL P

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

2001-11-30 Thread faeton
Hello Darren, Linux RedHat 7.1, Apache 1.3.20, PHP 4.0.6 DG> Oops, you're right. I did not read that line nor was I aware of that. DG> I just tried . It works DG> exactly as it says it should- outputs the lines as they come in. I also DG> know flush() works fine (at least for me). DG> Perhap

Re: [PHP] Stuck on array, need a little help.

2001-11-30 Thread Hank Marquardt
Well, it's saying that because $key is an array;) For example, "Mountain" is a $sub_cat: > "Mountain" => array( > "Trek" => array( > "Fuel 100" => "mountain.php?brand=tfuel90", > "Fuel 90" => "mountain.php?brand=schhg" >

RE: [PHP] Speed of Images from DB

2001-11-30 Thread Matthew Loff
It would be mighty handy for MySQL to have a binary file column type, like Oracle, where the file was stored externally, outside of the rest of the table data... Anyone heard of any plans to implement this? -Original Message- From: Julio Nobrega Trabalhando [mailto:[EMAIL PROTECTED]]

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

2001-11-30 Thread Darren Gamble
Good day, I am not sure what the problem is, then. I presume that you installed these via RPMs, and have PHP operating as an Apache module. Does the simple script provided fail as well? Have you tried some simple scripts with sleep() and flush() to see if flush() works? If you don't hear from

RE: [PHP] Stuck on array, need a little help.

2001-11-30 Thread Jim Musil
The script is still working right, you just need to nest another while loop into your current while loop. Like so ... if ($cat == 'bikes' && $sub_cat != 'Road') { while (list($val, $key)=each($bikes[$sub_cat])) { echo "$val"; while (list($sub_val, $sub_key) = each($key

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, an

[PHP] Strange problem...

2001-11-30 Thread Daniel Alsén
Hi, i have a strange problem. I get a users birthdate with three dropdown menus (year, month and day of month). I get these values into one string with: $user_birthdate = $birth_year . $birth_month . $birth_day; If i echo $user_birthdate after this it is correct (mmdd). But when i insert t

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

2001-11-30 Thread Darren Gamble
Good day, For whatever reason, your traceroute command is returning results very quickly. It may be functioning normally. Perhaps you should try a command that will take much longer to execute, such as "du / --max-depth=1". Darren Gamble Planner, Regional Services

Re: [PHP] Strange problem...

2001-11-30 Thread faeton
Hello Daniel, 1 Dec 2001, 0:43:42, you've written: What's the propery of field your are inserting your info to? Is it INT or BIGINT or maybe TEXT? Try something new :) DA> Hi, DA> i have a strange problem. DA> I get a users birthdate with three dropdown menus (year, month and day of DA> mont

RE: [PHP] Strange problem...

2001-11-30 Thread Daniel Alsén
Thanks guys... I guess it´s too late here now .) It fixed itself when i altered the field type to varchar. Although - i don´t really get why it can´t store the vlaue i am sendding it the field is of integer type. - Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mai

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

2001-11-30 Thread faeton
Hello Darren, It's quick because of the fact that it's tracing a host near to my server. If you have noticed - ping from my server to login.icq.com that is being traced by default is only 10ms. Try that: www.xemi.info/test.php?host=www.google.com or something like that I waited too long...

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

2001-11-30 Thread faeton
Hello Daniel, Maybe $user_birthdate = (int) $birth_year.$birth_month.$birth_day; would've solved the problem. :) But i'm not 100% sure. DA> I guess it´s too late here now .) It fixed itself when i altered the field DA> type to varchar. Although - i don´t really get why it can´t store the vlaue D

RE: [PHP] Strange problem...

2001-11-30 Thread Jim Musil
This may be a rough explanantion, but when you store numbers, the length is not actually the number of digits, but the number of binary digits it would use when converted from decimal to binary. So, a length of 1, could only have 0 or 1 as inputs. a length of 2 could only have 0,1,2,or 3 The e

[PHP] Don't tell me this isn't possible (object related question)

2001-11-30 Thread Jeroen Olthof
hi, let's say I have made some objects $content = new Content(); and in object content a new object is created $person = new Person("Jeroen"); Person holds a var age Now I want to do something like this in a normal PHP script echo $content->getPerson("Jeroen")->getAge(); or since PHP doesn't

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

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

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."\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

[PHP] Re: Don't tell me this isn't possible (object related question)

2001-11-30 Thread l0t3k
Jeroen, this will be possible with ZE2 (check out the Zend site for more info) Jeroen Olthof <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hi, > > let's say I have made some objects > $content = new Content(); > > and in object content a new object is creat

RE: [PHP] Strange problem...

2001-11-30 Thread Daniel Alsén
> You should really be storing your dates as datetime so you can take > advantage of the date sorting functions. But then you'd need to use > date() to format the string into -mm-dd format. Thanks Jim. but how would i actually do that? I have studied the date() function in the manual - but c

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

[PHP] Getting the filesize of an image?

2001-11-30 Thread Uchendu Nwachukwu
Is there any easy way to get the filesize of an image on a remote server? Please tell me there is! TIA -- Uchendu Nwachukwu newsreply AT unndunn DOT com - www.unndunn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

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

2001-11-30 Thread Kurt Lieber
Yes -- RTFM. http://php.net/getimagesize --kurt On Friday 30 November 2001 04:04 pm, Uchendu Nwachukwu wrote: > Is there any easy way to get the filesize of an image on a remote server? > > Please tell me there is! TIA -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

Re: [PHP] Re: I'm getting frustrated with this.

2001-11-30 Thread chip
Got it! Turns out to be one of those obvious left-it-out errors that happens when staring at the monitor too long. One other guy helped point this out off-list. I'm at home now and don't recall his name, the emails being at work. Thanks to all, Chip On Friday 30 November 2001 12:09 pm, Fred wr

Re: [PHP] PHP Authentication

2001-11-30 Thread EDUMEXICO
Hi, there is a module for apache that autorizes with mysql, the name of the module is: mod_auth_mysql-2.20, that way you can protect files/directories with the .htaccess method. Bye. PD. The module is at: www.mysql.com On Thu, Nov 29, 2001 at 08:59:05PM +, Hippie wrote: > I'm attempting au

Re: [PHP] Authenticating Users with their Windows Login - Desperate

2001-11-30 Thread EDUMEXICO
Hi all, I know that this is NOT the best answer, but maybe it works, so here it is: when some people type a login and a password for access a secure page, you read that values and the IP address of the user, then you tell smbclient to find the NT password server (but if you know the addreess th

[PHP] php without the php.ini

2001-11-30 Thread Kunal Jhunjhunwala
Hi, How can PHP work without the php.ini file? I have tried to find the php.ini file on a RAQ3, to no success. Looking at the php info and then looking at the system directories doesnt yield anything. The same goes with a server running the Plesk control panel. Any ideas on how this is done? Rega

[PHP] Hi, Friend! We wish You a pleasant and successful day!

2001-11-30 Thread Herdy Arbon
DEAR FRIEND! If You show some interest and patience, and visit http://www.escalix.com/freepage/goldflow/, You can earn up to $100,000 and more during the following 120 days - it depends only on You. DOES IT SEEMS TO BE IMPOSSIBLE??? Just visit link below and read attentively to be sure there is n

[PHP] Re: Authenticating Users with their Windows Login - Desperate

2001-11-30 Thread Philip Hallstrom
What web server are you using? You can do this within IIS directly... if it's apache you might go here: http://modules.apache.org/search and search for "auth" or "windows"... I've seen some modules that do this... never used them though. On Fri, 30 Nov 2001, EDUMEXICO wrote: > Hi all, I kno

RE: [PHP] php without the php.ini

2001-11-30 Thread Jack Dempsey
are you sure its not there? where does phpinfo say its located? its really not there? hmm...i'm not sure, but php might just use its own internal defaults without a php.ini present, but i thought it was needed..who knows.. jack -Original Message- From: Kunal Jhunjhunwala [mailto:

Re: [PHP] php without the php.ini

2001-11-30 Thread Paul Warner
> Hi, > How can PHP work without the php.ini file? I have tried to find the php.ini > file on a RAQ3, to no success. Looking at the php info and then looking at > the system directories doesnt yield anything. > The same goes with a server running the Plesk control panel. > > Any ideas on how this

[PHP] Remote_User and Password reset

2001-11-30 Thread Michael J. Seely
Hi Folks, I know I can get $REMOTE_USER info. How can I reset the remembered user name and password in the browser for a specific URL from a PHP program? -- _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ Michael Seely 408-777-9949 -- PHP General Mailing Li

[PHP] [광고] 유용한 정보입니다!!!

2001-11-30 Thread 웹미디어스쿨

[PHP] XML and PHP - dynamic hell

2001-11-30 Thread Chris
I'm having one page output XML for other sites to parse. Unfortunately if I give an RSS parser the site (the php file) it errors out. But if I put the output in a XML file, and give that to the RSS parser everything works perfectly. Does anyone know why it can't read it straight from the php file?

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

2001-11-30 Thread Uchendu Nwachukwu
Not the dimensions. Of course I knew that. I want the file size, as in 'how many bytes'. GetImageSize() doesn't do that. -- Uchendu Nwachukwu newsreply AT unndunn DOT com - www.unndunn.com "Kurt Lieber" <[EMAIL PROTECTED]> wrote in message E169xrH-0001ED-00@z8">news:E169xrH-0001ED-00@z8... > Ye

[PHP] $PHP_AUTH_USER & $PHP_AUTH_PW Dialog?

2001-11-30 Thread Chris Boothe
Filling these variables seems to work, but what is the header to send for a valid login? I can't seem to suppress the dialog. I have an HTML form which calls login.php. When I access the script through a redirection in the login, I don't want to see the prompt. There seems to be a lot of examp

[PHP] file_exists problems

2001-11-30 Thread Prolog
I had a script that was running beautiful that simply called up a database and displayed the results in tables. I went to add images to this script and all hell broke loose. This is the portion of the script that I added: -- //filename is the item number + t.jpg -- t shorthand for thu

[PHP] why didnt you come watch me on my webcam? you said you would! w

2001-11-30 Thread
Below is the result of your feedback form. It was submitted by ([EMAIL PROTECTED]) on Friday, November 30, 2001 at 20:45:27 --- : hey babe, it's karina remember me? if you don't im 5'8" with brown hair and blue :eyes with

[PHP] call_user_func problem

2001-11-30 Thread C
Prior to 4.0.6 it worked fine, however, now when I try: $result = call_user_func("foo", &$bar); function foo( &$bar ) { $bar .= 'foobar'; return 1; } I get this: Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference

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

2001-11-30 Thread faeton
Hello Uchendu, Maybe comething like that would do that: 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. --

Re: [PHP] file_exists problems

2001-11-30 Thread faeton
Hello Prolog, Hm... And what about: print ''; 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

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'

Re: [PHP] Don't tell me this isn't possible (object related question)

2001-11-30 Thread Matt McClanahan
On Sat, Dec 01, 2001 at 12:15:37AM +0100, Jeroen Olthof wrote: > let's say I have made some objects > $content = new Content(); > > and in object content a new object is created > $person = new Person("Jeroen"); > > Person holds a var age > > Now I want to do something like this in a normal PH

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

2001-11-30 Thread Matt McClanahan
On Fri, Nov 30, 2001 at 07:04:08PM -0500, Uchendu Nwachukwu wrote: > Is there any easy way to get the filesize of an image on a remote server? > > Please tell me there is! TIA It scares me that nobody has answered with filesize() yet. Matt -- PHP General Mailing List (http://www.php.net/) To

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 par

[PHP] Re: [PHP-DB] PHP/Mysql

2001-11-30 Thread Paul Warner
> > Hello, > > I've got cobalt raq4 with php(work) and mysql(work) but when I try to > > connect via mysql_connect() this error happens: > > Fatal error: Call to undefined function: mysql_connect() > > This is my php.ini: > > I thing that it's all ok but it doesn't work. > > Any Ideas? > >

[PHP] 5928 Would you like to lose weight while you sleep? 537417

2001-11-30 Thread 753741ultimate
As seen on NBC, CBS, CNN, and even Oprah! The health discovery that actually reverses aging while burning fat, without dieting or exercise! This proven discovery has even been reported on by the New England Journal of Medicine. Forget aging and dieting forever! And it's Guaranteed! Click

Re: [PHP] Session Help

2001-11-30 Thread Papp Gyozo
PHP automatically calls the appropiate function instead if you. But consider that the save handler is not called on individual session_register functions, only when all output is gone, and the whole session - each registered variable - must be saved. Note: The "write" handler is not ex

RE: [PHP] Problem connecting to mysql via odbc

2001-11-30 Thread Andrew Hill
Mweb, Set your ODBCINI environment variable (and others) as per the HOWTO at www.iodbc.org. This HOWTO is for iODBC, but the concepts are the same for this error condition. Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Acc

<    1   2