|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
php-general Digest 20 Jun 2004 13:48:39 -0000 Issue 2832
php-general-digest-help
lists.php.net
Date: Sun Jun 20 2004 - 08:48:39 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php-general Digest 20 Jun 2004 13:48:39 -0000 Issue 2832
Topics (messages 188673 through 188691):
Re: hellllppp my php kills the browser
188673 by: water_foul
188674 by: Joel Kitching
188678 by: Aidan Lister
188679 by: Michael Lauzon
188680 by: Bob Eldred
188682 by: raditha dissanayake
Re: cookie question...
188675 by: Angel Freire
188676 by: raditha dissanayake
Re: Computer algebra in PHP
188677 by: Lukasz Karapuda
Re: Build Url based on screen width
188681 by: YC Nyon
Secure Website using Cookies
188683 by: Sean Vasey
Re: Regular Expressions Tester/designer
188684 by: Tom Rogers
188685 by: Ulrik S. Kofod
188691 by: Tom Rogers
Re: serialize private properties
188686 by: Christof Rath
Re: wierd sendmail/mail problems
188687 by: Jason Wong
is there any application , by using i can produce php exe files in windows ?
188688 by: Ravi
Re: is there any application ,
188689 by: Lester Caine
Auth_User
188690 by: Gabor Niederländer
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php-general
lists.php.net
----------------------------------------------------------------------
attached mail follows:
i fixed it i had an endless loop oops :)
"Water_foul" <phpdbnews
aaron.aichlmayr.net> wrote in message
news:20040619233812.71716.qmail
pb1.pair.com...
> i dont know why but the following code "kills" the browser:
> <?php
> //the function for adding new addresses
> function loop_new_address($loopnum,$url,$name){
> //the ${'link' . $loopnum} says put $link and add $loopnum to the end
> if(isset($_COOKIE['link' . $loopnum . ''])){
> loop_new_address_help($loopnum+1,$url,$name);
> }
> else{
> setcookie('link' . $loopnum . '',$url,time()+3600,'/');
> setcookie('name' . $loopnum . '',$name,time()+3600,'/');
> setcookie('link' . $loopnum . '',$url,time()+3600);
> setcookie('name' . $loopnum . '',$name,time()+3600);
> print('<a href=$url>' . $name . '</a> was added');
> };
> };
> //A function to let loop_new_address loop
> function loop_new_address_help($loopnum,$url,$name){
> loop_new_address($loopnum,$url,$name);
> };
> if(isset($_GET['new'])) {
> loop_new_address(1,$_GET['url'],$_GET['name']);
> };
> print('<table>');
> print('<tr><td><form Method="GET"
> action="module/personal/delete.php">delete</td></tr>');
> //write code
> $writenum=1;
> while(isset($_COOKIE['link' . $writenum . ''])==true){
> print('<a href=' . $_COOKIE['link' . $writenum . ''] . '>' .
$_COOKIE['name'
> . $writenum . ''] . '</a>');
> };
> include('links.htm')
> ?>
> <tr><td><input type=submit value="Delete Checked"></form></td></tr>
> </table>
> <table>
> <tr><td><form METHOD="GET" ACTION="module/personal/links.php"><input
> type=hidden name=new value=1></td><td></td></tr>
> <tr><td>Site name</td><td><INPUT TYPE=text NAME="name" VALUE=""></td></tr>
> <tr><td>site url (if it is not on this site it MUST contain
> "http://")</td><td><INPUT TYPE=text NAME="url" VALUE=""></td></tr>
> <tr><td></td><td><INPUT TYPE="SUBMIT" VALUE="Continue"></form></td></tr>
> </table>
attached mail follows:
Perhaps you would be better off going to IRC, as you seem to have many
(smaller) questions...
On Sat, 19 Jun 2004 17:42:26 -0600, water_foul
<phpdbnews
aaron.aichlmayr.net> wrote:
>
> i fixed it i had an endless loop oops :)
> "Water_foul" <phpdbnews
aaron.aichlmayr.net> wrote in message
> news:20040619233812.71716.qmail
pb1.pair.com...
>
>
> > i dont know why but the following code "kills" the browser:
> > <?php
> > //the function for adding new addresses
> > function loop_new_address($loopnum,$url,$name){
> > //the ${'link' . $loopnum} says put $link and add $loopnum to the end
> > if(isset($_COOKIE['link' . $loopnum . ''])){
> > loop_new_address_help($loopnum+1,$url,$name);
> > }
> > else{
> > setcookie('link' . $loopnum . '',$url,time()+3600,'/');
> > setcookie('name' . $loopnum . '',$name,time()+3600,'/');
> > setcookie('link' . $loopnum . '',$url,time()+3600);
> > setcookie('name' . $loopnum . '',$name,time()+3600);
> > print('<a href=$url>' . $name . '</a> was added');
> > };
> > };
> > //A function to let loop_new_address loop
> > function loop_new_address_help($loopnum,$url,$name){
> > loop_new_address($loopnum,$url,$name);
> > };
> > if(isset($_GET['new'])) {
> > loop_new_address(1,$_GET['url'],$_GET['name']);
> > };
> > print('<table>');
> > print('<tr><td><form Method="GET"
> > action="module/personal/delete.php">delete</td></tr>');
> > //write code
> > $writenum=1;
> > while(isset($_COOKIE['link' . $writenum . ''])==true){
> > print('<a href=' . $_COOKIE['link' . $writenum . ''] . '>' .
> $_COOKIE['name'
> > . $writenum . ''] . '</a>');
> > };
> > include('links.htm')
> > ?>
> > <tr><td><input type=submit value="Delete Checked"></form></td></tr>
> > </table>
> > <table>
> > <tr><td><form METHOD="GET" ACTION="module/personal/links.php"><input
> > type=hidden name=new value=1></td><td></td></tr>
> > <tr><td>Site name</td><td><INPUT TYPE=text NAME="name" VALUE=""></td></tr>
> > <tr><td>site url (if it is not on this site it MUST contain
> > "http://")</td><td><INPUT TYPE=text NAME="url" VALUE=""></td></tr>
> > <tr><td></td><td><INPUT TYPE="SUBMIT" VALUE="Continue"></form></td></tr>
> > </table>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
Please read:
http://www.catb.org/~esr/faqs/smart-questions.html
"Water_foul" <phpdbnews
aaron.aichlmayr.net> wrote in message
news:20040619234223.89485.qmail
pb1.pair.com...
> i fixed it i had an endless loop oops :)
> "Water_foul" <phpdbnews
aaron.aichlmayr.net> wrote in message
> news:20040619233812.71716.qmail
pb1.pair.com...
> > i dont know why but the following code "kills" the browser:
> > <?php
> > //the function for adding new addresses
> > function loop_new_address($loopnum,$url,$name){
> > //the ${'link' . $loopnum} says put $link and add $loopnum to the end
> > if(isset($_COOKIE['link' . $loopnum . ''])){
> > loop_new_address_help($loopnum+1,$url,$name);
> > }
> > else{
> > setcookie('link' . $loopnum . '',$url,time()+3600,'/');
> > setcookie('name' . $loopnum . '',$name,time()+3600,'/');
> > setcookie('link' . $loopnum . '',$url,time()+3600);
> > setcookie('name' . $loopnum . '',$name,time()+3600);
> > print('<a href=$url>' . $name . '</a> was added');
> > };
> > };
> > //A function to let loop_new_address loop
> > function loop_new_address_help($loopnum,$url,$name){
> > loop_new_address($loopnum,$url,$name);
> > };
> > if(isset($_GET['new'])) {
> > loop_new_address(1,$_GET['url'],$_GET['name']);
> > };
> > print('<table>');
> > print('<tr><td><form Method="GET"
> > action="module/personal/delete.php">delete</td></tr>');
> > //write code
> > $writenum=1;
> > while(isset($_COOKIE['link' . $writenum . ''])==true){
> > print('<a href=' . $_COOKIE['link' . $writenum . ''] . '>' .
> $_COOKIE['name'
> > . $writenum . ''] . '</a>');
> > };
> > include('links.htm')
> > ?>
> > <tr><td><input type=submit value="Delete Checked"></form></td></tr>
> > </table>
> > <table>
> > <tr><td><form METHOD="GET" ACTION="module/personal/links.php"><input
> > type=hidden name=new value=1></td><td></td></tr>
> > <tr><td>Site name</td><td><INPUT TYPE=text NAME="name"
VALUE=""></td></tr>
> > <tr><td>site url (if it is not on this site it MUST contain
> > "http://")</td><td><INPUT TYPE=text NAME="url" VALUE=""></td></tr>
> > <tr><td></td><td><INPUT TYPE="SUBMIT" VALUE="Continue"></form></td></tr>
> > </table>
attached mail follows:
I see enough of this "Holier Than Thou" attitude on the OCLUG list, I
don't need to see it here as well, and if you keep it up people like
me...the newbies will shy away from PHP!
On Sun, 20 Jun 2004 12:39:26 +1000, Aidan Lister <aidan
php.net> wrote:
>
> Please read:
>
> http://www.catb.org/~esr/faqs/smart-questions.html
>
> "Water_foul" <phpdbnews
aaron.aichlmayr.net> wrote in message
> news:20040619234223.89485.qmail
pb1.pair.com...
> > i fixed it i had an endless loop oops :)
> > "Water_foul" <phpdbnews
aaron.aichlmayr.net> wrote in message
> > news:20040619233812.71716.qmail
pb1.pair.com...
> > > i dont know why but the following code "kills" the browser:
> > > <?php
> > > //the function for adding new addresses
> > > function loop_new_address($loopnum,$url,$name){
> > > //the ${'link' . $loopnum} says put $link and add $loopnum to the end
> > > if(isset($_COOKIE['link' . $loopnum . ''])){
> > > loop_new_address_help($loopnum+1,$url,$name);
> > > }
> > > else{
> > > setcookie('link' . $loopnum . '',$url,time()+3600,'/');
> > > setcookie('name' . $loopnum . '',$name,time()+3600,'/');
> > > setcookie('link' . $loopnum . '',$url,time()+3600);
> > > setcookie('name' . $loopnum . '',$name,time()+3600);
> > > print('<a href=$url>' . $name . '</a> was added');
> > > };
> > > };
> > > //A function to let loop_new_address loop
> > > function loop_new_address_help($loopnum,$url,$name){
> > > loop_new_address($loopnum,$url,$name);
> > > };
> > > if(isset($_GET['new'])) {
> > > loop_new_address(1,$_GET['url'],$_GET['name']);
> > > };
> > > print('<table>');
> > > print('<tr><td><form Method="GET"
> > > action="module/personal/delete.php">delete</td></tr>');
> > > //write code
> > > $writenum=1;
> > > while(isset($_COOKIE['link' . $writenum . ''])==true){
> > > print('<a href=' . $_COOKIE['link' . $writenum . ''] . '>' .
> > $_COOKIE['name'
> > > . $writenum . ''] . '</a>');
> > > };
> > > include('links.htm')
> > > ?>
> > > <tr><td><input type=submit value="Delete Checked"></form></td></tr>
> > > </table>
> > > <table>
> > > <tr><td><form METHOD="GET" ACTION="module/personal/links.php"><input
> > > type=hidden name=new value=1></td><td></td></tr>
> > > <tr><td>Site name</td><td><INPUT TYPE=text NAME="name"
> VALUE=""></td></tr>
> > > <tr><td>site url (if it is not on this site it MUST contain
> > > "http://")</td><td><INPUT TYPE=text NAME="url" VALUE=""></td></tr>
> > > <tr><td></td><td><INPUT TYPE="SUBMIT" VALUE="Continue"></form></td></tr>
> > > </table>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Michael Lauzon, Founder
The Quill Society
http://www.quillsociety.org/
mlauzon
quillsociety.org
attached mail follows:
However, those newbies who stick around will learn how to research and
find most of the answers themselves. Not a bad result, if you ask me.
Education often sounds "Holier than Thou", but there's usually a good
reason for it.
Bob
-----Original Message-----
From: Michael Lauzon [mailto:mlauzon
gmail.com]
Sent: Saturday, June 19, 2004 8:20 PM
To: Aidan Lister
Cc: php-general
lists.php.net
Subject: Re: [PHP] Re: hellllppp my php kills the browser
I see enough of this "Holier Than Thou" attitude on the OCLUG list, I
don't need to see it here as well, and if you keep it up people like
me...the newbies will shy away from PHP!
On Sun, 20 Jun 2004 12:39:26 +1000, Aidan Lister <aidan
php.net> wrote:
>
> Please read:
>
> http://www.catb.org/~esr/faqs/smart-questions.html
>
> "Water_foul" <phpdbnews
aaron.aichlmayr.net> wrote in message
> news:20040619234223.89485.qmail
pb1.pair.com...
> > i fixed it i had an endless loop oops :)
> > "Water_foul" <phpdbnews
aaron.aichlmayr.net> wrote in message
> > news:20040619233812.71716.qmail
pb1.pair.com...
> > > i dont know why but the following code "kills" the browser: <?php
> > > //the function for adding new addresses
> > > function loop_new_address($loopnum,$url,$name){
> > > //the ${'link' . $loopnum} says put $link and add $loopnum to the
end
> > > if(isset($_COOKIE['link' . $loopnum . ''])){
> > > loop_new_address_help($loopnum+1,$url,$name);
> > > }
> > > else{
> > > setcookie('link' . $loopnum . '',$url,time()+3600,'/');
> > > setcookie('name' . $loopnum . '',$name,time()+3600,'/');
> > > setcookie('link' . $loopnum . '',$url,time()+3600);
> > > setcookie('name' . $loopnum . '',$name,time()+3600);
> > > print('<a href=$url>' . $name . '</a> was added');
> > > };
> > > };
> > > //A function to let loop_new_address loop
> > > function loop_new_address_help($loopnum,$url,$name){
> > > loop_new_address($loopnum,$url,$name);
> > > };
> > > if(isset($_GET['new'])) {
> > > loop_new_address(1,$_GET['url'],$_GET['name']);
> > > };
> > > print('<table>');
> > > print('<tr><td><form Method="GET"
> > > action="module/personal/delete.php">delete</td></tr>');
> > > //write code
> > > $writenum=1;
> > > while(isset($_COOKIE['link' . $writenum . ''])==true){
> > > print('<a href=' . $_COOKIE['link' . $writenum . ''] . '>' .
> > $_COOKIE['name'
> > > . $writenum . ''] . '</a>');
> > > };
> > > include('links.htm')
> > > ?>
> > > <tr><td><input type=submit value="Delete
> > > Checked"></form></td></tr> </table> <table>
> > > <tr><td><form METHOD="GET"
ACTION="module/personal/links.php"><input
> > > type=hidden name=new value=1></td><td></td></tr>
> > > <tr><td>Site name</td><td><INPUT TYPE=text NAME="name"
> VALUE=""></td></tr>
> > > <tr><td>site url (if it is not on this site it MUST contain
> > > "http://")</td><td><INPUT TYPE=text NAME="url" VALUE=""></td></tr>
> > > <tr><td></td><td><INPUT TYPE="SUBMIT"
> > > VALUE="Continue"></form></td></tr>
> > > </table>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Michael Lauzon, Founder
The Quill Society
http://www.quillsociety.org/
mlauzon
quillsociety.org
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
Michael Lauzon wrote:
>I see enough of this "Holier Than Thou" attitude on the OCLUG list, I
>don't need to see it here as well, and if you keep it up people like
>me...the newbies will shy away from PHP!
>
>
everyone with a holier than thou attitude were also newbies once. The
difference is that they knew how to ask questions when there were in
that stage.
--
Raditha Dissanayake.
---------------------------------------------
http://www.raditha.com/megaupload/upload.php
Sneak past the PHP file upload limits.
attached mail follows:
First I recomend you to read this page:
http://ar.php.net/manual/en/function.setcookie.php
For that example the code should be:
$_COOKIE['link1']
El sáb, 19-06-2004 a las 19:47, water_foul escribió:
> how do i read a cookie created by this code
> setcookie('link1',blah,time()+3600,'/');
attached mail follows:
Angel Freire wrote:
>First I recomend you to read this page:
>http://ar.php.net/manual/en/function.setcookie.php
>
>
I think your recommendtation ought to be
http://ar.php.net/manual/
instead. ;-)
>
>
--
Raditha Dissanayake.
---------------------------------------------
http://www.raditha.com/megaupload/upload.php
Sneak past the PHP file upload limits.
attached mail follows:
Take a look at the code available at http://www.phpmath.com. Several people
have contributed some numerical methods that could be useful for you.
Lukasz Karapuda
> -----Original Message-----
> From: Justin Patrin [mailto:papercrane
reversefold.com]
> Sent: Friday, June 18, 2004 6:05 PM
> To: php-general
lists.php.net
> Subject: Re: Computer algebra in PHP
>
> Chris Sangwin wrote:
>
> > Does anyone know of any PHP scripts which perform simple computer
> > algebra functions in PHP?
> >
> > For example, (using a Maple-like syntax)
> >
> > expand( (2*x-2)^4 );
> > diff( sin(x^2), x);
> > factor( x^2+2*x+1, x);
> >
> > and so on.
> >
> > Many thanks
> > Chris Sangwin
>
> :-) That would be nice.
>
> --
> paperCrane <Justin Patrin>
>
attached mail follows:
I need to build a url based on screen width.
The code is below
if (screen.width > 800) {
document.write('<a href="frameview.php?winwidth=880&winheight=540">');
}
else if (screen.width <= 800) {
document.write('<a href="frameview.php?winwidth=680&winheight=440">');
}
However, I need to add some parameters to the url dynamically. For example,
<a href="frameview.php?winwidth=680&winheight=440&street=durbon">
<a href="frameview.php?winwidth=680&winheight=440&street=secker">
...
Not getting success in try to combine Javascript and PHP scripting.
Nyon
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.690 / Virus Database: 451 - Release Date: 22/05/2004
attached mail follows:
When a user registers at my site, a random number is md5 encrypted and assigned to them and is stored in the database. When they login, this number is stored in a secure cookie. On certain pages that may contain sensitive user information such as order history or other, the page looks for the cookie and if it doesn't match the number in the database, they are not allowed access. I was wondering if this is a secure way to make sure it is the unique user who is actually viewing the information?
attached mail follows:
Hi,
Sunday, June 20, 2004, 7:23:53 AM, you wrote:
A> Anyone know of a good regular expressions tester/designer for php coding
A> running windows.
A> I've looked at the Rad Software Regular Expressions Designer and it
A> looks pretty good except that it is intended for .net and it really
A> doesn't seem to be entirely PCRE compatible.
A> Thanks....
This works with perl regular expressions
http://weitz.de/files/regex-coach.exe
--
regards,
Tom
attached mail follows:
Tom Rogers sagde:
>
>
> This works with perl regular expressions
>
> http://weitz.de/files/regex-coach.exe
>
Thanks! Great tool! I really needed something like that.
It just seems like it can't handle $1, $2 ...$x in the replacement string?
Isn't there a way to make that work ?
attached mail follows:
Hi,
Sunday, June 20, 2004, 5:30:39 PM, you wrote:
USK> Tom Rogers sagde:
>>
>>
>> This works with perl regular expressions
>>
>> http://weitz.de/files/regex-coach.exe
>>
USK> Thanks! Great tool! I really needed something like that.
USK> It just seems like it can't handle $1, $2 ...$x in the replacement string?
USK> Isn't there a way to make that work ?
You need to use \1 \2
--
regards,
Tom
attached mail follows:
If anyone else has the same problem, I found an entry in the bug database:
http://bugs.php.net/bug.php?id=28082
c.
attached mail follows:
On Saturday 19 June 2004 06:46, Pam Derks wrote:
> No, nothing fancy all on same machine, running on Apache...
So what exactly is different between the functioning case and the
non-functioning case? Eg are you running them differently, ie one from the
command line and the other via webserver?
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
"Whoever undertakes to set himself up as a judge of Truth and Knowledge is
shipwrecked by the laughter of the gods."
-- Albert Einstein
*/
attached mail follows:
HI,
is there any windows application , by using we can produce standalone php
.exe files ?
--- knowledge is power share it ---
attached mail follows:
Ravi wrote:
> is there any windows application , by using we can produce standalone php
> ..exe files ?
No - PHP runs on the server and produces pages for any browser.
Trying to produce a stand alone application would require Apache + PHP +
your pages all in one package. Something that is not likely to happen
any time soon.
> --- knowledge is power share it ---
Not sure there is any power in this knowledge
--
Lester Caine
-----------------------------
L.S.Caine Electronic Services
attached mail follows:
Hi!
I have installed a Apache Server (+php) in a Windows NT network. I
would like to identify the Windows NT user visiting my php pages.
When I was using IIS, I think it was quite easy to find it out through
the $_SERVER['AUTH_USER'] variable. But it doesn't seem to work with
apache. Is there another way?
Cheers,
Gabor
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]