php-general Digest 21 Feb 2001 12:50:32 -0000 Issue 525

Topics (messages 40864 through 40940):

Re: httpd.conf question...
        40864 by: David Robley

Re: Postgresql session handling
        40865 by: Bolt Thrower
        40890 by: Yasuo Ohgaki

set_error_handler()
        40866 by: Steve Meyers

object/array with repeating values
        40867 by: Jared Howard
        40869 by: Simon Garner

Navigation
        40868 by: Chris
        40874 by: Chris Lee

Re: object/array with repeating values (WORKS)
        40870 by: Jared Howard

Is it possible to use CyberCash w/o MCK?
        40871 by: Ben Schumacher
        40875 by: jason cox

file permissions
        40872 by: Fredy Dobler

Re: Where do i look up return status codes?
        40873 by: George Herson

Problems with Mail
        40876 by: Chris Anderson
        40879 by: David Robley
        40884 by: Chris Anderson
        40889 by: David Robley
        40935 by: Chris Anderson

php and javascript
        40877 by: Carl Natale
        40878 by: Simon Garner
        40904 by: Ankur Verma

Re: Strange behaviour: Cannot exit as expected AND Script starts from the beginning, 
executed TWICE. Anyone?
        40880 by: Yasuo Ohgaki
        40882 by: Yasuo Ohgaki

Re: Help!! IP functions!!!
        40881 by: Yev

fopen problem... maybe?
        40883 by: Ben Weinberger
        40886 by: David Robley

Link back to where u came from..?
        40885 by: Dhaval Desai
        40896 by: richard merit

Asking Sth about PHP
        40887 by: Ng Chun Chi
        40893 by: Michael Stearne

% Help
        40888 by: Jeff Lacy
        40891 by: Simon Garner
        40892 by: David Robley

Re:Fwd
        40894 by: Dennis Gearon

URGENT: IE pops-up an Error and File Download Fails. Needs to be fixed NOW. Please 
advise.
        40895 by: Maxim Maletsky
        40897 by: Boaz Yahav
        40899 by: Boaz Yahav
        40900 by: Maxim Maletsky
        40902 by: Maxim Maletsky
        40906 by: Maxim Maletsky
        40907 by: Boaz Yahav
        40908 by: Boaz Yahav
        40909 by: Maxim Maletsky
        40910 by: Boaz Yahav
        40912 by: Maxim Maletsky
        40913 by: Maxim Maletsky
        40915 by: Maxim Maletsky

Re: Linking back to where you came from..
        40898 by: Dhaval Desai

Re: Terrible Hosting Experience
        40901 by: Boaz Yahav

Re: Can you make a file empty?
        40903 by: Boaz Yahav
        40936 by: Tim Ward

smtp protocol
        40905 by: toto

Re: what's the difference between include and require??
        40911 by: Boaz Yahav

Re: Pay for help
        40914 by: Boaz Yahav
        40921 by: Maxim Maletsky

Re: Getting LDAPS to work
        40916 by: Stig Venaas

Re: URGENT: IE pops-up an Error and File Download Fails. FI XED (no idea how)
        40917 by: Maxim Maletsky

cURL library and auto-loggin to a site
        40918 by: Christie, Darren

Database Paging using MSSQL 2000
        40919 by: Ankur Verma

Document Management System in PHP
        40920 by: Kraa de Simon

Re: CGI BIN PHP
        40922 by: Hrishi

Urgent! Make data input a html file.
        40923 by: Edith Lai
        40928 by: Hrishi

Re: No result - need advice.
        40924 by: Rick Hodger

.ins file
        40925 by: Martin

Re: system() PHP newbie!!
        40926 by: Christian Reiniger

Can you check if someone is online on your homepage?
        40927 by: Jan Grafström

access violation
        40929 by: Wade Halsey

Re: email a page as attachment
        40930 by: kaab kaoutar
        40938 by: Ankur Verma

Re: Help?
        40931 by: Tim Ward

send a mail
        40932 by: Emanuele De Fazio
        40933 by: Delbono
        40939 by: Emanuele De Fazio

HELP! IBase - PHP
        40934 by: Niel Zeeman

Re: Get name of current function
        40937 by: Robert Vetter

Deleting mySql records based on dates
        40940 by: Thomas Edison Jr.

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------


On Wed, 21 Feb 2001 07:56, Brandon Orther wrote:
> Hello,
>
> Is there a way to make an .htaccess file to make the server not time
> out when uploading a file?
>
> Thank you,

http://www.php.net/manual/en/configuration.php


-- 
David Robley                        | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
AusEinet                            | http://auseinet.flinders.edu.au/
            Flinders University, ADELAIDE, SOUTH AUSTRALIA




"Richard Lynch" <[EMAIL PROTECTED]> wrote:
> The writing of the session data occurs *after* the server-browser HTTP
> connection is cut.

> If you have any error-reporting happening in your session_write function,
> you won't see it.

> Alter that function to log errors to a file or something.

It seems the pgsql_session_write() function is not even being invoked.
Here it is:

+-----------------------------------------------------------------
| function pgsql_session_write($key, $val)
| {
|       /* debugging */
|       $fp = fopen("/tmp/phpdebugwrite","w") or die ("can't open file");
|     fwrite($fp, "HERE");
|     fclose($fp);
|       /* end debug */
| 
|     global $pgsql_session_handle, $pgsql_session_table;
| 
|     $key = addslashes($key);
|     $val = addslashes($val);
|     $now = time();
| 
| 
| 
|     /*
|      * Delete any existing data for this session and then insert a new row
|      * containing the current session data, all in a single transaction.
|      * This should prevent collisions between multiple session instances.
|      *
|      * Thanks to "Will Fitzgerald" <[EMAIL PROTECTED]>.
|      */
|     $query = 'begin; ';
|     $query .= "delete from $pgsql_session_table where session_id = '$key'; ";
|     $query .= "insert into $pgsql_session_table values('$key', $now, '$val'); ";
|     $query .= 'commit;';
|     $result = @pg_exec($pgsql_session_handle, $query);
| 
|     $ret = (pg_cmdtuples($result) == 0);
|     pg_freeresult($result);
| 
|     return ($ret);
| }
+-----------------------------------------------------------------

I've added the debugging statements at the top.  Can you see anything
wrong with this function?  At the end of the include file in which
this appears, is the session_set_save_handler() call:

session_set_save_handler(
    'pgsql_session_open',
    'pgsql_session_close',
    'pgsql_session_read',
    'pgsql_session_write',
    'pgsql_session_destroy',
    'pgsql_session_gc'
);


Thanks,
-- 
Steve <[EMAIL PROTECTED]>
"And when you walk in golden halls, you get to keep the gold that falls"
    -- Black Sabbath, "Heaven and Hell"




>"Richard Lynch" <[EMAIL PROTECTED]> wrote:
> > The writing of the session data occurs *after* the server-browser HTTP
> > connection is cut.
>
> > If you have any error-reporting happening in your session_write 
>function,
> > you won't see it.
>
> > Alter that function to log errors to a file or something.
>
>It seems the pgsql_session_write() function is not even being invoked.
>Here it is:
>
>+-----------------------------------------------------------------
>| function pgsql_session_write($key, $val)
>| {
>|      /* debugging */
>|      $fp = fopen("/tmp/phpdebugwrite","w") or die ("can't open file");
>|     fwrite($fp, "HERE");
>|     fclose($fp);
>|      /* end debug */

Why don't you just use error_log() function and write errors to a file?

>|
>|     global $pgsql_session_handle, $pgsql_session_table;
>|
>|     $key = addslashes($key);
>|     $val = addslashes($val);
>|     $now = time();
>|
>|
>|
>|     /*
>|      * Delete any existing data for this session and then insert a new 
>row
>|      * containing the current session data, all in a single transaction.
>|      * This should prevent collisions between multiple session instances.
>|      *
>|      * Thanks to "Will Fitzgerald" <[EMAIL PROTECTED]>.
>|      */
>|     $query = 'begin; ';
>|     $query .= "delete from $pgsql_session_table where session_id = 
>'$key'; ";
>|     $query .= "insert into $pgsql_session_table values('$key', $now, 
>'$val'); ";
>|     $query .= 'commit;';
>|     $result = @pg_exec($pgsql_session_handle, $query);

I've seen this kind of implmentatin

delete ....
insert ....

IMHO, 2 sql operation that requires locks for session handling is just a 
waste
of resources. (delete requires higher lock level than select, transaction 
needs more resources, for each delete, insert requires fsync() and requires 
more disk head movements, etc, etc)
Unless you would like to implement some kind of session key validation to 
session handlers, simple

select ....
insert or update ...

may give better performance with many web servers and users. (may not make 
any significant improvement, though. Disabling PostgreSQL's fsync() for 
session db would much better result. Just FYI)

>|
>|     $ret = (pg_cmdtuples($result) == 0);
>|     pg_freeresult($result);
>|
>|     return ($ret);
>| }
>+-----------------------------------------------------------------
>
>I've added the debugging statements at the top.  Can you see anything
>wrong with this function?  At the end of the include file in which
>this appears, is the session_set_save_handler() call:

You will not get output from die('.....') ( or any print/echo) in session
handlers. Just use error_log() or implement user defined error handler
so that you can trigger error to display session handler errors.

my example pg_session_write() looks like:

function pg_session_write ($session_id, $session_data) {
        global $db_session, $HTTP_SERVER_VARS, $HTTP_COOKIE_VARS;
        if (!$db_session) {
                error_log("session_write(): Cannot connect to database.",0);
        }
        if (strlen($session_data) > intval(SESS_DATA_MAX)) {
                error_log('Session data too large. Unable to update session data for 
session '. $session_id, 0);
        }

        if (strlen($session_id) != 32) {
                error_log("session_write(): Invalid Session ID",0);
                return 0;
        }
        $session_id = addslashes($session_id);
        $session_data = addslashes($session_data);
        $uid = isset($HTTP_COOKIE_VARS['t_uid']) ? 
addslashes($HTTP_COOKIE_VARS['t_uid']) : '';

        $query = 'SELECT session_id, i_session_counter FROM '. SESS_TABLE ." WHERE 
session_id = '$session_id'";
        $result_id = pg_exec($db_session,$query);
        $session_exist = pg_numrows($result_id);

        if ($session_exist == 0) {
//              $query = 'INSERT INTO '. SESS_TABLE ." (session_id, i_time_created, 
i_last_active, t_remote_addr, t_session_data) VALUES ('$session_id', ". 
time() .", ". time() .", '". 
isset($HTTP_ENV_VARS['HTTP_X_FORWARDED_FOR'])?$HTTP_ENV_VARS['HTTP_X_FORWARDED_FOR']:$HTTP_SERVER_VARS['REMOTE_ADDR']
 
."', '$session_data')";
                $query = 'INSERT INTO '. SESS_TABLE ." (session_id, i_time_created, 
i_last_active, t_uid, t_remote_addr, t_session_data) VALUES ('$session_id', 
". time() .", ". time() .", '$uid', '". $HTTP_SERVER_VARS['REMOTE_ADDR'] 
."', '$session_data')";
        }
        else {
                $rec = pg_fetch_array($result_id,0,PGSQL_ASSOC);
                $query = 'UPDATE '. SESS_TABLE ." SET t_session_data = 
'$session_data', 
i_last_active = ". time() .", t_uid = '$uid' , i_session_counter = ". 
intval(++$rec['i_session_counter']) ." WHERE session_id = '$session_id'";
        }
        $rows_affected = pg_cmdtuples(pg_exec($db_session,$query));
//error_log($query, 0);
        if (!$rows_affected) {
                error_log('session_write(): Failed to INSERT or UPDATE session.',0);
        }
        return $rows_affected;
}


>
>session_set_save_handler(
>     'pgsql_session_open',
>     'pgsql_session_close',
>     'pgsql_session_read',
>     'pgsql_session_write',
>     'pgsql_session_destroy',
>     'pgsql_session_gc'
>);
>
>
>Thanks,
>--
>Steve <[EMAIL PROTECTED]>
>"And when you walk in golden halls, you get to keep the gold that falls"
>     -- Black Sabbath, "Heaven and Hell"
>
>--
>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]
>

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.





I was thrilled to see the set_error_handler() functionality in PHP4, however
we are having trouble implementing it because it cannot trap parse errors.
Basically, we need to log any errors that occur to a MySQL database.  In
PHP3, we did this by hacking the source.
 
Steve Meyers
Build Manager
MyComputer.com
 
Our Tools.  Your Site.
 
 




I'm make an object or an array from the results of a query to my MySQL
database.  The value returned is entered in <option>s and any repeated
values are unwanted.  Is there a way to remove them easily?

eg.
<select>
<? $qid = mysql_query("SELECT this FROM that WHERE here");
   while ($r = mysql_fetch_object($qid)) { ?>
<option><?=$r->this?></option>
<? } ?>
</select>

I was thinking of creating an array before the while, then in the while add
each "$r->this" if "(! in_array($arr))".  Then I would have to do another
while with the <option> included.  But I'm not really sure how to add
elements to existing arrays.  And that might not even be the best way.  Any
iteas?





From: "Jared Howard" <[EMAIL PROTECTED]>

> I'm make an object or an array from the results of a query to my MySQL
> database.  The value returned is entered in <option>s and any repeated
> values are unwanted.  Is there a way to remove them easily?
>
> eg.
> <select>
> <? $qid = mysql_query("SELECT this FROM that WHERE here");
>    while ($r = mysql_fetch_object($qid)) { ?>
> <option><?=$r->this?></option>
> <? } ?>
> </select>
>
> I was thinking of creating an array before the while, then in the while
add
> each "$r->this" if "(! in_array($arr))".  Then I would have to do another
> while with the <option> included.  But I'm not really sure how to add
> elements to existing arrays.  And that might not even be the best way.
Any
> iteas?
>


IMHO: always make the database manipulate the data for you, if it can. It's
usually much faster, and requires less code.

In this case just do:

SELECT DISTINCT this FROM that WHERE here

and you won't get any duplicates. Great huh? :)

Refer to the MySQL manual at http://www.mysql.com/docs/ for more details.


Cheers

Simon Garner





   Hi there, I'm having difficulties, hoping I could get some help..

I have two links, "Next" and "Previous".  I want the Next button to load the
next image, and previous for previous.
 I have the links setup like so: http://bla.com/bla.php?image=# where # is a
number, starting with 1.  I want for # to increase by one each time a user
clicks it, as well as load that numbers image.  I wanted to define each # as
a link to that image.

Thanks,
Chris





there are numerous posts on the list regarding this subject, I will give
some code examples, I hope this helps.

<?php

 include_once("database.egn");

 $HOW_MANY = 10;

 if (!isset($pos))
  $pos = 0;

 $pos_prev = $pos - $HOW_MANY;
 $pos_next = $pos + $HOW_MANY;

 $product_count = fetch_db_value('site', '');

 while ($site = fetch_db_value('site', "LIMIT $pos, $HOW_MANY") )
 {
  echo $site['site_address'] ."<br>\n";
 }

 echo "
 <html>
 <body>
 ";

 if ($pos_prev >= 0)
  echo "
  <a href='$PHP_SELF?pos=$pos_prev'>Back</a>
  ";

 echo "
 <a href='$PHP_SELF?pos=0'>Home</a>
 ";

 if ( $pos_next < $product_count )
  echo "
  <a href='$PHP_SELF?pos=$pos_next'>Next</a>
  ";

 echo "
 </body>
 </html>
 ";

?>

simple, no complicated code here :) KISS.

this can be easily modified to handle one at a time, change HOW_MANY = 1;

--


Chris Lee
Mediawaveonline.com

em. [EMAIL PROTECTED]

ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120



""Chris"" <[EMAIL PROTECTED]> wrote in message
0c8101c09ba4$dfc36400$0100a8c0@NISNix">news:0c8101c09ba4$dfc36400$0100a8c0@NISNix...
>    Hi there, I'm having difficulties, hoping I could get some help..
>
> I have two links, "Next" and "Previous".  I want the Next button to load
the
> next image, and previous for previous.
>  I have the links setup like so: http://bla.com/bla.php?image=# where # is
a
> number, starting with 1.  I want for # to increase by one each time a user
> clicks it, as well as load that numbers image.  I wanted to define each #
as
> a link to that image.
>
> Thanks,
> Chris
>
>
> --
> 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]
>






doff, I knew there had to be a simple answer.  Works great, thanks.

At 02:26 PM 2/21/01 +1300, Simon Garner wrote:
>From: "Jared Howard" <[EMAIL PROTECTED]>
>
>> I'm make an object or an array from the results of a query to my MySQL
>> database.  The value returned is entered in <option>s and any repeated
>> values are unwanted.  Is there a way to remove them easily?
>>
>> eg.
>> <select>
>> <? $qid = mysql_query("SELECT this FROM that WHERE here");
>>    while ($r = mysql_fetch_object($qid)) { ?>
>> <option><?=$r->this?></option>
>> <? } ?>
>> </select>
>>
>> I was thinking of creating an array before the while, then in the while
>add
>> each "$r->this" if "(! in_array($arr))".  Then I would have to do another
>> while with the <option> included.  But I'm not really sure how to add
>> elements to existing arrays.  And that might not even be the best way.
>Any
>> iteas?
>>
>
>
>IMHO: always make the database manipulate the data for you, if it can. It's
>usually much faster, and requires less code.
>
>In this case just do:
>
>SELECT DISTINCT this FROM that WHERE here
>
>and you won't get any duplicates. Great huh? :)
>
>Refer to the MySQL manual at http://www.mysql.com/docs/ for more details.
>
>
>Cheers
>
>Simon Garner
>
>
>-- 
>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]
>





Hello-

Does anybody have any example code for using CyberCash w/o the Merchant 
Connection Kit?  I'm trying to setup secure credit card transactions on my 
site using CyberCash, but my provider doesn't have & won't install the MCK 
(no PHP support for it either).  I haven't tried installing the MCK myself, 
but from my previous experience with it, I would rather just find a way 
around using it.

So I guess all I really need to know is if somebody has another way of 
using CyberCash with PHP without using their software.

Thanks,
Ben Schumacher





Ben,

In order to use the Cybercash functions in php, you
must have php installed with cybercash support.  You
can't compile php with cybercash support without the
MCK.  If your provider won't do it, you could always
compile a PHP cgi binary with the cybercash
extensions(or find a different provider).

Jason

--- Ben Schumacher <[EMAIL PROTECTED]> wrote:
> Hello-
> 
> Does anybody have any example code for using
> CyberCash w/o the Merchant 
> Connection Kit?  I'm trying to setup secure credit
> card transactions on my 
> site using CyberCash, but my provider doesn't have &
> won't install the MCK 
> (no PHP support for it either).  I haven't tried
> installing the MCK myself, 
> but from my previous experience with it, I would
> rather just find a way 
> around using it.
> 
> So I guess all I really need to know is if somebody
> has another way of 
> using CyberCash with PHP without using their
> software.
> 
> Thanks,
> Ben Schumacher
> 
> 
> -- 
> 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]
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/




Hi there, I'm having difficulties, hoping I could get some help..

when I create a file on the local filesystem with fopen($filename)
I cant unlink($filename) the same file. I got 
allways an error message, the scipt with uid 500 can not delete the file
with uid 0.
Is there a way to create the file with uid 500?

Thanks
Fredy




Thanks, that's what i thought.  The perl script is mine so it must be the
perl interpreter kicking out the code.  But I have the definitive perl
"camel" book and it doesn't list any numeric codes.  i'd ask a perl forum
about where i can look up error codes but this time i solved the problem.
It was a safe_mode violation:  /bin/perl was not in my safe_mode_exec_dir
directory (as defined by php.ini).

george


Chris Carbaugh wrote:

> I'm not familiar with perl, but I would said either the script it's self
> is returning the code, or the perl interpreter.
>
> Chris
>
> On Tue, 20 Feb 2001, George Herson wrote:
> > Date: Tue, 20 Feb 2001 12:13:35 -0500
> > To: [EMAIL PROTECTED]
> > From: George Herson <[EMAIL PROTECTED]>
> > Subject: [PHP] Where do i look up return status codes?
> >
> > How do i find out what the return status of an exec() executed
> > command
> > means?  For example, i have the line
> >
> > $ciphertext = exec("perl /home/httpd/cgi-bin/passgen.pl
> > $plaintext",$arr,$retstat);
> >
> > which makes $retstat = 126.
> >
> > thanks,
> > geo
> >
> >
> > --
> > 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]
> >





I use the php mail function in this file, but it only sends the first line of the text. Any ideas? I attached the file




On Sat, 17 Feb 2001 05:40, Chris Anderson wrote:

> > I use the php mail function in this file, but it only sends the first
> line of the text. Any ideas? I attached the file


The mailing list stripped your attachment - perhaps you could paste it 
into your message?

-- 
David Robley                        | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
AusEinet                            | http://auseinet.flinders.edu.au/
            Flinders University, ADELAIDE, SOUTH AUSTRALIA




true, here it is. Have fun...sorry ^_^

<?php
include "Nav.inc";
?>

<img src=images/feedback.jpg>

<?php
if(isSet($send) && ($send == 1))
{

  error_reporting(0);
  $Address = "[EMAIL PROTECTED]";
  $Subject = "Feedback From NullTechnology.com";
  $Message = str_replace("\n","<br>",$Message);
  $Mail = mail($Address, $Subject, "$Message \n From: $Return");
  if($Mail == 1)
  {
   echo("<br><br><center><b><font size=+1 face=verdana>Your Mail Was
   Succesfully Sent!</b></center>");

   exit;
  }
  else
  {
   echo("<br><br><center><b><font size=+1 face=verdana>There Was An
   Error While Processing Your Email</b></center>");

   exit;
  }


}
else
{

 if(IsSet($Message))
 {

  $Message = str_replace("\n","<br>",$Message);
  $Message = str_replace(" ","&nbsp;",$Message);
  echo("<center><table><td>&nbsp;&nbsp;&nbsp;
  &nbsp;&nbsp;&nbsp;<b>Message:</b><br>$Message<br>&nbsp;&nbsp;&nbsp;
  <b>Return Address:</b> $Return<br>If this is correct click on 'Send
Feedback'
   to send the email, if not you can edit the message
below</td></table></center>");
  $Message = str_replace("<br>","\n",$Message);
  $Message = str_replace("&nbsp;"," ",$Message);
 }
}
?>

<table align=center>
<td>
<form action=

   <?php
    if(IsSet($Message))
     echo("feedback.php");
    else
     echo("feedback.php");
   ?>

method=post>
Type Your Message Here:<br>
<textarea name=Message cols=50 rows=10 wrap=yes><?php
    if(IsSet($Message))
     echo($Message);
    else
     echo("Type your message in this box");
   ?></textarea>

<br>If You Want a Reply Type Your Email Address Here:  &nbsp; &nbsp;
<input name=Return value=

   <?php
    if(IsSet($Return))
     echo("'$Return'>");
    else
     echo(">");
   ?>

<input type=hidden name=send value=

   <?php
    if(IsSet($Message))
     echo("'1'>");
    else
     echo("'0'>");
   ?>

<br><br><center>
<input type=submit  value="Send Feedback!"><center>
</form>
</td>
</table>
</body>
</html>
----- Original Message -----
From: "David Robley" <[EMAIL PROTECTED]>
To: "Chris Anderson" <[EMAIL PROTECTED]>; "Chris Anderson"
<[EMAIL PROTECTED]>; "PHP" <[EMAIL PROTECTED]>
Sent: Tuesday, February 20, 2001 9:24 PM
Subject: Re: [PHP] Problems with Mail


> On Sat, 17 Feb 2001 05:40, Chris Anderson wrote:
>
> > > I use the php mail function in this file, but it only sends the first
> > line of the text. Any ideas? I attached the file
>
>
> The mailing list stripped your attachment - perhaps you could paste it
> into your message?
>
> --
> David Robley                        | WEBMASTER & Mail List Admin
> RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
> AusEinet                            | http://auseinet.flinders.edu.au/
>             Flinders University, ADELAIDE, SOUTH AUSTRALIA
>





On Sat, 17 Feb 2001 08:31, Chris Anderson wrote:

Oy - your version of Windows appears to be lagging a few days behind the 
real world :=)

> true, here it is. Have fun...sorry ^_^
>
> <?php
> include "Nav.inc";
> ?>
>
> <img src=images/feedback.jpg>
>
> <?php
> if(isSet($send) && ($send == 1))

Isn't this redundant? Your test is really if send = 1 do something, 
otherwise do something else.

> {
>
>   error_reporting(0);
>   $Address = "[EMAIL PROTECTED]";
>   $Subject = "Feedback From NullTechnology.com";
>   $Message = str_replace("\n","<br>",$Message);
>   $Mail = mail($Address, $Subject, "$Message \n From: $Return");

This is wrong ^^^^ The additional stuff needs to go in the fourth 
parameter if you want it to show up in the From field,; as you have it, 
it will be tacked on the end of the message body.

$from = "From: $Return";
$Mail = mail($Address, $Subject, $Message, $Return);

I wonder if you need to do some text wrapping? Although Outlook generally 
doesn't seem to care about such things, maybe something in the mail chain 
might.

>   if($Mail == 1)

and I think this will always be true once PHP has offloaded the mail to 
the MTA, even if the MTA drops it on the floor.

<SNIP more code>

Failing that, you might need to look carefully at the actual content of 
the message - not getting any unexpected characters or somesusch???

-- 
David Robley                        | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
AusEinet                            | http://auseinet.flinders.edu.au/
            Flinders University, ADELAIDE, SOUTH AUSTRALIA




thanks ill try that
----- Original Message -----
From: "David Robley" <[EMAIL PROTECTED]>
To: "Chris Anderson" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, February 21, 2001 12:39 AM
Subject: Re: [PHP] Problems with Mail


> On Sat, 17 Feb 2001 08:31, Chris Anderson wrote:
>
> Oy - your version of Windows appears to be lagging a few days behind the
> real world :=)
>
> > true, here it is. Have fun...sorry ^_^
> >
> > <?php
> > include "Nav.inc";
> > ?>
> >
> > <img src=images/feedback.jpg>
> >
> > <?php
> > if(isSet($send) && ($send == 1))
>
> Isn't this redundant? Your test is really if send = 1 do something,
> otherwise do something else.
>
> > {
> >
> >   error_reporting(0);
> >   $Address = "[EMAIL PROTECTED]";
> >   $Subject = "Feedback From NullTechnology.com";
> >   $Message = str_replace("\n","<br>",$Message);
> >   $Mail = mail($Address, $Subject, "$Message \n From: $Return");
>
> This is wrong ^^^^ The additional stuff needs to go in the fourth
> parameter if you want it to show up in the From field,; as you have it,
> it will be tacked on the end of the message body.
>
> $from = "From: $Return";
> $Mail = mail($Address, $Subject, $Message, $Return);
>
> I wonder if you need to do some text wrapping? Although Outlook generally
> doesn't seem to care about such things, maybe something in the mail chain
> might.
>
> >   if($Mail == 1)
>
> and I think this will always be true once PHP has offloaded the mail to
> the MTA, even if the MTA drops it on the floor.
>
> <SNIP more code>
>
> Failing that, you might need to look carefully at the actual content of
> the message - not getting any unexpected characters or somesusch???
>
> --
> David Robley                        | WEBMASTER & Mail List Admin
> RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
> AusEinet                            | http://auseinet.flinders.edu.au/
>             Flinders University, ADELAIDE, SOUTH AUSTRALIA
>
> --
> 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]
>
>





I need some help passing a variable to a popup window. The following form 
collects input from the user and stores it in the variable $summary.

<?
print "<FORM action=\"hint.php\" METHOD=\"post\">";
$summary = "Hellow universe";
print "<INPUT TYPE=\"hidden\" name=\"summary\" value=\"$summary\"> ";
print "<input type=\"submit\" value=\"Try This\" 
onClick=\"window.open('hint.php', 'remote', 
'menubar,scrollbars,resizable,width=350,height=200,left=20,top=20'); 
return false;\">";
print "</form>";
?>

When you click on the "Try This" button, hint.php opens up in another, 
smaller window just like I wanted. But the variable $summary doesn't show 
up 

<?
//hint.php script says this

//THIS LINE PRINTS
print "Here's the hint:<BR>";
//BUT NOT THIS ONE
print $summary;
?>

If I take JavaScript out of the submit coding, the browser window moves 
to hint.php and prints the $summary variable. 

I'm much more comfortable with PHP than JavaScript. How can I deliver the 
text in $summary to a second, smaller window?

Thank you.




From: "Carl Natale" <[EMAIL PROTECTED]>

> I need some help passing a variable to a popup window. The following form
> collects input from the user and stores it in the variable $summary.
>
> <?
> print "<FORM action=\"hint.php\" METHOD=\"post\">";
> $summary = "Hellow universe";
> print "<INPUT TYPE=\"hidden\" name=\"summary\" value=\"$summary\"> ";
> print "<input type=\"submit\" value=\"Try This\"
> onClick=\"window.open('hint.php', 'remote',
> 'menubar,scrollbars,resizable,width=350,height=200,left=20,top=20');
> return false;\">";
> print "</form>";
> ?>


Try:

window.open('hint.php?summary=" . urlencode($summary) . "', ....)

Realise that the pop-up window is a totally separate document, from the web
server's point of view, hence hint.php cannot magically get the value of
$summary from the form page.




>
> When you click on the "Try This" button, hint.php opens up in another,
> smaller window just like I wanted. But the variable $summary doesn't show
> up
>
> <?
> file://hint.php script says this
>
> file://THIS LINE PRINTS
> print "Here's the hint:<BR>";
> file://BUT NOT THIS ONE
> print $summary;
> ?>
>
> If I take JavaScript out of the submit coding, the browser window moves
> to hint.php and prints the $summary variable.
>
> I'm much more comfortable with PHP than JavaScript. How can I deliver the
> text in $summary to a second, smaller window?
>
> Thank you.
>






try

<?
print "<FORM action=\"hint.phtml\" METHOD=\"post\">";
$summary = "Hellow universe";
print "<INPUT TYPE=\"hidden\" name=\"summary\" value=\"$summary\"> ";
print "<input type=\"submit\" value=\"Try This\"
onClick=\"window.open('hint.phtml?summary=$summary', 'remote',
'menubar,scrollbars,resizable,width=350,height=200,left=20,top=20');
return false;\">";
print "</form>";
?>

hope that helps

best regards

Ankur Verma
HCL Technologies
A1CD, Sec -16
Noida, UP
India

----- Original Message -----
From: "Carl Natale" <[EMAIL PROTECTED]>
To: "Php" <[EMAIL PROTECTED]>
Sent: Wednesday, February 21, 2001 7:41 AM
Subject: [PHP] php and javascript


> I need some help passing a variable to a popup window. The following form
> collects input from the user and stores it in the variable $summary.
>
> <?
> print "<FORM action=\"hint.php\" METHOD=\"post\">";
> $summary = "Hellow universe";
> print "<INPUT TYPE=\"hidden\" name=\"summary\" value=\"$summary\"> ";
> print "<input type=\"submit\" value=\"Try This\"
> onClick=\"window.open('hint.php', 'remote',
> 'menubar,scrollbars,resizable,width=350,height=200,left=20,top=20');
> return false;\">";
> print "</form>";
> ?>
>
> When you click on the "Try This" button, hint.php opens up in another,
> smaller window just like I wanted. But the variable $summary doesn't show
> up
>
> <?
> file://hint.php script says this
>
> file://THIS LINE PRINTS
> print "Here's the hint:<BR>";
> file://BUT NOT THIS ONE
> print $summary;
> ?>
>
> If I take JavaScript out of the submit coding, the browser window moves
> to hint.php and prints the $summary variable.
>
> I'm much more comfortable with PHP than JavaScript. How can I deliver the
> text in $summary to a second, smaller window?
>
> Thank you.
>
> --
> 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]





> Yasuo,
>
> the function you call is
>
> > $msg = user_regist();
>
> while in regist_util.inc, the function defined is
>
> > function regist_user() {
>
> Could that be the problem? Do you see any errors about undefined
> functions?

Thanks for your reply.
Code sample only for to show what is does...

In real code, there is no undefiend functions. (I always write code with
maximun error reporting level with any language. PHP error reporting is set
to E_ALL)

I changed code as follows, but no luck. Logic is not changed at all. I put
code in regist_user() function to index.php and get rid of the lines
"function() {" and corresponding "}". (PHP stops executing script TWICE
though)
-----------index.php---------------
if ($HTTP_POST_VARS['submit_btn']) {
  <= ** if I put die('died here') before include, PHP outputs 'died here' as
expected; **
  include('HTML_FILE_I_WANT_TO_DISPLAY_IF_USER_HIT_SUBMIT_BUTTON'); <= This
isn't displayed at all.
  <=**  if I put die('died here') after include, PHP DOES NOT outputs 'died
here' as expected; **
  exit;
}
else {
  include('HTML_FILE_I_WANT_TO_DISPLAY_BY_DEFAULT'); <= this is displyed
  exit;
}
-------------- end --------------
PHP displays default page, but not the page when user hit submit button.
PHP sends  following HTML instead of HTML file that I want to display which
is the same HTML when I didn't put any output  in PHP file. No matter what I
do in HTML or AFTER include statement.
PHP (before include(), PHP works as usual) send following HTML to browser.

--------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=euc-jp"></HEAD>
<BODY></BODY></HTML>
--------------

Strange behavior is code is executed BEFORE the include statement for sure.
(Because die('died here') displyed) PHP does not display HTML file that I
want to and outputs after include(). (File is there for sure and the file is
normal file, not a symlink or like)  (include,require,or like does not make
any difference)

I'm suspecting recent PHP4 source code has 8bit unclean code somewhere. I
use EUC-JP charset and it supposed to work if source code is 8bit clean. (I
haven't checked with older PHP yet nor build PHP with debug.)

Anyway,  looks like I have to simplify my code to see in what condition
include/require stops working as expected.

PS: Do not try with code as follows - it works as expected.
<?php
if (isset($HTTP_POST_VARS['sub_btn'])) {
 include('test2.php');
 exit;
}
else {
 include('test3.php');
 exit;
}
?>


>
> Cheers,
> Ben
>
> Yasuo Ohgaki wrote:
> >
> > This is really strange. PHP fails to exit / die form script after
include /
> > require / include_once / required_once (I tested with all of them, same
> > result).
> > In addition to this, script gets started again automatically from the
> > beginning.
> > (You probably think this is a another newbie mistakes, but I think it is
> > not)
> >
> > Does anyone have the same experience?
> > I'm asking to decide if this is worth to report as a bug. If anyone does
not
> > have this problem but me. I'll just leave it alone. (I cannot reproduce
this
> > with simple script anyway)
> >
> > I cannot reproduce this behavior with simple script, but it does every
time
> > on my script.
> >
> > PHP 4.0.4pl1 with PostgreSQL, mhash, mcript, gd, and others
> > Apache 1.3.17 (mod_php, mod_gzip, mod_ssl and others)
> > RedHat Linux7.0.1/ja
> > (Apache and PHP are build from source)
> >
> > My code does as follows
> >
> > In user registration form (regist.php)
> >  - require_once() to include registration function
> >  - call registration function
> >  - if the function does not exit, display HTML in this registration
file.
> > regist.php looks like
> > ------------
> > <?php
> > require_once('regist_util.inc');
> >
> > $msg = user_regist(); // defined in regist_util.inc
> >
> > ?>
> > <html>
> > <form method=post action=regist.php>
> > <?php @print($msg); // print errors for users'  inputs if there is ?>
> > ........................
> > <input type="text" name="username"></input>
> > <input type="text" name="email"></input>
> > ........................
> > </html>
> > -------------
> >
> > regist_util.inc does <= THIS FILE HAS PROBLEM
> >  - check if there is the same user name is registered
> >  - if there is, return 'Choose other name' error (or other error)
> >  - if not, insert user data into database and send notify email, include
> > other html file
> >        to show user registered successfully. Then exit script.
> > regist_util.inc looks like
> > --------------
> > <?php
> > function regist_user() {
> >   global $HTTP_POST_VARS;
> >   $error = array();
> >   // check inputs add errors, add error like $error[] = 'Error1';
$error[] =
> > 'Error2';
> >   // check database
> >   $db = pg_pconnect();
> >   $qid = pg_exec("select * from user where username = '".
> > $HTTP_POST_VARS['username'] ."'");
> >   if (pg_numrow($qid) > 0) {
> >     $error[] = 'Choose other name';
> >   }
> >   if (count($error) == 0) {
> >     // INSERT DATA - data is inserted if username is new
> >     .........................
> >     // SEND EMAIL - mail is sent if username is new
> >    .......................
> >     <= **** if I put die() or exit() BEFORE include PHP exits from
script as
> > expected. ****
> >     // include HTML file (with just a little PHP code)
> >     include('registered.php'); <= **** THIS IS NOT DISPLAYED AT ALL
******
> >     // If I remove include(), it exits from script.
> >     exit;  <= ************* DOES NOT EXIT or DIE HERE *************
> >
> > // Script seems start from the beginning. It shows 'Choose other name'
error
> > and
> > // there is the data newly creating in database, even if the user table
is
> > empty.
> > // Because data with the username was inserted at 1 first time script
> > iteration.
> > // For the second time, script finds the username (of course) and return
> > 'Choose
> > // other name' error.
> >
> > // Since I did get ANY additional HTML, but HTML codes in regist.php
when
> > // this happened, I thought it might  something to do with
'ob_gzhandler'. I
> > // disabled it. But no difference. This makes difficult to find out what
PHP
> > is
> > // doing, now I'm sure PHP is executing the scripts TWICE.
> > // Reason:
> > //   1) There will be a new db table row every time I use new username.
> > //   2) I get notification email every time I use new username.
> > // (I thought PHP never buffer outputs unless user explicitly to do so)
> >
> > // If I redirect, it works as expected.... I would rather not to show
> > registered.php, since
> > // user does not have to access this page directly. (I can work around
this
> > with different
> > // way, so I will do so)
> >
> > // By the way, I use EUC-JP code, which is multi-byte char code set, in
> > scripts
> > // and HTML part, etc. EUC-JP supposed to work well for many programs
> > written
> > // for single byte char code set. However, it might something to do with
> > char code.
> > // I'm using. So far, I didn't have problems. May be this is the first
time.
> > (I haven't
> > // investigated yet)
> >   }
> > }
> > ---------------
> >
> > registered.php looks like
> > --------------
> > <html>
> > <body>
> > You have been registered to this web site<br>
> > username = <?php @print($HTTP_POST_VARS['username']; ?><br>
> > ..........................
> > </body>
> > </html>
> > ---------------
> >
> > --
> > Yasuo Ohgaki
> >
> > --
> > 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]
>




[If you have comments on this please send e-mail to me]

I think PHP4.0.4pl1 has unsafe code for 8bit char codes. I suspect PHP4 does
this:

PHP4 behavior: Script is executed TWICE and included file is not processed
1) PHP parse script and start executing.
   - The script check username data in db, if there is the same username,
return error. If not, insert new username into db.
2) PHP encounters 8bit char unclean code some where near include() and
restart script execution from the beginning for some reason.
   - The script written to include() file for successful user registration.

PHP inserts new username into db at 1st execution, then it finds the same
username in db and return error for 2nd execution. If I put die('died here')
BEFORE include(), PHP stops execution and outputs 'died here'. but not AFTER
include(). I was using 'ob_gzhandler', disabling it does not make
difference.

This happened when user registration check/insert was done in function
defined in included file. PHP also does not log any errors.

PHP4 behavior: Script does not process included file and outputs default
HTML.
1) PHP parse script and start executing.
2) PHP encounters 8bit char unclean code some where near include(), and
outputs default HTML for null output and stops execution for some reason.

Therefore, I can see output from die('died here') if I put BEFORE include(),
but not AFTER include().

This happened when user registration check/insert was done in the script
itself. The script logic is identical.  PHP does not log any errors.

I use EUC (Extended Unix Code), EUC-JP to be specific,  for char code, which
is supposed to work well with 8bit char code clean programs.

[Environment]
OS: RadHat Linux7.0.1/ja(i386) FTP version (no glibc update)
Apache: Apache 1.3.17 w/ mod_ssl-2.8.0, mod_gzip-1.13.17a. build from source
PHP: PHP4.0.4pl1 w/ pgsql-7.0.3, gd-1.8.3, mhash, mcript and others. build
from source.
 - ECU-JP for all html,  php scripts
PHP Configure:
'./configure' '--with-apxs' '--disable-short-tags' '--enable-bcmath'
'--with-zlib-dir' '--enable-ftp' '--with-imap' '--with-mhash'
'--with-mcrypt' '--with-pgsql' '--with-swf' '--enable-sysvsem'
'--enable-sysvshm' '--with-zlib' '--enable-iconv' '--with-kakasi'
'--enable-jstring' '--enable-mbregex' '--with-namazu'
'--with-gd=../gd-1.8.3/' '--with-jpeg-dir=/usr' '--with-xpm-dir=/usr/X11R6'

I cannot think of any reasonable explanation for this strange PHP4 behavior
other than possibility that glibc has bugs. (8bit char unsafe code, etc. I
haven't research about my exact glibc version nor bugs yet.)

Any comments appreciated.

--
Yasuo Ohgaki





use

$HTTP_SERVER_VARS[REMOTE_ADDR]

Yev

>-----Original Message-----
>From: Bruno Freire [mailto:[EMAIL PROTECTED]]
>Sent: Monday, February 19, 2001 11:34 AM
>To: '[EMAIL PROTECTED]'
>Subject: [PHP] Help!! IP functions!!!
>
>
>Hi!! 
>
>My name is Bruno, From Brazil!!!
>
>I need to know how can i discovery the ip address when somebody access my
>home page!!!!
>
>What function can I use????
>
>Thanks!!
>Bruno.
>




Hi~
We're working on a page located at 
http://www.manageasy.com/request_offer.php3. The page comes up with a bunch 
of errors, and we don't know why-- the page worked on our old server, and 
we didn't change anything from there... we think it might be a permissions 
issue on the new server.  Does anyone have any ideas off hand?

Thanks,
-Ben





On Wed, 21 Feb 2001 15:23, Ben Weinberger wrote:
> Hi~
> We're working on a page located at
> http://www.manageasy.com/request_offer.php3. The page comes up with a
> bunch of errors, and we don't know why-- the page worked on our old
> server, and we didn't change anything from there... we think it might
> be a permissions issue on the new server.  Does anyone have any ideas
> off hand?
>
> Thanks,
> -Ben

Somebody else had a similar problem recently and the broad outcome was 
that the script is trying to access parts of a mysql result set that 
doesn't exist. Check the recent archives for more detail.

Cheers
-- 
David Robley                        | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
AusEinet                            | http://auseinet.flinders.edu.au/
            Flinders University, ADELAIDE, SOUTH AUSTRALIA




Hi!

See what I am trying to implement is:

1.I have a website.
2.When ppl come to the website..they see the homepage.
3.When they click on any link, if they have logged in
earlier..and a cookie is stored.in their browser..they
will be allowed in.
4. If not they will be told that click here to go the
login page.
5. When they have logged in., I want the page to
automatically go to the link they came from.


Is it possible..Please give me some ideas..


Thank You
Dhaval Desai

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/




try,

HTTP_REFERER

I'm sure it's buried in the docs someplace, as a
supported envir. variable, I think.

rm

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/




Dear Sir, 
I have two problems in using PHP. Could you help me? 
I am using Red-Hat to build up my System. 
Could I use Perl to control some PHP program? 
Also, could I run my PHP program in Linux Console? 

Sorry to disturb you 
THx! 
Mr Ng




You can run php from the command line as a standalone app.

Compole PHP as a stand-alone CGI program (read the INSTALL file) and then
run it like:

localhost$ /path/to/php -f myFile.php

Or you can also run it withing a shell or perl script the same way (maybe
through a system() call in perl)

Michael


Ng Chun Chi wrote:

> Dear Sir,
> I have two problems in using PHP. Could you help me?
> I am using Red-Hat to build up my System.
> Could I use Perl to control some PHP program?
> Also, could I run my PHP program in Linux Console?
>
> Sorry to disturb you
> THx!
> Mr Ng
>
> --
> 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]





Hello Everyone,

Could someone please explain the whole % thing?  I sort of understand it,
but not quite.  My goal is to have a table, and have every row alternate
between 4 colors.  I can alternate sort of alternate between 3, but not
quite.  I have tried lots of different combinations, but I can't figure it
out.  Thank you very much!


Maybe there should be a better link to it in the manual.  The only one I
could find was at http://www.php.net/manual/en/ref.math.php, but it is far
from clear (to me at least....).

Jeff Lacy

P.S.  Please email me directly, and respond to the list because I am not
really subscribed to it.  When I look at the newsgroup, it crashes Outlook
Express, and the list is VERY high volume (for me).  Thanks again.





From: "Jeff Lacy" <[EMAIL PROTECTED]>

> Hello Everyone,
>
> Could someone please explain the whole % thing?  I sort of understand it,
> but not quite.  My goal is to have a table, and have every row alternate
> between 4 colors.  I can alternate sort of alternate between 3, but not
> quite.  I have tried lots of different combinations, but I can't figure it
> out.  Thank you very much!

% is the modulus operator, it tells you the remainder after dividing two
numbers.

For example, 5 % 4 will give you the remainder after 5 / 4, which is 1.

A common use for this is to check if a number is even or odd, by doing
modulus 2. E.g.


<?
    function even_or_odd($number)
    {
        if ($number % 2)   // if remainder is not 0
        {
            return "odd";
        }
        else    // remainder is 0
        {
            return "even";
        }
    }

    echo even_or_odd(4);   // even
    echo even_or_odd(13);  // odd
?>


A practical application of that is inside a for-loop you increment a number
and return a different colour value depending on whether it's even or odd,
to give e.g. each row of a table an alternating background colour.

In your case if you want to alternate between four colours, all you need to
do is change to modulus 4 instead of modulus 2, i.e. $number % 4, and then
check if the remainder is 0, 1, 2 or 3.



>
>
> Maybe there should be a better link to it in the manual.  The only one I
> could find was at http://www.php.net/manual/en/ref.math.php, but it is far
> from clear (to me at least....).
>

Well, this is a mathematical concept rather than PHP language-specific. :)


Cheers

Simon Garner





On Wed, 21 Feb 2001 16:01, Jeff Lacy wrote:
> Hello Everyone,
>
> Could someone please explain the whole % thing?  I sort of understand
> it, but not quite.  My goal is to have a table, and have every row
> alternate between 4 colors.  I can alternate sort of alternate between
> 3, but not quite.  I have tried lots of different combinations, but I
> can't figure it out.  Thank you very much!
>
>
> Maybe there should be a better link to it in the manual.  The only one
> I could find was at http://www.php.net/manual/en/ref.math.php, but it
> is far from clear (to me at least....).
>
> Jeff Lacy
>
> P.S.  Please email me directly, and respond to the list because I am
> not really subscribed to it.  When I look at the newsgroup, it crashes
> Outlook Express, and the list is VERY high volume (for me).  Thanks
> again.

Perhaps you should be looking in Arithmetical Operators 
www.php.net/manual/en/language.operators.php

The modulus operator gives you the value of the remainder after dividing 
a by b, so 4 % 3 will give a result of 1; ie 3 goes into 4 once and 
leaves a remainder of 1

Or 10 % 3 also gives a result of 1; 20 % 6 gives 2 etc.

Now for your particular problem of alternating table colors, you don't 
necessarily need the modulus operator, but using it you could implement 
thus:

$color = array('#ffffff'=>0, 'blue'=>1, 'red' =>2, 'green' =>3);
$row_num = 0;
$how_many_colors = 4;
while {
//Build your row producing logic here
echo "<TR BGCOLOR=\"$color[$row_num % $how_many_colors]\">";
// Rest of row info
$row_num++;

}

Mind you, there might be the odd syntax error there; I didn't test this 
at all :-) but hopefully you get the idea. The value of $row_num % 
$how_many_colors will cycle through 0 - 3 and act as the subscript for 
the array of colours. If you want more colours, just increase the number 
of values in the array and adjust $how_many_colors accordingly.


Cheers
-- 
David Robley                        | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
AusEinet                            | http://auseinet.flinders.edu.au/
            Flinders University, ADELAIDE, SOUTH AUSTRALIA




I wish there were some way to just SLAM this guy's site (and others like
him) all the way 2 levels of his internet address and piss his neighbors
off enough to have him and others removed instantly.

Oh, by the way, I use a chainsaw on those pesky mosquitoes on quiet
nights, too :-) Never use a grenade when a nuke will do the job!
-- 
________________________________________________________________
Sites by friends of mine: http://www.myhiddentreasures.com/
________________________________________________________________
WARNING personal propaganda signature
TAKE WHAT YOU LIKE AND LEAVE THE REST

SINCE OUR GOVERNMENT WON'T PRESERVE OUR CLIMATE, IT'S UP TO US!
Imagine ** yourself ** and your kids now an endangered species
<1>Inflate automobile tires to near maximum in summer, -2psi in winter
<2>add insulation to house and hot water heater, and refrigerator,
<3>combine trips in cars, make less of them <4>buy cars, sports
vehicles and recreational vehicles with good if not best mileage
<4>put awnings over windows is summer, remove in winter. <5> add
solar hot water heating. <6>Push for energy recycling clothes
dryers <7> walk more, play outside with your kids! <8> let your
grass grow to 3-4 inches, chokes weeds, saves water and energy,
keeps house cooler <9> Put WHITE or REFLECTIVE materials on
roofs to send energy back into space. <10> Vote for burial of
logging slash onsite in logging areas for better watersheds
and less burned vegetation. <11> compost your leaves and grass,
bury in flower beds, lawns, gardens, or give away. <12> VOTE
for energy and CO2 ratings on ALL products and foods. KNOW how
much damage your purchases do to the climate. <13> Give your kids 
less stuff and more of you. <14> recycle everything you can <15>
limit your children to an average 1 per adult between all your 
marriages. (Only REPLACE yourself, not expand the population)




Hello guys,
This is that time when I am in trouble ... 
 
One of our internal databases receives inputs from all kind of different
places and stores them for later reviews.
Since it's creation it was all going perfectly well, but now it has a little
problem:
 
The Internet Explorer gives me this error while listing one of databases'
tables:
 
(it is a pop up message of internet explorer)
----
    Internet Explorer Cannot Open the internet site
http://that.damn.db/database.php <http://that.damn.db/database.php>
?db=opp_post
 
    The download of the specified resource has filed.
----
 
What is it, PHP or IE? I suppose something is wrong with IE (5.01 for
instance), but so far couldn't come with any solution. The output is simply
not there, source shows cuted off at the very beginning of file - after few
hundreds of bytes.
 
This suggests me that one of the entries in Database is somehow corrupting
IE. But I have not found anything strange. What to look for, guys?
 
I tested it on Opera and Netscape - no probs whatsoever.
I also tested it on Linux, and Mac (Opera, Netscape) - no probs whatsoever.
...and (listen to this one)...
I tested it on Mac, MSIE 5.(01)? (just the version I have on my Win2k) --
and It gave me no errors at all.
 
Why MSIE 5.01 of Win2k gives that message and breaks download?
 
I've seen this messages already while browsing the web, and that's the
reason I'm asking you: anyone had to fix that before? What are your guesses
on my problem?
 
It is quite urgent since the database is not usable and I don't have much
time for researches on this issue.
The sad thing is that our office uses the exactly same configured machines
(MSIE5 - Win2k) and no one can view the database from their PCs. All the
sales and coordinators are staying here in line near my MAC while I am
writing you this.
 
Any help is greatly appreciated!
 
Cheers,
Maxim Maletsky
 
P.S: if any friends of Bill are around the list, please forward him my happy
moments and eventual sweet words.
 
Maxim Maletsky - [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
Webmaster, J-Door.com / J@pan Inc.
LINC Media, Inc.
TEL: 03-3499-2175 x 1271
FAX: 03-3499-3109

http://www.j-door.com <http://www.j-door.com/> 
http://www.japaninc.net <http://www.japaninc.net/> 
http://www.lincmedia.co.jp <http://www.lincmedia.co.jp/> 


 




What do you see in your web server logs?
what webserver do you use?

Sincerely

      berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.
 


-----Original Message-----
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 8:59 AM
To: 'PHP General List. (E-mail)'
Subject: [PHP] URGENT: IE pops-up an Error and File Download Fails. Needs to
be fixed NOW. Please advise.


Hello guys,
This is that time when I am in trouble ... 
 
One of our internal databases receives inputs from all kind of different
places and stores them for later reviews.
Since it's creation it was all going perfectly well, but now it has a little
problem:
 
The Internet Explorer gives me this error while listing one of databases'
tables:
 
(it is a pop up message of internet explorer)
----
    Internet Explorer Cannot Open the internet site
http://that.damn.db/database.php <http://that.damn.db/database.php>
?db=opp_post
 
    The download of the specified resource has filed.
----
 
What is it, PHP or IE? I suppose something is wrong with IE (5.01 for
instance), but so far couldn't come with any solution. The output is simply
not there, source shows cuted off at the very beginning of file - after few
hundreds of bytes.
 
This suggests me that one of the entries in Database is somehow corrupting
IE. But I have not found anything strange. What to look for, guys?
 
I tested it on Opera and Netscape - no probs whatsoever.
I also tested it on Linux, and Mac (Opera, Netscape) - no probs whatsoever.
...and (listen to this one)...
I tested it on Mac, MSIE 5.(01)? (just the version I have on my Win2k) --
and It gave me no errors at all.
 
Why MSIE 5.01 of Win2k gives that message and breaks download?
 
I've seen this messages already while browsing the web, and that's the
reason I'm asking you: anyone had to fix that before? What are your guesses
on my problem?
 
It is quite urgent since the database is not usable and I don't have much
time for researches on this issue.
The sad thing is that our office uses the exactly same configured machines
(MSIE5 - Win2k) and no one can view the database from their PCs. All the
sales and coordinators are staying here in line near my MAC while I am
writing you this.
 
Any help is greatly appreciated!
 
Cheers,
Maxim Maletsky
 
P.S: if any friends of Bill are around the list, please forward him my happy
moments and eventual sweet words.
 
Maxim Maletsky - [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
Webmaster, J-Door.com / J@pan Inc.
LINC Media, Inc.
TEL: 03-3499-2175 x 1271
FAX: 03-3499-3109

http://www.j-door.com <http://www.j-door.com/> 
http://www.japaninc.net <http://www.japaninc.net/> 
http://www.lincmedia.co.jp <http://www.lincmedia.co.jp/> 


 





http://support.microsoft.com/support/ie/ie5/topics/browse/iebrowseemts.asp

-----Original Message-----
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 9:08 AM
To: 'Boaz Yahav'; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails. Ne
eds to be fixed NOW. Please advise.


It goes on (SERVER_SOFTWARE)

Apache/1.3.9 (Unix) ApacheJServ/1.0 PHP/4.0.1pl2 mod_ssl/2.4.4 OpenSSL/0.9.4
on Linux

I am reviewing error_logs ... so far nothing funny ...

Cheers,
Maxim Maletsky




-----Original Message-----
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 3:59 PM
To: Maxim Maletsky; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


What do you see in your web server logs?
what webserver do you use?

Sincerely

      berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.
 


-----Original Message-----
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 8:59 AM
To: 'PHP General List. (E-mail)'
Subject: [PHP] URGENT: IE pops-up an Error and File Download Fails. Needs to
be fixed NOW. Please advise.


Hello guys,
This is that time when I am in trouble ... 
 
One of our internal databases receives inputs from all kind of different
places and stores them for later reviews.
Since it's creation it was all going perfectly well, but now it has a little
problem:
 
The Internet Explorer gives me this error while listing one of databases'
tables:
 
(it is a pop up message of internet explorer)
----
    Internet Explorer Cannot Open the internet site
http://that.damn.db/database.php <http://that.damn.db/database.php>
?db=opp_post
 
    The download of the specified resource has filed.
----
 
What is it, PHP or IE? I suppose something is wrong with IE (5.01 for
instance), but so far couldn't come with any solution. The output is simply
not there, source shows cuted off at the very beginning of file - after few
hundreds of bytes.
 
This suggests me that one of the entries in Database is somehow corrupting
IE. But I have not found anything strange. What to look for, guys?
 
I tested it on Opera and Netscape - no probs whatsoever.
I also tested it on Linux, and Mac (Opera, Netscape) - no probs whatsoever.
...and (listen to this one)...
I tested it on Mac, MSIE 5.(01)? (just the version I have on my Win2k) --
and It gave me no errors at all.
 
Why MSIE 5.01 of Win2k gives that message and breaks download?
 
I've seen this messages already while browsing the web, and that's the
reason I'm asking you: anyone had to fix that before? What are your guesses
on my problem?
 
It is quite urgent since the database is not usable and I don't have much
time for researches on this issue.
The sad thing is that our office uses the exactly same configured machines
(MSIE5 - Win2k) and no one can view the database from their PCs. All the
sales and coordinators are staying here in line near my MAC while I am
writing you this.
 
Any help is greatly appreciated!
 
Cheers,
Maxim Maletsky
 
P.S: if any friends of Bill are around the list, please forward him my happy
moments and eventual sweet words.
 
Maxim Maletsky - [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
Webmaster, J-Door.com / J@pan Inc.
LINC Media, Inc.
TEL: 03-3499-2175 x 1271
FAX: 03-3499-3109

http://www.j-door.com <http://www.j-door.com/> 
http://www.japaninc.net <http://www.japaninc.net/> 
http://www.lincmedia.co.jp <http://www.lincmedia.co.jp/> 


 


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




It goes on (SERVER_SOFTWARE)

Apache/1.3.9 (Unix) ApacheJServ/1.0 PHP/4.0.1pl2 mod_ssl/2.4.4 OpenSSL/0.9.4
on Linux

I am reviewing error_logs ... so far nothing funny ...

Cheers,
Maxim Maletsky




-----Original Message-----
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 3:59 PM
To: Maxim Maletsky; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


What do you see in your web server logs?
what webserver do you use?

Sincerely

      berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.
 


-----Original Message-----
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 8:59 AM
To: 'PHP General List. (E-mail)'
Subject: [PHP] URGENT: IE pops-up an Error and File Download Fails. Needs to
be fixed NOW. Please advise.


Hello guys,
This is that time when I am in trouble ... 
 
One of our internal databases receives inputs from all kind of different
places and stores them for later reviews.
Since it's creation it was all going perfectly well, but now it has a little
problem:
 
The Internet Explorer gives me this error while listing one of databases'
tables:
 
(it is a pop up message of internet explorer)
----
    Internet Explorer Cannot Open the internet site
http://that.damn.db/database.php <http://that.damn.db/database.php>
?db=opp_post
 
    The download of the specified resource has filed.
----
 
What is it, PHP or IE? I suppose something is wrong with IE (5.01 for
instance), but so far couldn't come with any solution. The output is simply
not there, source shows cuted off at the very beginning of file - after few
hundreds of bytes.
 
This suggests me that one of the entries in Database is somehow corrupting
IE. But I have not found anything strange. What to look for, guys?
 
I tested it on Opera and Netscape - no probs whatsoever.
I also tested it on Linux, and Mac (Opera, Netscape) - no probs whatsoever.
...and (listen to this one)...
I tested it on Mac, MSIE 5.(01)? (just the version I have on my Win2k) --
and It gave me no errors at all.
 
Why MSIE 5.01 of Win2k gives that message and breaks download?
 
I've seen this messages already while browsing the web, and that's the
reason I'm asking you: anyone had to fix that before? What are your guesses
on my problem?
 
It is quite urgent since the database is not usable and I don't have much
time for researches on this issue.
The sad thing is that our office uses the exactly same configured machines
(MSIE5 - Win2k) and no one can view the database from their PCs. All the
sales and coordinators are staying here in line near my MAC while I am
writing you this.
 
Any help is greatly appreciated!
 
Cheers,
Maxim Maletsky
 
P.S: if any friends of Bill are around the list, please forward him my happy
moments and eventual sweet words.
 
Maxim Maletsky - [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
Webmaster, J-Door.com / J@pan Inc.
LINC Media, Inc.
TEL: 03-3499-2175 x 1271
FAX: 03-3499-3109

http://www.j-door.com <http://www.j-door.com/> 
http://www.japaninc.net <http://www.japaninc.net/> 
http://www.lincmedia.co.jp <http://www.lincmedia.co.jp/> 


 


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




You see Boaz, this is slightly different. It is not "Connection could not
established" troubleshooted by MS KBase as -- click TCP/IP ... then click
advanced .... This is "Download of specified resource has failed" persisting
on every machine in this office.

(Win2k running MSIE 5.01 only).

I wonder if IE finds something interesting between the pockets received and
then breaks file download without seeing EOF.
What so funny do I output?... ths is the question.


Cheers,
Maxim Maletsky



-----Original Message-----
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 4:06 PM
To: Maxim Maletsky; Boaz Yahav; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


http://support.microsoft.com/support/ie/ie5/topics/browse/iebrowseemts.asp

-----Original Message-----
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 9:08 AM
To: 'Boaz Yahav'; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails. Ne
eds to be fixed NOW. Please advise.


It goes on (SERVER_SOFTWARE)

Apache/1.3.9 (Unix) ApacheJServ/1.0 PHP/4.0.1pl2 mod_ssl/2.4.4 OpenSSL/0.9.4
on Linux

I am reviewing error_logs ... so far nothing funny ...

Cheers,
Maxim Maletsky




-----Original Message-----
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 3:59 PM
To: Maxim Maletsky; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


What do you see in your web server logs?
what webserver do you use?

Sincerely

      berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.
 


-----Original Message-----
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 8:59 AM
To: 'PHP General List. (E-mail)'
Subject: [PHP] URGENT: IE pops-up an Error and File Download Fails. Needs to
be fixed NOW. Please advise.


Hello guys,
This is that time when I am in trouble ... 
 
One of our internal databases receives inputs from all kind of different
places and stores them for later reviews.
Since it's creation it was all going perfectly well, but now it has a little
problem:
 
The Internet Explorer gives me this error while listing one of databases'
tables:
 
(it is a pop up message of internet explorer)
----
    Internet Explorer Cannot Open the internet site
http://that.damn.db/database.php <http://that.damn.db/database.php>
?db=opp_post
 
    The download of the specified resource has filed.
----
 
What is it, PHP or IE? I suppose something is wrong with IE (5.01 for
instance), but so far couldn't come with any solution. The output is simply
not there, source shows cuted off at the very beginning of file - after few
hundreds of bytes.
 
This suggests me that one of the entries in Database is somehow corrupting
IE. But I have not found anything strange. What to look for, guys?
 
I tested it on Opera and Netscape - no probs whatsoever.
I also tested it on Linux, and Mac (Opera, Netscape) - no probs whatsoever.
...and (listen to this one)...
I tested it on Mac, MSIE 5.(01)? (just the version I have on my Win2k) --
and It gave me no errors at all.
 
Why MSIE 5.01 of Win2k gives that message and breaks download?
 
I've seen this messages already while browsing the web, and that's the
reason I'm asking you: anyone had to fix that before? What are your guesses
on my problem?
 
It is quite urgent since the database is not usable and I don't have much
time for researches on this issue.
The sad thing is that our office uses the exactly same configured machines
(MSIE5 - Win2k) and no one can view the database from their PCs. All the
sales and coordinators are staying here in line near my MAC while I am
writing you this.
 
Any help is greatly appreciated!
 
Cheers,
Maxim Maletsky
 
P.S: if any friends of Bill are around the list, please forward him my happy
moments and eventual sweet words.
 
Maxim Maletsky - [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
Webmaster, J-Door.com / J@pan Inc.
LINC Media, Inc.
TEL: 03-3499-2175 x 1271
FAX: 03-3499-3109

http://www.j-door.com <http://www.j-door.com/> 
http://www.japaninc.net <http://www.japaninc.net/> 
http://www.lincmedia.co.jp <http://www.lincmedia.co.jp/> 


 


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




The funny thing is that the error sometimes goes away (I am frenetically
refreshing the page) but in most cases stays.
It never happened here before. Just from yesterday, or today .. not sure.
Error logs report nothing at all.

Cheers,
Maxim Maletsky



-----Original Message-----
From: Maxim Maletsky 
Sent: Wednesday, February 21, 2001 4:21 PM
To: 'Boaz Yahav'; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


You see Boaz, this is slightly different. It is not "Connection could not
established" troubleshooted by MS KBase as -- click TCP/IP ... then click
advanced .... This is "Download of specified resource has failed" persisting
on every machine in this office.

(Win2k running MSIE 5.01 only).

I wonder if IE finds something interesting between the pockets received and
then breaks file download without seeing EOF.
What so funny do I output?... ths is the question.


Cheers,
Maxim Maletsky



-----Original Message-----
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 4:06 PM
To: Maxim Maletsky; Boaz Yahav; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


http://support.microsoft.com/support/ie/ie5/topics/browse/iebrowseemts.asp

-----Original Message-----
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 9:08 AM
To: 'Boaz Yahav'; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails. Ne
eds to be fixed NOW. Please advise.


It goes on (SERVER_SOFTWARE)

Apache/1.3.9 (Unix) ApacheJServ/1.0 PHP/4.0.1pl2 mod_ssl/2.4.4 OpenSSL/0.9.4
on Linux

I am reviewing error_logs ... so far nothing funny ...

Cheers,
Maxim Maletsky




-----Original Message-----
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 3:59 PM
To: Maxim Maletsky; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


What do you see in your web server logs?
what webserver do you use?

Sincerely

      berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.
 


-----Original Message-----
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 8:59 AM
To: 'PHP General List. (E-mail)'
Subject: [PHP] URGENT: IE pops-up an Error and File Download Fails. Needs to
be fixed NOW. Please advise.


Hello guys,
This is that time when I am in trouble ... 
 
One of our internal databases receives inputs from all kind of different
places and stores them for later reviews.
Since it's creation it was all going perfectly well, but now it has a little
problem:
 
The Internet Explorer gives me this error while listing one of databases'
tables:
 
(it is a pop up message of internet explorer)
----
    Internet Explorer Cannot Open the internet site
http://that.damn.db/database.php <http://that.damn.db/database.php>
?db=opp_post
 
    The download of the specified resource has filed.
----
 
What is it, PHP or IE? I suppose something is wrong with IE (5.01 for
instance), but so far couldn't come with any solution. The output is simply
not there, source shows cuted off at the very beginning of file - after few
hundreds of bytes.
 
This suggests me that one of the entries in Database is somehow corrupting
IE. But I have not found anything strange. What to look for, guys?
 
I tested it on Opera and Netscape - no probs whatsoever.
I also tested it on Linux, and Mac (Opera, Netscape) - no probs whatsoever.
...and (listen to this one)...
I tested it on Mac, MSIE 5.(01)? (just the version I have on my Win2k) --
and It gave me no errors at all.
 
Why MSIE 5.01 of Win2k gives that message and breaks download?
 
I've seen this messages already while browsing the web, and that's the
reason I'm asking you: anyone had to fix that before? What are your guesses
on my problem?
 
It is quite urgent since the database is not usable and I don't have much
time for researches on this issue.
The sad thing is that our office uses the exactly same configured machines
(MSIE5 - Win2k) and no one can view the database from their PCs. All the
sales and coordinators are staying here in line near my MAC while I am
writing you this.
 
Any help is greatly appreciated!
 
Cheers,
Maxim Maletsky
 
P.S: if any friends of Bill are around the list, please forward him my happy
moments and eventual sweet words.
 
Maxim Maletsky - [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
Webmaster, J-Door.com / J@pan Inc.
LINC Media, Inc.
TEL: 03-3499-2175 x 1271
FAX: 03-3499-3109

http://www.j-door.com <http://www.j-door.com/> 
http://www.japaninc.net <http://www.japaninc.net/> 
http://www.lincmedia.co.jp <http://www.lincmedia.co.jp/> 


 


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




Since I can't get to your URL I can only give ideas :)

Did you try to upgrade the IE on one of the computers to IE5.5 and see
if the problem goes away?

Do you use a proxy?

Are your security settings set to default?

Sincerely

      berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.

-----Original Message-----
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 9:33 AM
To: 'Boaz Yahav'; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails. Ne
eds to be fixed NOW. Please advise.


The funny thing is that the error sometimes goes away (I am frenetically
refreshing the page) but in most cases stays.
It never happened here before. Just from yesterday, or today .. not sure.
Error logs report nothing at all.

Cheers,
Maxim Maletsky



-----Original Message-----
From: Maxim Maletsky 
Sent: Wednesday, February 21, 2001 4:21 PM
To: 'Boaz Yahav'; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


You see Boaz, this is slightly different. It is not "Connection could not
established" troubleshooted by MS KBase as -- click TCP/IP ... then click
advanced .... This is "Download of specified resource has failed" persisting
on every machine in this office.

(Win2k running MSIE 5.01 only).

I wonder if IE finds something interesting between the pockets received and
then breaks file download without seeing EOF.
What so funny do I output?... ths is the question.


Cheers,
Maxim Maletsky



-----Original Message-----
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 4:06 PM
To: Maxim Maletsky; Boaz Yahav; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


http://support.microsoft.com/support/ie/ie5/topics/browse/iebrowseemts.asp

-----Original Message-----
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 9:08 AM
To: 'Boaz Yahav'; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails. Ne
eds to be fixed NOW. Please advise.


It goes on (SERVER_SOFTWARE)

Apache/1.3.9 (Unix) ApacheJServ/1.0 PHP/4.0.1pl2 mod_ssl/2.4.4 OpenSSL/0.9.4
on Linux

I am reviewing error_logs ... so far nothing funny ...

Cheers,
Maxim Maletsky




-----Original Message-----
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 3:59 PM
To: Maxim Maletsky; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


What do you see in your web server logs?
what webserver do you use?

Sincerely

      berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.
 


-----Original Message-----
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 8:59 AM
To: 'PHP General List. (E-mail)'
Subject: [PHP] URGENT: IE pops-up an Error and File Download Fails. Needs to
be fixed NOW. Please advise.


Hello guys,
This is that time when I am in trouble ... 
 
One of our internal databases receives inputs from all kind of different
places and stores them for later reviews.
Since it's creation it was all going perfectly well, but now it has a little
problem:
 
The Internet Explorer gives me this error while listing one of databases'
tables:
 
(it is a pop up message of internet explorer)
----
    Internet Explorer Cannot Open the internet site
http://that.damn.db/database.php <http://that.damn.db/database.php>
?db=opp_post
 
    The download of the specified resource has filed.
----
 
What is it, PHP or IE? I suppose something is wrong with IE (5.01 for
instance), but so far couldn't come with any solution. The output is simply
not there, source shows cuted off at the very beginning of file - after few
hundreds of bytes.
 
This suggests me that one of the entries in Database is somehow corrupting
IE. But I have not found anything strange. What to look for, guys?
 
I tested it on Opera and Netscape - no probs whatsoever.
I also tested it on Linux, and Mac (Opera, Netscape) - no probs whatsoever.
...and (listen to this one)...
I tested it on Mac, MSIE 5.(01)? (just the version I have on my Win2k) --
and It gave me no errors at all.
 
Why MSIE 5.01 of Win2k gives that message and breaks download?
 
I've seen this messages already while browsing the web, and that's the
reason I'm asking you: anyone had to fix that before? What are your guesses
on my problem?
 
It is quite urgent since the database is not usable and I don't have much
time for researches on this issue.
The sad thing is that our office uses the exactly same configured machines
(MSIE5 - Win2k) and no one can view the database from their PCs. All the
sales and coordinators are staying here in line near my MAC while I am
writing you this.
 
Any help is greatly appreciated!
 
Cheers,
Maxim Maletsky
 
P.S: if any friends of Bill are around the list, please forward him my happy
moments and eventual sweet words.
 
Maxim Maletsky - [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
Webmaster, J-Door.com / J@pan Inc.
LINC Media, Inc.
TEL: 03-3499-2175 x 1271
FAX: 03-3499-3109

http://www.j-door.com <http://www.j-door.com/> 
http://www.japaninc.net <http://www.japaninc.net/> 
http://www.lincmedia.co.jp <http://www.lincmedia.co.jp/> 


 


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




btw, how long does the script run b4 you get the error?

Sincerely

      berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.
 

-----Original Message-----
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 9:33 AM
To: 'Boaz Yahav'; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails. Ne
eds to be fixed NOW. Please advise.


The funny thing is that the error sometimes goes away (I am frenetically
refreshing the page) but in most cases stays.
It never happened here before. Just from yesterday, or today .. not sure.
Error logs report nothing at all.

Cheers,
Maxim Maletsky



-----Original Message-----
From: Maxim Maletsky 
Sent: Wednesday, February 21, 2001 4:21 PM
To: 'Boaz Yahav'; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


You see Boaz, this is slightly different. It is not "Connection could not
established" troubleshooted by MS KBase as -- click TCP/IP ... then click
advanced .... This is "Download of specified resource has failed" persisting
on every machine in this office.

(Win2k running MSIE 5.01 only).

I wonder if IE finds something interesting between the pockets received and
then breaks file download without seeing EOF.
What so funny do I output?... ths is the question.


Cheers,
Maxim Maletsky



-----Original Message-----
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 4:06 PM
To: Maxim Maletsky; Boaz Yahav; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


http://support.microsoft.com/support/ie/ie5/topics/browse/iebrowseemts.asp

-----Original Message-----
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 9:08 AM
To: 'Boaz Yahav'; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails. Ne
eds to be fixed NOW. Please advise.


It goes on (SERVER_SOFTWARE)

Apache/1.3.9 (Unix) ApacheJServ/1.0 PHP/4.0.1pl2 mod_ssl/2.4.4 OpenSSL/0.9.4
on Linux

I am reviewing error_logs ... so far nothing funny ...

Cheers,
Maxim Maletsky




-----Original Message-----
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 3:59 PM
To: Maxim Maletsky; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


What do you see in your web server logs?
what webserver do you use?

Sincerely

      berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.
 


-----Original Message-----
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 8:59 AM
To: 'PHP General List. (E-mail)'
Subject: [PHP] URGENT: IE pops-up an Error and File Download Fails. Needs to
be fixed NOW. Please advise.


Hello guys,
This is that time when I am in trouble ... 
 
One of our internal databases receives inputs from all kind of different
places and stores them for later reviews.
Since it's creation it was all going perfectly well, but now it has a little
problem:
 
The Internet Explorer gives me this error while listing one of databases'
tables:
 
(it is a pop up message of internet explorer)
----
    Internet Explorer Cannot Open the internet site
http://that.damn.db/database.php <http://that.damn.db/database.php>
?db=opp_post
 
    The download of the specified resource has filed.
----
 
What is it, PHP or IE? I suppose something is wrong with IE (5.01 for
instance), but so far couldn't come with any solution. The output is simply
not there, source shows cuted off at the very beginning of file - after few
hundreds of bytes.
 
This suggests me that one of the entries in Database is somehow corrupting
IE. But I have not found anything strange. What to look for, guys?
 
I tested it on Opera and Netscape - no probs whatsoever.
I also tested it on Linux, and Mac (Opera, Netscape) - no probs whatsoever.
...and (listen to this one)...
I tested it on Mac, MSIE 5.(01)? (just the version I have on my Win2k) --
and It gave me no errors at all.
 
Why MSIE 5.01 of Win2k gives that message and breaks download?
 
I've seen this messages already while browsing the web, and that's the
reason I'm asking you: anyone had to fix that before? What are your guesses
on my problem?
 
It is quite urgent since the database is not usable and I don't have much
time for researches on this issue.
The sad thing is that our office uses the exactly same configured machines
(MSIE5 - Win2k) and no one can view the database from their PCs. All the
sales and coordinators are staying here in line near my MAC while I am
writing you this.
 
Any help is greatly appreciated!
 
Cheers,
Maxim Maletsky
 
P.S: if any friends of Bill are around the list, please forward him my happy
moments and eventual sweet words.
 
Maxim Maletsky - [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
Webmaster, J-Door.com / J@pan Inc.
LINC Media, Inc.
TEL: 03-3499-2175 x 1271
FAX: 03-3499-3109

http://www.j-door.com <http://www.j-door.com/> 
http://www.japaninc.net <http://www.japaninc.net/> 
http://www.lincmedia.co.jp <http://www.lincmedia.co.jp/> 


 


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




Well, it doesn't make any sense upgrading. On my Mac all works fine, on my
Win2K I usually use Opera 5 identified as MSIE and it works as well.

Proxy, nope I go behind it.
Some go thru...

the problem stays no matter what.

Security settings? 
again, makes no sense, I think, most of the users having this problem have
never touched Internet Options.
server? no SSL, nothing... accessible internally, behind firewall.

I wonder what is the problem of Explorer in terms of compatibility with
headers, flushes and other PHP Functions directly influencing browsers.

I've seen that error (from different machines, locations but always on
MSIE5*) on a whole bunch of websites running on PHP, including PHP.net.
And now that I think, these usually were databases etc... Like function
reference on PHP.net

I know that what I am saying doesn't really make much sense - PHP is on
server and a browser is on client side. I just wonder if there can be some
other details.... something with web server ?... 

Cheers,
Maxim Maletsky



-----Original Message-----
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 4:30 PM
To: Maxim Maletsky; Boaz Yahav; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


Since I can't get to your URL I can only give ideas :)

Did you try to upgrade the IE on one of the computers to IE5.5 and see
if the problem goes away?

Do you use a proxy?

Are your security settings set to default?

Sincerely

      berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.

-----Original Message-----
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 9:33 AM
To: 'Boaz Yahav'; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails. Ne
eds to be fixed NOW. Please advise.


The funny thing is that the error sometimes goes away (I am frenetically
refreshing the page) but in most cases stays.
It never happened here before. Just from yesterday, or today .. not sure.
Error logs report nothing at all.

Cheers,
Maxim Maletsky



-----Original Message-----
From: Maxim Maletsky 
Sent: Wednesday, February 21, 2001 4:21 PM
To: 'Boaz Yahav'; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


You see Boaz, this is slightly different. It is not "Connection could not
established" troubleshooted by MS KBase as -- click TCP/IP ... then click
advanced .... This is "Download of specified resource has failed" persisting
on every machine in this office.

(Win2k running MSIE 5.01 only).

I wonder if IE finds something interesting between the pockets received and
then breaks file download without seeing EOF.
What so funny do I output?... ths is the question.


Cheers,
Maxim Maletsky



-----Original Message-----
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 4:06 PM
To: Maxim Maletsky; Boaz Yahav; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


http://support.microsoft.com/support/ie/ie5/topics/browse/iebrowseemts.asp

-----Original Message-----
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 9:08 AM
To: 'Boaz Yahav'; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails. Ne
eds to be fixed NOW. Please advise.


It goes on (SERVER_SOFTWARE)

Apache/1.3.9 (Unix) ApacheJServ/1.0 PHP/4.0.1pl2 mod_ssl/2.4.4 OpenSSL/0.9.4
on Linux

I am reviewing error_logs ... so far nothing funny ...

Cheers,
Maxim Maletsky




-----Original Message-----
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 3:59 PM
To: Maxim Maletsky; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


What do you see in your web server logs?
what webserver do you use?

Sincerely

      berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.
 


-----Original Message-----
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 8:59 AM
To: 'PHP General List. (E-mail)'
Subject: [PHP] URGENT: IE pops-up an Error and File Download Fails. Needs to
be fixed NOW. Please advise.


Hello guys,
This is that time when I am in trouble ... 
 
One of our internal databases receives inputs from all kind of different
places and stores them for later reviews.
Since it's creation it was all going perfectly well, but now it has a little
problem:
 
The Internet Explorer gives me this error while listing one of databases'
tables:
 
(it is a pop up message of internet explorer)
----
    Internet Explorer Cannot Open the internet site
http://that.damn.db/database.php <http://that.damn.db/database.php>
?db=opp_post
 
    The download of the specified resource has filed.
----
 
What is it, PHP or IE? I suppose something is wrong with IE (5.01 for
instance), but so far couldn't come with any solution. The output is simply
not there, source shows cuted off at the very beginning of file - after few
hundreds of bytes.
 
This suggests me that one of the entries in Database is somehow corrupting
IE. But I have not found anything strange. What to look for, guys?
 
I tested it on Opera and Netscape - no probs whatsoever.
I also tested it on Linux, and Mac (Opera, Netscape) - no probs whatsoever.
...and (listen to this one)...
I tested it on Mac, MSIE 5.(01)? (just the version I have on my Win2k) --
and It gave me no errors at all.
 
Why MSIE 5.01 of Win2k gives that message and breaks download?
 
I've seen this messages already while browsing the web, and that's the
reason I'm asking you: anyone had to fix that before? What are your guesses
on my problem?
 
It is quite urgent since the database is not usable and I don't have much
time for researches on this issue.
The sad thing is that our office uses the exactly same configured machines
(MSIE5 - Win2k) and no one can view the database from their PCs. All the
sales and coordinators are staying here in line near my MAC while I am
writing you this.
 
Any help is greatly appreciated!
 
Cheers,
Maxim Maletsky
 
P.S: if any friends of Bill are around the list, please forward him my happy
moments and eventual sweet words.
 
Maxim Maletsky - [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
Webmaster, J-Door.com / J@pan Inc.
LINC Media, Inc.
TEL: 03-3499-2175 x 1271
FAX: 03-3499-3109

http://www.j-door.com <http://www.j-door.com/> 
http://www.japaninc.net <http://www.japaninc.net/> 
http://www.lincmedia.co.jp <http://www.lincmedia.co.jp/> 


 


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




Upgrading to IE 5.5 will tell you if it's a client problem or maybe a server
problem.

Sincerely

      berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.
 

-----Original Message-----
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 9:45 AM
To: 'Boaz Yahav'; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails. Ne
eds to be fixed NOW. Please advise.


Well, it doesn't make any sense upgrading. On my Mac all works fine, on my
Win2K I usually use Opera 5 identified as MSIE and it works as well.

Proxy, nope I go behind it.
Some go thru...

the problem stays no matter what.

Security settings? 
again, makes no sense, I think, most of the users having this problem have
never touched Internet Options.
server? no SSL, nothing... accessible internally, behind firewall.

I wonder what is the problem of Explorer in terms of compatibility with
headers, flushes and other PHP Functions directly influencing browsers.

I've seen that error (from different machines, locations but always on
MSIE5*) on a whole bunch of websites running on PHP, including PHP.net.
And now that I think, these usually were databases etc... Like function
reference on PHP.net

I know that what I am saying doesn't really make much sense - PHP is on
server and a browser is on client side. I just wonder if there can be some
other details.... something with web server ?... 

Cheers,
Maxim Maletsky



-----Original Message-----
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 4:30 PM
To: Maxim Maletsky; Boaz Yahav; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


Since I can't get to your URL I can only give ideas :)

Did you try to upgrade the IE on one of the computers to IE5.5 and see
if the problem goes away?

Do you use a proxy?

Are your security settings set to default?

Sincerely

      berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.

-----Original Message-----
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 9:33 AM
To: 'Boaz Yahav'; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails. Ne
eds to be fixed NOW. Please advise.


The funny thing is that the error sometimes goes away (I am frenetically
refreshing the page) but in most cases stays.
It never happened here before. Just from yesterday, or today .. not sure.
Error logs report nothing at all.

Cheers,
Maxim Maletsky



-----Original Message-----
From: Maxim Maletsky 
Sent: Wednesday, February 21, 2001 4:21 PM
To: 'Boaz Yahav'; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


You see Boaz, this is slightly different. It is not "Connection could not
established" troubleshooted by MS KBase as -- click TCP/IP ... then click
advanced .... This is "Download of specified resource has failed" persisting
on every machine in this office.

(Win2k running MSIE 5.01 only).

I wonder if IE finds something interesting between the pockets received and
then breaks file download without seeing EOF.
What so funny do I output?... ths is the question.


Cheers,
Maxim Maletsky



-----Original Message-----
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 4:06 PM
To: Maxim Maletsky; Boaz Yahav; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


http://support.microsoft.com/support/ie/ie5/topics/browse/iebrowseemts.asp

-----Original Message-----
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 9:08 AM
To: 'Boaz Yahav'; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails. Ne
eds to be fixed NOW. Please advise.


It goes on (SERVER_SOFTWARE)

Apache/1.3.9 (Unix) ApacheJServ/1.0 PHP/4.0.1pl2 mod_ssl/2.4.4 OpenSSL/0.9.4
on Linux

I am reviewing error_logs ... so far nothing funny ...

Cheers,
Maxim Maletsky




-----Original Message-----
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 3:59 PM
To: Maxim Maletsky; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


What do you see in your web server logs?
what webserver do you use?

Sincerely

      berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.
 


-----Original Message-----
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 8:59 AM
To: 'PHP General List. (E-mail)'
Subject: [PHP] URGENT: IE pops-up an Error and File Download Fails. Needs to
be fixed NOW. Please advise.


Hello guys,
This is that time when I am in trouble ... 
 
One of our internal databases receives inputs from all kind of different
places and stores them for later reviews.
Since it's creation it was all going perfectly well, but now it has a little
problem:
 
The Internet Explorer gives me this error while listing one of databases'
tables:
 
(it is a pop up message of internet explorer)
----
    Internet Explorer Cannot Open the internet site
http://that.damn.db/database.php <http://that.damn.db/database.php>
?db=opp_post
 
    The download of the specified resource has filed.
----
 
What is it, PHP or IE? I suppose something is wrong with IE (5.01 for
instance), but so far couldn't come with any solution. The output is simply
not there, source shows cuted off at the very beginning of file - after few
hundreds of bytes.
 
This suggests me that one of the entries in Database is somehow corrupting
IE. But I have not found anything strange. What to look for, guys?
 
I tested it on Opera and Netscape - no probs whatsoever.
I also tested it on Linux, and Mac (Opera, Netscape) - no probs whatsoever.
...and (listen to this one)...
I tested it on Mac, MSIE 5.(01)? (just the version I have on my Win2k) --
and It gave me no errors at all.
 
Why MSIE 5.01 of Win2k gives that message and breaks download?
 
I've seen this messages already while browsing the web, and that's the
reason I'm asking you: anyone had to fix that before? What are your guesses
on my problem?
 
It is quite urgent since the database is not usable and I don't have much
time for researches on this issue.
The sad thing is that our office uses the exactly same configured machines
(MSIE5 - Win2k) and no one can view the database from their PCs. All the
sales and coordinators are staying here in line near my MAC while I am
writing you this.
 
Any help is greatly appreciated!
 
Cheers,
Maxim Maletsky
 
P.S: if any friends of Bill are around the list, please forward him my happy
moments and eventual sweet words.
 
Maxim Maletsky - [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
Webmaster, J-Door.com / J@pan Inc.
LINC Media, Inc.
TEL: 03-3499-2175 x 1271
FAX: 03-3499-3109

http://www.j-door.com <http://www.j-door.com/> 
http://www.japaninc.net <http://www.japaninc.net/> 
http://www.lincmedia.co.jp <http://www.lincmedia.co.jp/> 


 


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




I do not need to upgrade, I can just get onto my MAC (MSIE 5 : Mac edition)
and see it working. 
I know it's client side problem. But it wasn't born just like that. There's
something (or better say MSIE 5.01) interrupting the download of file. No
errors in apache log files also suggests that IE quit instantly without
saying anything to apache. 

and think of this scenario..


the database:


|table 1|table 2|table 3|table 4 (opp_post)|table 5|


Everything works, table 1 is cool, table 2 is fast, table 3 is interesting,
but not table 4 (opp_post), which is the ONLY damn table - troublemaker.
Yes, you guessed it: it is same db file.
There's an SQL query which look something like "SELECT id, f1, f2, f3, f4,
whatever FROM $db LIMIT 30";
The variable $db is what goes through GET. (for instance opp_post, it's is
real name, very valid, I guess...)

Very simple. 


Of course the guess is that there's something in database. Some particular
entry, characters... BUT, nothing so funny that I can blame!
I cannot remove the entries from DB for security reasons, but I have very
carefully searched for any unescaped character, strange peace of code,
anything strange from now till the moment the problem showed up.

I found nothing to blame.


It cannot be that no one of you have never seen that?
I've seen it on the web and never though it could happen to me!!

Thanks anyway, guys,
If you got any ideas and see no "FIXED" in this thread subject - write me I
am here not sleeping.


Cheers
Maxim Maletsky



-----Original Message-----
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 4:42 PM
To: Maxim Maletsky; Boaz Yahav; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


Upgrading to IE 5.5 will tell you if it's a client problem or maybe a server
problem.

Sincerely

      berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.
 

-----Original Message-----
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 9:45 AM
To: 'Boaz Yahav'; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails. Ne
eds to be fixed NOW. Please advise.


Well, it doesn't make any sense upgrading. On my Mac all works fine, on my
Win2K I usually use Opera 5 identified as MSIE and it works as well.

Proxy, nope I go behind it.
Some go thru...

the problem stays no matter what.

Security settings? 
again, makes no sense, I think, most of the users having this problem have
never touched Internet Options.
server? no SSL, nothing... accessible internally, behind firewall.

I wonder what is the problem of Explorer in terms of compatibility with
headers, flushes and other PHP Functions directly influencing browsers.

I've seen that error (from different machines, locations but always on
MSIE5*) on a whole bunch of websites running on PHP, including PHP.net.
And now that I think, these usually were databases etc... Like function
reference on PHP.net

I know that what I am saying doesn't really make much sense - PHP is on
server and a browser is on client side. I just wonder if there can be some
other details.... something with web server ?... 

Cheers,
Maxim Maletsky



-----Original Message-----
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 4:30 PM
To: Maxim Maletsky; Boaz Yahav; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


Since I can't get to your URL I can only give ideas :)

Did you try to upgrade the IE on one of the computers to IE5.5 and see
if the problem goes away?

Do you use a proxy?

Are your security settings set to default?

Sincerely

      berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.

-----Original Message-----
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 9:33 AM
To: 'Boaz Yahav'; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails. Ne
eds to be fixed NOW. Please advise.


The funny thing is that the error sometimes goes away (I am frenetically
refreshing the page) but in most cases stays.
It never happened here before. Just from yesterday, or today .. not sure.
Error logs report nothing at all.

Cheers,
Maxim Maletsky



-----Original Message-----
From: Maxim Maletsky 
Sent: Wednesday, February 21, 2001 4:21 PM
To: 'Boaz Yahav'; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


You see Boaz, this is slightly different. It is not "Connection could not
established" troubleshooted by MS KBase as -- click TCP/IP ... then click
advanced .... This is "Download of specified resource has failed" persisting
on every machine in this office.

(Win2k running MSIE 5.01 only).

I wonder if IE finds something interesting between the pockets received and
then breaks file download without seeing EOF.
What so funny do I output?... ths is the question.


Cheers,
Maxim Maletsky



-----Original Message-----
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 4:06 PM
To: Maxim Maletsky; Boaz Yahav; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


http://support.microsoft.com/support/ie/ie5/topics/browse/iebrowseemts.asp

-----Original Message-----
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 9:08 AM
To: 'Boaz Yahav'; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails. Ne
eds to be fixed NOW. Please advise.


It goes on (SERVER_SOFTWARE)

Apache/1.3.9 (Unix) ApacheJServ/1.0 PHP/4.0.1pl2 mod_ssl/2.4.4 OpenSSL/0.9.4
on Linux

I am reviewing error_logs ... so far nothing funny ...

Cheers,
Maxim Maletsky




-----Original Message-----
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 3:59 PM
To: Maxim Maletsky; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


What do you see in your web server logs?
what webserver do you use?

Sincerely

      berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.
 


-----Original Message-----
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 8:59 AM
To: 'PHP General List. (E-mail)'
Subject: [PHP] URGENT: IE pops-up an Error and File Download Fails. Needs to
be fixed NOW. Please advise.


Hello guys,
This is that time when I am in trouble ... 
 
One of our internal databases receives inputs from all kind of different
places and stores them for later reviews.
Since it's creation it was all going perfectly well, but now it has a little
problem:
 
The Internet Explorer gives me this error while listing one of databases'
tables:
 
(it is a pop up message of internet explorer)
----
    Internet Explorer Cannot Open the internet site
http://that.damn.db/database.php <http://that.damn.db/database.php>
?db=opp_post
 
    The download of the specified resource has filed.
----
 
What is it, PHP or IE? I suppose something is wrong with IE (5.01 for
instance), but so far couldn't come with any solution. The output is simply
not there, source shows cuted off at the very beginning of file - after few
hundreds of bytes.
 
This suggests me that one of the entries in Database is somehow corrupting
IE. But I have not found anything strange. What to look for, guys?
 
I tested it on Opera and Netscape - no probs whatsoever.
I also tested it on Linux, and Mac (Opera, Netscape) - no probs whatsoever.
...and (listen to this one)...
I tested it on Mac, MSIE 5.(01)? (just the version I have on my Win2k) --
and It gave me no errors at all.
 
Why MSIE 5.01 of Win2k gives that message and breaks download?
 
I've seen this messages already while browsing the web, and that's the
reason I'm asking you: anyone had to fix that before? What are your guesses
on my problem?
 
It is quite urgent since the database is not usable and I don't have much
time for researches on this issue.
The sad thing is that our office uses the exactly same configured machines
(MSIE5 - Win2k) and no one can view the database from their PCs. All the
sales and coordinators are staying here in line near my MAC while I am
writing you this.
 
Any help is greatly appreciated!
 
Cheers,
Maxim Maletsky
 
P.S: if any friends of Bill are around the list, please forward him my happy
moments and eventual sweet words.
 
Maxim Maletsky - [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
Webmaster, J-Door.com / J@pan Inc.
LINC Media, Inc.
TEL: 03-3499-2175 x 1271
FAX: 03-3499-3109

http://www.j-door.com <http://www.j-door.com/> 
http://www.japaninc.net <http://www.japaninc.net/> 
http://www.lincmedia.co.jp <http://www.lincmedia.co.jp/> 


 


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




>From last millenium. (Cristmass? I guess)
and always worked as precise as the heart of a baby.

Cheers,
Maxim Maletsky



-----Original Message-----
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 4:31 PM
To: Maxim Maletsky; Boaz Yahav; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


btw, how long does the script run b4 you get the error?

Sincerely

      berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.
 

-----Original Message-----
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 9:33 AM
To: 'Boaz Yahav'; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails. Ne
eds to be fixed NOW. Please advise.


The funny thing is that the error sometimes goes away (I am frenetically
refreshing the page) but in most cases stays.
It never happened here before. Just from yesterday, or today .. not sure.
Error logs report nothing at all.

Cheers,
Maxim Maletsky



-----Original Message-----
From: Maxim Maletsky 
Sent: Wednesday, February 21, 2001 4:21 PM
To: 'Boaz Yahav'; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


You see Boaz, this is slightly different. It is not "Connection could not
established" troubleshooted by MS KBase as -- click TCP/IP ... then click
advanced .... This is "Download of specified resource has failed" persisting
on every machine in this office.

(Win2k running MSIE 5.01 only).

I wonder if IE finds something interesting between the pockets received and
then breaks file download without seeing EOF.
What so funny do I output?... ths is the question.


Cheers,
Maxim Maletsky



-----Original Message-----
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 4:06 PM
To: Maxim Maletsky; Boaz Yahav; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


http://support.microsoft.com/support/ie/ie5/topics/browse/iebrowseemts.asp

-----Original Message-----
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 9:08 AM
To: 'Boaz Yahav'; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails. Ne
eds to be fixed NOW. Please advise.


It goes on (SERVER_SOFTWARE)

Apache/1.3.9 (Unix) ApacheJServ/1.0 PHP/4.0.1pl2 mod_ssl/2.4.4 OpenSSL/0.9.4
on Linux

I am reviewing error_logs ... so far nothing funny ...

Cheers,
Maxim Maletsky




-----Original Message-----
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 3:59 PM
To: Maxim Maletsky; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


What do you see in your web server logs?
what webserver do you use?

Sincerely

      berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.
 


-----Original Message-----
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 8:59 AM
To: 'PHP General List. (E-mail)'
Subject: [PHP] URGENT: IE pops-up an Error and File Download Fails. Needs to
be fixed NOW. Please advise.


Hello guys,
This is that time when I am in trouble ... 
 
One of our internal databases receives inputs from all kind of different
places and stores them for later reviews.
Since it's creation it was all going perfectly well, but now it has a little
problem:
 
The Internet Explorer gives me this error while listing one of databases'
tables:
 
(it is a pop up message of internet explorer)
----
    Internet Explorer Cannot Open the internet site
http://that.damn.db/database.php <http://that.damn.db/database.php>
?db=opp_post
 
    The download of the specified resource has filed.
----
 
What is it, PHP or IE? I suppose something is wrong with IE (5.01 for
instance), but so far couldn't come with any solution. The output is simply
not there, source shows cuted off at the very beginning of file - after few
hundreds of bytes.
 
This suggests me that one of the entries in Database is somehow corrupting
IE. But I have not found anything strange. What to look for, guys?
 
I tested it on Opera and Netscape - no probs whatsoever.
I also tested it on Linux, and Mac (Opera, Netscape) - no probs whatsoever.
...and (listen to this one)...
I tested it on Mac, MSIE 5.(01)? (just the version I have on my Win2k) --
and It gave me no errors at all.
 
Why MSIE 5.01 of Win2k gives that message and breaks download?
 
I've seen this messages already while browsing the web, and that's the
reason I'm asking you: anyone had to fix that before? What are your guesses
on my problem?
 
It is quite urgent since the database is not usable and I don't have much
time for researches on this issue.
The sad thing is that our office uses the exactly same configured machines
(MSIE5 - Win2k) and no one can view the database from their PCs. All the
sales and coordinators are staying here in line near my MAC while I am
writing you this.
 
Any help is greatly appreciated!
 
Cheers,
Maxim Maletsky
 
P.S: if any friends of Bill are around the list, please forward him my happy
moments and eventual sweet words.
 
Maxim Maletsky - [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
Webmaster, J-Door.com / J@pan Inc.
LINC Media, Inc.
TEL: 03-3499-2175 x 1271
FAX: 03-3499-3109

http://www.j-door.com <http://www.j-door.com/> 
http://www.japaninc.net <http://www.japaninc.net/> 
http://www.lincmedia.co.jp <http://www.lincmedia.co.jp/> 


 


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




Another funny thing:

the page breaks in all different places but more often on:

1276 Bytes (65% of times), 
2743 Bytes (15% of times),
4153 Bytes (10% of times),
others .... 

Interesting ... I feel here pockets trouble ...

Cheers,
Maxim Maletsky



-----Original Message-----
From: Maxim Maletsky 
Sent: Wednesday, February 21, 2001 4:33 PM
To: 'Boaz Yahav'; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


The funny thing is that the error sometimes goes away (I am frenetically
refreshing the page) but in most cases stays.
It never happened here before. Just from yesterday, or today .. not sure.
Error logs report nothing at all.

Cheers,
Maxim Maletsky



-----Original Message-----
From: Maxim Maletsky 
Sent: Wednesday, February 21, 2001 4:21 PM
To: 'Boaz Yahav'; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


You see Boaz, this is slightly different. It is not "Connection could not
established" troubleshooted by MS KBase as -- click TCP/IP ... then click
advanced .... This is "Download of specified resource has failed" persisting
on every machine in this office.

(Win2k running MSIE 5.01 only).

I wonder if IE finds something interesting between the pockets received and
then breaks file download without seeing EOF.
What so funny do I output?... ths is the question.


Cheers,
Maxim Maletsky



-----Original Message-----
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 4:06 PM
To: Maxim Maletsky; Boaz Yahav; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


http://support.microsoft.com/support/ie/ie5/topics/browse/iebrowseemts.asp

-----Original Message-----
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 9:08 AM
To: 'Boaz Yahav'; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails. Ne
eds to be fixed NOW. Please advise.


It goes on (SERVER_SOFTWARE)

Apache/1.3.9 (Unix) ApacheJServ/1.0 PHP/4.0.1pl2 mod_ssl/2.4.4 OpenSSL/0.9.4
on Linux

I am reviewing error_logs ... so far nothing funny ...

Cheers,
Maxim Maletsky




-----Original Message-----
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 3:59 PM
To: Maxim Maletsky; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


What do you see in your web server logs?
what webserver do you use?

Sincerely

      berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.
 


-----Original Message-----
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 8:59 AM
To: 'PHP General List. (E-mail)'
Subject: [PHP] URGENT: IE pops-up an Error and File Download Fails. Needs to
be fixed NOW. Please advise.


Hello guys,
This is that time when I am in trouble ... 
 
One of our internal databases receives inputs from all kind of different
places and stores them for later reviews.
Since it's creation it was all going perfectly well, but now it has a little
problem:
 
The Internet Explorer gives me this error while listing one of databases'
tables:
 
(it is a pop up message of internet explorer)
----
    Internet Explorer Cannot Open the internet site
http://that.damn.db/database.php <http://that.damn.db/database.php>
?db=opp_post
 
    The download of the specified resource has filed.
----
 
What is it, PHP or IE? I suppose something is wrong with IE (5.01 for
instance), but so far couldn't come with any solution. The output is simply
not there, source shows cuted off at the very beginning of file - after few
hundreds of bytes.
 
This suggests me that one of the entries in Database is somehow corrupting
IE. But I have not found anything strange. What to look for, guys?
 
I tested it on Opera and Netscape - no probs whatsoever.
I also tested it on Linux, and Mac (Opera, Netscape) - no probs whatsoever.
...and (listen to this one)...
I tested it on Mac, MSIE 5.(01)? (just the version I have on my Win2k) --
and It gave me no errors at all.
 
Why MSIE 5.01 of Win2k gives that message and breaks download?
 
I've seen this messages already while browsing the web, and that's the
reason I'm asking you: anyone had to fix that before? What are your guesses
on my problem?
 
It is quite urgent since the database is not usable and I don't have much
time for researches on this issue.
The sad thing is that our office uses the exactly same configured machines
(MSIE5 - Win2k) and no one can view the database from their PCs. All the
sales and coordinators are staying here in line near my MAC while I am
writing you this.
 
Any help is greatly appreciated!
 
Cheers,
Maxim Maletsky
 
P.S: if any friends of Bill are around the list, please forward him my happy
moments and eventual sweet words.
 
Maxim Maletsky - [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
Webmaster, J-Door.com / J@pan Inc.
LINC Media, Inc.
TEL: 03-3499-2175 x 1271
FAX: 03-3499-3109

http://www.j-door.com <http://www.j-door.com/> 
http://www.japaninc.net <http://www.japaninc.net/> 
http://www.lincmedia.co.jp <http://www.lincmedia.co.jp/> 


 


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




Hi!

Thanx for replying to my mail.

Well See I have for example two pages.
login.php
inside.php

So when a person clicks on inside.php it checks for
the cookie meaning inside.php has a cookie checking
code  in it. If cookie uis not found it will take him
to the login.php page and on successful login he will
again be taken to the page he came from which in this
case is inside.php.


Can u guide me with some more details please.

Thank You!
Dhaval Desai


--- Bilal Abdul Kader <[EMAIL PROTECTED]> wrote:
> Hi
> Try to use the link to the actual page as a
> parameter to the Authentication script
> For example your authentication script is 
> login.php 
> and I click directly to page.php
> 
> Then in the page.php put 
> if (authenticad)
>   go on 
> else 
> header("Location:login.php?usr=$PHP_SELF");
> 
> in the login.php
> add
> if (authentication complete)
>   go to url
> 
> Good Luck
> ----- Original Message ----- 
> From: "Dhaval Desai" <[EMAIL PROTECTED]>
> Newsgroups: php.general
> Sent: Wednesday, February 21, 2001 7:10 AM
> Subject: [PHP] Link back to where u came from..?
> 
> 
> | Hi!
> | 
> | See what I am trying to implement is:
> | 
> | 1.I have a website.
> | 2.When ppl come to the website..they see the
> homepage.
> | 3.When they click on any link, if they have logged
> in
> | earlier..and a cookie is stored.in their
> browser..they
> | will be allowed in.
> | 4. If not they will be told that click here to go
> the
> | login page.
> | 5. When they have logged in., I want the page to
> | automatically go to the link they came from.
> | 
> | 
> | Is it possible..Please give me some ideas..
> | 
> | 
> | Thank You
> | Dhaval Desai


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/




Guys,

When you decide you want to pay for hosting and get the best
service possible check out :

http://www.weberdev.com/index.php3?GoTo=phenominet/prices.htm

This is your one stop shop for hosting. WeberDev.com is hosted there
and I can tell you that their service is amazing. They are fast, reliable
and more than anything, very professional (specially in PHP / MySQL).

Sincerely

      berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.


-----Original Message-----
From: Brian V Bonini [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 1:20 AM
To: Krznaric Michael; 'Thomas Deliduka'; PHP List
Subject: RE: [PHP] Terrible Hosting Experience


Hmmm, last I heard they were using an OC-3 circuit,
that's not too impressive..... lots of those floating
around..... We've been running on an OC-48 for some
time now....

> -----Original Message-----
> From: Krznaric Michael [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 20, 2001 5:56 PM
> To: 'Thomas Deliduka'; PHP List
> Subject: RE: [PHP] Terrible Hosting Experience
> 
> 
> I was about to buy a server from Alabanza.  Am I ever glad I didn't.  The
> only thing impressive about them is their connection.  And for all I know
> they could be lying about that, as well.
> 
> Mike
> 
> -----Original Message-----
> From: Thomas Deliduka [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 20, 2001 3:18 PM
> To: PHP List
> Subject: Re: [PHP] Terrible Hosting Experience
> 
> 
> On 2/20/01 3:17 PM this was written:
> 
> > We host and provide servers to a good number
> > of clients that have come over from Alabanza.
> > All of them complaining of similar experiences....
> > I think that company has been plagued for a
> > long time....
> 
> I agree. I have dealt with them on one level or another since 1997. They
> used to have great customer service and skillful people. Well, 
> those people
> left out of frustration and better opportunities and they were 
> replaced with
> idiots.  These idiots that man their help desks and other 
> services now have
> very little to know about how to even work a computer.
> 
> I know that they have their help their help-desk in a college town and
> employ people from the university. Some of the CS reps are philosophy and
> other liberal arts students.
> 
> I called one day to give my updated credit card information to a 
> billing rep
> but they weren't in so I got a CS rep. They said, "You can update it
> online", I said, "Your control panel isn't behind a secure server. I will
> not update my Credit card information online." I asked her write it down,
> put it in an envelope and deliver it to the billing rep by hand. 
> The CS rep
> said, "No problem."
> 
> About a week later I received an e-mail. I was forwarded from the 
> CS rep the
> conversation that took place 0VER E-MAIL with my CC information 
> included in
> the e-mail from the very first sending. I was so mad. I told her that she
> just compromised my CC number! She said, "But I sent it right to 
> her in the
> office." I said, "You office is in a whole-nother state from where the
> server is. It traveled unsecurely from your location to the 
> server and back
> again several times in the last few days." she was clueless.
> 
> Okay, I'm shutting up now.
> -- 
> 
> Thomas Deliduka
> IT Manager
>      -------------------------
> New Eve Media
> The Solution To Your Internet Angst
> http://www.neweve.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 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 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]




you can simply delete the file and use touch() to create a new empty one.

http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=160
        
Sincerely

      berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.
 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 20, 2001 8:47 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Can you make a file empty?


Hi!
I am trying to delete all text in a file.
$yourfile = "file.txt";
$fp = fopen($yourfile,w)
"is there any good code to put in here?"
fclose($fp);

Thanks for any help.

Regards

Jan


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




does this not already do it? according the manual "w" as the second
parameters will "place the file pointer at the beginning of the file and
truncate the file to zero length".

        Tim Ward
        Senior Systems Engineer

Please refer to the following disclaimer in respect of this message:
http://www.stivesdirect.com/e-mail-disclaimer.html


> -----Original Message-----
> From: Jan Grafström [mailto:[EMAIL PROTECTED]]
> Sent: 20 February 2001 18:47
> To: [EMAIL PROTECTED]
> Subject: Can you make a file empty?
> 
> 
> Hi!
> I am trying to delete all text in a file.
> $yourfile = "file.txt";
> $fp = fopen($yourfile,w)
> "is there any good code to put in here?"
> fclose($fp);
> 
> Thanks for any help.
> 
> Regards
> 
> Jan
> 
> 




Hi...anybody can help me about sending email directly using local smtp port
(25). I've read some articles, still, i don't have a clear explanation. i.e
: some using \n to separate between each header, but others use \r\n.


-toto-






Check this :

http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=22

Sincerely

      berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.
 

-----Original Message-----
From: Zenith [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 19, 2001 3:40 PM
To: [EMAIL PROTECTED]
Subject: [PHP] what's the difference between include and require??


Though I have read the manual about these two things, include() and
require(), but I still not very clear about the difference between these??





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




It's very funny these emails :)

1st, it's berber and not Mr. Yahav (like Mr. Gates).

2nd, every now and then comes someone that has no idea about
the WeberDev.com background and thinks We are here for the $1,000,000's.

A few words of correction : 

1. WeberDev.com has been around since April 1998. Till sometime in 2000
    There was only me, Mr. berber, devoting much of my time to set this site
    up (days and nights), after that came Rafi to help.

2. We do not make $$$ from the site nor is it our main job. I'm a software
engineer
    working for an ISP and Rafi is a lawyer, we both keep WeberDev.com as a
hobby
    and for the benefit of the PHP community.
        
3. While people may think this is a big company, with tens of developers and
content
    writers, I can assure you that it's only Me and Rafi. We pay from our
own pockets
    for the hosting and some more things that are needed to run a site like
this and
    relay on the good will of the community to help where it can.

4. As for the jobs / projects area, it's a place for people to find workers
or for
    companies or individuals that need projects done for them to find
developers
    to do it for them. WeberDev.com is only an intermediate. We do not
collect
    any $$$ from this. This is a free service like any other service on
WeberDev.com.
    and as we all know, not everything can be done by email.

I hope this sheds some light about the commercial level of this site. And as
to free
advertisement, I think that the PHP list is a perfect place to get free
advertisement 
for a site like WeberDev.com, since we are here for the community.


Sincerely

      berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.
 

-----Original Message-----
From: Robert V. Zwink [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 19, 2001 4:47 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP] Pay for help


Richard Bradley,

Posting to PHP general mailing list asking for help has never been a problem
in the past.  Mr Yahav should have mentioned that he is the owner operator
of weberdev.com, and that he has financial interest in contract positions
posted on his site.

If there was a mistake in net-etiquette, it was not your mistake Richard,
but Mr. Yahav's.  He should have clearly stated that his email, to you and
to the list, was an advertisement for his site.

Best of luck trying to find help with installation.  I have forwarded your
request to a friend of mine that might be able to help.  If you don't have
luck getting help, please repost and I'm sure someone will be happy to give
assistance.

Robert Zwink
http://zwink.levitate.org


- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Subject:  Re: [PHP] Pay for help
From:     rbradley <[EMAIL PROTECTED]>
Date:     2001-02-13 18:33:44

Thankyou Boaz, I'm sorry, I just needed help. I didn't care if I had to
pay or got free assistance.  I also realize that paying for Open Source
software help may not be etiquette either. Please forgive me I'll post
this in the places

Boaz Yahav wrote:
>
> Hi
>
> A good place to put this would be either in the projects area
> of weberdev
(http://www.weberdev.com/index.php3?GoTo=jobmatching/about.php3)
>
> or the jobs area (http://www.weberjob.com).
>
> Sincerely
>
>       berber
>
> Visit http://www.weberdev.com Today!!!
> To see where PHP might take you tomorrow.
>
>
> -----Original Message-----
> From: rbradley [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 13, 2001 3:43 AM
> To: PHP
> Subject: [PHP] Pay for help
>
> My company is willing to pay for some assistance in helping us install:
>
> PHP apache mod with oracle 8i functions on a Solaris 8 box.
>
> Are there any takers?
>
> --
> Richard Bradley
> CTO YourLink, inc.
> (321) 452-6699
> IM lagoonr
>
> --
> 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]

--
Richard Bradley
CTO YourLink, inc.
(321) 452-6699
IM lagoonr

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]




-----Original Message-----
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 17, 2001 2:26 PM
To: '[EMAIL PROTECTED]'; PHP Lists
Subject: RE: [PHP] PHP Book Recommendations


And I remind you all to buy them at WeberDev.com and help
us pay the hosting :)

Sincerely

      berber

Visit http://www.weberdev.com Today!!!
To see where PHP might take you tomorrow.


-----Original Message-----
From: Brian V Bonini [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16, 2001 11:14 PM
To: PHP Lists
Subject: [PHP] PHP Book Recommendations


Can I get some recommendations on some good PHP
books. Something broad but with good novice
concepts........

--
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 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]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Yup, and I am your competitor!

PHPBeginner.com is about to be something like WeberDev.com (which I
personally very much like and respect)
Remember, Berber, my postings of on WeberDev.com which you replied me back
to: 

from your email: August 23, 2000
"
   Hi

   Why did you post an article from Zend as an example? did you write the
   article?

   Sincerely

       berber
"


I then replied to you:
"
   Hi Boaz,

   No, I did not write the article, I just thought how useful it can be for
   beginners to start writing classes in PHP.
   I appologize if what I did was against your rules. 
   If it was then please remove my entry from your database.

   Maxim Maletsky
"

and then you explained it to me:
"

   Hi

   It's not against any rule but it think it doesn't look
   good to add an example as a link to another site which is
   a competitor. At least not without asking first.

   I took it off for now.

   thanks for the try though, and don't hesitate to add
   more examples in the future :)

   Sincerely

        berber

"

I know it doesn't look nice, but, common, we are talking about open source
technology... a little of allowance would be nice since you are not really
earning anything.

Guess what, that day a though came to my mind, why not to write some
articles and compete with you?

I have a dedicated server in New York all for my own, for a different
business I do, so I'll just build a website and dedicate it to the beginners
of PHP Community, they'll love it. I'll write some staff for them and so
on...

Newbies to me,
advancers to you! 

Too bad I cannot dedicate all of my time to PHPBeginner.com, I am a senior
developer here in Tokyo in an IT PRE-IPO. Have a whole bunch of things to
do, plus my hobbies are helping out developers at Source Forge and reading
tutorials of things I don't know "C or Java for example, advanced web
usability design"

I am not hoping to earn much from the site, nor I can lose much, I will only
bring more curiosity for these who ask : "hey, what's the difference between
echo and print ?"

I do really care about this idea:

"Making webmasters and Perl/C/Java Programmers interested in PHP."

I won't have a code database, nor I'll have much content at the beginning.
No sales online ... a banner only allowing me sometimes get a day off from
work :-))

a newbie uses my site until he know too much and thinks it is boring then he
goes to elsewhere like WeberDev.com or PHPBuilder.com


Check it Out
PHPBeginner.com - will open very soon!
Today, in few hours from now!


Cheers,
Maxim Maletsky



-----Original Message-----
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 5:06 PM
To: 'Robert V. Zwink'; [EMAIL PROTECTED]
Cc: Boaz Yahav; [EMAIL PROTECTED]; '[EMAIL PROTECTED]'
Subject: RE: [PHP] Pay for help


It's very funny these emails :)

1st, it's berber and not Mr. Yahav (like Mr. Gates).

2nd, every now and then comes someone that has no idea about
the WeberDev.com background and thinks We are here for the $1,000,000's.

A few words of correction : 

1. WeberDev.com has been around since April 1998. Till sometime in 2000
    There was only me, Mr. berber, devoting much of my time to set this site
    up (days and nights), after that came Rafi to help.

2. We do not make $$$ from the site nor is it our main job. I'm a software
engineer
    working for an ISP and Rafi is a lawyer, we both keep WeberDev.com as a
hobby
    and for the benefit of the PHP community.
        
3. While people may think this is a big company, with tens of developers and
content
    writers, I can assure you that it's only Me and Rafi. We pay from our
own pockets
    for the hosting and some more things that are needed to run a site like
this and
    relay on the good will of the community to help where it can.

4. As for the jobs / projects area, it's a place for people to find workers
or for
    companies or individuals that need projects done for them to find
developers
    to do it for them. WeberDev.com is only an intermediate. We do not
collect
    any $$$ from this. This is a free service like any other service on
WeberDev.com.
    and as we all know, not everything can be done by email.

I hope this sheds some light about the commercial level of this site. And as
to free
advertisement, I think that the PHP list is a perfect place to get free
advertisement 
for a site like WeberDev.com, since we are here for the community.


Sincerely

      berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.
 

-----Original Message-----
From: Robert V. Zwink [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 19, 2001 4:47 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP] Pay for help


Richard Bradley,

Posting to PHP general mailing list asking for help has never been a problem
in the past.  Mr Yahav should have mentioned that he is the owner operator
of weberdev.com, and that he has financial interest in contract positions
posted on his site.

If there was a mistake in net-etiquette, it was not your mistake Richard,
but Mr. Yahav's.  He should have clearly stated that his email, to you and
to the list, was an advertisement for his site.

Best of luck trying to find help with installation.  I have forwarded your
request to a friend of mine that might be able to help.  If you don't have
luck getting help, please repost and I'm sure someone will be happy to give
assistance.

Robert Zwink
http://zwink.levitate.org


- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Subject:  Re: [PHP] Pay for help
From:     rbradley <[EMAIL PROTECTED]>
Date:     2001-02-13 18:33:44

Thankyou Boaz, I'm sorry, I just needed help. I didn't care if I had to
pay or got free assistance.  I also realize that paying for Open Source
software help may not be etiquette either. Please forgive me I'll post
this in the places

Boaz Yahav wrote:
>
> Hi
>
> A good place to put this would be either in the projects area
> of weberdev
(http://www.weberdev.com/index.php3?GoTo=jobmatching/about.php3)
>
> or the jobs area (http://www.weberjob.com).
>
> Sincerely
>
>       berber
>
> Visit http://www.weberdev.com Today!!!
> To see where PHP might take you tomorrow.
>
>
> -----Original Message-----
> From: rbradley [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 13, 2001 3:43 AM
> To: PHP
> Subject: [PHP] Pay for help
>
> My company is willing to pay for some assistance in helping us install:
>
> PHP apache mod with oracle 8i functions on a Solaris 8 box.
>
> Are there any takers?
>
> --
> Richard Bradley
> CTO YourLink, inc.
> (321) 452-6699
> IM lagoonr
>
> --
> 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]

--
Richard Bradley
CTO YourLink, inc.
(321) 452-6699
IM lagoonr

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]




-----Original Message-----
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 17, 2001 2:26 PM
To: '[EMAIL PROTECTED]'; PHP Lists
Subject: RE: [PHP] PHP Book Recommendations


And I remind you all to buy them at WeberDev.com and help
us pay the hosting :)

Sincerely

      berber

Visit http://www.weberdev.com Today!!!
To see where PHP might take you tomorrow.


-----Original Message-----
From: Brian V Bonini [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16, 2001 11:14 PM
To: PHP Lists
Subject: [PHP] PHP Book Recommendations


Can I get some recommendations on some good PHP
books. Something broad but with good novice
concepts........

--
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 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]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

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




On Tue, Feb 20, 2001 at 11:14:41AM -0400, Victor V . Evtushenko wrote:
> * John Hallam <[EMAIL PROTECTED]> [010215 17:58]:
> > I have got php 4.0.4p1 configured with openssl 0.9.6
> > and ldap and I'm trying to get an ldap_connect to work
> > over ldaps as described in the ldap_connect
> > documentation.
> > 
> > I have no problem connecting using
> > ldap_connect(hostname) format but I do have a problem
> > with the URL format. This is what I am doing :-
> > 
> > $Host='ldaps://hostname/';
> > $ds=ldap_connect($Host);
> > 
> > What is wrong ?? any ideas ??
> > 
> Why don't you try 
> $ds = ldap_connect("hostname", 689);
> where 689 is port number for SSL connection? If you use another port
> number, you should change 689 to whatever you use.

Because then you're not using SSL, and the URL format should work if
you use OpenLDAP 2.x.x libraries, and it does work for me. I've tested
it on Linux and I know people using this heavily on Solaris as well.

Stig

-- 
Duct tape is like the force.  It has a light side, and a dark side, and
it holds the universe together ...
                -- Carl Zwanzig




OK, Thanks everyone for trying to help me out. I think I have "fixed" it.

All I've done was:

inside a function repeating on each row
I changed - 

        if($int)        return "<FONT COLOR=\"#FF0000\">$good</FONT>";

with -

        if($int)        return "<FONT COLOR=\"#FF0000\">$good</FONT>
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        ";

...and it worked....
In this way there's more data and different file size is being sent to the
browser.
I wish I new why.... why it worked ... what was the problem...

My only guess - packets.

Something was wrong with pockets, or file size...

the file size differs now, and it works... 

Geez....


I will investigate on this.
This is just too funny to forget about.

IE is so buggy....

Cheers,
Maxim Maletsky

P.S: As I wrote in my first post: "If any friends of Bill are around the
list, please forward him my happy
moments and eventual sweet words".



-----Original Message-----
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 4:42 PM
To: Maxim Maletsky; Boaz Yahav; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


Upgrading to IE 5.5 will tell you if it's a client problem or maybe a server
problem.

Sincerely

      berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.
 

-----Original Message-----
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 9:45 AM
To: 'Boaz Yahav'; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails. Ne
eds to be fixed NOW. Please advise.


Well, it doesn't make any sense upgrading. On my Mac all works fine, on my
Win2K I usually use Opera 5 identified as MSIE and it works as well.

Proxy, nope I go behind it.
Some go thru...

the problem stays no matter what.

Security settings? 
again, makes no sense, I think, most of the users having this problem have
never touched Internet Options.
server? no SSL, nothing... accessible internally, behind firewall.

I wonder what is the problem of Explorer in terms of compatibility with
headers, flushes and other PHP Functions directly influencing browsers.

I've seen that error (from different machines, locations but always on
MSIE5*) on a whole bunch of websites running on PHP, including PHP.net.
And now that I think, these usually were databases etc... Like function
reference on PHP.net

I know that what I am saying doesn't really make much sense - PHP is on
server and a browser is on client side. I just wonder if there can be some
other details.... something with web server ?... 

Cheers,
Maxim Maletsky



-----Original Message-----
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 4:30 PM
To: Maxim Maletsky; Boaz Yahav; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


Since I can't get to your URL I can only give ideas :)

Did you try to upgrade the IE on one of the computers to IE5.5 and see
if the problem goes away?

Do you use a proxy?

Are your security settings set to default?

Sincerely

      berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.

-----Original Message-----
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 9:33 AM
To: 'Boaz Yahav'; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails. Ne
eds to be fixed NOW. Please advise.


The funny thing is that the error sometimes goes away (I am frenetically
refreshing the page) but in most cases stays.
It never happened here before. Just from yesterday, or today .. not sure.
Error logs report nothing at all.

Cheers,
Maxim Maletsky



-----Original Message-----
From: Maxim Maletsky 
Sent: Wednesday, February 21, 2001 4:21 PM
To: 'Boaz Yahav'; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


You see Boaz, this is slightly different. It is not "Connection could not
established" troubleshooted by MS KBase as -- click TCP/IP ... then click
advanced .... This is "Download of specified resource has failed" persisting
on every machine in this office.

(Win2k running MSIE 5.01 only).

I wonder if IE finds something interesting between the pockets received and
then breaks file download without seeing EOF.
What so funny do I output?... ths is the question.


Cheers,
Maxim Maletsky



-----Original Message-----
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 4:06 PM
To: Maxim Maletsky; Boaz Yahav; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


http://support.microsoft.com/support/ie/ie5/topics/browse/iebrowseemts.asp

-----Original Message-----
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 9:08 AM
To: 'Boaz Yahav'; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails. Ne
eds to be fixed NOW. Please advise.


It goes on (SERVER_SOFTWARE)

Apache/1.3.9 (Unix) ApacheJServ/1.0 PHP/4.0.1pl2 mod_ssl/2.4.4 OpenSSL/0.9.4
on Linux

I am reviewing error_logs ... so far nothing funny ...

Cheers,
Maxim Maletsky




-----Original Message-----
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 3:59 PM
To: Maxim Maletsky; 'PHP General List. (E-mail)'
Subject: RE: [PHP] URGENT: IE pops-up an Error and File Download Fails.
Ne eds to be fixed NOW. Please advise.


What do you see in your web server logs?
what webserver do you use?

Sincerely

      berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.
 


-----Original Message-----
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 8:59 AM
To: 'PHP General List. (E-mail)'
Subject: [PHP] URGENT: IE pops-up an Error and File Download Fails. Needs to
be fixed NOW. Please advise.


Hello guys,
This is that time when I am in trouble ... 
 
One of our internal databases receives inputs from all kind of different
places and stores them for later reviews.
Since it's creation it was all going perfectly well, but now it has a little
problem:
 
The Internet Explorer gives me this error while listing one of databases'
tables:
 
(it is a pop up message of internet explorer)
----
    Internet Explorer Cannot Open the internet site
http://that.damn.db/database.php <http://that.damn.db/database.php>
?db=opp_post
 
    The download of the specified resource has filed.
----
 
What is it, PHP or IE? I suppose something is wrong with IE (5.01 for
instance), but so far couldn't come with any solution. The output is simply
not there, source shows cuted off at the very beginning of file - after few
hundreds of bytes.
 
This suggests me that one of the entries in Database is somehow corrupting
IE. But I have not found anything strange. What to look for, guys?
 
I tested it on Opera and Netscape - no probs whatsoever.
I also tested it on Linux, and Mac (Opera, Netscape) - no probs whatsoever.
...and (listen to this one)...
I tested it on Mac, MSIE 5.(01)? (just the version I have on my Win2k) --
and It gave me no errors at all.
 
Why MSIE 5.01 of Win2k gives that message and breaks download?
 
I've seen this messages already while browsing the web, and that's the
reason I'm asking you: anyone had to fix that before? What are your guesses
on my problem?
 
It is quite urgent since the database is not usable and I don't have much
time for researches on this issue.
The sad thing is that our office uses the exactly same configured machines
(MSIE5 - Win2k) and no one can view the database from their PCs. All the
sales and coordinators are staying here in line near my MAC while I am
writing you this.
 
Any help is greatly appreciated!
 
Cheers,
Maxim Maletsky
 
P.S: if any friends of Bill are around the list, please forward him my happy
moments and eventual sweet words.
 
Maxim Maletsky - [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
Webmaster, J-Door.com / J@pan Inc.
LINC Media, Inc.
TEL: 03-3499-2175 x 1271
FAX: 03-3499-3109

http://www.j-door.com <http://www.j-door.com/> 
http://www.japaninc.net <http://www.japaninc.net/> 
http://www.lincmedia.co.jp <http://www.lincmedia.co.jp/> 


 


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




Does anyone know if it is possible to use PHP and cURL to auto-login into a
site (which sets a cookie) and then fill in a form to send an sms message?
I need to do this to test a site automatically and check response times for
sending the SMS.




Hello All!

I am implementing a database application using PHP4 and MSSQL2000. I have a database 
table which has a large no. of tuples. I want to display the data in the form of pages 
with Prev Next buttons.

I wanted to know if there is some syntax in the MSSQL Select statement which can allow 
me to limit the no. of records being returned. I am lookin at functionality which is 
similar to LIMIT in Mysql.

for ex, LIMIT 10,10  in MYSQL returns to me a maximum of 10 records starting from the 
10th record in the returned recordset.

is there any similar functionality available in MSSQL.

if not, how should I go about implementing this functionality.

I would also appreciate if someopone could point me to a good tutorial on the subject 
using MSSQL server as the database server.

best regards

Ankur Verma
HCL Technologies
A1CD, Sec -16
Noida, UP
India




Hi,

Can anyone advise me in a "document management system", written in PHP and
Open Source?

Thanks!

Met vriendelijke groet / With kind regards,

Simon de Kraa
ICL Logistic Systems
mailto:[EMAIL PROTECTED]

---

Microsoft Windows 2000 Professional SP 1, Progress 9.1b, Roundtable 9.1a
SCO UnixWare 7.1.1, Progress 9.1a11




hey,

don't go bald yet :)

my web host (communitech.net) has the same setup... is that where you're 
hosted ?

i have a script  called 'php4.cgi' in my /cgi-bin which contains:

        #!/bin/sh
        #echo -e "Content-type: text/plain\n\n";
        #set
        SCRIPT_NAME=$REDIRECT_URL;export SCRIPT_NAME;
        SCRIPT_FILENAME=$PATH_TRANSLATED;export SCRIPT_FILENAME;
        /bin/php4;
        #set
the #ed out commands are for debugging you may not need them.
my .htaccess in the documentroot contains :

        Action application/x-php4-script "/cgi-bin/php4.cgi"
        AddHandler application/x-php4-script php



i hope you can use this. 
if you have any other problems, reply to the list because i'm sure more 
people can use this 'technique'. its still under testing, (i made it 2 days 
ago) so if there are any changes i need to make, i'll post it here.

cheers,
hrishi





Hi all,

I've a question which i really don't know what to do!
If i have a form with a textarea which for example for people to input lyric
of a song. Now i would like to read those lines of lyric and save it as a
html file with that song name as the file name. Is it possible for me to
achieve this?

I tried to input it just as if it's a data for a field in a table but the
lyric size is too large and can't be input to the table. (i've set 255 for
it already)

Please help! It's urgent!
Thanks!

Edith






> I've a question which i really don't know what to do!
> If i have a form with a textarea which for example for people to input
> lyric of a song. Now i would like to read those lines of lyric and save it
> as a html file with that song name as the file name. Is it possible for me
> to achieve this?
yes i think, use two fields, one for the title and one for the lyrics.

> I tried to input it just as if it's a data for a field in a table but the
> lyric size is too large and can't be input to the table. (i've set 255 for
> it already)
if you;'re using mysql, use the TEXT type for the column, for which the 
default limit is 64k bytes.

cheers,
hrishi





"Kenneth R Zink II" <[EMAIL PROTECTED]> wrote in message
025901c09b68$edd3d200$[EMAIL PROTECTED]">news:025901c09b68$edd3d200$[EMAIL PROTECTED]...
> I'm having problem with a php script.  I get a valid insert statment
echoed to the screen but I don't get a result from it.  If I cut and
> paste into the SQL query box in PHPMyadmin, it insert fine, but it will
not do it from the script.

> sql = INSERT INTO memberstest VALUES ('', 'Kenneth R Zink II', '5095094',
'Texas', 'yes', '02.20.01', 'yes', 'Hellcat1@S-
> Series.Org', 'http://www.s-series.org/htm/firestorm/firestorm.htm',
'1985', 'Chevrolet', 'Blazer', '', '0.000', '0.000', '0.000', '',
> '3.4L', '', '', '', '2WD', '2 Door', '', '', '', '', 'Spring', '14
December 1976', 'Red', 'See my project page for details.', 'See my project
> page for details.', 'See my project page for details.', 'See my project
page for details.', 'See my project page for details.', 'See my
> project page for details.', 'this is a test. let\'s see if this goes
through.', '', '1gtcs14r3h8515786')

The problem is in this last bit here, where you've entered "this is a test.
let's see if this goes through." Despite PHP autmotacially putting in the
backslash for you, it won't work. MySQL sees the ' as being the end of that
variable. Many of the clients seem to be able to encode this by themselves,
but PHP doesn't. So you need to run urlencode() over this kind of stuff.

--
Rick Hodger








Has anyone got any experience with creating windows .ins file from PHP. The
following coding appears to be working sort of, but when you first run it
wants to save the file as makeins.phtml (the same name as the file). If you
cancel, it then will save it as .ins file. It's very annoying and kinda
confusing. Any advice?

<?php

// Required VARS include

// $firstname $lastname $username $password

if (strlen($username)>1)

{

header("Content-type: application/x-internet-signup");

header("Content-disposition: attachment; filename=vispa.ins");

echo "[Internet_Mail]\n";

echo "Default_Client=Yes\n";

echo "Domain=vispa.com\n";

echo "Email_Address=" . $firstname . "@" . $username . ".vispa.com\n";

echo "Email_Name=" . $firstname . " " . $lastname . "\n";

echo "Install_Mail=1\n";

echo "Install_Mail_16=0\n";

echo "Logon_Using_SPA=No\n";

echo "POP_Logon_Name=vis-" . $username . "\n";

echo "POP_Logon_Password=" . $password . "\n";

echo "POP_Server=pop.vispa.com\n";

echo "SMTP_Server=smtp.vispa.com\n";

echo "Logon_Using_SPA=No\n";

echo "Use_MS_Exchange=No\n";

echo "Use_IMAP=No\n";

echo "Window_Title=Outlook Express provided by Vispa Internet\n";

echo "Junk_Mail_Filtering=1\n";

echo "\n";

echo "[Branding]\n";

echo "CompanyName=Vispa Internet Limited\n";

echo "Wizard_Version=3.0.0.561\n";

echo "Custom_Key=E135056\n";

echo "Window_Title=Vispa Internet Explorer\n";

echo "\n";

echo "[Favorites]\n";

echo "Tucows.url=http://tucows.enta.net\n";

echo "\n";

echo "[Internet_News]\n";

echo "NNTP_Server=news.vispa.com\n";

echo "Logon_Required=0\n";

echo "Default_Client=Yes\n";

echo "\n";

echo "[URL]\n";

echo "Home_Page=http://www.vispa.net\n";

echo "Search_Page=http://home.microsoft.com/access/allinone.asp\n";

echo "NoWelcome=1\n";

echo "[Entry]\n";

echo "Entry_Name=Vispa Dialup\n";

echo "\n";

echo "[Phone]\n";

echo "Phone_Number=0500028\n";

echo "Area_Code=0845\n";

echo "Country_Code=44\n";

echo "Country_ID=44\n";

echo "Dial_As_Is=No\n";

echo "\n";

echo "[User]\n";

echo "Requires_Logon=Yes\n";

echo "Name=vis-$username\n";

echo "Password=$password\n";

echo "Display_Password=Yes\n";

echo "\n";

echo "[Device]\n";

echo "Type=modem\n";

echo "\n";

echo "[Server]\n";

echo "SW_Compress=Yes\n";

echo "PW_Encrypt=No\n";

echo "Network_Logon=no\n";

echo "SW_Encrypt=no\n";

echo "Type=PPP\n";

echo "Negotiate_TCP/IP=Yes\n";

echo "Negotiate_IPX/SPX=No\n";

echo "Negotiate_NetBEUI=No\n";

echo "\n";

echo "[TCP/IP]\n";

echo "Specify_Server_Address=No\n";

echo "DNS_Address=\n";

echo "DNS_Alt_Address=\n";

echo "IP_Header_Compress=Yes\n";

echo "Gateway_On_Remote=Yes\n";

echo "\n";

echo "[Outlook_Express_Global]\n";

echo "Read_Only=1\n";

echo "Hide_MSN=1\n";

} else {

?>

<HTML><HEAD><TITLE>Generate Automatic Configuration File</TITLE></HEAD>

<FONT FACE=Arial size=2 color=black>

<form action="<?php echo $PHP_SELF; ?>" method="POST">

<table border=0>

<tr><td><font face=arial size=2 color=black><b>Username:</b></font></td>

<td><input type=text name=username size=12></td></tr>

<tr><td><font face=arial size=2 color=black><b>Password:</b></font></td>

<td><input type=password name=password size=16></td></tr>

<tr><td><font face=arial size=2 color=black><b>Firstname:</b></font></td>

<td><input type=text name=firstname size=32></td></tr>

<tr><td><font face=arial size=2 color=black><b>Surname:</b></font></td>

<td><input type=text name=lastname size=32></td></tr>

<tr><td colspan=2 align=center><input type=submit
value="Generate!"></td></tr>

</table>

</form>

</font>

</html>

<?php // continue...

}

?>







On Tuesday 20 February 2001 21:17, Kevin Connolly wrote:

> just adding the line: system("C:/temp.exe")?? I have also tried
> system("C:\temp.exe)!! This is probably a really silly question but I

As you use double quotes here, PHP will interpret the "\t" in there as 
TAB character. Write "C:\\temp.exe" instead.

> send me an example or tell me what I am doind wrong? Any assistance is
> very much appreciated,

Well, it would help if you'd tell us what goes wrong - error messages, 
things it should do but doesnt ...

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

What luck for the rulers that men do not think.

- Adolf Hitler




Hi!
Can you use a php-script to see if there is someone on your homepage?
Im going to make a demo with flash, php,xml and xsl and if more than one
at the moment are testing the demo,  it won´t work beacause of the
work-file is cleaned up every time someone enters.If you can see a digit
on the page than you can tell visitor to goto another instance of the
page.

Thanks for help.
Regards

Jan





hi

im running iis5 and php 4.04

i get the following error :
PHP has encountered an Access Violation at 78003ABF 

im pretty sure its a server problem, can anyone confirm this or help out? if it is a 
server error how can it be fixed?

this is quite urgent

thanks
Wade





Hi!
Thanks but i want to send the current page!
it's like i've generated a page with some results and i want to send that 
page as email body or attachment!
if i use whet u told me about i will only send the source code wich will 
give me nothing cause therer are no variables sent with it !
Thanks

>From: <[EMAIL PROTECTED]>
>To: kaab kaoutar <[EMAIL PROTECTED]>
>CC: [EMAIL PROTECTED]
>Subject: Re: [PHP] email  a page as attachment
>Date: Tue, 20 Feb 2001 19:40:13 +0100 (CET)
>
> > how can i email from a page, that page as attachment ?
>http://www.phpwizard.net/resources/phpMisc/scripts/pretty/mail.php3
>
>Bye,
>
>Atom
>

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.





try the HTML mail and attachement class to send the data as an attachment to
the email

http://phpclasses.upperdesign.com/

hope that helps

best regards

Ankur Verma
HCL Technologies
A1CD, Sec -16
Noida, UP
India


----- Original Message -----
From: "kaab kaoutar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, February 21, 2001 4:34 PM
Subject: Re: [PHP] email a page as attachment


>
> Hi!
> Thanks but i want to send the current page!
> it's like i've generated a page with some results and i want to send that
> page as email body or attachment!
> if i use whet u told me about i will only send the source code wich will
> give me nothing cause therer are no variables sent with it !
> Thanks
>
> >From: <[EMAIL PROTECTED]>
> >To: kaab kaoutar <[EMAIL PROTECTED]>
> >CC: [EMAIL PROTECTED]
> >Subject: Re: [PHP] email  a page as attachment
> >Date: Tue, 20 Feb 2001 19:40:13 +0100 (CET)
> >
> > > how can i email from a page, that page as attachment ?
> >http://www.phpwizard.net/resources/phpMisc/scripts/pretty/mail.php3
> >
> >Bye,
> >
> >Atom
> >
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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]





This is a big philosophical question. 

If you drop a stone a million times you still can't predict that it'll fall
the next time unless you know the mechanism. Gravity is something we still
don't really understand but with software YOU WROTE THE CODE.

You still need to test to check your code but more important is proving it
by checking the logic. Once you've done this you know the sorts of things
that need testing (boundary conditions, etc.).

Just using and banging numbers through a program doesn't prove it works
(although it can prove it doesn't). This sort of testing should only be done
after you've proved the program to satisfy the bean-counters.

        Tim Ward
        Senior Systems Engineer

Please refer to the following disclaimer in respect of this message:
http://www.stivesdirect.com/e-mail-disclaimer.html


> -----Original Message-----
> From: Wee Chua [mailto:[EMAIL PROTECTED]]
> Sent: 20 February 2001 14:44
> To: PHP (E-mail)
> Subject: Help?
> 
> 
> Hi all,
> I am sorry for asking this question but I just need some 
> opinions or answers
> from you all. The question is "What are the limitations of software
> testing?" 
> Thanks for any helps in advance.
> 
> Calvin
> 




Hi, I am new of php

I have a file: send.php3

c:\type f:/http/php/send.php3
<?
mail("[EMAIL PROTECTED]", "Subject test", "test text");
?>
c:\

when I get the page from my web server(apache under Win NT), the mail is
sent correctly, but the browser is  hung for 30 seconds, and after I
have the following error:

Fatal error: Maximum execution time of 30 seconds exceeded in
f:/http/php/send.php3 on line 4

Someone can help me?

Thanks

Emanuele





To me, the SMTP in php.ini is wrongly configured.

Secondo me è settato male l'SMTP nel php ini.
Ciao

> Hi, I am new of php
>
> I have a file: send.php3
>
> c:\type f:/http/php/send.php3
> <?
> mail("[EMAIL PROTECTED]", "Subject test", "test text");
> ?>
> c:\
>
> when I get the page from my web server(apache under Win NT), the mail is
> sent correctly, but the browser is  hung for 30 seconds, and after I
> have the following error:
>
> Fatal error: Maximum execution time of 30 seconds exceeded in
> f:/http/php/send.php3 on line 4
>
> Someone can help me?
>
> Thanks
>
> Emanuele
>
>
> --
> 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]
>
>





the smtp part is configured like this:
[mail function]
SMTP   =  mysmtpserver
sendmail_from = [EMAIL PROTECTED]

there something else inside php.ini that I should change?

P.S. other scripts work fine...I have this error just in using mail();


Delbono wrote:

> To me, the SMTP in php.ini is wrongly configured.
>
> Secondo me è settato male l'SMTP nel php ini.
> Ciao
>
> > Hi, I am new of php
> >
> > I have a file: send.php3
> >
> > c:\type f:/http/php/send.php3
> > <?
> > mail("[EMAIL PROTECTED]", "Subject test", "test text");
> > ?>
> > c:\
> >
> > when I get the page from my web server(apache under Win NT), the mail is
> > sent correctly, but the browser is  hung for 30 seconds, and after I
> > have the following error:
> >
> > Fatal error: Maximum execution time of 30 seconds exceeded in
> > f:/http/php/send.php3 on line 4
> >
> > Someone can help me?
> >
> > Thanks
> >
> > Emanuele
> >
> >
> > --
> > 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]
> >
> >





Hi there 

I have a big problem and would greatly appreciate help..

I have a production site runnig the php4.0.4 isapi on IIS5 with a ibase backend db 
running on solaris

Now I have the problem that when ever a couple of people( 2-6) login from the web the 
database flatlines...
This is with about 10-30 local users logged into the db aswell.

the site is basically a data capturing site 

please any help is welcome

 thanks....

Niel Zeeman
Tel(W): (043)7014247
Cell: 082 651 4083
eMail: [EMAIL PROTECTED]






"Ide, Jim" wrote:
> 
> Hi -
> 
> Is there some way I can get the name of the currently executing function?
> 
> For example:
> 
> <?php
> 
> function MyFunction () {
>         echo "The currently executing function is: " . <here>  ;
> }

Solution:>

function MyFunction () {
         echo "The currently executing function is: MyFunction()"  ;
}




How do I delete records from my mySql database which
are three weeks old?? I will be declaring a date field
for the records but what coding should I do in order
to check if the records are three weeks old and then
erase them so that my data is up to date??

Regards,
T. Edison jr.

=====
Rahul S. Johari (Director)
******************************************
Abraxas Technologies Inc.
Homepage : http://www.abraxastech.com
Email : [EMAIL PROTECTED]
Tel : 91-4546512/4522124
*******************************************

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/


Reply via email to