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
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
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
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
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(
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
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
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
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"
>
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]]
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
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
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
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
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
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
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
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...
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
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
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
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
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
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
> 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
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
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
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:
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
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
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
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
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
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
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:
> 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
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
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?
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
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
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
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
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
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.
--
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
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'
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
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
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
> > 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?
> >
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
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
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
101 - 154 of 154 matches
Mail list logo