php-general Digest 10 Feb 2001 17:59:43 -0000 Issue 504

Topics (messages 39054 through 39086):

Dynamically loading...
        39054 by: Ryan Sexton
        39071 by: Richard Lynch

Re: MySQL 3.23
        39055 by: Mark Maggelet
        39086 by: Thomas Deliduka

Re: good free/cheap IDE for PHP
        39056 by: Ayan R. Kayal

Re: Hi, new guy here!
        39057 by: PHPBeginner.com

Re: URL Encode
        39058 by: PHPBeginner.com

Re: mysql not reporting errors
        39059 by: PHPBeginner.com

Re: tracking the current url
        39060 by: PHPBeginner.com

Re: Asking Sth about PHP
        39061 by: PHPBeginner.com
        39063 by: Richard Lynch

Re: Zend Debugger problems
        39062 by: Richard Lynch

Re: http_user_agent and proxy
        39064 by: Richard Lynch

Re: Spliting
        39065 by: Richard Lynch

Re: More problems with MySql...
        39066 by: Richard Lynch

Re: Cookies reprise...
        39067 by: Richard Lynch

Re: anyway to make mail() function use port 25
        39068 by: Richard Lynch

Re: Using PHP for CGI
        39069 by: Richard Lynch

Re: mysql default cfg
        39070 by: Richard Lynch

DefaultType, FreeBSD, Mod_Rewrite, trailing slash
        39072 by: Richard Lynch
        39077 by: Hrishi

Re: Decoding E-Mails
        39073 by: Florin Andrei

Re: Credit Cards
        39074 by: AJDIN BRANDIC

Re: Testing CONNECTION Speed
        39075 by: Andrew Golovin
        39076 by: John Vanderbeck

Re: Spider script in PHP.
        39078 by: Hrishi

Re:shows up in IE but not Netscape
        39079 by: John Hinsley
        39080 by: Boaz Yahav

PROBLEM TO CONNECT MYSQL...
        39081 by: Felipe Lopes

IIS 5
        39082 by: Christian Bjorklund
        39083 by: James Moore

upload file
        39084 by: Marisol Díaz E.
        39085 by: Boaz Yahav

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]


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


Hi, I'm looking for a host that has CURL and Cybercash installed, but so
many good hosts out there do not have this installed and aren't willing to
budge on there build of php. I'm wondering only because i'm not a Unix/Linux
guru, Is it possible if a hosting company gives access to the DL() command
that I could load these on demand? and if so, how do I accomplish this?
(mainly CURL)

Thank you,
Ryan Sexton





> Hi, I'm looking for a host that has CURL and Cybercash installed, but so
> many good hosts out there do not have this installed and aren't willing to
> budge on there build of php. I'm wondering only because i'm not a
Unix/Linux
> guru, Is it possible if a hosting company gives access to the DL() command
> that I could load these on demand? and if so, how do I accomplish this?
> (mainly CURL)

A host that gives you dl() in a module environment would be not very secure,
as I understand it...

It really only makes sense to install CyberCash on an SSL box, no?  And an
ISP shouldn't be letting you upload arbitrary code to a shared server that's
allegedly SSL, since that's inherently insecure, I think.

What you *might* be able to do is get them to let you have PHP as suExec'ed
CGI binary so you can dl() into that, which runs as your user, so you can
only hurt yourself.

You'd use a different extension for those PHP-as-CGI pages, and not hurt
performance on the other pages.

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm






On Fri, 9 Feb 2001 22:08:06 -0500, Jon Rosenberg
([EMAIL PROTECTED]) wrote:
>I'm about to upgrade to mysql 3.23  on a production installation on
>linux
>with PHP 4.0.4pl1, has anyone had any problems with this
>combination, as
>compared to 4.0.4pl1 with 3.22.xx?  Thanks!

I hit a snag with some of the new reserved words colliding with field
names, you might want to take at the list.





My only issue was a symbolic link had to be created for Apache to start
again.

ln -s /usr/local/mysql/lib/mysql/libmysqlclient.so.10
/usr/lib/libmysqlclient.so.10


Oh, and I had to recompile PHP as a DSO in order to work with mysql 3.23

On 2/10/01 12:59 AM this was written:

> On Fri, 9 Feb 2001 22:08:06 -0500, Jon Rosenberg
> ([EMAIL PROTECTED]) wrote:
>> I'm about to upgrade to mysql 3.23  on a production installation on
>> linux
>> with PHP 4.0.4pl1, has anyone had any problems with this
>> combination, as
>> compared to 4.0.4pl1 with 3.22.xx?  Thanks!
> 
> I hit a snag with some of the new reserved words colliding with field
> names, you might want to take at the list.

-- 

Thomas Deliduka
IT Manager
     -------------------------
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/






PHPEd looks pretty. But it's highly unstable, in general (GPFs taking all
system resources sometimes). And it really despises ICQ too (everytime I
start it up, ICQ GPFs.

O-                         ~ARK
CFO, Hmedicine.com, Inc.

> -----Original Message-----
> From: Dennis von Ferenczy [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 09, 2001 8:08 AM
>
> can anybody please tell me which good IDEs are theee, that are
> optimized for
> PHP?
> It acztually doesn't need to do much more, than just code highlighting and
> line numbering for me purposes, althoug i would of course appreciate
> additionla features.
> thx in advance





Welcome on Board, Brian!


Sincerely,

 Maxim Maletsky
 Founder, Chief Developer

 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.com




-----Original Message-----
From: Brian Potter Web Design [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 10, 2001 7:51 AM
To: Php
Subject: [PHP] Hi, new guy here!


Hello! My name is Brian Potter and I just finished the PHP Fast and Easy Web
Development book. A friend of mine suggested I subscribe to this list. I am
eager to interact with all of you! I do a webpage for my youth group as well
as various professional web pages. I appreciate all of your help in advance!

-BRiAN





UrlEncode()

www.php.net/urlencode



Sincerely,

 Maxim Maletsky
 Founder, Chief Developer

 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.com





-----Original Message-----
From: David Smith [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 10, 2001 6:50 AM
To: PHP List Post
Subject: [PHP] URL Encode


I know this have been covered before but I can't find it in my thousands of
emails... How would I URL Encode the following...


I am retrieving a variable like <? echo "$SearchCity"; ?> but for example if
it is Hilton Head Island I need it to add the + signs as Hilton+Head+Island
so Netscape won't crash.

Thanks...





Hi Anna,

Have you ever heard of PHP Library (PHPLIB) ?

It is quite simple to install and will give you possibility of easily
switching between databases as well as choosing when and how to receive the
database errors.
It also has a whole bunch of other features - a very good base for
development.
If you wonder where to get PHP Library here's the link www.phplib.org


Sincerely,

 Maxim Maletsky
 Founder, Chief Developer

 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.com






-----Original Message-----
From: Anna [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 10, 2001 7:12 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] mysql not reporting errors


----- Original Message -----
From: "Christian Dechery"

> WHy PHP is not showing SQL syntax (or any) errors?
>
> I'm using Win98Me with Apache 1.3.12 and PHP 4.x.
>
> it works... if I run a correct query it runs normally, but if I go like:
>
> $query="selct nonexistingfield from nonexistingtable with all crazy
syntax";
> mysql_query($query);
>
> it doesn't tell me there's an error... in fact it doesn't show anything...
> why is that?

Because it's a pain to have error messages popping up all the time?
Here is what I do with every query I every write:


$query="yada yada";
$result=mysql_query($query, $connection);
if($result=="" || $result=="0")
{
 //if it is a page for my use, I print the error
// if it is a page for the general public, I email the
//error to myself, and print "There was a problem
//completing your request", or something like that.
 print "Error : ".mysql_error($connection)."<br>\n";
}
else
{
 while($row=mysql_fetch_row($result))
 {
  //do whatever you want to do with the data.
 }
}

I greatly prefer this to display "0 is not a mysql result index" for
everyone to see, if/when something goes wrong.

Anna


--
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 could simply use $HTTP_HOST.$PHP_SELF

of even better if look here:
http://www.php.net/manual/en/language.variables.predefined.php


Sincerely,

 Maxim Maletsky
 Founder, Chief Developer

 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.com




-----Original Message-----
From: McShen [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 10, 2001 9:00 AM
To: [EMAIL PROTECTED]
Subject: [PHP] tracking the current url



hi

Can you tell me how to  track the current url by using PHP? for example,
Mike is visiting http://www.celebritieszones.com/showthumb/britney_spears/1/
and i wanna make a PHP script so it tells Mike that he is currently browing
http://www.celebritieszones.com/showthumb/britney_spears/1/

I tried to use

$url_array=explode("\",$REQUEST_URI);

But it didn't work. It showed Array instead of the URL when i tried to
display it.

Please help. Thanks

-------
free celebritieszones email:
http://www.celebrititeszones.com/login.php






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






Yes, you can run PHP under Linux, this is the best way for it.
and about Perl - PHP, well they are not of too friends, but a whole bunch of
things can do toghether. In fact you can even complile PHP as CGI.

However, to tell you the true I didn't really understand your question,
please be more specific on what you're doing.


Sincerely,

 Maxim Maletsky
 Founder, Chief Developer

 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.com





-----Original Message-----
From: kn4279 [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 10, 2001 2:41 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Asking Sth about PHP


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! Kevin Ng


===================================================================
·s®ö§K¶O¹q¤l¶l½c http://sinamail.sina.com.hk


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

You'll probably need to compile PHP from source to get a CGI (standalone)
binary.

It's actually easier than messing with rpm, if you ask me.:-)

Oh -- Once you have that PHP CGI binary, you can run it from command line or
Perl or shell script or whatever.  Use it just like you would Perl with
#!/usr/sbin/php or whatever.

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm






> Anyone wrestled with the Zend Debugger Setup.

Yes. :-)

> Having downloaded the test drive of the IDE and Debugger and the test
drive
> license file
> followed the docs to the letter. It still isnt running. once i include
> zend_extention="/usr/local/Zend/ZendDebugger.so" in the php.ini file
> apache wont restart.

Any error messages in Apacher error logs?

Try disabling mod_gzip, and also ZendOptimizer.

Also, what other Modules are you running?

> Using Apache 1.3.14 & PHP 4.03pl1
> debug mode is not enabled as the docs say so this should all work fine
> also its not exactly clear where that line should be in php.ini
> I have sent the query to Zend as well
> but maybe the list will be quicker

Maybe, maybe not.  We're pretty quick...

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm






> I have this problem:
> I am using a script like this to make php use a remote proxy to get pages
using a remote proxy:

>   fputs($data1,"GET $myfiles/ HTTP/1.0\n\n");

> The problem is that i want to set the HTTP_USER_AGENT to something
different than a blank field, but have no idea how to do that.

Wild Guess:

You know how you need *two* newlines after that GET to make it go?
I think you can throw more stuff in there, and *then* the two newlines.
In other words, it's just like headers...

fputs($data1, "GET / HTTP/1.0\n");
fputs($data1, "HTTP_USER_AGENT spiderman\n");
fputs($data1, "\n"); #end of headers

This is purely wild speculation on my part, but it does make sense it would
work this way...

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm






> Suppose that I have a page andf I splitted it into two upper side has
input
> fields and buttons and lower side is
> report that is every line includes database information.
> Now I have a question when I choose one of the lines below this page how
can
> I get the values to upper pages input fields
> is it possible. Do I need javascript or php can solve my problem.

Using FRAMESET?

If you are doing FRAMESET for "look" or scrolling control, you can send all
your links back to the FRAMESET page with any
?page=page2.php&var1=42&var2=yes GET data.

Then, in your FRAMESET page, you can "pass down" the $QUERY_STRING to the
individual pages:

<HTML>
    <FRAMESET  ...>
        <FRAME form.php?<?php echo $QUERY_STRING;?>  ...>
        <FRAME <?php echo "$page?$QUERY_STRING";?> ...>
    </FRAMESET>
</HTML>


--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm






> Hey guys, I have another problem...
> Now, when I try login to Mysql it says that my user-password is wrong 
> :-(
> So I need to know what is the "equation" to delete, or to change, my 
> password-user?
> What is the "equation" to insert a user after I delete my last user?

I always forget as well, but 
mysqladmin --help
tells me.

-- 
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm






You can't set a cookie and do a header("Location:") on the same page.

It will work in some versions of some browsers, and not in others.

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: Matt <[EMAIL PROTECTED]>
Newsgroups: php.general
Sent: Friday, February 09, 2001 9:07 AM
Subject: [PHP] Cookies reprise...


> At 08:12 AM 2/9/2001, you wrote:
> lets see some code..
>
>
> Okay, for those so inclined....
>
> I did say the page the cookie script was included on was rather complex.
> I will say that I double checked and made sure the cookie variables
weren't
> overwritten in another include file.
>
> You can see what I mean by going to http://www.yaysoft.com (use IE if at
> all possible) and on the right side bar where it says "User Status" and
has
> a message saying "You are not logged in" you can click on the login link
> below it.
> I created an account for anyone who wants to try (everything works except
> the login cookie) so you don't have to waste your time signing up with the
> script, note it is case sensitive:
> user name: php
> password:  php
> after you click the login thing the cookies will be set and the page will
> not view them.
>
> If you used IE and you navigate to c:\windows\temporary internet files or
> wherever your cookies are stored, you should notice that a cookie has been
> set... with the path set to the root "/" and the domain set to
> "www.yaysoft.com" but the cookies will not show up in the browser.
>
> I have copied the script to a text file at
http://www.yaysoft.com/yaylogin.txt
>
> And for any who want to quickly glance at it, here is the code snippet
> where the cookies are set:
>    if ($item[0]>0) {
>      setcookie("ucrumb", $uname, time()+31536000, "/", "www.yaysoft.com",
0);
>      setcookie("pcrumb", $pass,  time()+31536000, "/", "www.yaysoft.com",
0);
>      header("Location: http://www.yaysoft.com");
>    } else
>      header("Location: $PHP_SELF?l_action=login&bad=1");
>
> And here is a slice from where they are supposedly supposed to be
accessed:
>    // Now check to see if we are currently logged in to the Yaysystem...
>    // First check to see if the variables plain out don't exist...
>    if ((!$ucrumb)||(!$pcrumb)) {
>      echo "You are not logged in.<br>";
>      echo "<font size=\"1\">";
>      echo "<br>[<a
> href=\"http://www.yaysoft.com/yaylogin.php?l_action=login\">Login</a>]  ";
>      echo "[<a
> href=\"http://www.yaysoft.com/yaylogin.php?l_action=new\">New</a>]";
>      echo "</font>";
>    // If they DO exist make sure they are a correct pair as per the
database...
>    } else {
>
> However, I've outputted the contents of $ucrumb and $pcrumb once I get to
> the little segment where they are supposed to be accessed and they contain
> nothing, so it seems to me that they aren't being sent to the script
(which
> resides in the root path where the cookie is set to!) I've used HTTP
> headers to set the cookies as well, and the problem still persists.
>
> I know this is long and boring and tedious crap, so I don't really expect
> anyone to reply, BUT if any of you have the time or inclination, any
> help/suggestions/advice would be greatly appreciated.
>
> Regards,
> Matt
>
>
>
> --
> 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]
>





> anyway to make mail() function to use port 25 on a defined SMTP host
> instead of the raw/direct spooling as by default as it uses sendmail on
> local system, what happens when SMTP server is a different box
> alltogether ?

You can change php.ini, maybe, or use Manuel Lemos' mail class to spew at
port 25.

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm






> I'm interested in a comparison study for using PHP vs. Perl for CGI
> programming.  Specifically, I'm looking for information comparing the
> two in terms of speed, memory usage and efficiency.  Any information or
> url's would be appreciated.

Check the FAQ.
http://php.net/FAQ.php

If you really mean to compare them as *CGI* for performance... Why?  CGI
performance is grossly inferior to Module, no?...

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm






> Isn't default config for mysql to report syntax errors on queries and
stuff
> like that??... it always did, I never altered any config in mysql. And
then
> today it just STOPPED reporting errors.

It used to report errors by default a long time ago, I think...

Maybe you upgraded PHP?
Or upgraded, but never restarted Apache, and only now is the upgrade
actually kicking in?

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm






Sorta off-topic, but it's all to get files with no extension to be run
through PHP...

Okay, since DefaultType is just plain broken on
FreeBSD4.1Release&Apache1.3.14, I tried to simulate it with mod_rewrite:

RewriteRule !.*\..* - [T=application/x-httpd-php]

This actually works and everything (which is amazing since Regex and I never
get along too well...)

Only problem is, *that* breaks the whole "auto-completion" of trailing
slashes on directories and/or DirectoryIndex.

I tried to fix that using:

RewriteCond %{SCRIPT_FILENAME} -d
RewriteRule ^(.+[^/])$ $1/ [R]

which I pretty much stole verbatim from:
http://httpd.apache.org/docs/misc/rewriteguide.html
but it didn't seem to have any real effect...
Actually, it seems to sometimes add a trailing slash to the files that have
no extension, but the page loads okay...

I tried moving the trailing slash fix both before and after my DefaultType
rule, and it didn't seem to behave any differently.

Any Rewrite gurus in the house?  Is there a "mod_rewrite under FreeBSD
mailing list" somewhere?...

PS
DefaultType on FreeBSD really is broken.  Honest.
I copied and pasted the DefaultType from the httpd.conf line above, so I
know I spelled that right.
And ditto for the mime/type.
Besides, I can use ForceType, and it "works", only ForceType breaks all the
stuff that *does* have an extension, like GIFs.
And I tried moving DefaultType to several different places within
httpd.conf:  Where the default had it, inside the Directory I want changed,
above that Directory, below it, at the very bottom...

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm






>
> RewriteCond %{SCRIPT_FILENAME} -d

i aint no guru but try puttin %{REQUEST_URI} up there in place of SCRIPT_..

hrishi




On 09 Feb 2001 12:26:37 +0100, Jens Kisters wrote:
> We started to build an Online-Mailclient using PHP and dicovered that
> there are quite a lot methods of encoding mails, does anyone have
> classes to decode MIME / ... (what other common methods are there?)
> 
> It would be great to extract Header, plain text, formatted text and
> maybe file attachments.
> Any hints?

http://www.horde.org/imp/


-- 
Florin Andrei





hi jerry

try www.bibit.com.  they wil give you some example code too.  easy to use 
and you can link to their test server until you are happy with your scripts.

ajdin

On Fri, 9 Feb 2001, Jerry Lake wrote:

> I have a basic shopping cart setup
> and I am curious as to how I go about
> being able to handle real-time credit 
> card transactions. I realize there are
> card services like cybercash and such,
> but how do I go about hooking cybercash
> up to the existing cart? (the host already
> has a merchant connection kit)
> 
> Jerry Lake            - [EMAIL PROTECTED]
> Web Designer
> Europa Communications - http://www.europa.com
> Pacifier Online           - http://www.pacifier.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]
> 
> 




Hello, Adam!

Thursday, February 08, 2001, 11:48:12, you wrote:

AK> 3) Send a large graphic (200K)

AK> No, it's not transparent to the user and no it's not microtime accurate, but
AK> it *does* work.
    it *dosn't* work. what if user turn off grafix in his browser?

>>Is there any way to do this?? i mean.. test the connection speed of a client
>>machine???
  i think that no way to determine client connection speed. browsers
  open not one connection to server. usually it's 10 threads to load
  grafix in separate treads. some grafix placed in cache (remote or
  local).
  asking user is the only way to determine connection speed.

Best regards!
Andrew Golovin
PGP Fingertip 24FD A0CD 667C 1FC7 C2F7  A2EA 9742 D484 FD3C 598D
http://exper.ural.ru/ 






Well,

There are about 3 or 4 sites on the net that will test your connection
speed, so it must be possible.  I know MSN has one.

- John Vanderbeck
- Admin, GameDesign

----- Original Message -----
From: "Andrew Golovin" <[EMAIL PROTECTED]>
To: "Adam Knight" <[EMAIL PROTECTED]>
Cc: "Matias Banzas" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Saturday, February 10, 2001 1:21 AM
Subject: Re[2]: [PHP] Testing CONNECTION Speed


> Hello, Adam!
>
> Thursday, February 08, 2001, 11:48:12, you wrote:
>
> AK> 3) Send a large graphic (200K)
>
> AK> No, it's not transparent to the user and no it's not microtime
accurate, but
> AK> it *does* work.
>     it *dosn't* work. what if user turn off grafix in his browser?
>
> >>Is there any way to do this?? i mean.. test the connection speed of a
client
> >>machine???
>   i think that no way to determine client connection speed. browsers
>   open not one connection to server. usually it's 10 threads to load
>   grafix in separate treads. some grafix placed in cache (remote or
>   local).
>   asking user is the only way to determine connection speed.
>
> Best regards!
> Andrew Golovin
> PGP Fingertip 24FD A0CD 667C 1FC7 C2F7  A2EA 9742 D484 FD3C 598D
> http://exper.ural.ru/
>
>
>
> --
> 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 Friday 09 February 2001 21:28, Angerer, Chad wrote:

maybe late and all, this pieca code was lying around somewhere in my socks ;) 
see if ya can use it,

hrishi
----begin code snippet--------
<?
function recurse($from,$func="echo")
{
        if(strrchr($from,"/")=="/")
        $from=strrev(substr(strrev($from),1));

        $from=str_replace("//","/",$from);

        chdir("/");
        $fromdir=0;
        $fromdir_class=dir($from);
        $fromdir=$fromdir_class->handle;
        $currpath=$fromdir_class->path;
        chdir($currpath);
        $dirs=array();
        $anchs=array();


        $cnt=0;
        rewinddir($fromdir);
        while($fname=readdir($fromdir))
        {
        if(is_dir($fname))
        {
        $dirs[]=$fname;
        }
        else
        {
        $func($currpath.'/'.$fname);
        }
        }
        closedir($fromdir);

        reset($dirs);

        while($dir=current($dirs))
        {

        if($dir!="." && $dir !="..")
        {
        recurse($currpath . '/' . $dir);
        }
        next($dirs);
//      echo "<br><u>::$from</u><br>";
        }

}


recurse("/home/public_html/");
?>
----end code snippet--------
-- 
--
Yeah, there are more important things in life
than money, but they won't go out with you if
you don't have any.





         "Erik Boles" <[EMAIL PROTECTED]> wrote:



> 
> We are running a webform, that asks for user ID and pass, then passes it on
> to a .php3 file that shows them a page to continue (not a security thing,
> just a tracking thing).
> 
> This .php3 file, called login.php3 works just fine in IE but when viewed in
> netscape it simply shows a white screen.  We did a "view source" and all of
> the php file is there, and it doesn't show any errors (HTML errors blink in
> the 'view source' with Netscape).
> 
> Any ideas why the code below is not working right in Netscape??

Well, I ran your code through weblint which (and this is pretty normal
behaviour for that old fusspot) spewed out an A4 page of errors!

But the trick with weblint is to work from the last error backwards (the
exact opposite of what you'd do with a C compiler). 

(I called it login.php -- I may want to pinch some of the code
sometime!)

<output snipped, only last few lines shown>

login.php(0): no closing </HTML> seen for <HTML> on line 1.
login.php(0): no closing </BODY> seen for <BODY> on line 1.
login.php(0): no closing </HTML> seen for <HTML> on line 27.
login.php(0): no closing </BODY> seen for <BODY> on line 27.
login.php(0): no closing </CENTER> seen for <CENTER> on line 28.
login.php(0): no closing </TABLE> seen for <TABLE> on line 29.
login.php(0): no closing </TABLE> seen for <TABLE> on line 63.
login.php(0): no closing </HTML> seen for <HTML> on line 69.
login.php(0): no closing </BODY> seen for <BODY> on line 69.

<end of weblint output>

And here we see the dreaded missing </TABLE>.

Someone made the point that it's best to develop on Netscape, and I
think this is true for HTML. It's also true, to a point, for Javascript,
while the Java applet issue is pretty much that the only way to get many
Java applets to run is to use Netscape: if they'll run (by some miracle)
in IE, they'll run in Netscape, so develop on IE. What a mess.

Weblint is -- I think -- available for Windows. It's a fussy old tool,
but really usefull for spotting those mistakes which the code blinded
coder can't spot in an editor with colour syntax highlighting. It's
saved me from throwing the monitor out of the (X)window on several
occasions. 

-- 
******************************************************************************
Marx: "Why do Anarchists only drink herbal tea?"
Proudhon: "Because all proper tea is theft."
******************************************************************************




You don't need to be a genius to know that HTML that is seen in IE and not
in NN is missing at least one </TABLE> tag.

IE is not that picky about closing tables :)

Sincerely

      berber

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

-----Original Message-----
From: John Hinsley [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 10, 2001 5:17 PM
To: Erik Boles
Cc: [EMAIL PROTECTED]
Subject: [PHP] Re:shows up in IE but not Netscape



         "Erik Boles" <[EMAIL PROTECTED]> wrote:



> 
> We are running a webform, that asks for user ID and pass, then passes it
on
> to a .php3 file that shows them a page to continue (not a security thing,
> just a tracking thing).
> 
> This .php3 file, called login.php3 works just fine in IE but when viewed
in
> netscape it simply shows a white screen.  We did a "view source" and all
of
> the php file is there, and it doesn't show any errors (HTML errors blink
in
> the 'view source' with Netscape).
> 
> Any ideas why the code below is not working right in Netscape??

Well, I ran your code through weblint which (and this is pretty normal
behaviour for that old fusspot) spewed out an A4 page of errors!

But the trick with weblint is to work from the last error backwards (the
exact opposite of what you'd do with a C compiler). 

(I called it login.php -- I may want to pinch some of the code
sometime!)

<output snipped, only last few lines shown>

login.php(0): no closing </HTML> seen for <HTML> on line 1.
login.php(0): no closing </BODY> seen for <BODY> on line 1.
login.php(0): no closing </HTML> seen for <HTML> on line 27.
login.php(0): no closing </BODY> seen for <BODY> on line 27.
login.php(0): no closing </CENTER> seen for <CENTER> on line 28.
login.php(0): no closing </TABLE> seen for <TABLE> on line 29.
login.php(0): no closing </TABLE> seen for <TABLE> on line 63.
login.php(0): no closing </HTML> seen for <HTML> on line 69.
login.php(0): no closing </BODY> seen for <BODY> on line 69.

<end of weblint output>

And here we see the dreaded missing </TABLE>.

Someone made the point that it's best to develop on Netscape, and I
think this is true for HTML. It's also true, to a point, for Javascript,
while the Java applet issue is pretty much that the only way to get many
Java applets to run is to use Netscape: if they'll run (by some miracle)
in IE, they'll run in Netscape, so develop on IE. What a mess.

Weblint is -- I think -- available for Windows. It's a fussy old tool,
but really usefull for spotting those mistakes which the code blinded
coder can't spot in an editor with colour syntax highlighting. It's
saved me from throwing the monitor out of the (X)window on several
occasions. 

-- 
****************************************************************************
**
Marx: "Why do Anarchists only drink herbal tea?"
Proudhon: "Because all proper tea is theft."
****************************************************************************
**

-- 
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 have a problem to connect mysql...
Now, when I try login to Mysql it says that my user-password is wrong.
So I need to know what is the "equation" to delete, or to change, my 
password-user?
What is the "equation" to insert a user after I delete my last user?
Thank you again!!!

Felipe Lopes
MailBR - O e-mail do Brasil -- http://www.mailbr.com.br
Faça já o seu. É gratuito!!!




Hello I like to have some directions in how to install PHP on IIS 5

Regards 

Christian.



Kråmagnom AB
Christian Björklund
Rådmansgatan 67
113 60 Stockholm
Tel: 08-320750
Fax: 08-320751
Mobil: 070-8880002




http://www.php.net/manual/en/install.iis.php
and
http://cvs.php.net/viewcvs.cgi/php4/win32/README.txt?rev=1.4&content-type=te
xt/vnd.viewcvs-markup

James

> -----Original Message-----
> From: Christian Bjorklund [mailto:[EMAIL PROTECTED]]
> Sent: 10 February 2001 15:46
> To: [EMAIL PROTECTED]
> Subject: [PHP] IIS 5
>
>
> Hello I like to have some directions in how to install PHP on IIS 5
>
> Regards
>
> Christian.
>
>
>
> Kråmagnom AB
> Christian Björklund
> Rådmansgatan 67
> 113 60 Stockholm
> Tel: 08-320750
> Fax: 08-320751
> Mobil: 070-8880002
>





Hello

I need to do upload a file, I have problem with instruction copy(?,?);

When it copy the file, just copy to tmp, and it change the name.



Marisol Díaz E.






Check out : 

http://www.weberdev.com/index.php3?GoTo=ViewArticle.php3?ArticleID=2

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: Saturday, February 10, 2001 6:21 PM
To: PHP General
Subject: [PHP] upload file


Hello

I need to do upload a file, I have problem with instruction copy(?,?);

When it copy the file, just copy to tmp, and it change the name.



Marisol Díaz E.



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


Reply via email to