|
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-help_at_lists.php.net
Date: Wed Jul 10 2002 - 01:04:10 CDT
php-general Digest 10 Jul 2002 06:04:10 -0000 Issue 1455
Topics (messages 106411 through 106674):
Re: "Invalid content" using FastTemplates
106411 by: Alberto Serra
Functions list
106412 by: César Aracena
106423 by: Derick Rethans
106424 by: David Otton
Re: Script File Permissions
106413 by: Alberto Serra
106631 by: Chris Earle
Re: passing objects in url
106414 by: Alberto Serra
106418 by: Alberto Serra
Re: hiding submitted variable values in location bar of browser !
106415 by: Peter J. Schoenster
106419 by: David Otton
Working under Apache 1.3 but not Under IIS
106416 by: Kondwani Spike Mkandawire
106420 by: Matt Schroebel
Re: sigh... forms
106417 by: Henning Sittler
PHP vs. Java
106421 by: jsegovia.mindspring.com
106428 by: Jay Blanchard
106645 by: Anas Mughal
Cookies
106422 by: Varsha Agarwal
106425 by: Derick Rethans
106427 by: Alberto Serra
Re: Working under Apache 1.3 but not Under IIS (Problem Resolved But its too Slow)...
106426 by: Kondwani Spike Mkandawire
106429 by: David Otton
106432 by: Miles Thompson
CANT GET STUFF TO WORK
106430 by: Mike
106435 by: Jay Blanchard
106481 by: Mike
106517 by: Jay Blanchard
106519 by: Lee
106525 by: Mike
106529 by: Jay Blanchard
106530 by: Lee
106542 by: Lee
106609 by: Mike
106660 by: Naintara Jain
STARTTLS with IMAP?
106431 by: Alexander Skwar
106524 by: Danny Shepherd
??????????????????????????????????????????????????????````````````````````ØØØØØØØØØØØØØØØØØØÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅ
106433 by: Erik Hegreberg
106470 by: Martin Clifford
106512 by: Jay Blanchard
æææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææ
106434 by: Erik Hegreberg
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
106436 by: Erik Hegreberg
Re: header()
106437 by: Danny Shepherd
wwwwwwwwwwwwwwwwwwwwipoh'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
106438 by: Erik Hegreberg
106463 by: R'twick Niceorgaw
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
106439 by: Erik Hegreberg
106440 by: Erik Hegreberg
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
106441 by: Erik Hegreberg
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
106442 by: Erik Hegreberg
106453 by: Daniel Negron/KBE
106480 by: Jason Soza
106491 by: Paul Roberts
106521 by: Michael Geier
106522 by: Kevin Stone
106560 by: jepadilla.bh-corp.com
106567 by: Vail, Warren
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
106443 by: Erik Hegreberg
??????????????????????????????????????????????%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
106444 by: Erik Hegreberg
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
106445 by: Erik Hegreberg
#############################################################################################################################
106446 by: Erik Hegreberg
???????????((((((((((((((((((((((((((((([[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[88
106447 by: Erik Hegreberg
xxbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
106448 by: Erik Hegreberg
åååååååååååååååååååååååååååååååååååååååååååååååååååååååååååååååååååååååååååååååååååååååååååååååååååååååååååååååååååååååååååååååå
106449 by: Erik Hegreberg
zzzzzzz++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
106450 by: Erik Hegreberg
22222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222
106451 by: Erik Hegreberg
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
106452 by: Erik Hegreberg
¨ææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææ
106454 by: Erik Hegreberg
øøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøø
106455 by: Erik Hegreberg
106564 by: lars.fricke.web.de
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
106456 by: Erik Hegreberg
mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
106457 by: Erik Hegreberg
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
106458 by: Erik Hegreberg
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
106459 by: Erik Hegreberg
???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
106460 by: Erik Hegreberg
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
106461 by: Erik Hegreberg
HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
106462 by: Erik Hegreberg
```````````````````````````````````````````\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
106464 by: Erik Hegreberg
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
106465 by: Erik Hegreberg
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
106466 by: Erik Hegreberg
mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
106467 by: Erik Hegreberg
Re: ??????????????????????????????????????????????????????````````````````````ØØØØØØØØØØ =?iso-8859-1?B?2NjY2NjY2NjFxcXFxcXFxcXFxcXFxcX
106468 by: Rodolfo Gonzalez
..........................................................................................................................................................................................................
106469 by: Erik Hegreberg
mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
106471 by: Erik Hegreberg
uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
106472 by: Erik Hegreberg
PHP code optimization
106473 by: Peter Thoenen
106528 by: Kevin Stone
106591 by: Analysis & Solutions
106630 by: Chris Shiflett
106632 by: Nick Oostveen
106633 by: Nick Oostveen
øøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøø
106474 by: Erik Hegreberg
106536 by: Liam Gibbs
106640 by: Aaron
kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
106475 by: Erik Hegreberg
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
106476 by: Erik Hegreberg
nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
106477 by: Erik Hegreberg
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
106478 by: Erik Hegreberg
ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp
106479 by: Erik Hegreberg
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
106482 by: Erik Hegreberg
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
106483 by: Erik Hegreberg
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
106484 by: Erik Hegreberg
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
106485 by: Erik Hegreberg
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
106486 by: Erik Hegreberg
11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
106487 by: Erik Hegreberg
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
106488 by: Erik Hegreberg
11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
106489 by: Erik Hegreberg
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
106490 by: Erik Hegreberg
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111
106492 by: Erik Hegreberg
222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222
106493 by: Erik Hegreberg
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
106494 by: Erik Hegreberg
106498 by: Erik Hegreberg
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
106495 by: Erik Hegreberg
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
106496 by: Erik Hegreberg
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
106497 by: Erik Hegreberg
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
106499 by: Erik Hegreberg
Re: Erik Hegreberg
106500 by: Jeff Lewis
106527 by: Collins, Robert
106531 by: Chris Boget
106535 by: R'twick Niceorgaw
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
106501 by: Erik Hegreberg
106502 by: Erik Hegreberg
106503 by: Erik Hegreberg
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
106504 by: Erik Hegreberg
rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
106505 by: Erik Hegreberg
rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
106506 by: Erik Hegreberg
ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt
106507 by: Erik Hegreberg
Re: ??????????????????????????????????????????????????????````````````````````ØØØØØØØØØØ
106508 by: Andrew Brampton
106514 by: Danny Shepherd
106532 by: Ben Ramsey
106552 by: Andy Woolley
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
106509 by: Erik Hegreberg
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
106510 by: Erik Hegreberg
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
106511 by: Erik Hegreberg
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
106513 by: Erik Hegreberg
Re: Postal / Zip Code Proximity Search
106515 by: Miguel Cruz
106569 by: Matt Schroebel
106618 by: Richard Lynch
106629 by: Anas Mughal
Re: ?????????????????????????????????
106516 by: Chris Boget
106537 by: Richard Baskett
106538 by: Lazor, Ed
Erik Hergreberg
106518 by: Jason Soza
Re: ????????????????????????????????????????????
106520 by: Rodolfo Gonzalez
106541 by: Duncan Hill
106547 by: Miguel Cruz
Re: ############
106523 by: Rick Emery
106549 by: Steve Bradwell
106612 by: David H
106616 by: vins
Re: Trying to locate an image file name from another site
106526 by: Miguel Cruz
106545 by: Merritt, Dave
106562 by: Kevin Stone
106626 by: Richard Lynch
exif_read_data to read, and to write ...?
106533 by: OISS Administrator
What A Wet Wanker
106534 by: vins
Took the job into my own hands
106539 by: Liam Gibbs
106553 by: Miguel Cruz
Re: ??????????????????????????????????????????????????????```````````````````` ØØØØØØØØØØØØØØØØØØÅÅÅÅÅÅÅÅÅÅÅÅÅ
106540 by: Richard Baskett
The code to the pages that I can't figure out.
106543 by: Mike
Is it so fuckin diffuicult to delete me from that list I am out of plesaes long time ago!!!!!!!!!!!!!!!!!!!!!
106544 by: Erik Hegreberg
106563 by: vins
So moderator Delete me from the list and you will have your list in peace!!!!!!!!!!
106546 by: Erik Hegreberg
106550 by: Jay Blanchard
106566 by: vins
Re: Ben
106548 by: Kevin Stone
106554 by: Ben Ramsey
Re: tree structures
106551 by: Lazor, Ed
106556 by: Alexander Ross
106558 by: Alexander Ross
multi dimensional arrays / radio buttons / mass confusion on my part
106555 by: Chad Day
106574 by: Lazor, Ed
Re: Odd Request: Image 2 HEX
106557 by: Miguel Cruz
Please Remove this Moron
106559 by: Kevin Diffily
106561 by: Ashley M. Kirchner
106575 by: Zeev Suraski
Re: Is it so fuckin diffuicult...
106565 by: Ashley M. Kirchner
dumb
106568 by: Brendan P. Caulfield
106570 by: Kevin Stone
106571 by: Juan Pablo Aqueveque
106572 by: vins
106573 by: vins
106627 by: Chris Shiflett
Mail() function
106576 by: César Aracena
106577 by: vins
106579 by: César Aracena
106580 by: vins
106587 by: Miguel Cruz
106589 by: Lazor, Ed
106636 by: Chris Knipe
Re: No server var array, why
106578 by: Analysis & Solutions
106581 by: Philip Olson
slightly ot, looking for definition and possible info link about EX-OR
106582 by: Tom Beidler
106583 by: Lazor, Ed
Re: Dual Server...
106584 by: Matt Parlane
106586 by: Collins, Robert
test
106585 by: Vincent Kruger
testing :: sorry
106588 by: Vincent Kruger
Re: php loopholes
106590 by: Miguel Cruz
106592 by: vins
106593 by: Lazor, Ed
106625 by: Richard Lynch
106653 by: Jason Wong
Re: $_REQUEST???
106594 by: Patrick Teague
106595 by: Lazor, Ed
106668 by: Philip Olson
isset
106596 by: Preston Wade
106597 by: Rasmus Lerdorf
106598 by: vins
106599 by: Rasmus Lerdorf
106600 by: Jim lucas
106601 by: vins
106602 by: Preston Wade
106603 by: vins
106604 by: Kevin Stone
106606 by: Kevin Stone
106607 by: Preston Wade
106608 by: Preston Wade
106610 by: vins
106613 by: vins
106614 by: Lazor, Ed
Re: Please Help me
106605 by: Chris Shiflett
Re: Cross-Site Sesison ID Propagation
106611 by: Chris Shiflett
Re: Moderator where are you, delete me...
106615 by: Chris Shiflett
106617 by: vins
Re: imagecopyresized() problems
106619 by: Richard Lynch
Re: PLZ HELP -- - GET & POST form problem
106620 by: Richard Lynch
106654 by: Jason Wong
Re: PHP Image Functions
106621 by: Richard Lynch
Re: Bad table iso-8859-1
106622 by: Richard Lynch
Re: Executing Script through image
106623 by: Richard Lynch
Re: Server does somethingwierd
106624 by: Richard Lynch
(OT) Our Spam Friend
106628 by: Chris Shiflett
Re: snmpwalk
106634 by: sonjaya
How do I import tables into MySQL from web page ...
106635 by: Fargo Lee
106652 by: Analysis & Solutions
106663 by: Adam Alkins
106667 by: Fargo Lee
106670 by: Jason Wong
106672 by: Fargo Lee
106673 by: Analysis & Solutions
Function source?
106637 by: Leif K-Brooks
106638 by: Rasmus Lerdorf
106641 by: Pushkar Pradhan
106642 by: Anas Mughal
shtml & php in the same file?
106639 by: Joshua Alexander
106647 by: Chris Shiflett
106651 by: Joshua Alexander
Problem in using php-imap in rh7.3
106643 by: ÚÈ Ñ«
106644 by: Rasmus Lerdorf
stupid dude
106646 by: Yamin Prabudy
rh 7.3
106648 by: Yamin Prabudy
106650 by: Peter
LDAP Objects
106649 by: Stewart James
eregi_replace driving me nuts
106655 by: Patrick Teague
106658 by: Chris Shiflett
106659 by: Analysis & Solutions
106661 by: Chris Shiflett
T_string error
106656 by: admin
106657 by: Peter
106662 by: Adam Alkins
Commit/Roll Back Transaction in PHP/mySQL
106664 by: Thomas Edison Jr.
106669 by: Justin French
106671 by: Peter J. Schoenster
Exporting mySQL Table Data to .csv
106665 by: Thomas Edison Jr.
Re: Submitting form in new window!
106666 by: Thomas Edison Jr.
Storing values in Session
106674 by: Sachin Keshavan
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:
ðÒÉ×ÅÔ!
PeterV wrote:
>> Warning: Invalid content of \{\} in
>> /home/httpd/includes/fasttemplate.class.php on line 199
You are on windows, aren't you? I remember seeing such a thing some two
years ago. It vanished after php reinstallation. After that I did the
right thing and had microsoft vanish from my life forever.
Anyway, it was something in the ereg that gets the symbols to substitute
in the template. You should look there. But before you turn your HTML
templates upside down do try and reinstall PHP. As far as I can remember
everything worked by taking away the {} containers around the symbol
(and in the ereg expression). Which is to say you should go thru
thousands of HTML fragments. But really, it's been a long time.
As for version problems, I use FastTemplate since ages and never saw
anything like that on a LinuxBox. Right now I am running the last
version on the machine I am writing from. And FastTemplate runs with no
problems.
ÐÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is.......
attached mail follows:
Hi all.
I have the PHP manual in my PDA but its extraordinary large to search
for a function. Does anybody know a Functions list that I can download
for my PDA? I’m looking for something which shows the function and a
short description of what it works for.
function_name() = function_does_this
Thanks,
<mailto:webmaster
icaam.com.ar> Cesar Aracena
CE / MCSE+I
Neuquen, Argentina
+54.299.6356688
+54.299.4466621
attached mail follows:
Hello,
César aracena wrote:
>
> I have the PHP manual in my PDA but its extraordinary large to search
> for a function. Does anybody know a Functions list that I can download
> for my PDA? I'm looking for something which shows the function and a
> short description of what it works for.
>
> function_name() = function_does_this
http://cvs.php.net/co.php/phpdoc/funcsummary.txt
Derick
attached mail follows:
On Tue, 9 Jul 2002 15:05:21 -0300, you wrote:
>I have the PHP manual in my PDA but its extraordinary large to search
>for a function. Does anybody know a Functions list that I can download
>for my PDA? I’m looking for something which shows the function and a
>short description of what it works for.
There's a PHP Pocket Reference in this office... (O'Reilly, ISBN
1565927699). You might find that does the job better than a PDA.
The text is also online:
http://safari.oreilly.com/main.asp?bookname=phppr&cnode=1
attached mail follows:
ðÒÉ×ÅÔ!
Chris Earle wrote:
> So my question is this: how do I get my script to have permissions to write
> or append to any file?
Ask your sysadmin (I can almost bet the answer will be NO, I have to
tell you).
Apache should be running on your system as user nobody, and most
probably does NOT have the permission to write anything at all (apart
from file uploads).
ÐÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is.......
attached mail follows:
"Alberto Serra" <albertoserra
gala.net> wrote in message
news:3D2B265E.4030102
gala.net...
> ðÒÉ×ÅÔ!
>
> Chris Earle wrote:
> > So my question is this: how do I get my script to have permissions to
write
> > or append to any file?
>
> Ask your sysadmin (I can almost bet the answer will be NO, I have to
> tell you).
>
> Apache should be running on your system as user nobody, and most
> probably does NOT have the permission to write anything at all (apart
> from file uploads).
>
> ÐÏËÁ
> áÌØÂÅÒÔÏ
> ëÉÅ×
Thank you for the reply (I don't speak or read Russian if that's what that
other stuff is). I forgot to mention that the server is a Win2k server with
IIS 5 running. Obviously I'm not the server admin (otherwise I would be
using Apache).
I hope that I can get permissions, but I bet you're right. Probably just
have to create a database, which I planned on doing (and know how to). I
really did want to use XML though, oh well.
Thanks for the response,
Chris Earle
attached mail follows:
ðÒÉ×ÅÔ!
Alexander Ross wrote:
> If $this is an object, can I have the following link?
>
> <a href="process_this.php?this=$this">Process</a>
>
> Will the URL become too long? Will teh info get passed correctly? thanks
>
99% you are right, it will definitely be too long for a GET. Besides,
before writing the process_this.php?this=$this thing your *$this* should
be serialized. Watch the docs for it.
Most probably you have access to some database, so you can just save
your serialized version to a table (the type depends on the size of your
serialized object) and just pass a pointer to the row for the process
script to retrieve and unserialize the object back to normal life.
Just one more thing: if your object contains any reference they will
definitely become invalid, methinks. And I would never do object
serializing if I expected performance to be there. But this really
depends on the nature of your object, so handle the suggestion with
care, it's just way too generic.
ÐÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is.......
attached mail follows:
ðÒÉ×ÅÔ!
Marek Kilimajer wrote:
> This won't work, you must register it within a session, just remember to
> declare the class befor session_start()
This can be pretty risky if your object contains references to external
objects. Works okay for insulated instances, though. Yet I would suggest
not trusting sessions with objects.
You never know how your class is going to evolve on time and you never
know how sessions are going to evolve on time either (just think of the
register globals thingy).
I'd rather map object attributes to a good old table of mine and be sure
I can build it back whenever I want to, no matter what surprises lie
ahead on technology boulevard. Well, almost sure :)
ÐÏËÁ
áÌØÂÅÒÔÏ
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is.......
attached mail follows:
On 9 Jul 2002 at 22:09, chand
mihiramail.net wrote:
> Is there any way to hide my form submitted variables (like
> passwords etc)
> in the location
> bar "http://somedomain.org/checkpassword.php?
> password=mypassword"
> or atleast show in an encypted form n the location bar.
But why bother? Certainly you would not think it secure. Use https for security, anything else is a mirage afaik.
There is a module in Perl that encrypts and unencrypts post/get data intended for hidden fields. I guess it uses a checksum as well.
I personally prefer to just create a session and keep it on the server side.
Oh heck, but now as I read your email closer I guess you are asking how it can be done from a form the first time. Perhaps with javascript but then use post instead of get and of course make
it via a secure connection if security is a concern.
Peter
attached mail follows:
On Tue, 9 Jul 2002 22:09:58 -0400 (EDT), you wrote:
>Is there any way to hide my form submitted variables (like
>passwords etc)
>in the location
>bar "http://somedomain.org/checkpassword.php?
>password=mypassword"
>or atleast show in an encypted form n the location bar.
You could use POST rather than GET, which would hide it from someone
watching over your shoulder, but the data is still there as plaintext.
djo
attached mail follows:
The function shown below only functions with my
Apache on WinNT... I have tried it on my local
Server (thats the one running the Apache and
it works perfectly)... I am trying to step through
a moderately large database (4MB)... However when
I tried the example on the Server for my Work
Place it returned an error stating that the Script
took longer than 30 seconds to execute hence
failed... When I search for a name at the top of
the Database it immeadiately Spits out Found!...
The server on which this fails is an IIS WebServer, I am
not quite sure what version it is... I am kind of
at a loss whether its to do with the scripts efficiency
or the Servers Settings... Why is it possible to
execute the Script easily on my local host...
Here is the location...
http://www.coop.mun.ca/verification.php
Try and Type in any Name... As it should simply
Step through the Database not find it and Respit the Page...
However this does not happn...
Please Help...
if (function_exists(odbc_fetch_array))
return;
function odbc_fetch_array($result, $rownumber=-1) {
if (PHP_VERSION > "4.1") {
if ($rownumber < 0) {
odbc_fetch_into($result, &$rs);
} else {
odbc_fetch_into($result, &$rs, $rownumber);
}
} else {
odbc_fetch_into($result, $rownumber, &$rs);
}
foreach ($rs as $key => $value) {
$rs_assoc[odbc_field_name($result, $key+1)] = $value;
}
return $rs_assoc;
}
attached mail follows:
> From: Kondwani Spike Mkandawire [mailto:kondwani
cs.mun.ca]
> Subject: [PHP] Working under Apache 1.3 but not Under IIS
>
> The function shown below only functions with my
> Apache on WinNT... I have tried it on my local
> Server (thats the one running the Apache and
> it works perfectly)... I am trying to step through
> a moderately large database (4MB)... However when
> I tried the example on the Server for my Work
> Place it returned an error stating that the Script
> took longer than 30 seconds to execute hence
> failed... When I search for a name at the top of
> the Database it immeadiately Spits out Found!...
> The server on which this fails is an IIS WebServer, I am
> not quite sure what version it is... I am kind of
> at a loss whether its to do with the scripts efficiency
> or the Servers Settings... Why is it possible to
> execute the Script easily on my local host...
>
> Here is the location...
> http://www.coop.mun.ca/verification.php
>if (function_exists(odbc_fetch_array))
> return;
> function odbc_fetch_array($result, $rownumber=-1) {
> if (PHP_VERSION > "4.1") {
> if ($rownumber < 0) {
> odbc_fetch_into($result, &$rs);
> } else {
> odbc_fetch_into($result, &$rs, $rownumber);
> }
> } else {
> odbc_fetch_into($result, $rownumber, &$rs);
> }
> foreach ($rs as $key => $value) {
> $rs_assoc[odbc_field_name($result, $key+1)] = $value;
> }
> return $rs_assoc;
>}
Try taking the pass by reference & off of the result set. The man page for odbc_fetch_into states: As of PHP 4.0.5 the result_array does not need to be passed by reference any longer.
I've used the code below on 4.1 and 4.2. If that doesn't work, you might say what php version is on each machine, and what line 82 is.
// -------------------------------------------------------------------
// THIS HAS TO BE AT THE END OF THE FILE
// DON'T ADD ANY OTHER CODE AFTER THIS BECAUSE IT MAY NOT BE EXECUTED
// -------------------------------------------------------------------
if (function_exists('odbc_fetch_array'))
return;
function odbc_fetch_array($result, $rownumber=-1) {
$rs_assoc = array();
if (PHP_VERSION > "4.1") {
if ($rownumber < 0) {
odbc_fetch_into($result, $rs);
} else {
odbc_fetch_into($result, $rs, $rownumber);
}
} else {
odbc_fetch_into($result, $rownumber, $rs);
}
foreach ($rs as $key => $value) {
$rs_assoc[odbc_field_name($result, $key+1)] = $value;
}
return $rs_assoc;
}
// DON'T ADD ANY CODE HERE -- IT MIGHT NOT GET EXECUTED
// ----------------------------------------------------
attached mail follows:
Speaking of forms, and I'm sure lots have asked this before me, but anyone
know anywhere I can go to see some examples or existing code for
automatically generating and and validating dynamic forms?
Wait though, I'm already doing this myself. To explain further, what I
really want is an abstract set of php functions to say, ok, I want another
form with say 10 questions, and I want to define each question and set of
possible answers (input types and ranges) manually, and have the action
script automatically check that the input types and ranges for each question
are valid.
Henning Sittler
www.inscriber.com
-----Original Message-----
From: Chris Earle [mailto:chris
earleweb.com]
Sent: Tuesday, July 09, 2002 1:38 PM
To: php-general
lists.php.net
Subject: Re: [PHP] can I call a variable... using variables?
Why not just make the form's input names "var[]" then PHP will make them
into an array:
for ($i = 1; $i < 100; $i++)
{
if ($var[$i -1] > 0)
echo "Yup. ". $var[$i - 1] ." is greater than 0.";
}
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
I'm being asked you evaluate a fairly complex web project using the MS SQL Server 2000 back-end. A large application will be built, involving lots of technical and financial information from multiple sources and types of sources input daily, weekly, monthly, etc. Reports will also be run daily, weekly, monthly, etc., against this data. All the data including input, views and reports has to work well with a standard web browser client, although some of the reports will be emailed to clients who use Blackberry PDAs.
I'd rather take more time with the specifics before committing to a single technology but the client is asking which technology we'd propose before they award the job.
At this point I'm leaning towards PHP as the solution (although to CIOs, I'm sure 'Java' is still a sexier word than 'PHP'), but I'd like to ask for general opinions on the value of PHP vs. Java (specifically Apache Struts-type J2EE applications) for this kind of web-enabled application.
Thanks very much in advance.
attached mail follows:
[snip] I'm being asked you evaluate a fairly complex web project using the MS SQL Server 2000 back-end. A large application will be built, involving lots of technical and financial information from multiple sources and types of sources input daily, weekly, monthly, etc. Reports will also be run daily, weekly, monthly, etc., against this data. All the data including input, views and reports has to work well with a standard web browser client, although some of the reports will be emailed to clients who use Blackberry PDAs.
I'd rather take more time with the specifics before committing to a single technology but the client is asking which technology we'd propose before they award the job.
At this point I'm leaning towards PHP as the solution (although to CIOs, I'm sure 'Java' is still a sexier word than 'PHP'), but I'd like to ask for general opinions on the value of PHP vs. Java (specifically Apache Struts-type J2EE applications) for this kind of web-enabled application. [/snip]
I am not going to go at this from a JAVA vs. PHP viewpoint as each have strengths in certain applications. What I will do is evangelize about PHP for the application you describe.
We regularly use PHP for "Enterprise Level" applications for a number of reasons including development time, application speed, modularity, cross-platform stability, usability in many situations (for instance, we have many PHP functions that run as standalone scripts or in conjunction with other shell scripting languages that can be called from timed events, such as those found in CRON jobs and other command line executions). I will give you an instance;
Retrieve files from remote location each day, Extract needed files each day, Parse files, Import parsed files into database, Do multiple reports in multiple versions (Excel, HTML, PDF, etc), Request needed files from database, Put those files into usable form for billing application, Forward those files to the appropriate location for billing.
Eventually we will move our entire billing, customer service, aging and collection information to a PHP application(s) running in a set of web-interfaces...replacing legacy software, some of which still runs as a DOS application. PHP is a terrific solution for developing such a large scale application as modules can be added to the application either singularly or in groups to add needed functionality to the overall application without compromising other modules utilizing the same data. We receive millions of records each week that are handled by the PHP applications, it has the needed horsepower.
From a testing and approval standpoint it allows the cycle to be shortened from conception to production, a very good thing. Errors can be quickly found and corrected while new functionality does not require rewriting tons of code. If you plan carefully each module can remain independent enough from other modules, allowing modules to be added or depricated without affect the performance of other modules. Sound database planning is also key to this.
As for the PDA's PHP plays well with XSLT, CSS, and any other formatting tool that you can think of to deliver reports. The same report data can be formatted by PHP using these tools for many different interfaces (again, modularity).
PHP, to my way of thinking, is easier to maintain for others who may have to come in contact with your code after you have gone down the road to another project. It is well documented and features tons of extensions that can be added to the core for increased functionality (i.e. http://www.phpclasses.org/mirrors.html?page=%2Findex.html).
And finally, you can use JAVA with PHP should the need arise, therefore not locking yourself into a particualr technology and allowing you to flex the strengths of appropriate technologies for appropriate tasks.
My .02¢
Jay
attached mail follows:
I agree with the other reply to your question. My thoughts could be summarized as follows:
- Java solution would be more expensive and involved to build and maintain. - PHP would be cheaper and quicker to build and maintain.
- Java would require more resources on your server. - PHP is light weight and fast.
- Java is a mature OO language. So, if designed properly, would be easier to modify and/or extend functionality. - In my opinion, PHP is not a mature OO language. It might get there sometime in the future. However, PHP is very well suited for the goals it was designed for.
My choice would be Java. (Keep in mind that it will be easier to sell Java to the corporate guys. Some executives shy away from open source.)
Good luck!!!
--- jsegovia
mindspring.com wrote:
> I'm being asked you evaluate a fairly complex web
> project using the MS SQL
> Server 2000 back-end. A large application will be
> built, involving lots of
> technical and financial information from multiple
> sources and types of sources
> input daily, weekly, monthly, etc. Reports will
> also be run daily, weekly,
> monthly, etc., against this data. All the data
> including input, views and
> reports has to work well with a standard web browser
> client, although some of
> the reports will be emailed to clients who use
> Blackberry PDAs.
>
> I'd rather take more time with the specifics before
> committing to a single
> technology but the client is asking which technology
> we'd propose before they
> award the job.
>
> At this point I'm leaning towards PHP as the
> solution (although to CIOs, I'm
> sure 'Java' is still a sexier word than 'PHP'), but
> I'd like to ask for
> general opinions on the value of PHP vs. Java
> (specifically Apache Struts-type
> J2EE applications) for this kind of web-enabled
> application.
>
> Thanks very much in advance.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
__________________________________________________ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com
attached mail follows:
Hi, Can anyone tell me what a cookie is in simple language with an example?? -Varsha
__________________________________________________ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com
attached mail follows:
Hey,
for good (and funny) tutorial on cookies: http://www.htmlgoodies.com/tutors/cookie.html
you can find some examples here: http://www.php.net/manual/en/function.setcookie.php
Derick
attached mail follows:
ðÒÉ×ÅÔ!
Varsha Agarwal wrote: > Hi, > Can anyone tell me what a cookie is in simple language > with an example?? > -Varsha
A web connection is made by two machines: 1) the server, where the site is 2) the client, that is, the machine at which sits the user
Once the client sends a request for a web page (an URL, in tech language) some sort of program gets executed on the server. At the very least a program called "Web Server" will receive the request, look for a file that has that name and send it back to the client.
But usually the file does not end in .html, so something more gets executed, like PHP.
Well, this new thing being executed may need to write data somewhere, and it usually does write it in a database (that is, a set of tables). When it does so, it writes data on the server, that is, the very same machine it is running on.
But for some reasons it is sometimes useful to write data on the remote machine, that is, the client. This process of writing data on the client machine is called "sending a cookie".
The client machine may actually accept or refuse doing so, the server cannot know that, so no important data should ever be written in a cookie, as it may not get written.
Now suppose I (the program coder) need to now that you like to receive pages with lots of flowers and hate to receive pages with lots of machine code diagrams. I put a menu on my page and let you choose, right? Only it would be nice, if the next time you come to visit the site you were immediately presented the pages you like.
But, unfortunately, I have no way to stock this information on the server, because I cannot associate it with you in anyway (thank god, otherwise bye bye privacy).
So what I do is writing on a cookie that you like flower pages and hate machine code diagrams.
Next time the client machine (your comp) will connect to my site it will first look in its cookies list. It will find that there is a cookie for this particular site and send it to the server along with the request. Bingo! now I know you hate machine code diagrams.
I oversimplified, of course, cookies have much more than just this. Thay have expiration dates, limits on directory tree validity and so on, but that's the root of it.
ÐÏËÁ áÌØÂÅÒÔÏ ëÉÅ×
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
-_=}{=_-
LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu? lOrD i'M sHiNiNg... YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE tHe TeSt, YeS iT iS ThE tEsT, yEs It Is tHe TeSt, YeS iT iS ThE tEsT, yEs It Is.......
attached mail follows:
I got it fixed by changing the Max Execution Time in the php.ini file... However, this is ridiculously slow... Does anyone else have any idea how I can run through a 4 MB+ Database checking 2 fields Without having to wait longer than 30 seconds... If it was a simple text file it would have been easy using different search strategies (possibly even Hashing Keys...)
Please give me some suggesstions...
Kondwani...
"Kondwani Spike Mkandawire" <kondwani
cs.mun.ca> wrote in message
news:20020709182154.13290.qmail
pb1.pair.com...
> The function shown below only functions with my
> Apache on WinNT... I have tried it on my local
> Server (thats the one running the Apache and
> it works perfectly)... I am trying to step through
> a moderately large database (4MB)... However when
> I tried the example on the Server for my Work
> Place it returned an error stating that the Script
> took longer than 30 seconds to execute hence
> failed... When I search for a name at the top of
> the Database it immeadiately Spits out Found!...
> The server on which this fails is an IIS WebServer, I am
> not quite sure what version it is... I am kind of
> at a loss whether its to do with the scripts efficiency
> or the Servers Settings... Why is it possible to
> execute the Script easily on my local host...
>
> Here is the location...
>
> http://www.coop.mun.ca/verification.php
>
> Try and Type in any Name... As it should simply
> Step through the Database not find it and Respit the Page...
> However this does not happn...
>
> Please Help...
>
> if (function_exists(odbc_fetch_array))
> return;
>
> function odbc_fetch_array($result, $rownumber=-1) {
> if (PHP_VERSION > "4.1") {
> if ($rownumber < 0) {
> odbc_fetch_into($result, &$rs);
> } else {
> odbc_fetch_into($result, &$rs, $rownumber);
> }
> } else {
> odbc_fetch_into($result, $rownumber, &$rs);
> }
> foreach ($rs as $key => $value) {
> $rs_assoc[odbc_field_name($result, $key+1)] = $value;
> }
> return $rs_assoc;
> }
>
>
attached mail follows:
On Tue, 9 Jul 2002 16:31:50 -0230, you wrote:
>> http://www.coop.mun.ca/verification.php >> >> Try and Type in any Name... As it should simply >> Step through the Database not find it and Respit the Page... >> However this does not happn... >> >> Please Help... >> >> if (function_exists(odbc_fetch_array)) >> return; >> >> function odbc_fetch_array($result, $rownumber=-1) { >> if (PHP_VERSION > "4.1") { >> if ($rownumber < 0) { >> odbc_fetch_into($result, &$rs); >> } else { >> odbc_fetch_into($result, &$rs, $rownumber); >> } >> } else { >> odbc_fetch_into($result, $rownumber, &$rs); >> } >> foreach ($rs as $key => $value) { >> $rs_assoc[odbc_field_name($result, $key+1)] = $value; >> } >> return $rs_assoc; >> }
>I got it fixed by changing the Max Execution Time in the >php.ini file... However, this is ridiculously slow... Does >anyone else have any idea how I can run through a 4 MB+ >Database checking 2 fields Without having to wait longer >than 30 seconds... If it was a simple text file it would >have been easy using different search strategies (possibly >even Hashing Keys...)
I'm a bit confused... what SQL statement are you executing against the database? It kinda looks like you're returning every row in the database, and using PHP to find the one that matches. Why can't you use a WHERE clause?
djo
attached mail follows:
Index your database on the name and password fields and issue this query
Select count(*) where name = '$namevar' and password = '$passvar'
If count > 0 you have a hit, proceed with rest of authentication, else send appropriate error msg. Whatever you do, DON'T make sequential searches through a database. They are agonizingly slow.
Regards - Miles Thompson
PS cs.mun.ca is different, where are you located?
At 04:31 PM 7/9/2002 -02-30, you wrote:
>I got it fixed by changing the Max Execution Time in the
>php.ini file... However, this is ridiculously slow... Does
>anyone else have any idea how I can run through a 4 MB+
>Database checking 2 fields Without having to wait longer
>than 30 seconds... If it was a simple text file it would
>have been easy using different search strategies (possibly
>even Hashing Keys...)
>
>Please give me some suggesstions...
>
>Kondwani...
>"Kondwani Spike Mkandawire" <kondwani
cs.mun.ca> wrote in message
>news:20020709182154.13290.qmail
pb1.pair.com...
> > The function shown below only functions with my
> > Apache on WinNT... I have tried it on my local
> > Server (thats the one running the Apache and
> > it works perfectly)... I am trying to step through
> > a moderately large database (4MB)... However when
> > I tried the example on the Server for my Work
> > Place it returned an error stating that the Script
> > took longer than 30 seconds to execute hence
> > failed... When I search for a name at the top of
> > the Database it immeadiately Spits out Found!...
> > The server on which this fails is an IIS WebServer, I am
> > not quite sure what version it is... I am kind of
> > at a loss whether its to do with the scripts efficiency
> > or the Servers Settings... Why is it possible to
> > execute the Script easily on my local host...
> >
> > Here is the location...
> >
> > http://www.coop.mun.ca/verification.php
> >
> > Try and Type in any Name... As it should simply
> > Step through the Database not find it and Respit the Page...
> > However this does not happn...
> >
> > Please Help...
> >
> > if (function_exists(odbc_fetch_array))
> > return;
> >
> > function odbc_fetch_array($result, $rownumber=-1) {
> > if (PHP_VERSION > "4.1") {
> > if ($rownumber < 0) {
> > odbc_fetch_into($result, &$rs);
> > } else {
> > odbc_fetch_into($result, &$rs, $rownumber);
> > }
> > } else {
> > odbc_fetch_into($result, $rownumber, &$rs);
> > }
> > foreach ($rs as $key => $value) {
> > $rs_assoc[odbc_field_name($result, $key+1)] = $value;
> > }
> > return $rs_assoc;
> > }
> >
> >
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
Hello, I am wondering if you could help me... I can't seem to figure out how to get sessions working. Thank You, Mike
attached mail follows:
http://www.php.net/manual/en/ref.session.php
Start there, and then when you can tell us what the more specific problems are with your sessions we will be able to help.
Jay
-----Original Message-----
From: Mike [mailto:funyon
funyon.com]
Sent: Tuesday, July 09, 2002 2:20 PM
To: php-general
lists.php.net
Subject: [PHP] CANT GET STUFF TO WORK
Hello, I am wondering if you could help me... I can't seem to figure out how to get sessions working. Thank You, Mike
attached mail follows:
I have read that, I am still confused, I have made it so that the session_start is at the top of all the pages, and I can't get some of the variables out of the script (i.e. I set a variable with session_register('user')) and on the next page I could not get the user variable out of the session on the next page.. does that help out? Thank You, Mike
----- Original Message -----
From: "Jay Blanchard" <jay.blanchard
niicommunications.com>
To: "'Mike'" <funyon
funyon.com>; <php-general
lists.php.net>
Sent: Tuesday, July 09, 2002 3:25 PM
Subject: RE: [PHP] CANT GET STUFF TO WORK
> http://www.php.net/manual/en/ref.session.php
>
> Start there, and then when you can tell us what the more specific problems
> are with your sessions we will be able to help.
>
> Jay
>
> -----Original Message-----
> From: Mike [mailto:funyon
funyon.com]
> Sent: Tuesday, July 09, 2002 2:20 PM
> To: php-general
lists.php.net
> Subject: [PHP] CANT GET STUFF TO WORK
>
>
> Hello, I am wondering if you could help me... I can't seem to figure out
how
> to get sessions working.
> Thank You,
> Mike
>
>
>
attached mail follows:
How did you do it, POST? GET? Is there a form involved? Can you show us the code from the two pages? Maybe my ESP will kick in :^)
-----Original Message-----
From: Mike [mailto:funyon
funyon.com]
Sent: Tuesday, July 09, 2002 2:37 PM
To: Jay Blanchard; php-general
lists.php.net
Subject: Re: [PHP] CANT GET STUFF TO WORK
I have read that, I am still confused, I have made it so that the session_start is at the top of all the pages, and I can't get some of the variables out of the script (i.e. I set a variable with session_register('user')) and on the next page I could not get the user variable out of the session on the next page.. does that help out? Thank You, Mike
----- Original Message -----
From: "Jay Blanchard" <jay.blanchard
niicommunications.com>
To: "'Mike'" <funyon
funyon.com>; <php-general
lists.php.net>
Sent: Tuesday, July 09, 2002 3:25 PM
Subject: RE: [PHP] CANT GET STUFF TO WORK
> http://www.php.net/manual/en/ref.session.php
>
> Start there, and then when you can tell us what the more specific problems
> are with your sessions we will be able to help.
>
> Jay
>
> -----Original Message-----
> From: Mike [mailto:funyon
funyon.com]
> Sent: Tuesday, July 09, 2002 2:20 PM
> To: php-general
lists.php.net
> Subject: [PHP] CANT GET STUFF TO WORK
>
>
> Hello, I am wondering if you could help me... I can't seem to figure out
how
> to get sessions working.
> Thank You,
> Mike
>
>
>
attached mail follows:
I am new to PHP & Sessions myself.
But I think $_SESSION['varname'] may be what you are looking for.
e.g. $_SESSION['count'] = 2;
----- Original Message -----
From: "Mike" <funyon
funyon.com>
To: "Jay Blanchard" <jay.blanchard
niicommunications.com>;
<php-general
lists.php.net>
Sent: Tuesday, July 09, 2002 8:37 PM
Subject: Re: [PHP] CANT GET STUFF TO WORK
> I have read that, I am still confused, I have made it so that the
> session_start is at the top of all the pages, and I can't get some of the
> variables out of the script (i.e. I set a variable with
> session_register('user')) and on the next page I could not get the user
> variable out of the session on the next page.. does that help out?
> Thank You,
> Mike
>
> ----- Original Message -----
> From: "Jay Blanchard" <jay.blanchard
niicommunications.com>
> To: "'Mike'" <funyon
funyon.com>; <php-general
lists.php.net>
> Sent: Tuesday, July 09, 2002 3:25 PM
> Subject: RE: [PHP] CANT GET STUFF TO WORK
>
>
> > http://www.php.net/manual/en/ref.session.php
> >
> > Start there, and then when you can tell us what the more specific
problems
> > are with your sessions we will be able to help.
> >
> > Jay
> >
> > -----Original Message-----
> > From: Mike [mailto:funyon
funyon.com]
> > Sent: Tuesday, July 09, 2002 2:20 PM
> > To: php-general
lists.php.net
> > Subject: [PHP] CANT GET STUFF TO WORK
> >
> >
> > Hello, I am wondering if you could help me... I can't seem to figure out
> how
> > to get sessions working.
> > Thank You,
> > Mike
> >
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
attached mail follows:
I used both a post and a get (using print "<a
href=\"$PHP_SELF\".session_name()."=".session_id(). ">click here</a>";) and
a post, but they don't seem to work.
Mike
----- Original Message -----
From: "Jay Blanchard" <jay.blanchard
niicommunications.com>
To: "'Mike'" <funyon
funyon.com>; <php-general
lists.php.net>
Sent: Tuesday, July 09, 2002 3:43 PM
Subject: RE: [PHP] CANT GET STUFF TO WORK
> How did you do it, POST? GET? Is there a form involved? Can you show us
the
> code from the two pages? Maybe my ESP will kick in :^)
>
> -----Original Message-----
> From: Mike [mailto:funyon
funyon.com]
> Sent: Tuesday, July 09, 2002 2:37 PM
> To: Jay Blanchard; php-general
lists.php.net
> Subject: Re: [PHP] CANT GET STUFF TO WORK
>
>
> I have read that, I am still confused, I have made it so that the
> session_start is at the top of all the pages, and I can't get some of the
> variables out of the script (i.e. I set a variable with
> session_register('user')) and on the next page I could not get the user
> variable out of the session on the next page.. does that help out?
> Thank You,
> Mike
>
> ----- Original Message -----
> From: "Jay Blanchard" <jay.blanchard
niicommunications.com>
> To: "'Mike'" <funyon
funyon.com>; <php-general
lists.php.net>
> Sent: Tuesday, July 09, 2002 3:25 PM
> Subject: RE: [PHP] CANT GET STUFF TO WORK
>
>
> > http://www.php.net/manual/en/ref.session.php
> >
> > Start there, and then when you can tell us what the more specific
problems
> > are with your sessions we will be able to help.
> >
> > Jay
> >
> > -----Original Message-----
> > From: Mike [mailto:funyon
funyon.com]
> > Sent: Tuesday, July 09, 2002 2:20 PM
> > To: php-general
lists.php.net
> > Subject: [PHP] CANT GET STUFF TO WORK
> >
> >
> > Hello, I am wondering if you could help me... I can't seem to figure out
> how
> > to get sessions working.
> > Thank You,
> > Mike
> >
> >
> >
>
>
>
>
>
attached mail follows:
Let's see the code from the pages....
-----Original Message-----
From: Mike [mailto:funyon
funyon.com]
Sent: Tuesday, July 09, 2002 2:56 PM
To: Jay Blanchard; php-general
lists.php.net
Subject: Re: [PHP] CANT GET STUFF TO WORK
I used both a post and a get (using print "<a
href=\"$PHP_SELF\".session_name()."=".session_id(). ">click here</a>";) and
a post, but they don't seem to work.
Mike
----- Original Message -----
From: "Jay Blanchard" <jay.blanchard
niicommunications.com>
To: "'Mike'" <funyon
funyon.com>; <php-general
lists.php.net>
Sent: Tuesday, July 09, 2002 3:43 PM
Subject: RE: [PHP] CANT GET STUFF TO WORK
> How did you do it, POST? GET? Is there a form involved? Can you show us
the
> code from the two pages? Maybe my ESP will kick in :^)
>
> -----Original Message-----
> From: Mike [mailto:funyon
funyon.com]
> Sent: Tuesday, July 09, 2002 2:37 PM
> To: Jay Blanchard; php-general
lists.php.net
> Subject: Re: [PHP] CANT GET STUFF TO WORK
>
>
> I have read that, I am still confused, I have made it so that the
> session_start is at the top of all the pages, and I can't get some of the
> variables out of the script (i.e. I set a variable with
> session_register('user')) and on the next page I could not get the user
> variable out of the session on the next page.. does that help out?
> Thank You,
> Mike
>
> ----- Original Message -----
> From: "Jay Blanchard" <jay.blanchard
niicommunications.com>
> To: "'Mike'" <funyon
funyon.com>; <php-general
lists.php.net>
> Sent: Tuesday, July 09, 2002 3:25 PM
> Subject: RE: [PHP] CANT GET STUFF TO WORK
>
>
> > http://www.php.net/manual/en/ref.session.php
> >
> > Start there, and then when you can tell us what the more specific
problems
> > are with your sessions we will be able to help.
> >
> > Jay
> >
> > -----Original Message-----
> > From: Mike [mailto:funyon
funyon.com]
> > Sent: Tuesday, July 09, 2002 2:20 PM
> > To: php-general
lists.php.net
> > Subject: [PHP] CANT GET STUFF TO WORK
> >
> >
> > Hello, I am wondering if you could help me... I can't seem to figure out
> how
> > to get sessions working.
> > Thank You,
> > Mike
> >
> >
> >
>
>
>
>
>
attached mail follows:
I am new to PHP & Sessions myself.
But I think $_SESSION['varname'] may be what you are looking for.
e.g. $_SESSION['count'] = 2;
Regards
Lee.
----- Original Message -----
From: "Mike" <funyon
funyon.com>
To: "Jay Blanchard" <jay.blanchard
niicommunications.com>;
<php-general
lists.php.net>
Sent: Tuesday, July 09, 2002 8:37 PM
Subject: Re: [PHP] CANT GET STUFF TO WORK
> I have read that, I am still confused, I have made it so that the
> session_start is at the top of all the pages, and I can't get some of the
> variables out of the script (i.e. I set a variable with
> session_register('user')) and on the next page I could not get the user
> variable out of the session on the next page.. does that help out?
> Thank You,
> Mike
>
> ----- Original Message -----
> From: "Jay Blanchard" <jay.blanchard
niicommunications.com>
> To: "'Mike'" <funyon
funyon.com>; <php-general
lists.php.net>
> Sent: Tuesday, July 09, 2002 3:25 PM
> Subject: RE: [PHP] CANT GET STUFF TO WORK
>
>
> > http://www.php.net/manual/en/ref.session.php
> >
> > Start there, and then when you can tell us what the more specific
problems
> > are with your sessions we will be able to help.
> >
> > Jay
> >
> > -----Original Message-----
> > From: Mike [mailto:funyon
funyon.com]
> > Sent: Tuesday, July 09, 2002 2:20 PM
> > To: php-general
lists.php.net
> > Subject: [PHP] CANT GET STUFF TO WORK
> >
> >
> > Hello, I am wondering if you could help me... I can't seem to figure out
> how
> > to get sessions working.
> > Thank You,
> > Mike
> >
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
attached mail follows:
From the work I have done, I have found that in the event PHP doesn't do this automatically (such as in some javascript code), you need to ensure you include a PHPSESSID varible in the URL something like:
print "www.mysite.net?PHPSESSID= " . session_id();
----- Original Message -----
From: "Mike" <funyon
funyon.com>
To: "Jay Blanchard" <jay.blanchard
niicommunications.com>;
<php-general
lists.php.net>
Sent: Tuesday, July 09, 2002 8:56 PM
Subject: Re: [PHP] CANT GET STUFF TO WORK
> I used both a post and a get (using print "<a
> href=\"$PHP_SELF\".session_name()."=".session_id(). ">click here</a>";)
and
> a post, but they don't seem to work.
> Mike
> ----- Original Message -----
> From: "Jay Blanchard" <jay.blanchard
niicommunications.com>
> To: "'Mike'" <funyon
funyon.com>; <php-general
lists.php.net>
> Sent: Tuesday, July 09, 2002 3:43 PM
> Subject: RE: [PHP] CANT GET STUFF TO WORK
>
>
> > How did you do it, POST? GET? Is there a form involved? Can you show us
> the
> > code from the two pages? Maybe my ESP will kick in :^)
> >
> > -----Original Message-----
> > From: Mike [mailto:funyon
funyon.com]
> > Sent: Tuesday, July 09, 2002 2:37 PM
> > To: Jay Blanchard; php-general
lists.php.net
> > Subject: Re: [PHP] CANT GET STUFF TO WORK
> >
> >
> > I have read that, I am still confused, I have made it so that the
> > session_start is at the top of all the pages, and I can't get some of
the
> > variables out of the script (i.e. I set a variable with
> > session_register('user')) and on the next page I could not get the user
> > variable out of the session on the next page.. does that help out?
> > Thank You,
> > Mike
> >
> > ----- Original Message -----
> > From: "Jay Blanchard" <jay.blanchard
niicommunications.com>
> > To: "'Mike'" <funyon
funyon.com>; <php-general
lists.php.net>
> > Sent: Tuesday, July 09, 2002 3:25 PM
> > Subject: RE: [PHP] CANT GET STUFF TO WORK
> >
> >
> > > http://www.php.net/manual/en/ref.session.php
> > >
> > > Start there, and then when you can tell us what the more specific
> problems
> > > are with your sessions we will be able to help.
> > >
> > > Jay
> > >
> > > -----Original Message-----
> > > From: Mike [mailto:funyon
funyon.com]
> > > Sent: Tuesday, July 09, 2002 2:20 PM
> > > To: php-general
lists.php.net
> > > Subject: [PHP] CANT GET STUFF TO WORK
> > >
> > >
> > > Hello, I am wondering if you could help me... I can't seem to figure
out
> > how
> > > to get sessions working.
> > > Thank You,
> > > Mike
> > >
> > >
> > >
> >
> >
> >
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
attached mail follows:
It starts here ... http://counter.funyon.com/autocounter/signup/signup.phps then goes to here ... http://counter.funyon.com/autocounter/signup/Signup1.phps or here... (both included from the signup page) http://counter.funyon.com/autocounter/signup/admin.phps included in admin is: http://counter.funyon.com/autocounter/include/getcounters.phps which makes links to: http://counter.funyon.com/autocounter/signup/editcounter.phps
There you go, I hope that I can get some insight ;) Mike
----- Original Message -----
From: "Lee" <lee
unassemble.co.uk>
To: "Mike" <funyon
funyon.com>
Cc: <php-general
lists.php.net>
Sent: Tuesday, July 09, 2002 3:59 PM
Subject: Re: [PHP] CANT GET STUFF TO WORK
> I am new to PHP & Sessions myself.
>
> But I think $_SESSION['varname'] may be what you are looking for.
>
> e.g. $_SESSION['count'] = 2;
>
> Regards
>
> Lee.
> ----- Original Message -----
> From: "Mike" <funyon
funyon.com>
> To: "Jay Blanchard" <jay.blanchard
niicommunications.com>;
> <php-general
lists.php.net>
> Sent: Tuesday, July 09, 2002 8:37 PM
> Subject: Re: [PHP] CANT GET STUFF TO WORK
>
>
> > I have read that, I am still confused, I have made it so that the
> > session_start is at the top of all the pages, and I can't get some of
the
> > variables out of the script (i.e. I set a variable with
> > session_register('user')) and on the next page I could not get the user
> > variable out of the session on the next page.. does that help out?
> > Thank You,
> > Mike
> >
> > ----- Original Message -----
> > From: "Jay Blanchard" <jay.blanchard
niicommunications.com>
> > To: "'Mike'" <funyon
funyon.com>; <php-general
lists.php.net>
> > Sent: Tuesday, July 09, 2002 3:25 PM
> > Subject: RE: [PHP] CANT GET STUFF TO WORK
> >
> >
> > > http://www.php.net/manual/en/ref.session.php
> > >
> > > Start there, and then when you can tell us what the more specific
> problems
> > > are with your sessions we will be able to help.
> > >
> > > Jay
> > >
> > > -----Original Message-----
> > > From: Mike [mailto:funyon
funyon.com]
> > > Sent: Tuesday, July 09, 2002 2:20 PM
> > > To: php-general
lists.php.net
> > > Subject: [PHP] CANT GET STUFF TO WORK
> > >
> > >
> > > Hello, I am wondering if you could help me... I can't seem to figure
out
> > how
> > > to get sessions working.
> > > Thank You,
> > > Mike
> > >
> > >
> > >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
what OS are you running on?
-----Original Message-----
From: php-general-return-106481-naintara=del6.vsnl.net.in
lists.php.net
[mailto:php-general-return-106481-naintara=del6.vsnl.net.in
lists.php.ne
t]On Behalf Of Mike
Sent: Tuesday, July 09, 2002 12:37 PM
To: Jay Blanchard; php-general
lists.php.net
Subject: Re: [PHP] CANT GET STUFF TO WORK
I have read that, I am still confused, I have made it so that the session_start is at the top of all the pages, and I can't get some of the variables out of the script (i.e. I set a variable with session_register('user')) and on the next page I could not get the user variable out of the session on the next page.. does that help out? Thank You, Mike
----- Original Message -----
From: "Jay Blanchard" <jay.blanchard
niicommunications.com>
To: "'Mike'" <funyon
funyon.com>; <php-general
lists.php.net>
Sent: Tuesday, July 09, 2002 3:25 PM
Subject: RE: [PHP] CANT GET STUFF TO WORK
> http://www.php.net/manual/en/ref.session.php
>
> Start there, and then when you can tell us what the more specific problems
> are with your sessions we will be able to help.
>
> Jay
>
> -----Original Message-----
> From: Mike [mailto:funyon
funyon.com]
> Sent: Tuesday, July 09, 2002 2:20 PM
> To: php-general
lists.php.net
> Subject: [PHP] CANT GET STUFF TO WORK
>
>
> Hello, I am wondering if you could help me... I can't seem to figure out
how
> to get sessions working.
> Thank You,
> Mike
>
>
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
Hi!
Does imap_open in PHP 4.2.1 support STARTTLS?
Alexander Skwar
-- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.iso-top.de | Jabber: askwara-message.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 2 days 11 hours 41 minutes
attached mail follows:
Not sure - but i've heard that this works:
$mbox = imap_open ("{localhost:995/pop3/tls/novalidate-cert}", "user_id", "password");
So maybe it does, no promises though :)
HTH
Danny.
----- Original Message -----
From: "Alexander Skwar" <lists.ASkwar
DigitalProjects.com>
To: <php-general
lists.php.net>
Sent: Tuesday, July 09, 2002 8:17 PM
Subject: [PHP] STARTTLS with IMAP?
Hi!
Does imap_open in PHP 4.2.1 support STARTTLS?
Alexander Skwar
-- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.iso-top.de | Jabber: askwara-message.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 2 days 11 hours 41 minutes
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
attached mail follows:
Dear Lord, where is the admin to boot this guy?
Martin
>>> "Erik Hegreberg" <ehegrebe
online.no> 07/09/02 03:25PM >>>
attached mail follows:
I tried going to his service provider, but it is in a language I do not understand. Since this counts as a DOS attack, he could get hammered if he keeps it up.
-----Original Message-----
From: Martin Clifford [mailto:MLC1
nrc.gov]
Sent: Tuesday, July 09, 2002 2:31 PM
To: php-general
lists.php.net
Subject: Re: [PHP]
??????????????????????????????????????????????????????``````````````````
``ØØØØØØØØØØØØØØØØØØÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅ
ÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅ
Dear Lord, where is the admin to boot this guy?
Martin
>>> "Erik Hegreberg" <ehegrebe
online.no> 07/09/02 03:25PM >>>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
attached mail follows:
attached mail follows:
header() simply sends response headers - I.e adds/replaces server headers - it has no effect on request headers sent by the client.
If, for some reason, you want to alter the user-agent you've received from the client (for testing maybe?) you can do this:
echo $_SERVER['HTTP_USER_AGENT']; $_SERVER['HTTP_USER_AGENT']='Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705)'; echo $_SERVER['HTTP_USER_AGENT'];
HTH
Danny
----- Original Message -----
From: "Taylor York" <taylor
dreamstargroup.com>
To: <php-general
lists.php.net>
Sent: Tuesday, July 09, 2002 4:54 PM
Subject: [PHP] header()
> I'm trying to change some information in the header...lets say that User > Agent for example...but it just wont change. > > putenv() will change the User Agent..but nothing else will > > <? > $ua = "Mozilla/4.0 (compatible;)"; > > header("User-Agent: $ua\n", TRUE); > header("Accept: */*", TRUE); > > //putenv("HTTP_USER_AGENT=$ua"); > > echo "\n<br>user agent: "; > echo getenv("HTTP_USER_AGENT"); > ?> > > Suggestions? > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >
attached mail follows:
attached mail follows:
are you doped or mentally challenged ?
----- Original Message -----
From: "Erik Hegreberg" <ehegrebe
online.no>
To: <php-general
lists.php.net>
Sent: Tuesday, July 09, 2002 12:26 PM
Subject: [PHP]
wwwwwwwwwwwwwwwwwwwwipoh'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
TTTTTTTTTT
attached mail follows:
Is this retaliation ?
**DAN**
|--------+------------------------>
| | "Erik |
| | Hegreberg" |
| | <ehegrebe
onli|
| | ne.no> |
| | |
| | 07/09/02 03:27|
| | PM |
| | |
|--------+------------------------>
>--------------------------------------------------------------------------------------------------------------------------------------------------|
| |
| To: <php-general
lists.php.net> |
| cc: |
| Subject: [PHP] |
| %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))|
| )))))))))))))) |
>--------------------------------------------------------------------------------------------------------------------------------------------------|
TTTTTTTTTT
attached mail follows:
Hmm.. I wonder if there's an abuse
online.no that we should all be
forwarding these constructive e-mails to. Nothing like getting an
account blocked!
Really though, Erik, go to http://www.php.net/unsub.php - it's easy.
If you have English problems or something, I'm sure there's a Norwegian translation somewhere.
Jason Soza
----- Original Message -----
From: "Daniel Negron/KBE" <danegron
kbelectronics.net>
Date: Tuesday, July 9, 2002 11:28 am
Subject: Re: [PHP] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
)))))))))))))))))))))))))))))))))))))))))))))))))))
>
> Is this retaliation ?
>
> **DAN**
>
>
>
>
> |--------+------------------------>
> | | "Erik |
> | | Hegreberg" |
> | | <ehegrebe
onli|
> | | ne.no> |
> | | |
> | | 07/09/02 03:27|
> | | PM |
> | | |
> |--------+------------------------>
> >----------------------------------------------------------------
> -------------------------------------------------------------------
> ---------------|
> |
>
> |
> | To: <php-general
lists.php.net>
>
> |
> | cc:
>
> |
> | Subject: [PHP]
>
> |
> |
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
)))))))))))))))))))))))))))))))))))))|
| ))))))))))))))
|
> >----------------------------------------------------------------
> -------------------------------------------------------------------
> ---------------|
>
>
>
>
> TTTTTTTTTT
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
i usually click no to the read receipts i get, maybe I'll make an exception in this case.
----- Original Message -----
From: "Daniel Negron/KBE" <danegron
kbelectronics.net>
To: "Erik Hegreberg" <ehegrebe
online.no>; <php-general
lists.php.net>
Sent: Tuesday, July 09, 2002 8:28 PM
Subject: Re: [PHP] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
Is this retaliation ?
**DAN**
|--------+------------------------>
| | "Erik |
| | Hegreberg" |
| | <ehegrebe
onli|
| | ne.no> |
| | |
| | 07/09/02 03:27|
| | PM |
| | |
|--------+------------------------>
>--------------------------------------------------------------------------------------------------------------------------------------------------|
| |
| To: <php-general
lists.php.net> |
| cc: |
| Subject: [PHP] |
| %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))|
| )))))))))))))) |
>--------------------------------------------------------------------------------------------------------------------------------------------------|
TTTTTTTTTT
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
easier to just bounce his mail back at him...
> -----Original Message-----
> From: Jason Soza [mailto:solja
gci.net]
> Sent: Tuesday, July 09, 2002 2:34 PM
> Cc: Erik Hegreberg; php-general
lists.php.net
> Subject: Re: [PHP]
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%)))))))))))))))))))))))))))))))))))))))))
> ))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
> )))))))))
>
>
> Hmm.. I wonder if there's an abuse
online.no that we should all be
> forwarding these constructive e-mails to. Nothing like getting an
> account blocked!
>
> Really though, Erik, go to http://www.php.net/unsub.php - it's easy.
>
> If you have English problems or something, I'm sure there's a Norwegian
> translation somewhere.
>
> Jason Soza
>
> ----- Original Message -----
> From: "Daniel Negron/KBE" <danegron
kbelectronics.net>
> Date: Tuesday, July 9, 2002 11:28 am
> Subject: Re: [PHP] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> %)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
> )))))))))))))))))))))))))))))))))))))))))))))))))))
>
> >
> > Is this retaliation ?
> >
> > **DAN**
> >
> >
> >
> >
> > |--------+------------------------>
> > | | "Erik |
> > | | Hegreberg" |
> > | | <ehegrebe
onli|
> > | | ne.no> |
> > | | |
> > | | 07/09/02 03:27|
> > | | PM |
> > | | |
> > |--------+------------------------>
> > >----------------------------------------------------------------
> > -------------------------------------------------------------------
> > ---------------|
> > |
> >
> > |
> > | To: <php-general
lists.php.net>
> >
> > |
> > | cc:
> >
> > |
> > | Subject: [PHP]
> >
> > |
> > |
> > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> %)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
> )))))))))))))))))))))))))))))))))))))|
> | ))))))))))))))
>
> |
> > >----------------------------------------------------------------
> > -------------------------------------------------------------------
> > ---------------|
> >
> >
> >
> >
> > TTTTTTTTTT
> >
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
You don't have to live with this. If you're running outlook/outlook express select one of erik's emails.. go to Message->Block Sender. It'll delete every file he has sent and send any new incoming to the deleted items folder. Be done with it. :) -Kevin
----- Original Message -----
From: "Paul Roberts" <roberts_paul
bigfoot.com>
To: <php-general
lists.php.net>; "Daniel Negron/KBE"
<danegron
kbelectronics.net>
Sent: Tuesday, July 09, 2002 1:36 PM
Subject: Re: [PHP]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%)))))))))))))))))))))))))))))))))))))))))))))
))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
)
> i usually click no to the read receipts i get, maybe I'll make an
exception in this case.
> ----- Original Message -----
> From: "Daniel Negron/KBE" <danegron
kbelectronics.net>
> To: "Erik Hegreberg" <ehegrebe
online.no>; <php-general
lists.php.net>
> Sent: Tuesday, July 09, 2002 8:28 PM
> Subject: Re: [PHP]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%)))))))))))))))))))))))))))))))))))))))))))))
))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
)
>
>
>
> Is this retaliation ?
>
> **DAN**
>
>
>
>
> |--------+------------------------>
> | | "Erik |
> | | Hegreberg" |
> | | <ehegrebe
onli|
> | | ne.no> |
> | | |
> | | 07/09/02 03:27|
> | | PM |
> | | |
> |--------+------------------------>
>
>---------------------------------------------------------------------------
-----------------------------------------------------------------------|
> |
|
> | To: <php-general
lists.php.net>
|
> | cc:
|
> | Subject: [PHP]
|
> |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%)))))))))))))))))))))))))))))))))))))))))))))
)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))|
> | ))))))))))))))
|
>
>---------------------------------------------------------------------------
-----------------------------------------------------------------------|
>
>
>
>
> TTTTTTTTTT
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
For what? His own stupidity of not reading the footers where it says "To unsubscribe, visit: http://www.php.net/unsub.php"
J
"Daniel Negron/KBE" <danegron
kbelectronics.net>
07/09/2002 01:28 PM
To: "Erik Hegreberg" <ehegrebe
online.no>, php-general
lists.php.net
cc:
Subject: Re: [PHP]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
Is this retaliation ?
**DAN**
|--------+------------------------>
| | "Erik |
| | Hegreberg" |
| | <ehegrebe
onli|
| | ne.no> |
| | |
| | 07/09/02 03:27|
| | PM |
| | |
|--------+------------------------>
>--------------------------------------------------------------------------------------------------------------------------------------------------|
| |
| To: <php-general
lists.php.net> |
| cc: |
| Subject: [PHP] |
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))|
| )))))))))))))) |
>--------------------------------------------------------------------------------------------------------------------------------------------------|
TTTTTTTTTT
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
Have you tried to read that page, it could use some rewriting.
Anyone on information overload will definitely have problems with it.
I also notice that some of his messages don't seem to have the trailer. What happened there?
Warren Vail Tools, Metrics & Quality Processes 215 Fremont 02-658
-----Original Message-----
From: jepadilla
bh-corp.com [mailto:jepadilla
bh-corp.com]
Sent: Tuesday, July 09, 2002 1:39 PM
To: php-general
lists.php.net
Subject: Re: [PHP]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%)))))))))))))))))))))))))))))))))))))))))
))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
)))))))))
For what? His own stupidity of not reading the footers where it says "To unsubscribe, visit: http://www.php.net/unsub.php"
J
"Daniel Negron/KBE" <danegron
kbelectronics.net>
07/09/2002 01:28 PM
To: "Erik Hegreberg" <ehegrebe
online.no>,
php-general
lists.php.net
cc:
Subject: Re: [PHP]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%)))))))))))))))))))))))))))))))))))))))))))))
))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
)
Is this retaliation ?
**DAN**
|--------+------------------------>
| | "Erik |
| | Hegreberg" |
| | <ehegrebe
onli|
| | ne.no> |
| | |
| | 07/09/02 03:27|
| | PM |
| | |
|--------+------------------------>
>---------------------------------------------------------------------------
-----------------------------------------------------------------------|
| |
| To: <php-general
lists.php.net> |
| cc: |
| Subject: [PHP] |
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%)))))))))))))))))))))))))))))))))))))))))))))
)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))|
| )))))))))))))) |
>---------------------------------------------------------------------------
-----------------------------------------------------------------------|
TTTTTTTTTT
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
he virtually begs for abuse
online.no...
-- Lars Fricke try: http://www.openbsd.org "In OpenBSD land, the pain is quick, at least." -- Theo de Raadt
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
To the kind moderator of the list: please kick off this guy (Erik
Hegreberg <ehegrebe
online.no> ), he's really annoying. Or at least bounce
his e-mails back to him ;) ).
Thanks.
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
Question on optimizing code for quicker runtimes. Which is quicker (this is on a webpage also..NOT commandline)?
<?php if ($a){ echo 'abc'; } ?>
OR
<?php if ($a) { ?> abc <?php } ?>
Both do the same thing and are legit but wondering which is better from an optimization standpoint (NOT interested in readability or *proper* code here)
-Peter
__________________________________________________ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com
attached mail follows:
I'm just guessing but I would think there would be no difference. The only way I think there would be a differnce is if you did many many echo statements as opposed to one echo or one ?>output block<? becuase it would have to parse that many more instances of the function. Again.. just a guess. -Kevin
----- Original Message -----
From: "Peter Thoenen" <eol1
yahoo.com>
To: <php-general
lists.php.net>
Sent: Tuesday, July 09, 2002 1:32 PM
Subject: [PHP] PHP code optimization
> Question on optimizing code for quicker runtimes. > Which is quicker (this is on a webpage also..NOT > commandline)? > > <?php if ($a){ echo 'abc'; } ?> > > OR > > <?php if ($a) { ?> abc <?php } ?> > > Both do the same thing and are legit but wondering > which is better from an optimization standpoint (NOT > interested in readability or *proper* code here) > > -Peter > > __________________________________________________ > Do You Yahoo!? > Sign up for SBC Yahoo! Dial - First Month Free > http://sbc.yahoo.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >
attached mail follows:
On Tue, Jul 09, 2002 at 12:32:59PM -0700, Peter Thoenen wrote: > Which is quicker (this is on a webpage also..NOT > commandline)? > > <?php if ($a){ echo 'abc'; } ?> > OR > <?php if ($a) { ?> abc <?php } ?>
The difference is very marginal. Write whichever makes more sense in the context. Short tidbits just don't matter. Larger stretches of text are easier to just send out as is rather than echo.
--Dan
--
PHP classes that make web design easier
SQL Solution | Layout Solution | Form Solution
sqlsolution.info | layoutsolution.info | formsolution.info
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409
attached mail follows:
Peter Thoenen wrote:
>Question on optimizing code for quicker runtimes. >Which is quicker (this is on a webpage also..NOT >commandline)? > ><?php if ($a){ echo 'abc'; } ?> > >OR > ><?php if ($a) { ?> abc <?php } ?> >
Because the difference is going to be undetectable, this would probably be a question that only someone really familiar with the engine would be able to answer with any sort of assurance.
My bet is that the second method is faster in theory, because switching in/out of PHP is likely marginally faster than executing the echo function. Maybe if you create some scripts that loop through these statements 10,000 times each and measure the time with microtime(), you can get a more affirmative answer and let the list know your results.
Happy hacking.
Chris
attached mail follows:
I could be wrong, but I seem to remember reading somewhere that using ?> text <? is actually just shorthand for echo " text "; as far as the php engine itself is concerned.
Again I'm not positive, but if this is the case it would coincide with the comment made earlier that they are in fact the same speed, but that outputting a large amount of text through a single ?> <? would be slightly faster than using numerous echo commands.
At 06:39 PM 7/9/2002 -0500, Chris Shiflett wrote: >Peter Thoenen wrote: > >>Question on optimizing code for quicker runtimes. Which is quicker (this >>is on a webpage also..NOT >>commandline)? >> >><?php if ($a){ echo 'abc'; } ?> >> >>OR >> >><?php if ($a) { ?> abc <?php } ?> > >Because the difference is going to be undetectable, this would probably be >a question that only someone really familiar with the engine would be able >to answer with any sort of assurance. > >My bet is that the second method is faster in theory, because switching >in/out of PHP is likely marginally faster than executing the echo >function. Maybe if you create some scripts that loop through these >statements 10,000 times each and measure the time with microtime(), you >can get a more affirmative answer and let the list know your results. > >Happy hacking. > >Chris > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php >
attached mail follows:
I could be wrong, but I seem to remember reading somewhere that using ?> text <? is actually just shorthand for echo " text "; as far as the php engine itself is concerned.
Again I'm not positive, but if this is the case it would coincide with the comment made earlier that they are in fact the same speed, but that outputting a large amount of text through a single ?> <? would be slightly faster than using numerous echo commands.
At 06:39 PM 7/9/2002 -0500, Chris Shiflett wrote: >Peter Thoenen wrote: > >>Question on optimizing code for quicker runtimes. Which is quicker (this >>is on a webpage also..NOT >>commandline)? >> >><?php if ($a){ echo 'abc'; } ?> >> >>OR >> >><?php if ($a) { ?> abc <?php } ?> > >Because the difference is going to be undetectable, this would probably be >a question that only someone really familiar with the engine would be able >to answer with any sort of assurance. > >My bet is that the second method is faster in theory, because switching >in/out of PHP is likely marginally faster than executing the echo >function. Maybe if you create some scripts that loop through these >statements 10,000 times each and measure the time with microtime(), you >can get a more affirmative answer and let the list know your results. > >Happy hacking. > >Chris > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php >
attached mail follows:
attached mail follows:
Oh, for Pete's sake, GROW UP, man!
Stop and think for a second! Why not try visiting php.net like you did to sign up (http://www.php.net/mailing-lists.php) instead of spamming the rest of us about with this junk? Just think! Did you do any of that when you signed up?
__________________________________________________ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com
attached mail follows:
Yes they give instructions on how to unsubscribe. Its quite simple.
Liam Gibbs wrote:
>Oh, for Pete's sake, GROW UP, man! > >Stop and think for a second! Why not try visiting >php.net like you did to sign up >(http://www.php.net/mailing-lists.php) instead of >spamming the rest of us about with this junk? Just >think! Did you do any of that when you signed up? > > >__________________________________________________ >Do You Yahoo!? >Sign up for SBC Yahoo! Dial - First Month Free >http://sbc.yahoo.com > > >
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
He is both, he has been emailed how to get off. For now, I keep just sending my read receipts :)
----- Original Message -----
From: "R'twick Niceorgaw" <rtwick
niceorgaw.com>
To: "Erik Hegreberg" <ehegrebe
online.no>; <php-general
lists.php.net>
Sent: Tuesday, July 09, 2002 6:30 PM
Subject: Re: [PHP]
wwwwwwwwwwwwwwwwwwwwipoh'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> are you doped or mentally challenged ?
> ----- Original Message -----
> From: "Erik Hegreberg" <ehegrebe
online.no>
> To: <php-general
lists.php.net>
> Sent: Tuesday, July 09, 2002 12:26 PM
> Subject: [PHP]
>
wwwwwwwwwwwwwwwwwwwwipoh'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
attached mail follows:
Erik just got his own personal email filter strait to the deleted items folder.
Robert W. Collins II
Webmaster
New Orleans Regional Transit Authority
Phone : (504) 248-3826
Fax: (504) 248-3866
Email : rcollins
norta.com <mailto:rcollins
norta.com>
-----Original Message-----
From: Jeff Lewis [mailto:jeff
hyrum.net]
Sent: Tuesday, July 09, 2002 2:42 PM
To: R'twick Niceorgaw; php-general
lists.php.net
Subject: Re: [PHP]Erik Hegreberg
He is both, he has been emailed how to get off. For now, I keep just sending my read receipts :)
----- Original Message -----
From: "R'twick Niceorgaw" <rtwick
niceorgaw.com>
To: "Erik Hegreberg" <ehegrebe
online.no>; <php-general
lists.php.net>
Sent: Tuesday, July 09, 2002 6:30 PM
Subject: Re: [PHP]
wwwwwwwwwwwwwwwwwwwwipoh'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> are you doped or mentally challenged ?
> ----- Original Message -----
> From: "Erik Hegreberg" <ehegrebe
online.no>
> To: <php-general
lists.php.net>
> Sent: Tuesday, July 09, 2002 12:26 PM
> Subject: [PHP]
>
wwwwwwwwwwwwwwwwwwwwipoh'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
> He is both, he has been emailed how to get off. For now, I keep just sending > my read receipts :)
What I did was set up a mail rule where every email I get from him I forward back to him then delete it. So basically he's getting the email that's going to the list then he's getting my forwarded copy. Gawd, I love technology. ;p
Chris
attached mail follows:
I just setup a rule in OE to forward his own mail to himself and delete it
form my machine
----- Original Message -----
From: "Jeff Lewis" <jeff
hyrum.net>
To: "R'twick Niceorgaw" <rtwick
niceorgaw.com>; <php-general
lists.php.net>
Sent: Tuesday, July 09, 2002 12:42 PM
Subject: Re: [PHP]Erik Hegreberg
> He is both, he has been emailed how to get off. For now, I keep just
sending
> my read receipts :)
>
>
> ----- Original Message -----
> From: "R'twick Niceorgaw" <rtwick
niceorgaw.com>
> To: "Erik Hegreberg" <ehegrebe
online.no>; <php-general
lists.php.net>
> Sent: Tuesday, July 09, 2002 6:30 PM
> Subject: Re: [PHP]
>
wwwwwwwwwwwwwwwwwwwwipoh'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>
>
> > are you doped or mentally challenged ?
> > ----- Original Message -----
> > From: "Erik Hegreberg" <ehegrebe
online.no>
> > To: <php-general
lists.php.net>
> > Sent: Tuesday, July 09, 2002 12:26 PM
> > Subject: [PHP]
> >
>
wwwwwwwwwwwwwwwwwwwwipoh'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> >
> >
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> >
>
>
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
If you read the 3 emails he sent previous to his spam you will see that he tried to get the moderators to remove him but after 6 hours he is still on the list, so I guess he thinks that if he starts to spam he will be kicked
Andrew
----- Original Message -----
From: "Rodolfo Gonzalez" <rodolfo
equinoxe.g-networks.net>
To: <php-general
lists.php.net>
Sent: Tuesday, July 09, 2002 8:32 PM
Subject: Re: [PHP]
??????????????????????????????????????????????????????````````````````````ØØ
ØØØØØØØØ
> To the kind moderator of the list: please kick off this guy (Erik
> Hegreberg <ehegrebe
online.no> ), he's really annoying. Or at least bounce
> his e-mails back to him ;) ).
>
> Thanks.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
If read the earlier posts you'll find that this is the guy who was to thick to unsubscribe himself this morning - he obviously still hasn't got it so he's trying to get a lifetime ban.
So sad, so filtered :)
Danny.
----- Original Message -----
From: "Rodolfo Gonzalez" <rodolfo
equinoxe.g-networks.net>
To: <php-general
lists.php.net>
Sent: Tuesday, July 09, 2002 8:32 PM
Subject: Re: [PHP]
??????????????????????????????????????????????????????````````````````````ØØ
ØØØØØØØØ
> To the kind moderator of the list: please kick off this guy (Erik
> Hegreberg <ehegrebe
online.no> ), he's really annoying. Or at least bounce
> his e-mails back to him ;) ).
>
> Thanks.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
I've just joined this mailing list this afternoon. Does this kind of thing happen often? If so, I'm going to leave the list.
Ben
-----Original Message-----
From: Andrew Brampton [mailto:andrew
bramp.freeserve.co.uk]
Sent: Tuesday, July 09, 2002 3:40 PM
To: php-general
lists.php.net
Subject: Re: [PHP]
??????????????????????????????????????????????????????``````````````````
``ØØØØØØØØØØ
If you read the 3 emails he sent previous to his spam you will see that he tried to get the moderators to remove him but after 6 hours he is still on the list, so I guess he thinks that if he starts to spam he will be kicked
Andrew
----- Original Message -----
From: "Rodolfo Gonzalez" <rodolfo
equinoxe.g-networks.net>
To: <php-general
lists.php.net>
Sent: Tuesday, July 09, 2002 8:32 PM
Subject: Re: [PHP]
??????????????????????????????????????????????????????````````````````````ØØ
ØØØØØØØØ
> To the kind moderator of the list: please kick off this guy (Erik
> Hegreberg <ehegrebe
online.no> ), he's really annoying. Or at least bounce
> his e-mails back to him ;) ).
>
> Thanks.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
Hi Ben,
I've been on this list for a few years now and this is the first time i've seen anything this bad.
Sorry it's just bad timing.
There is no other list that comes anywhere near for quality and good folks. Try and stick it out it'll be worth it.
Andy.
----- Original Message -----
From: "Ben Ramsey" <ben
eureka-interactive.com>
To: <php-general
lists.php.net>
Sent: Tuesday, July 09, 2002 8:57 PM
Subject: RE: [PHP]
??????????????????????????????????????????????????????````````````````````ØØ
ØØØØØØØØ
> I've just joined this mailing list this afternoon. Does this kind of
thing
> happen often? If so, I'm going to leave the list.
>
> Ben
>
>
> -----Original Message-----
> From: Andrew Brampton [mailto:andrew
bramp.freeserve.co.uk]
> Sent: Tuesday, July 09, 2002 3:40 PM
> To: php-general
lists.php.net
> Subject: Re: [PHP]
> ??????????????????????????????????????????????????????``````````````````
> ``ØØØØØØØØØØ
>
>
> If you read the 3 emails he sent previous to his spam you will see that he
> tried to get the moderators to remove him but after 6 hours he is still on
> the list, so I guess he thinks that if he starts to spam he will be kicked
>
> Andrew
>
> ----- Original Message -----
> From: "Rodolfo Gonzalez" <rodolfo
equinoxe.g-networks.net>
> To: <php-general
lists.php.net>
> Sent: Tuesday, July 09, 2002 8:32 PM
> Subject: Re: [PHP]
>
??????????????????????????????????????????????????????````````````````````ØØ
> ØØØØØØØØ
>
>
> > To the kind moderator of the list: please kick off this guy (Erik
> > Hegreberg <ehegrebe
online.no> ), he's really annoying. Or at least
bounce
> > his e-mails back to him ;) ).
> >
> > Thanks.
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
attached mail follows:
On Tue, 9 Jul 2002, Peter J. Schoenster wrote:
>> From: "Brandon Pearcy" <bpearcy
mail.bowesnet.com>
>>> Not only does it need to find the establishments, it needs to
>>> calculate the distances (straight line, of course).
>
> I don't know what you mean by straight line. AFAIK all of this will be
> as "the crow flies".
I assume by straight line he means disregarding the curvature of the earth, which at such small distances would be insignificant but add a lot of calculation.
miguel
attached mail follows:
> I found the points file here: > ftp://ftp.census.gov/pub/tiger/pts/geoex.zip
Sorry, I was wrong here. Those aren't the right files, and it's hard to find the correct ones. Should I ever do that, I'll post a correct link.
attached mail follows:
> I have a couple of questions with respect to creating a postal / >zip code proximity search that is remotely accurate. The system I am >using now is OK for small distances, but is terrible at calculating >large distances.
What formula are you using to calculate distance?
You see, the Earth is not flat :-)
So, after a certain distance, the error margin of the curvature of the Earth becomes quite significant.
There are several formulas you could be using...
Geographics and Cartographers have been known to challenge each other to duels over the relative merits of these formulas, so be careful which one you pick :-)
A quick search for "longitude, latitude, distance, and Great Circle" should turn up several options, with explaining text about their relative merits. (Or it did when I did this same thing years ago...)
In the end, though, *I* ended up just using Cartesian distance, since anybody searching for things "close by" is not going to be worried about curvature of the Earth in their calculations.
So, yeah, it's way wrong for those establishments thousands of miles away... So what? Nobody cares about how far is the Jiffy Lube 2000 miles away from them :-)
In *SOME* applications, you'd need a *MUCH* more accurate formula -- But if you're searching for "nearby" establishments, forget worrying about the long-distance error.
The performance on the trigonometric functions for the "better" formula were intolerable, even in PostgreSQL user-defined functions. YMMV.
But there's just no way you're going to want to download all the establishments to PHP and do the calculations there. Dog-slow.
You'll *HAVE* to get them into SQL some way.
Also, don't even think of doing a JOIN with your establishments and the Zip Code table.
It's rule-breaking time. :-)
Add long/lat columns to your establishments and fill them in with the Zip Code data if you haven't already.
Again, YMMV, but the JOIN of 2000 music venues and the ~10K Zip codes was intolerably slow.
> What I have is a database of establishments and their corresponding >latitudes and longitudes, and I need to have users enter their own >postal / zip code, and have the system calculate which establishments >fall into a set range ($range) from their location. Not only does it >need to find the establishments, it needs to calculate the distances >(straight line, of course).
So long as you keep that "distance" small -- a few score miles, the curvature should not be that big a deal...
You will need a "fudge factor" of "arc" (long/lat) to miles to divide your Cartesian long/lat "distance" (using the term distance very loosely).
Also note that the closer you get to the North/South Pole, the worse your error rate will be, since the longitude lines converge.
> Now, I have dug through the PHP archives, but there is no single >clear explanation of how to do this, from beginning to end. I will >start by putting down what I need, and then maybe other people can >contribute to this and in the end we will have the solution, nice and >tidy, in one place.
There really can't be a tidy solution, due to the underlying formulas' relative merits and the performance issues, and the widely different requirements of the definition of "distance"...
Still, a summary of the options would be nice.
>*** NOTE: I know doing this in PHP will be SLOW, but I do not want to >write a MySQL user-defined function and recompile it and blah, blah, >blah... (unless someone wants to cover that aspect!!! :D)
If you switch to PostgreSQL instead of MySQL, you can define a function in PostgreSQL for *MUCH* better performance. (Actually, PostgreSQL may even have a good built-in long/lat distance function by now...)
> Step 1: Take the postal / zip code that the user entered, and >search the national postal / zip code database (which I already have) >and return its corresponding latitude and longitude ($userLat and >$userLong). > > Step 2: ??? > > Step 3: Return the establishments information to the user, complete >with the distances to them, ordered by smallest distance to largest.
For sure, limit the number of responses. In fact, let the *USER* decide how far they will travel. Somebody in Idaho is probably willing to drive a lot further than, say, a Manhattan resident...
For the short distances you are talking about, you could *ALMOST* get away with:
# Assume $longitude/$latitude is the user's location. select name, address from establishments where sqrt((longitude - $longitude)*(longitude - $longitude) + (latitude - $latitude)*(latitude - $latitude))
IE, the plain old cartesian (x, y) distance from Algebra II class.
You could then take those results and divide by a "fudge factor" of arcs to miles (long/lat to mile conversion) to get a pretty close approximation for *NEARBY* establishments.
Once you get past a few score miles, though, it will be noticeably "off"
Seek out the formulas as I suggested, though, and you'll be able to get pretty accurate distances, but you'll have to use the Trigonometric functions MySQL might not have, so then you get to review Trigonometry and play some identity function games to convert it to the ones that MySQL *does* have, assuming it has any. If MySQL has *no* Trig, your options just got real easy, if not attractive, to choose...
Sample with the Cartesian crappy fake "distance" and fudge factor I chose:
http://chatmusic.com/venues.htm
When I calculate LA to Chicago, it's way off, but so what? Nobody needs it to work that far away if they're using the application for what it's intended.
-- Like Music? http://l-i-e.com/artists.htm
attached mail follows:
Richard,
I just tried performing a search on http://chatmusic.com/venues.htm.
All I did was supply my zipcode. I didn't change/supply any other information.
The search was really slow. I wanted to ask you what you would attribute the slowness to.
What is your architecture?
Richard Lynch <rich
phpbootcamp.com> wrote: > I have a couple of questions with respect to creating a postal /
>zip code proximity search that is remotely accurate. The system I am
>using now is OK for small distances, but is terrible at calculating
>large distances.
What formula are you using to calculate distance?
You see, the Earth is not flat :-)
So, after a certain distance, the error margin of the curvature of the Earth becomes quite significant.
There are several formulas you could be using...
Geographics and Cartographers have been known to challenge each other to duels over the relative merits of these formulas, so be careful which one you pick :-)
A quick search for "longitude, latitude, distance, and Great Circle" should turn up several options, with explaining text about their relative merits. (Or it did when I did this same thing years ago...)
In the end, though, *I* ended up just using Cartesian distance, since anybody searching for things "close by" is not going to be worried about curvature of the Earth in their calculations.
So, yeah, it's way wrong for those establishments thousands of miles away... So what? Nobody cares about how far is the Jiffy Lube 2000 miles away from them :-)
In *SOME* applications, you'd need a *MUCH* more accurate formula -- But if you're searching for "nearby" establishments, forget worrying about the long-distance error.
The performance on the trigonometric functions for the "better" formula were intolerable, even in PostgreSQL user-defined functions. YMMV.
But there's just no way you're going to want to download all the establishments to PHP and do the calculations there. Dog-slow.
You'll *HAVE* to get them into SQL some way.
Also, don't even think of doing a JOIN with your establishments and the Zip Code table.
It's rule-breaking time. :-)
Add long/lat columns to your establishments and fill them in with the Zip Code data if you haven't already.
Again, YMMV, but the JOIN of 2000 music venues and the ~10K Zip codes was intolerably slow.
> What I have is a database of establishments and their corresponding >latitudes and longitudes, and I need to have users enter their own >postal / zip code, and have the system calculate which establishments >fall into a set range ($range) from their location. Not only does it >need to find the establishments, it needs to calculate the distances >(straight line, of course).
So long as you keep that "distance" small -- a few score miles, the curvature should not be that big a deal...
You will need a "fudge factor" of "arc" (long/lat) to miles to divide your Cartesian long/lat "distance" (using the term distance very loosely).
Also note that the closer you get to the North/South Pole, the worse your error rate will be, since the longitude lines converge.
> Now, I have dug through the PHP archives, but there is no single >clear explanation of how to do this, from beginning to end. I will >start by putting down what I need, and then maybe other people can >contribute to this and in the end we will have the solution, nice and >tidy, in one place.
There really can't be a tidy solution, due to the underlying formulas' relative merits and the performance issues, and the widely different requirements of the definition of "distance"...
Still, a summary of the options would be nice.
>*** NOTE: I know doing this in PHP will be SLOW, but I do not want to >write a MySQL user-defined function and recompile it and blah, blah, >blah... (unless someone wants to cover that aspect!!! :D)
If you switch to PostgreSQL instead of MySQL, you can define a function in PostgreSQL for *MUCH* better performance. (Actually, PostgreSQL may even have a good built-in long/lat distance function by now...)
> Step 1: Take the postal / zip code that the user entered, and >search the national postal / zip code database (which I already have) >and return its corresponding latitude and longitude ($userLat and >$userLong). > > Step 2: ??? > > Step 3: Return the establishments information to the user, complete >with the distances to them, ordered by smallest distance to largest.
For sure, limit the number of responses. In fact, let the *USER* decide how far they will travel. Somebody in Idaho is probably willing to drive a lot further than, say, a Manhattan resident...
For the short distances you are talking about, you could *ALMOST* get away with:
# Assume $longitude/$latitude is the user's location. select name, address from establishments where sqrt((longitude - $longitude)*(longitude - $longitude) + (latitude - $latitude)*(latitude - $latitude))
IE, the plain old cartesian (x, y) distance from Algebra II class.
You could then take those results and divide by a "fudge factor" of arcs to miles (long/lat to mile conversion) to get a pretty close approximation for *NEARBY* establishments.
Once you get past a few score miles, though, it will be noticeably "off"
Seek out the formulas as I suggested, though, and you'll be able to get pretty accurate distances, but you'll have to use the Trigonometric functions MySQL might not have, so then you get to review Trigonometry and play some identity function games to convert it to the ones that MySQL *does* have, assuming it has any. If MySQL has *no* Trig, your options just got real easy, if not attractive, to choose...
Sample with the Cartesian crappy fake "distance" and fudge factor I chose:
http://chatmusic.com/venues.htm
When I calculate LA to Chicago, it's way off, but so what? Nobody needs it to work that far away if they're using the application for what it's intended.
-- Like Music? http://l-i-e.com/artists.htm-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
--------------------------------- Do You Yahoo!? New! SBC Yahoo! Dial - 1st Month Free & unlimited access
attached mail follows:
> Dear Lord, where is the admin to boot this guy?
That's exactly what he wants. What would be better (and great poetic justice) would be for the admin set it so that all of his emails bounce back to him.
Chris
attached mail follows:
Im just trying to get it so that all emails from him redirect back to him.. I wonder if they would be alerted to the problem if everyone on the list did that.. Hmm.. :)
Rick
"The old law about "an eye for an eye" leaves everybody blind." - Dr. Martin Luther King, Jr.
> From: "Chris Boget" <chris
wild.net>
> Date: Tue, 9 Jul 2002 14:42:28 -0500
> To: "PHP General" <php-general
lists.php.net>
> Subject: Re: [PHP] ?????????????????????????????????
>
>> Dear Lord, where is the admin to boot this guy?
>
> That's exactly what he wants. What would be better
> (and great poetic justice) would be for the admin set
> it so that all of his emails bounce back to him.
>
> Chris
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
I wonder if he's using PHP to automate sending the messages. hehe
-----Original Message----- If read the earlier posts you'll find that this is the guy who was to thick to unsubscribe himself this morning - he obviously still hasn't got it so he's trying to get a lifetime ban.
So sad, so filtered :)
Danny. **************************************************************************** This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you very much.
attached mail follows:
FWIW, I e-mailed this to abuse
online.no, admin
online.no, and
webmaster
online.no - who knows if anything will come of it, just hope
that some sort of discipline will be handed to Mr. Hergreberg!
Jason
--------- Message:
Erik Hegreberg (ehegrebe
online.no) is spamming php-
general
lists.php.net. Apparently, he can't figure out how to
unsubscribe from the mailing list and is displeased with the amount of
e-mail he's getting. At the bottom of each and every message posted to
the mailing list is a footer with this:
To unsubscribe, visit: http://www.php.net/unsub.php
Although this has been pointed out to Erik by several different people several different times, he has proceeded to flood the list with e- mails with long subject lines similar to the subject line on this message and no body. There have been at least 25 or more in the past 5 minutes.
This is a quite large mailing list so no doubt thousands of people are beginning to get quite annoyed with Mr. Hegreberg. If there's anything you can do to assure that he won't continue doing this, it would be much appreciated.
Thanks, Jason Soza
------------------------------------------------------------------------ --------
----- Original Message -----
From "Erik Hegreberg" <ehegrebe
online.no>
Date Tue, 9 Jul 2002 21:29:59 +0200
To <php-general
lists.php.net>
Subject [PHP]
¨æææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææ
æææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææ
attached mail follows:
On Tue, 9 Jul 2002, Andrew Brampton wrote:
<snip, because it was private e-mail>
Yes Andrew, but why this guy don't read the d
mn footer which comes from
every mail and simple unsubscribes himself!!, even a newcomer/newbie can
learn how to do it after all the explanations which other list members
sent him.
Ok, no more mails on this subject, because we just follow his game.
attached mail follows:
On Tue, 9 Jul 2002, Ben Ramsey wrote:
> I've just joined this mailing list this afternoon. Does this kind of thing > happen often? If so, I'm going to leave the list.
Nope.. once in a long while occurence. Same as a child throwing a tantrum really.
attached mail follows:
On Tue, 9 Jul 2002, Ben Ramsey wrote: > I've just joined this mailing list this afternoon. Does this kind of thing > happen often? If so, I'm going to leave the list.
This is the first time I've seen it anything like this. I've been here off and on for over 3 years.
Usually people just say "Help I can't get off the list!!" and then some other people write back to them "you idiot, read the bottom of every single message" and then that's the end of it.
miguel
attached mail follows:
lets all spam Erik
attached mail follows:
agreed.
-----Original Message-----
From: Rick Emery [mailto:remery
emeryloftus.com]
Sent: Tuesday, July 09, 2002 3:51 PM
To: php-general
lists.php.net
Subject: [PHP] RE: ############
lets all spam Erik
attached mail follows:
"An eye for an eye makes the world go blind." Mahatma Gandhi
I think we should just kick him out of the list. Notify his ISP and black list him on the web.
David
--- Steve Bradwell <SteveB
compxnet.com> wrote:
> agreed.
>
> -----Original Message-----
> From: Rick Emery [mailto:remery
emeryloftus.com]
> Sent: Tuesday, July 09, 2002 3:51 PM
> To: php-general
lists.php.net
> Subject: [PHP] RE: ############
>
>
> lets all spam Erik
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
__________________________________________________ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com
attached mail follows:
i was just about to flip when i saw "#################################" for the subject line LOL
I agree to that..... we would all be blind right now... LOL
I've already sent a zip file and the details of Erik to the abuse ppl at online.no to let them know about Erik
"David H" <godave621
yahoo.com> wrote in message
news:20020709224711.46183.qmail
web9404.mail.yahoo.com...
> "An eye for an eye makes the world go blind." Mahatma
> Gandhi
>
> I think we should just kick him out of the list.
> Notify his ISP and black list him on the web.
>
> David
>
> --- Steve Bradwell <SteveB
compxnet.com> wrote:
> > agreed.
> >
> > -----Original Message-----
> > From: Rick Emery [mailto:remery
emeryloftus.com]
> > Sent: Tuesday, July 09, 2002 3:51 PM
> > To: php-general
lists.php.net
> > Subject: [PHP] RE: ############
> >
> >
> > lets all spam Erik
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Sign up for SBC Yahoo! Dial - First Month Free
> http://sbc.yahoo.com
attached mail follows:
On Tue, 9 Jul 2002, Merritt, Dave wrote: > I have a page on our intranet site that is pulling an image from our > corporate web server. The corporate server & the image I am accessing is > beyond my control. The image is generated daily and appears to be named > with a timestamp in the file name so therefore the image name changes daily.
Can you ask the corporate web site people to insert a distinctive HTML comment just before the image? It would just take them a second, have no impact on their users, and make your job much easier.
miguel
attached mail follows:
No. Having any changes made to the corporate server for my ease of use is not an option -- too much politics involved (my use of open source solutions in a Microsoft environment!!!).
Dave
-----Original Message-----
From: Miguel Cruz [mailto:mnc
stoic.net]
Sent: Tuesday, July 09, 2002 3:55 PM
To: Merritt, Dave
Cc: PHP General (E-mail)
Subject: Re: [PHP] Trying to locate an image file name from another site
On Tue, 9 Jul 2002, Merritt, Dave wrote: > I have a page on our intranet site that is pulling an image from our > corporate web server. The corporate server & the image I am accessing is > beyond my control. The image is generated daily and appears to be named > with a timestamp in the file name so therefore the image name changes daily.
Can you ask the corporate web site people to insert a distinctive HTML comment just before the image? It would just take them a second, have no impact on their users, and make your job much easier.
miguel
attached mail follows:
If the filename is in fact a timestamp then you can find it using a brute force method. All you need is a for() loop and fopen(). Start your search at midnight the previous night and add one second to the timestamp each itteration. If the fopen() function returns something other than FALSE then you know you've found a file. There are only 86400 seconds in a day.. peanuts. Probably take PHP two minutes to run through, if that. You could put the script on a cron job to have it give you the new filename each morning. You may even find that the script building the image file is also on a timer.. so after a few days you may be able to skip the brute force method and simply predict what the next filename will be.
Hows that sound?
-Kevin
----- Original Message -----
From: "Merritt, Dave" <Dave.Merritt
ArvinMeritor.com>
To: "'Miguel Cruz'" <mnc
stoic.net>
Cc: "PHP General (E-mail)" <php-general
lists.php.net>
Sent: Tuesday, July 09, 2002 2:05 PM
Subject: RE: [PHP] Trying to locate an image file name from another site
> No. Having any changes made to the corporate server for my ease of use is
> not an option -- too much politics involved (my use of open source
solutions
> in a Microsoft environment!!!).
>
> Dave
>
> -----Original Message-----
> From: Miguel Cruz [mailto:mnc
stoic.net]
> Sent: Tuesday, July 09, 2002 3:55 PM
> To: Merritt, Dave
> Cc: PHP General (E-mail)
> Subject: Re: [PHP] Trying to locate an image file name from another site
>
>
> On Tue, 9 Jul 2002, Merritt, Dave wrote:
> > I have a page on our intranet site that is pulling an image from our
> > corporate web server. The corporate server & the image I am accessing
is
> > beyond my control. The image is generated daily and appears to be named
> > with a timestamp in the file name so therefore the image name changes
> daily.
>
> Can you ask the corporate web site people to insert a distinctive HTML
> comment just before the image? It would just take them a second, have no
> impact on their users, and make your job much easier.
>
> miguel
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
>I have a page on our intranet site that is pulling an image from our >corporate web server. The corporate server & the image I am accessing is >beyond my control. The image is generated daily and appears to be named >with a timestamp in the file name so therefore the image name changes daily.
I assume it's not as simple as the year/month/day...
They crammed in the hour minute and seconds as well???
Cuz if it's YYYYMMDD.jpeg, just do:
<?php $filename = date('Ymd') . ".jpg"; # Snag $filename ?>
>closer to the bottom of the page. How do I walk through the contents of the >page searching for the image starting further down the page than from the >beginning if the page? > >2) Is there a better way of trying to find/strip the image name in the page >contents than by using the strpos & substr functions? If so how?
Look at the basic structure of their HTML.
Is there any comment or TABLE tag or something that's always right before that IMG tag?
If, so, you can probably do:
<?php $html = file('corporate.com'); $html = implode('', $html); $html = explode('SOMETHING UNIQUE HERE', $html); ?>
At this point, the IMG tag will always be in the same place in the $html array.
Might be $html[7] or $html[53] but it will be there.
Also, you can probably just do a single substr() at that point to get the filename.
>3) Once I've found the image file name, is there then some way that I can >download the image from the corporate site to our local site? If so, how do >I do this? If I can download the image locally, then I can rewrite the code >to check for the existence of the file locally before going out and >accessing the corporate site every time.
Oh, yeah, definitely cache the image.
<?php $file = file("corporate.com/$image.jpg"); $image = implode('', $file); $cache = fopen("corporatecache.jpg", 'w') or die("Couldn't opne image for writing"); if ($cache){ $wrote = fwrite($cache, $image); if ($wrote != strlen($image)){ die("Only wrote $wrote bytes of " . strlen($image)); } ?>
You'll need to make corporatecache.jpg writeable by PHP.
That's not good...
Ideally, you'd have that *outside* the web tree, and then use PHP to suck it in again, and check that it "looks like" an image before you do that. Just call http://php.net/getimagesize on it, and if that says it's a JPEG, that should be a pretty good check.
-- Like Music? http://l-i-e.com/artists.htm
attached mail follows:
Hi,
I am making a script to generate counter image on the fly for the office
web site, and i have noticed that my dynamically generated jpeg images bears following comment: "CREATOR: gd-jpeg v2.0 (using IJG JPEG v62), quality = 100"
Does anyone know how to insert user defined comments into generated images?
I looked around the net, and php API list, and found that i can only read the JPEG header markers with exif_read_data. Is there a exif_write_data function?
Thank you, Alex
attached mail follows:
Don't ban this guy... double his subscription.... setup a bigfoot email account and forward mail to him... 10 other ppl do the same and then subscribe the php maillist... then see how to really spam someone...
What a moron...
Cheerz ;)
attached mail follows:
Mr. Hegreberg will be getting an unsubscription notice shortly, telling him how to complete his request.
__________________________________________________ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com
attached mail follows:
On Tue, 9 Jul 2002, Liam Gibbs wrote: > Mr. Hegreberg will be getting an unsubscription notice > shortly, telling him how to complete his request.
I tried that about half an hour ago; I don't think he's smart enough to follow the instructions.
miguel
attached mail follows:
Bounce bounce bounce!
> From: Rodolfo Gonzalez <rodolfo
equinoxe.g-networks.net>
> Date: Tue, 9 Jul 2002 14:32:17 -0500 (CDT)
> To: php-general
lists.php.net
> Subject: Re: [PHP]
> ??????????????????????????????????????????????????????````````````````````ØØØØ
> ØØØØØØØØØØØØØØÅÅÅÅÅÅÅÅÅÅÅÅÅ
>
> To the kind moderator of the list: please kick off this guy (Erik
> Hegreberg <ehegrebe
online.no> ), he's really annoying. Or at least bounce
> his e-mails back to him ;) ).
>
> Thanks.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
it starts here ... http://counter.funyon.com/autocounter/signup/signup.phps then goes to here ... http://counter.funyon.com/autocounter/signup/Signup1.phps or here... both included from the signup page http://counter.funyon.com/autocounter/signup/admin.phps included in admin is: http://counter.funyon.com/autocounter/include/getcounters.phps which makes links to: http://counter.funyon.com/autocounter/signup/editcounter.phps
There you go, I hope that I can get some insight ;) Mike
attached mail follows:
attached mail follows:
Is it so fucking difficult to do the fucking unsubscribing yourself..... Stop being a fucking baby and click your fucking mouse to the php website and unsubscribe...
This fucking spamming business is going to get you into big shit.... there are a ton of hackers out there on this mailing list so stop being a fucking jerk.
"Erik Hegreberg" <ehegrebe
online.no> wrote in message
news:001901c22785$5688ba50$01000a0a
mi6...
attached mail follows:
attached mail follows:
To unsubscribe, visit: http://www.php.net/unsub.php
-----Original Message-----
From: Erik Hegreberg [mailto:ehegrebe
online.no]
Sent: Tuesday, July 09, 2002 3:16 PM
To: php-general
lists.php.net
Subject: [PHP] So moderator Delete me from the list and you will have
your list in peace!!!!!!!!!!
attached mail follows:
Don't waiste preciouse typed messages to this baby... you've told him one before.
"Jay Blanchard" <jay.blanchard
niicommunications.com> wrote in message
news:000501c22785$eb678980$8102a8c0
niigziuo4ohhdt...
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> -----Original Message-----
> From: Erik Hegreberg [mailto:ehegrebe
online.no]
> Sent: Tuesday, July 09, 2002 3:16 PM
> To: php-general
lists.php.net
> Subject: [PHP] So moderator Delete me from the list and you will have
> your list in peace!!!!!!!!!!
>
>
>
>
>
attached mail follows:
First time Ben don't worry about it. This list is actually very adult much more so than others I've belonged to. But you just can't prevent things like this on an unmoderated list. It'll be over soon. Hope you stick around. :) -Kevin
----- Original Message -----
From: "Ben Ramsey" <ben
eureka-interactive.com>
To: <php-general
lists.php.net>
Sent: Tuesday, July 09, 2002 1:57 PM
Subject: RE: [PHP]
??????????????????????????????????????????????????????````````````````````ØØ
ØØØØØØØØ
> I've just joined this mailing list this afternoon. Does this kind of
thing
> happen often? If so, I'm going to leave the list.
>
> Ben
>
>
> -----Original Message-----
> From: Andrew Brampton [mailto:andrew
bramp.freeserve.co.uk]
> Sent: Tuesday, July 09, 2002 3:40 PM
> To: php-general
lists.php.net
> Subject: Re: [PHP]
> ??????????????????????????????????????????????????????``````````````````
> ``ØØØØØØØØØØ
>
>
> If you read the 3 emails he sent previous to his spam you will see that he
> tried to get the moderators to remove him but after 6 hours he is still on
> the list, so I guess he thinks that if he starts to spam he will be kicked
>
> Andrew
>
> ----- Original Message -----
> From: "Rodolfo Gonzalez" <rodolfo
equinoxe.g-networks.net>
> To: <php-general
lists.php.net>
> Sent: Tuesday, July 09, 2002 8:32 PM
> Subject: Re: [PHP]
>
??????????????????????????????????????????????????????````````````````````ØØ
> ØØØØØØØØ
>
>
> > To the kind moderator of the list: please kick off this guy (Erik
> > Hegreberg <ehegrebe
online.no> ), he's really annoying. Or at least
bounce
> > his e-mails back to him ;) ).
> >
> > Thanks.
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
I'll stick around. He apparently can't read directions very well and assumes that he can harass and take over a list. How very adult of him! Soon enough, he'll tire of the spam it appears he'll be receiving (judging from other comments).
-Ben
-----Original Message-----
From: Kevin Stone [mailto:kevin
helpelf.com]
Sent: Tuesday, July 09, 2002 4:20 PM
To: Ben Ramsey; php-general
lists.php.net
Subject: Re: [PHP] Ben
First time Ben don't worry about it. This list is actually very adult much more so than others I've belonged to. But you just can't prevent things like this on an unmoderated list. It'll be over soon. Hope you stick around. :) -Kevin
----- Original Message -----
From: "Ben Ramsey" <ben
eureka-interactive.com>
To: <php-general
lists.php.net>
Sent: Tuesday, July 09, 2002 1:57 PM
Subject: RE: [PHP]
??????????????????????????????????????????????????????````````````````````ØØ
ØØØØØØØØ
> I've just joined this mailing list this afternoon. Does this kind of
thing
> happen often? If so, I'm going to leave the list.
>
> Ben
>
>
> -----Original Message-----
> From: Andrew Brampton [mailto:andrew
bramp.freeserve.co.uk]
> Sent: Tuesday, July 09, 2002 3:40 PM
> To: php-general
lists.php.net
> Subject: Re: [PHP]
> ??????????????????????????????????????????????????????``````````````````
> ``ØØØØØØØØØØ
>
>
> If you read the 3 emails he sent previous to his spam you will see that he
> tried to get the moderators to remove him but after 6 hours he is still on
> the list, so I guess he thinks that if he starts to spam he will be kicked
>
> Andrew
>
> ----- Original Message -----
> From: "Rodolfo Gonzalez" <rodolfo
equinoxe.g-networks.net>
> To: <php-general
lists.php.net>
> Sent: Tuesday, July 09, 2002 8:32 PM
> Subject: Re: [PHP]
>
??????????????????????????????????????????????????????````````````````````ØØ
> ØØØØØØØØ
>
>
> > To the kind moderator of the list: please kick off this guy (Erik
> > Hegreberg <ehegrebe
online.no> ), he's really annoying. Or at least
bounce
> > his e-mails back to him ;) ).
> >
> > Thanks.
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
You're basically paging through results. You have a SQL statement to get the data - just limit the statement to only draw information applicable to the page you're on. Like this:
select * from table limit 0,10;
That will select the first 10 records.
Then you can use variables.
if (empty($P)) $P = 0; $C = 10;
select * from table limit $P, $C
Make a link at the bottom
$NextPage = $P + $C; if ($P > $C) $PreviousPage = $P - $C; else $PreviousPage = 0;
print "<a href='next.php?P=$NextPage'>Next Page</a>";
You get the idea...
-----Original Message-----
From: Alexander Ross [mailto:alexross
bleen.net]
Sent: Monday, July 08, 2002 6:22 PM
To: php-general
lists.php.net
Subject: [PHP] tree structures
I am creating a message board (pretty standard) using php and mysql. In order to manage all the posts and replies I am using a treenode structure (so that I can recursively add, delete, display, etc...) Everything works so far (www.bleen.net/forum). I want to be able to display 10 posts (including relies in that count) at a time; then have a next link and display the next 10 (you've all seen it before). How do I modify a recursive function to stop and start? My display finction is listed below.
Thanks Alexander Ross
function display($row, $start = 0) { //display the tree if($this->m_postid<>0) { // if this is the empty root node skip displaying print "<tr><td bgcolor="; if ($row%2 == 0) print "'#cccccc'>"; else print "'#ffffff'>";
// indent replies to the depth of nesting
print "<img src='images/spacer.gif' height=22 width=".(22*$this->m_depth)." alt='' valign = bottom>"; print " <a name = $this->m_postid ><a href = 'view_post.php?postid=$this->m_postid'>"; if ($this->m_depth == 1) print "<b> '$this->m_title' - $this->m_poster <i>(".reformat_date($this->m_posted).")</i></b></a>"; else print "'$this->m_title' - $this->m_poster <i>(".reformat_date($this->m_posted).")</i></a>"; print "</td></tr>"; } // increment row counter to alternate colors $row++;
$num_children = count($this->m_childlist); for($i = 0; ($i<$num_children); $i++) { // call display on each of this node's children $row = $this->m_childlist[$i]->display($row); }
return ($row); }
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php **************************************************************************** This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you very much.
attached mail follows:
Yes but the first 10 rows may or may not be the correct information to post....
Post 1 = "test1 Post 2 = "test2" Post 3 = "re: test1" Post 4 = "test3" ... Post 11 = "re test1"
I think that illustrates what I mean.
Thanks for your help Alex
"Ed Lazor" <ELazor
providence.org> wrote in message
news:C8891DEC2698D411A91B00508BF9898806E118C8
phsormsg04.phsor.org...
> You're basically paging through results. You have a SQL statement to get
> the data - just limit the statement to only draw information applicable to
> the page you're on. Like this:
>
> select * from table limit 0,10;
>
> That will select the first 10 records.
>
> Then you can use variables.
>
> if (empty($P))
> $P = 0;
> $C = 10;
>
> select * from table limit $P, $C
>
> Make a link at the bottom
>
> $NextPage = $P + $C;
> if ($P > $C)
> $PreviousPage = $P - $C;
> else
> $PreviousPage = 0;
>
> print "<a href='next.php?P=$NextPage'>Next Page</a>";
>
> You get the idea...
>
>
>
> -----Original Message-----
> From: Alexander Ross [mailto:alexross
bleen.net]
> Sent: Monday, July 08, 2002 6:22 PM
> To: php-general
lists.php.net
> Subject: [PHP] tree structures
>
>
> I am creating a message board (pretty standard) using php and mysql. In
> order to manage all the posts and replies I am using a treenode structure
> (so that I can recursively add, delete, display, etc...) Everything works
so
> far (www.bleen.net/forum). I want to be able to display 10 posts
(including
> relies in that count) at a time; then have a next link and display the
next
> 10 (you've all seen it before). How do I modify a recursive function to
> stop and start? My display finction is listed below.
>
> Thanks
> Alexander Ross
>
> function display($row, $start = 0)
> { //display the tree
> if($this->m_postid<>0)
> { // if this is the empty root node skip displaying
> print "<tr><td bgcolor=";
> if ($row%2 == 0)
> print "'#cccccc'>";
> else
> print "'#ffffff'>";
>
> // indent replies to the depth of nesting
>
> print "<img src='images/spacer.gif' height=22
> width=".(22*$this->m_depth)." alt='' valign = bottom>";
> print " <a name = $this->m_postid ><a href =
> 'view_post.php?postid=$this->m_postid'>";
> if ($this->m_depth == 1)
> print "<b> '$this->m_title' - $this->m_poster
> <i>(".reformat_date($this->m_posted).")</i></b></a>";
> else
> print "'$this->m_title' - $this->m_poster
> <i>(".reformat_date($this->m_posted).")</i></a>";
> print "</td></tr>";
> }
> // increment row counter to alternate colors
> $row++;
>
> $num_children = count($this->m_childlist);
> for($i = 0; ($i<$num_children); $i++)
> { // call display on each of this node's children
> $row = $this->m_childlist[$i]->display($row);
> }
>
> return ($row);
> }
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
****************************************************************************
> This message is intended for the sole use of the individual and entity to
> whom it is addressed, and may contain information that is privileged,
> confidential and exempt from disclosure under applicable law. If you are
> not the intended addressee, nor authorized to receive for the intended
> addressee, you are hereby notified that you may not use, copy, disclose or
> distribute to anyone the message or any information contained in the
> message. If you have received this message in error, please immediately
> advise the sender by reply email and delete the message. Thank you very
> much.
attached mail follows:
Never mind .. That can't happen because of how I build the tree .. thank you!!!
"Alexander Ross" <alexross
bleen.net> wrote in message
news:20020709203207.59610.qmail
pb1.pair.com...
> Yes but the first 10 rows may or may not be the correct information to
> post....
>
> Post 1 = "test1
> Post 2 = "test2"
> Post 3 = "re: test1"
> Post 4 = "test3"
> ...
> Post 11 = "re test1"
>
> I think that illustrates what I mean.
>
> Thanks for your help
> Alex
>
>
>
> "Ed Lazor" <ELazor
providence.org> wrote in message
> news:C8891DEC2698D411A91B00508BF9898806E118C8
phsormsg04.phsor.org...
> > You're basically paging through results. You have a SQL statement to
get
> > the data - just limit the statement to only draw information applicable
to
> > the page you're on. Like this:
> >
> > select * from table limit 0,10;
> >
> > That will select the first 10 records.
> >
> > Then you can use variables.
> >
> > if (empty($P))
> > $P = 0;
> > $C = 10;
> >
> > select * from table limit $P, $C
> >
> > Make a link at the bottom
> >
> > $NextPage = $P + $C;
> > if ($P > $C)
> > $PreviousPage = $P - $C;
> > else
> > $PreviousPage = 0;
> >
> > print "<a href='next.php?P=$NextPage'>Next Page</a>";
> >
> > You get the idea...
> >
> >
> >
> > -----Original Message-----
> > From: Alexander Ross [mailto:alexross
bleen.net]
> > Sent: Monday, July 08, 2002 6:22 PM
> > To: php-general
lists.php.net
> > Subject: [PHP] tree structures
> >
> >
> > I am creating a message board (pretty standard) using php and mysql. In
> > order to manage all the posts and replies I am using a treenode
structure
> > (so that I can recursively add, delete, display, etc...) Everything
works
> so
> > far (www.bleen.net/forum). I want to be able to display 10 posts
> (including
> > relies in that count) at a time; then have a next link and display the
> next
> > 10 (you've all seen it before). How do I modify a recursive function to
> > stop and start? My display finction is listed below.
> >
> > Thanks
> > Alexander Ross
> >
> > function display($row, $start = 0)
> > { //display the tree
> > if($this->m_postid<>0)
> > { // if this is the empty root node skip displaying
> > print "<tr><td bgcolor=";
> > if ($row%2 == 0)
> > print "'#cccccc'>";
> > else
> > print "'#ffffff'>";
> >
> > // indent replies to the depth of nesting
> >
> > print "<img src='images/spacer.gif' height=22
> > width=".(22*$this->m_depth)." alt='' valign = bottom>";
> > print " <a name = $this->m_postid ><a href =
> > 'view_post.php?postid=$this->m_postid'>";
> > if ($this->m_depth == 1)
> > print "<b> '$this->m_title' - $this->m_poster
> > <i>(".reformat_date($this->m_posted).")</i></b></a>";
> > else
> > print "'$this->m_title' - $this->m_poster
> > <i>(".reformat_date($this->m_posted).")</i></a>";
> > print "</td></tr>";
> > }
> > // increment row counter to alternate colors
> > $row++;
> >
> > $num_children = count($this->m_childlist);
> > for($i = 0; ($i<$num_children); $i++)
> > { // call display on each of this node's children
> > $row = $this->m_childlist[$i]->display($row);
> > }
> >
> > return ($row);
> > }
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
****************************************************************************
> > This message is intended for the sole use of the individual and entity
to
> > whom it is addressed, and may contain information that is privileged,
> > confidential and exempt from disclosure under applicable law. If you
are
> > not the intended addressee, nor authorized to receive for the intended
> > addressee, you are hereby notified that you may not use, copy, disclose
or
> > distribute to anyone the message or any information contained in the
> > message. If you have received this message in error, please immediately
> > advise the sender by reply email and delete the message. Thank you very
> > much.
>
>
attached mail follows:
Ok.. what I have is a database of first names and last names, and some other columns that don't matter here.
A form is presented to a user, lets them enter a bunch of names, attributes of the person, etc.
After submission, each record is checked against the current database to see if the name currently exists, or names similar to it exist.
If so, it gives the option of either:
a) entering the new record or b) selecting one of the existing records
Example:
Enter your names, positions: Joe Schmoe, LW Random Guy, RW
(submit button)
After DB check for existing users:
Found:
() Joey Schmoe Click radio button to se this record () Create New Record
No matches found for Random Guy, must be a new user.
(submit button)
My problem is keeping this data consistent form by form, and updating the data when an existing record is selected instead of creating a new one (the existing data needs to go into another table, so I need to grab the user id # of the existing record, etc)
Any thoughts on how to approach this? After the first form, should I make a multi-dimensional array, and have the second form update/change the elements of it? I haven't used any PHP arrays in this yet, just been messing with the HTML form array stuff..
Sorry if this is confusing.. if any part needs clarification, please let me know.
Thanks, Chad
attached mail follows:
It sounds like you're trying to do too many things at once. If you create a form to accept entries, process the entries when the form is submitted. Check each entry and only add ones that don't already exist in the database. After that, if you want to display results, start at the beginning of the array from the submitted form and pull information from the database for each entry - by this point every one of them should have an account and it's just a matter of listing their information... Sorry, rambling a little here... did that all make sense?
-----Original Message-----
From: Chad Day [mailto:cday
atpco.com]
Sent: Tuesday, July 09, 2002 1:22 PM
To: php-general
lists.php.net
Subject: [PHP] multi dimensional arrays / radio buttons / mass confusion
on my part
Ok.. what I have is a database of first names and last names, and some other columns that don't matter here.
A form is presented to a user, lets them enter a bunch of names, attributes of the person, etc.
After submission, each record is checked against the current database to see if the name currently exists, or names similar to it exist.
If so, it gives the option of either:
a) entering the new record or b) selecting one of the existing records
Example:
Enter your names, positions: Joe Schmoe, LW Random Guy, RW
(submit button)
After DB check for existing users:
Found:
() Joey Schmoe Click radio button to se this record () Create New Record
No matches found for Random Guy, must be a new user.
(submit button)
My problem is keeping this data consistent form by form, and updating the data when an existing record is selected instead of creating a new one (the existing data needs to go into another table, so I need to grab the user id # of the existing record, etc)
Any thoughts on how to approach this? After the first form, should I make a multi-dimensional array, and have the second form update/change the elements of it? I haven't used any PHP arrays in this yet, just been messing with the HTML form array stuff..
Sorry if this is confusing.. if any part needs clarification, please let me know.
Thanks, Chad
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php **************************************************************************** This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you very much.
attached mail follows:
On Tue, 9 Jul 2002, JSheble wrote: > I'm using a Zebra label printer in an application I have and in order to > display an image on the label, according to the ZPL II printer language, > any image must be converted to HEX code. Does anyone hvae a code snippet > or know of a free utility that will take a graphic image (BMP, GIF, JPG, > etc...) and convert it to HEX values?
"Hex" isn't enough detail.
In order to do this you'll need to figure out the specific format that ZPL II wants.
How many bits per pixel? Any prologue? Interlacing? Row-first or column-first? etc. etc.
miguel
attached mail follows:
on 7/9/02 3:29 PM, Erik Hegreberg at ehegrebe
online.no wrote:
> >
attached mail follows:
Kevin Diffily wrote:
> on 7/9/02 3:29 PM, Erik Hegreberg at ehegrebe
online.no wrote:
<sarcasm> But why remove him? We're all having so much fun bouncing his messages back to his own email. :) </sarcasm>
-- W | I haven't lost my mind; it's backed up on tape somewhere. +-------------------------------------------------------------------- Ashley M. Kirchner <mailto:ashleypcraft.com> . 303.442.6410 x130 IT Director / SysAdmin / WebSmith . 800.441.3873 x130 Photo Craft Laboratories, Inc. . 3550 Arapahoe Ave. #6 http://www.pcraft.com ..... . . . Boulder, CO 80303, U.S.A.
attached mail follows:
He can no longer send messages to any of the PHP lists.
Zeev
At 11:36 PM 7/9/2002, Kevin Diffily wrote:
>on 7/9/02 3:29 PM, Erik Hegreberg at ehegrebe
online.no wrote:
>
> >
> >
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
vins wrote:
> Is it so fucking difficult to do the fucking unsubscribing yourself..... > Stop being a fucking baby and click your fucking mouse to the php website > and unsubscribe... > > This fucking spamming business is going to get you into big shit.... there > are a ton of hackers out there on this mailing list so stop being a fucking > jerk.
Ya, and your 'fucking' e-mail certainly helps him a lot better, eh?
-- W | I haven't lost my mind; it's backed up on tape somewhere. +-------------------------------------------------------------------- Ashley M. Kirchner <mailto:ashleypcraft.com> . 303.442.6410 x130 IT Director / SysAdmin / WebSmith . 800.441.3873 x130 Photo Craft Laboratories, Inc. . 3550 Arapahoe Ave. #6 http://www.pcraft.com ..... . . . Boulder, CO 80303, U.S.A.
attached mail follows:
this is dumb. can we just ignore this and move. we are all smart enough to block his posts. let's just do it and quit wasting all of our time and get back to doing what we do here.
respectfully,
-brendan
attached mail follows:
Thank you brendan my point from the beginning. Outlook users Message->Block Sender. Takes you two seconds. -Kevin
----- Original Message -----
From: "Brendan P. Caulfield" <brendan1431
caulfieldweb.com>
To: "PHP " <php-general
lists.php.net>
Sent: Tuesday, July 09, 2002 2:53 PM
Subject: [PHP] dumb
> this is dumb. can we just ignore this and move. we are all smart enough > to block his posts. let's just do it and quit wasting all of our time and > get back to doing what we do here. > > respectfully, > > -brendan > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >
attached mail follows:
Brendan, you have my vote. come on.. let's work.
--jp
At 22:53 09-07-2002, Brendan P. Caulfield wrote: >this is dumb. can we just ignore this and move. we are all smart enough >to block his posts. let's just do it and quit wasting all of our time and >get back to doing what we do here. > >respectfully, > >-brendan > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php
________________________________________________________
Juan Pablo Aqueveque <juque
uct.cl>
Ingeniero de Sistemas
Departamento de Redes y Comunicaciones http://www.drc.uct.cl
Universidad Católica de Temuco.
Tel:(5645) 205 630 Fax:(5645) 205 628
attached mail follows:
I we can all do that.... But what about the fact that this moron is out there.. he subscribed to the mailinglist and can't read to save his life...
He must be stopped... online.no is receiving an email plus a zipped copy of all the spams he has sent.
Sorry for all the bad words and stuff said
Cheerz ;)
"Brendan P. Caulfield" <brendan1431
caulfieldweb.com> wrote in message
news:7983.207.152.97.9.1026248032.squirrel
mail.caulfieldweb.com...
> this is dumb. can we just ignore this and move. we are all smart enough
> to block his posts. let's just do it and quit wasting all of our time and
> get back to doing what we do here.
>
> respectfully,
>
> -brendan
>
>
attached mail follows:
OK... Now that i've mailed online.no.... I've unsubscribed the creep from the list so that we don't get no more crap and get back to work....
:D
"Brendan P. Caulfield" <brendan1431
caulfieldweb.com> wrote in message
news:7983.207.152.97.9.1026248032.squirrel
mail.caulfieldweb.com...
> this is dumb. can we just ignore this and move. we are all smart enough
> to block his posts. let's just do it and quit wasting all of our time and
> get back to doing what we do here.
>
> respectfully,
>
> -brendan
>
>
attached mail follows:
Brendan P. Caulfield wrote:
>this is dumb. can we just ignore this and move. we are all smart enough >to block his posts. let's just do it and quit wasting all of our time and >get back to doing what we do here. >
Actually, some of us don't check mail from this list until the evenings. By the time I'm receiving the 1000 messages from my public email addresses, it's far too late to create a filter.
He may as well consider his email address useless now. I don't think many people will hesitate to subscribe him to every ounce of spam they can.
attached mail follows:
Hi all.
I wonder if there’s a way to *HIDE* some parts from the Heading of the
emails sent with PHP. I’m trying to create an anonymous mail sender but
in the header of the message appears:
Received: (from httpd
localhost)
by www.whateverdomain.com (8.10.2/8.10.2) id g69MEA527130;
Tue, 9 Jul 2002 18:14:10 -0400
Date: Tue, 9 Jul 2002 18:14:10 -0400
Message-Id: 200207092214.g69MEA527130
www.
<mailto:200207092214.g69MEA527130
www.%20whateverdomain.com>
whateverdomain.com
I want to hide the *whateverdomain.com* (because is my hosting provider…
Just learning some useful things… please look at
www.icaam.com.ar/mass-mailer.php
I just got bored of receiving mass email from this list… fooling around
;-)
<mailto:webmaster
icaam.com.ar> Cesar Aracena
CE / MCSE+I
Neuquen, Argentina
+54.299.6356688
+54.299.4466621
attached mail follows:
I don't really think there is... I've been trying this for a while now...
"César aracena" <icaam
icaam.com.ar> wrote in message
news:012501c2278c$afdebcb0$81c405c8
gateway...
Hi all.
I wonder if there's a way to *HIDE* some parts from the Heading of the emails sent with PHP. I'm trying to create an anonymous mail sender but in the header of the message appears:
Received: (from httpd
localhost)
by www.whateverdomain.com (8.10.2/8.10.2) id g69MEA527130;
Tue, 9 Jul 2002 18:14:10 -0400
Date: Tue, 9 Jul 2002 18:14:10 -0400
Message-Id: 200207092214.g69MEA527130
www.
<mailto:200207092214.g69MEA527130
www.%20whateverdomain.com>
whateverdomain.com
I want to hide the *whateverdomain.com* (because is my hosting provider. Just learning some useful things. please look at www.icaam.com.ar/mass-mailer.php
I just got bored of receiving mass email from this list. fooling around ;-)
<mailto:webmaster
icaam.com.ar> Cesar Aracena
CE / MCSE+I
Neuquen, Argentina
+54.299.6356688
+54.299.4466621
attached mail follows:
Goto www.icaam.com.ar/mass-mailer.php and have some fun... Just don't send 10 millions of e-mails (which I did) 'couse it will take a wile to end the loop... ;-)
> -----Original Message-----
> From: César Aracena [mailto:icaam
icaam.com.ar]
> Sent: Tuesday, July 09, 2002 6:08 PM
> To: PHP General List
> Subject: [PHP] Mail() function
>
> Hi all.
>
> I wonder if there’s a way to *HIDE* some parts from the Heading of the
> emails sent with PHP. I’m trying to create an anonymous mail sender
but
> in the header of the message appears:
>
> Received: (from httpd
localhost)
> by www.whateverdomain.com (8.10.2/8.10.2) id g69MEA527130;
> Tue, 9 Jul 2002 18:14:10 -0400
> Date: Tue, 9 Jul 2002 18:14:10 -0400
> Message-Id: 200207092214.g69MEA527130
www.
> <mailto:200207092214.g69MEA527130
www.%20whateverdomain.com>
> whateverdomain.com
>
> I want to hide the *whateverdomain.com* (because is my hosting
provider…
> Just learning some useful things… please look at
> www.icaam.com.ar/mass-mailer.php
>
> I just got bored of receiving mass email from this list… fooling
around
> ;-)
>
> <mailto:webmaster
icaam.com.ar> Cesar Aracena
> CE / MCSE+I
> Neuquen, Argentina
> +54.299.6356688
> +54.299.4466621
>
attached mail follows:
once that request is sent you can't really stop it... even if you close the window it will still process the full request... php does funny things sometimes. especially with email
"César aracena" <icaam
icaam.com.ar> wrote in message
news:012d01c2278e$22214440$81c405c8
gateway...
Goto www.icaam.com.ar/mass-mailer.php and have some fun... Just don't
send 10 millions of e-mails (which I did) 'couse it will take a wile to
end the loop... ;-)
> -----Original Message-----
> From: César Aracena [mailto:icaam
icaam.com.ar]
> Sent: Tuesday, July 09, 2002 6:08 PM
> To: PHP General List
> Subject: [PHP] Mail() function
>
> Hi all.
>
> I wonder if there's a way to *HIDE* some parts from the Heading of the
> emails sent with PHP. I'm trying to create an anonymous mail sender
but
> in the header of the message appears:
>
> Received: (from httpd
localhost)
> by www.whateverdomain.com (8.10.2/8.10.2) id g69MEA527130;
> Tue, 9 Jul 2002 18:14:10 -0400
> Date: Tue, 9 Jul 2002 18:14:10 -0400
> Message-Id: 200207092214.g69MEA527130
www.
> <mailto:200207092214.g69MEA527130
www.%20whateverdomain.com>
> whateverdomain.com
>
> I want to hide the *whateverdomain.com* (because is my hosting
provider.
> Just learning some useful things. please look at
> www.icaam.com.ar/mass-mailer.php
>
> I just got bored of receiving mass email from this list. fooling
around
> ;-)
>
> <mailto:webmaster
icaam.com.ar> Cesar Aracena
> CE / MCSE+I
> Neuquen, Argentina
> +54.299.6356688
> +54.299.4466621
>
attached mail follows:
On Tue, 9 Jul 2002, César Aracena wrote:
> I wonder if there’s a way to *HIDE* some parts from the Heading of the
> emails sent with PHP. I’m trying to create an anonymous mail sender but
> in the header of the message appears:
>
> Received: (from httpd
localhost)
> by www.whateverdomain.com (8.10.2/8.10.2) id g69MEA527130;
> Tue, 9 Jul 2002 18:14:10 -0400
> Date: Tue, 9 Jul 2002 18:14:10 -0400
> Message-Id: 200207092214.g69MEA527130
www.
> <mailto:200207092214.g69MEA527130
www.%20whateverdomain.com>
> whateverdomain.com
>
> I want to hide the *whateverdomain.com* (because is my hosting provider)
The relevant line is added by the server that RECEVIES the message, not by your server. So you don't have any control.
miguel
attached mail follows:
IMHO: This is a good thing. SPAM is a bad thing, which proliferates without accountability.
-----Original Message----- The relevant line is added by the server that RECEVIES the message, not by your server. So you don't have any control. **************************************************************************** This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you very much.
attached mail follows:
No you cant.
All Received:, Date:, Message-ID headers are added to the message at the SMTP server... Hence, any halfly decent configured SMTP server will *always* add those headers to *any* message.
If you have administration over the SMTP server, you can with allot of
tweaking configure the SMTP server to remove the headers after it was added
if, for instance, the sender is httpd
localhost. However, the next SMTP
server that the message is forwarded to, will just add them again in anycase.
-- meOn Tue, Jul 09, 2002 at 06:07:43PM -0300, C?sar Aracena wrote: > Hi all. > > I wonder if there?s a way to *HIDE* some parts from the Heading of the > emails sent with PHP. I?m trying to create an anonymous mail sender but > in the header of the message appears: > > Received: (from httpd
localhost) > by www.whateverdomain.com (8.10.2/8.10.2) id g69MEA527130; > Tue, 9 Jul 2002 18:14:10 -0400 > Date: Tue, 9 Jul 2002 18:14:10 -0400 > Message-Id: 200207092214.g69MEA527130
www. > <mailto:200207092214.g69MEA527130
www.%20whateverdomain.com> > whateverdomain.com > > I want to hide the *whateverdomain.com* (because is my hosting provider? > Just learning some useful things? please look at > www.icaam.com.ar/mass-mailer.php > > I just got bored of receiving mass email from this list? fooling around > ;-) > > <mailto:webmaster
icaam.com.ar> Cesar Aracena > CE / MCSE+I > Neuquen, Argentina > +54.299.6356688 > +54.299.4466621 >
attached mail follows:
On Tue, Jul 09, 2002 at 07:34:13AM -0700, Todd Cary wrote: > The version of PHP on one is 4.0.3pl1 and on the other it is 4.0.1pl2. > > Here is what is baffling for me: one the second server the > $HTTP_ENV_VARS array is empty.
http://www.php.net/manual/en/configuration.php#ini.track-vars
--Dan
--
PHP classes that make web design easier
SQL Solution | Layout Solution | Form Solution
sqlsolution.info | layoutsolution.info | formsolution.info
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409
attached mail follows:
It could stem from the variables_order directive, if it lacks an E.
Regards, Philip Olson
On Tue, 9 Jul 2002, Analysis & Solutions wrote:
> On Tue, Jul 09, 2002 at 07:34:13AM -0700, Todd Cary wrote: > > The version of PHP on one is 4.0.3pl1 and on the other it is 4.0.1pl2. > > > > Here is what is baffling for me: one the second server the > > $HTTP_ENV_VARS array is empty. > > http://www.php.net/manual/en/configuration.php#ini.track-vars > > --Dan > > -- > PHP classes that make web design easier > SQL Solution | Layout Solution | Form Solution > sqlsolution.info | layoutsolution.info | formsolution.info > T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y > 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >
attached mail follows:
I have a client that is looking to generate unlock codes for a cd and has given me a calculation that is new to me. There are a number of numbers associated with each CD, i.e. CD id, CD serial #, hardware code. Based on the info entered, they've provided a calculation that can be used to generate an unlock code, ie. Example: ABCD-12AZ-RTG5-02GH-CSWZ-76TG.
I was wondering if this is possible using PHP and where I might get more information on such a topic.
Here are two parts to the calculation;
(4) The serial # of the CD (6 digits) is converted to the 20 bits binary code.
This looks like it should be simple using decbin();
Here's another part;
(11) The 112 bits are divided by 8 bits, then there are 14 bytes. These 14 bytes is calculated by EX-OR. Then the result is added to the last, and the total data becomes 120 bit.
Not too sure about dividing bits and EX-OR. Where could I get more information about doing something like this.
Once again, I'm not sure if this is possible using PHP and any other additional information would be greatly appreciate. Also let me know if the entire calculation would help.
Thanks, Tom
attached mail follows:
Is this what you're looking for?
http://www.php.net/manual/en/language.operators.bitwise.php
-----Original Message-----
From: Tom Beidler [mailto:tom
orbittechservices.com]
Sent: Tuesday, July 09, 2002 2:33 PM
To: php list
Subject: [PHP] slightly ot, looking for definition and possible info
link about EX-OR
I have a client that is looking to generate unlock codes for a cd and has given me a calculation that is new to me. There are a number of numbers associated with each CD, i.e. CD id, CD serial #, hardware code. Based on the info entered, they've provided a calculation that can be used to generate an unlock code, ie. Example: ABCD-12AZ-RTG5-02GH-CSWZ-76TG.
I was wondering if this is possible using PHP and where I might get more information on such a topic.
Here are two parts to the calculation;
(4) The serial # of the CD (6 digits) is converted to the 20 bits binary code.
This looks like it should be simple using decbin();
Here's another part;
(11) The 112 bits are divided by 8 bits, then there are 14 bytes. These 14 bytes is calculated by EX-OR. Then the result is added to the last, and the total data becomes 120 bit.
Not too sure about dividing bits and EX-OR. Where could I get more information about doing something like this.
Once again, I'm not sure if this is possible using PHP and any other additional information would be greatly appreciate. Also let me know if the entire calculation would help.
Thanks, Tom
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php **************************************************************************** This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you very much.
attached mail follows:
Hi Brian...
I have it set up just like Robert, and I really think it's the way to go - having Apache as the web-accessible server gives me much more peace of mind than having IIS sitting out there just waiting to be attacked.
Do you realize you can have content served by IIS accessed without using the :8080 (or whatever) port number? I'm not sure if you're aware of this but here's the relevant parts of my httpd.conf:
NameVirtualHost * LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_connect_module modules/mod_proxy_connect.so LoadModule proxy_http_module modules/mod_proxy_http.so
<VirtualHost *> ServerName zevi.net ServerAlias zevi.net www.zevi.net ProxyRequests Off ProxyPass / http://zevi.net:4040/ ProxyPassReverse / http://zevi.net:4040/ </VirtualHost>
<VirtualHost *> ServerName newworkstudio.com ServerAlias newworkstudio.com www.newworkstudio.com DocumentRoot "C:/htdocs/newworkstudio.com" DirectoryIndex index.html </VirtualHost>
So, for each ASP site (or for each site served by IIS), just add a VirtualHost entry using the ProxyPass directive to send it to the IIS server. The IIS server doesn't have to be on the same computer by the way - or even the same network...
Hope that helps.
Matt Parlane
Zevi Interactive
matt
zevi.net
"Brian McGarvie" <bmcgarvie
lennox-mckinlay.co.uk> wrote in message
news:1E6C09BA9AA33E408D6531ADE236DD01060F5E
ad2.lan.lennox-mckinlay.co.uk...
I will probably do this the other way round as we have a few sites...
so if i have a single file with a frame and point contents of frame to apache this should work?
> -----Original Message-----
> From: Collins, Robert [mailto:RCollins
NORTA.COM]
> Sent: 09 July 2002 4:41 PM
> To: Brian McGarvie; php-windows
lists.php.net;
> php-general
lists.php.net
> Subject: RE: [PHP] Dual Server...
>
>
> I have Apache and IIS coexisting on my intranet server and
> the way I set
> them up was to put each on a different port. (Apache serves
> http://intranet
> and IIS serves http://intranet:8080) this appears to work
> fine. Hope this
> helps
>
> Robert W. Collins II
> Webmaster
> New Orleans Regional Transit Authority
> Phone : (504) 248-3826
> Fax: (504) 248-3866
> Email : rcollins
norta.com <mailto:rcollins
norta.com>
>
>
>
> -----Original Message-----
> From: Brian McGarvie [mailto:bmcgarvie
lennox-mckinlay.co.uk]
> Sent: Tuesday, July 09, 2002 10:39 AM
> To: php-windows
lists.php.net; php-general
lists.php.net
> Subject: [PHP] Dual Server...
>
>
> OK following from my thread 'Browser Issues' I have found
> that when serving
> the site from apache, that the aforementioned errors go
> away... mostly...
>
> OK so... What is the best way to setup so that IIS/Apache co-exist...
>
> I'd like to keep the 'entry' to the site on IIS as we have other sites
> too... and use apache to serve the content of it.
>
> Any help mucho appreciated... also working to a deadline!
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
Matt,
I dont know if this helpped Brian but it just saved me a huge headache with some of the presonal settings on my intranet
THANKS!
Robert W. Collins II
Webmaster
New Orleans Regional Transit Authority
Phone : (504) 248-3826
Fax: (504) 248-3866
Email : rcollins
norta.com <mailto:rcollins
norta.com>
-----Original Message-----
From: Matt Parlane [mailto:matt
zevi.net]
Sent: Tuesday, July 09, 2002 4:41 PM
To: php-windows
lists.php.net; php-general
lists.php.net
Subject: Re: [PHP] Dual Server...
Hi Brian...
I have it set up just like Robert, and I really think it's the way to go - having Apache as the web-accessible server gives me much more peace of mind than having IIS sitting out there just waiting to be attacked.
Do you realize you can have content served by IIS accessed without using the :8080 (or whatever) port number? I'm not sure if you're aware of this but here's the relevant parts of my httpd.conf:
NameVirtualHost * LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_connect_module modules/mod_proxy_connect.so LoadModule proxy_http_module modules/mod_proxy_http.so
<VirtualHost *> ServerName zevi.net ServerAlias zevi.net www.zevi.net ProxyRequests Off ProxyPass / http://zevi.net:4040/ ProxyPassReverse / http://zevi.net:4040/ </VirtualHost>
<VirtualHost *> ServerName newworkstudio.com ServerAlias newworkstudio.com www.newworkstudio.com DocumentRoot "C:/htdocs/newworkstudio.com" DirectoryIndex index.html </VirtualHost>
So, for each ASP site (or for each site served by IIS), just add a VirtualHost entry using the ProxyPass directive to send it to the IIS server. The IIS server doesn't have to be on the same computer by the way - or even the same network...
Hope that helps.
Matt Parlane
Zevi Interactive
matt
zevi.net
"Brian McGarvie" <bmcgarvie
lennox-mckinlay.co.uk> wrote in message
news:1E6C09BA9AA33E408D6531ADE236DD01060F5E
ad2.lan.lennox-mckinlay.co.uk...
I will probably do this the other way round as we have a few sites...
so if i have a single file with a frame and point contents of frame to apache this should work?
> -----Original Message-----
> From: Collins, Robert [mailto:RCollins
NORTA.COM]
> Sent: 09 July 2002 4:41 PM
> To: Brian McGarvie; php-windows
lists.php.net;
> php-general
lists.php.net
> Subject: RE: [PHP] Dual Server...
>
>
> I have Apache and IIS coexisting on my intranet server and
> the way I set
> them up was to put each on a different port. (Apache serves
> http://intranet
> and IIS serves http://intranet:8080) this appears to work
> fine. Hope this
> helps
>
> Robert W. Collins II
> Webmaster
> New Orleans Regional Transit Authority
> Phone : (504) 248-3826
> Fax: (504) 248-3866
> Email : rcollins
norta.com <mailto:rcollins
norta.com>
>
>
>
> -----Original Message-----
> From: Brian McGarvie [mailto:bmcgarvie
lennox-mckinlay.co.uk]
> Sent: Tuesday, July 09, 2002 10:39 AM
> To: php-windows
lists.php.net; php-general
lists.php.net
> Subject: [PHP] Dual Server...
>
>
> OK following from my thread 'Browser Issues' I have found
> that when serving
> the site from apache, that the aforementioned errors go
> away... mostly...
>
> OK so... What is the best way to setup so that IIS/Apache co-exist...
>
> I'd like to keep the 'entry' to the site on IIS as we have other sites
> too... and use apache to serve the content of it.
>
> Any help mucho appreciated... also working to a deadline!
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
attached mail follows:
attached mail follows:
On Tue, 9 Jul 2002, Chris Taylor wrote: > Hi every1, i am currently undertaking some research into PHP security > and its flaws / loopholes etc. What i am looking for is information on > any aspects of PHP that can be hacked or cracked and how developers have > got around these problems.
If there were any holes in PHP itself, they'd get fixed quickly and a security updated would be released, rendering your research obsolete. This isn't Microsoft we're talking about.
If you mean common programming errors that PHP developers tend to make, well, I'd say search the web - there are many, many sites about this topic.
miguel
attached mail follows:
10 out of 10 for that...... the only loopholes that everexist in development software come from microsoft themselves. oh yeah that reminds me
I should run my windows update again LOL
"Miguel Cruz" <mnc
stoic.net> wrote in message
news:Pine.LNX.4.44.0207091655210.30457-100000
stoic.net...
> On Tue, 9 Jul 2002, Chris Taylor wrote:
> > Hi every1, i am currently undertaking some research into PHP security
> > and its flaws / loopholes etc. What i am looking for is information on
> > any aspects of PHP that can be hacked or cracked and how developers have
> > got around these problems.
>
> If there were any holes in PHP itself, they'd get fixed quickly and a
> security updated would be released, rendering your research obsolete. This
> isn't Microsoft we're talking about.
>
> If you mean common programming errors that PHP developers tend to make,
> well, I'd say search the web - there are many, many sites about this
> topic.
>
> miguel
>
attached mail follows:
I just wish RedHat's updater worked as seamlessly as Microsoft's. MUHAHAHA ;)
-----Original Message----- 10 out of 10 for that...... the only loopholes that everexist in development software come from microsoft themselves. oh yeah that reminds me
I should run my windows update again LOL **************************************************************************** This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you very much.
attached mail follows:
>Hi every1, i am currently undertaking some research into PHP security and >its flaws / loopholes etc. What i am looking for is information on any >aspects of PHP that can be hacked or cracked and how developers have got >around these problems.
#1. Improper Installation. Solution: Don't do that.
#2. Invalid Assumptions. Solution: Don't do that.
#1000: Not upgrading for the one (1) security flaw identified in PHP Solution: Upgrade.
You may want to start with the Zend sites' Top 21 mistakes of PHP Developers, and also search the Mailing List archives for "Security".
There is tons of info, but separating fact from fiction and understanding all the ramifications and finer points will take you quite a lot of research.
-- Like Music? http://l-i-e.com/artists.htm
attached mail follows:
On Wednesday 10 July 2002 06:04, Lazor, Ed wrote: > I just wish RedHat's updater worked as seamlessly as Microsoft's. MUHAHAHA > ;)
So do I.
I just love it when Windoze update tells me "You can only download XXX upgrade separately from other components ...... After installation [after rebooting several times], you can return to Windoze update to download additional components ..."
I just don't understand why Redhat allows you to download and install all the upgrades in one step without giving you the chance to reboot the computer in between.
It seems someone has some catching up to do :)
-- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development */* VMS version 2.0 ==> */
attached mail follows:
Hello,
Considering all of this... Would it be better simply to turn register_globals = On if the vast majority of the stuff you have on your site is simple search engine type stuff and/or GET variables?
Considering the fact that anyone can forge GET, POST, & cookies, is there really any purpose in turning register_globals = Off ??
Patrick
attached mail follows:
I'm not sure if it's true or not, but someone said all data coming through _POST and _COOKIES is filtered - making it safer than pulling the raw data from variables.
While you're forging cookies, I'll take a few chocolate chip ;)
-----Original Message----- Considering the fact that anyone can forge GET, POST, & cookies, is there really any purpose in turning register_globals = Off ?? **************************************************************************** This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you very much.
attached mail follows:
> I'm not sure if it's true or not, but someone said all data coming > through _POST and _COOKIES is filtered - making it safer than pulling > the raw data from variables.
Filtered? Nothing is filtered. Only you know what data the users should be sending, validate accordingly and assume all request data is unsafe. The only "filter" I see here is how the data is seperated by type, ex. only GET is in $_GET.
Regards, Philip Olson
attached mail follows:
Hello All,
I am trying to use the isset function to test if the page has been submitted, but it seems as though it is not working. I am wondering is there a configuration option that is messing with the functionality of isset.
Any help would be appreciated.
Thanks, Preston Wade
attached mail follows:
register_globals on or off?
On Tue, 9 Jul 2002, Preston Wade wrote:
> Hello All, > > I am trying to use the isset function to test if the page has been > submitted, but it seems as though it is not working. I am wondering is > there a configuration option that is messing with the functionality of > isset. > > Any help would be appreciated. > > Thanks, > Preston Wade > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >
attached mail follows:
that seem always to be the prob with any php coding now days globals on or off ????
"Rasmus Lerdorf" <rasmus
php.net> wrote in message
news:Pine.LNX.4.44.0207091517590.20716-100000
www.lerdorf.com...
> register_globals on or off?
>
> On Tue, 9 Jul 2002, Preston Wade wrote:
>
> > Hello All,
> >
> > I am trying to use the isset function to test if the page has been
> > submitted, but it seems as though it is not working. I am wondering is
> > there a configuration option that is messing with the functionality of
> > isset.
> >
> > Any help would be appreciated.
> >
> > Thanks,
> > Preston Wade
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
attached mail follows:
Yup
On Wed, 10 Jul 2002, vins wrote:
> that seem always to be the prob with any php coding now days
> globals on or off ????
>
> "Rasmus Lerdorf" <rasmus
php.net> wrote in message
> news:Pine.LNX.4.44.0207091517590.20716-100000
www.lerdorf.com...
> > register_globals on or off?
> >
> > On Tue, 9 Jul 2002, Preston Wade wrote:
> >
> > > Hello All,
> > >
> > > I am trying to use the isset function to test if the page has been
> > > submitted, but it seems as though it is not working. I am wondering is
> > > there a configuration option that is messing with the functionality of
> > > isset.
> > >
> > > Any help would be appreciated.
> > >
> > > Thanks,
> > > Preston Wade
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
what is it you are testing for?
a page that has been submitted. do you mean from an html form or some other method?
Jim Lucas
----- Original Message -----
From: "Preston Wade" <Preston_Wade
hilton.com>
To: <php-general
lists.php.net>
Sent: Tuesday, July 09, 2002 3:20 PM
Subject: [PHP] isset
> Hello All, > > I am trying to use the isset function to test if the page has been > submitted, but it seems as though it is not working. I am wondering is > there a configuration option that is messing with the functionality of > isset. > > Any help would be appreciated. > > Thanks, > Preston Wade > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >
attached mail follows:
It's kinda like microsoft.... nothing really works unless you have Internet Explorer and the internet LOL
"Preston Wade" <Preston_Wade
hilton.com> wrote in message
news:0B2759D401C1D211ACA500805FFE2C3F06367588
cmxserv3.hilton.com...
> Hello All,
>
> I am trying to use the isset function to test if the page has been
> submitted, but it seems as though it is not working. I am wondering is
> there a configuration option that is messing with the functionality of
> isset.
>
> Any help would be appreciated.
>
> Thanks,
> Preston Wade
>
attached mail follows:
HTML form. register_globals is off.
Thanks, Preston
> -----Original Message-----
> From: "Jim lucas" <phplist
zonedzero.net>
INTERNET
HHC
> Sent: Tuesday, July 09, 2002 5:29 PM
> To: Preston Wade; php-general
lists.php.net
> Subject: Re: [PHP] isset
>
> <<...>>
> what is it you are testing for?
>
> a page that has been submitted. do you mean from an html form or some
> other
> method?
>
> Jim Lucas
> ----- Original Message -----
> From: "Preston Wade" <Preston_Wade
hilton.com>
> To: <php-general
lists.php.net>
> Sent: Tuesday, July 09, 2002 3:20 PM
> Subject: [PHP] isset
>
>
> > Hello All,
> >
> > I am trying to use the isset function to test if the page has been
> > submitted, but it seems as though it is not working. I am wondering is
> > there a configuration option that is messing with the functionality of
> > isset.
> >
> > Any help would be appreciated.
> >
> > Thanks,
> > Preston Wade
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
i think what you're trying to do is
<?php if($REQUEST_METHOD == "POST") { echo "Form has been submitted."; exit; } else { echo "Display the form that has to be submitted.': exit; } ?>
"Preston Wade" <Preston_Wade
hilton.com> wrote in message
news:0B2759D401C1D211ACA500805FFE2C3F06367588
cmxserv3.hilton.com...
> Hello All,
>
> I am trying to use the isset function to test if the page has been
> submitted, but it seems as though it is not working. I am wondering is
> there a configuration option that is messing with the functionality of
> isset.
>
> Any help would be appreciated.
>
> Thanks,
> Preston Wade
>
attached mail follows:
<form method="post"> <input type="submit" name="submit"> </form>
if (isset($_POST['submit'])){} // or // if (isset($HTTP_POST_VARS['submit']))
If register globals is ON you can access the variable directly.. if (isset($submit)) {}
Otherwise you can extract the post array before testing the variable.. extract($_POST); if (isset($submit)) {}
Hope this gets you started. Read up on the manual. http://www.php.net. :) -Kevin
----- Original Message -----
From: "Preston Wade" <Preston_Wade
hilton.com>
To: <php-general
lists.php.net>
Sent: Tuesday, July 09, 2002 4:20 PM
Subject: [PHP] isset
> Hello All, > > I am trying to use the isset function to test if the page has been > submitted, but it seems as though it is not working. I am wondering is > there a configuration option that is messing with the functionality of > isset. > > Any help would be appreciated. > > Thanks, > Preston Wade > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >
attached mail follows:
Look at that we get an easy question and 50 people reply. Today has just been our day for spam. *LOL* :) -Kevin
----- Original Message -----
From: "Kevin Stone" <kevin
helpelf.com>
To: "Preston Wade" <Preston_Wade
hilton.com>; <php-general
lists.php.net>
Sent: Tuesday, July 09, 2002 4:37 PM
Subject: Re: [PHP] isset
> <form method="post">
> <input type="submit" name="submit">
> </form>
>
> if (isset($_POST['submit'])){}
> // or //
> if (isset($HTTP_POST_VARS['submit']))
>
> If register globals is ON you can access the variable directly..
> if (isset($submit)) {}
>
> Otherwise you can extract the post array before testing the variable..
> extract($_POST);
> if (isset($submit)) {}
>
> Hope this gets you started. Read up on the manual. http://www.php.net.
:)
> -Kevin
>
>
> ----- Original Message -----
> From: "Preston Wade" <Preston_Wade
hilton.com>
> To: <php-general
lists.php.net>
> Sent: Tuesday, July 09, 2002 4:20 PM
> Subject: [PHP] isset
>
>
> > Hello All,
> >
> > I am trying to use the isset function to test if the page has been
> > submitted, but it seems as though it is not working. I am wondering is
> > there a configuration option that is messing with the functionality of
> > isset.
> >
> > Any help would be appreciated.
> >
> > Thanks,
> > Preston Wade
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
Actually here is what I am trying to do.
<?php if (isset($submit)) { echo "Submitted!"; } ?> <form action="<?=$PHP_SELF ?>" method="post"> blah, blah <input type="submit" name="submit" value="Submit"> </form>
> -----Original Message-----
> From: vins <vins
webonline.co.za>
INTERNET
HHC
> Sent: Tuesday, July 09, 2002 5:35 PM
> To: php-general
lists.php.net
> Subject: [PHP] Re: isset
>
> i think what you're trying to do is
>
> <?php
> if($REQUEST_METHOD == "POST")
> {
> echo "Form has been submitted.";
> exit;
> }
> else
> {
> echo "Display the form that has to be submitted.':
> exit;
> }
> ?>
>
>
> "Preston Wade" <Preston_Wade
hilton.com> wrote in message
> news:0B2759D401C1D211ACA500805FFE2C3F06367588
cmxserv3.hilton.com...
> > Hello All,
> >
> > I am trying to use the isset function to test if the page has been
> > submitted, but it seems as though it is not working. I am wondering is
> > there a configuration option that is messing with the functionality of
> > isset.
> >
> > Any help would be appreciated.
> >
> > Thanks,
> > Preston Wade
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
This is what I was looking for.
Thanks!
Preston
> -----Original Message-----
> From: "Kevin Stone" <kevin
helpelf.com>
INTERNET
HHC
> Sent: Tuesday, July 09, 2002 5:37 PM
> To: Preston Wade; php-general
lists.php.net
> Subject: Re: [PHP] isset
>
> <<...>>
> <form method="post">
> <input type="submit" name="submit">
> </form>
>
> if (isset($_POST['submit'])){}
> // or //
> if (isset($HTTP_POST_VARS['submit']))
>
> If register globals is ON you can access the variable directly..
> if (isset($submit)) {}
>
> Otherwise you can extract the post array before testing the variable..
> extract($_POST);
> if (isset($submit)) {}
>
> Hope this gets you started. Read up on the manual. http://www.php.net.
> :)
> -Kevin
>
>
> ----- Original Message -----
> From: "Preston Wade" <Preston_Wade
hilton.com>
> To: <php-general
lists.php.net>
> Sent: Tuesday, July 09, 2002 4:20 PM
> Subject: [PHP] isset
>
>
> > Hello All,
> >
> > I am trying to use the isset function to test if the page has been
> > submitted, but it seems as though it is not working. I am wondering is
> > there a configuration option that is messing with the functionality of
> > isset.
> >
> > Any help would be appreciated.
> >
> > Thanks,
> > Preston Wade
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
attached mail follows:
oh ok..... that is easy to forge then....
try the script that i wrong earliers... it's must safer.
"Preston Wade" <Preston_Wade
hilton.com> wrote in message
news:0B2759D401C1D211ACA500805FFE2C3F0636758C
cmxserv3.hilton.com...
> Actually here is what I am trying to do.
>
> <?php
> if (isset($submit)) {
> echo "Submitted!";
> }
> ?>
>
> <form action="<?=$PHP_SELF ?>" method="post">
> blah, blah
> <input type="submit" name="submit" value="Submit">
> </form>
>
>
> > -----Original Message-----
> > From: vins <vins
webonline.co.za>
INTERNET
HHC
> > Sent: Tuesday, July 09, 2002 5:35 PM
> > To: php-general
lists.php.net
> > Subject: [PHP] Re: isset
> >
> > i think what you're trying to do is
> >
> > <?php
> > if($REQUEST_METHOD == "POST")
> > {
> > echo "Form has been submitted.";
> > exit;
> > }
> > else
> > {
> > echo "Display the form that has to be submitted.':
> > exit;
> > }
> > ?>
> >
> >
> > "Preston Wade" <Preston_Wade
hilton.com> wrote in message
> > news:0B2759D401C1D211ACA500805FFE2C3F06367588
cmxserv3.hilton.com...
> > > Hello All,
> > >
> > > I am trying to use the isset function to test if the page has been
> > > submitted, but it seems as though it is not working. I am wondering
is
> > > there a configuration option that is messing with the functionality of
> > > isset.
> > >
> > > Any help would be appreciated.
> > >
> > > Thanks,
> > > Preston Wade
> > >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
attached mail follows:
i agree to that
"Kevin Stone" <kevin
helpelf.com> wrote in message
news:05e601c22799$657262f0$6501a8c0
kevin...
> Look at that we get an easy question and 50 people reply. Today has just
> been our day for spam. *LOL* :)
> -Kevin
>
> ----- Original Message -----
> From: "Kevin Stone" <kevin
helpelf.com>
> To: "Preston Wade" <Preston_Wade
hilton.com>; <php-general
lists.php.net>
> Sent: Tuesday, July 09, 2002 4:37 PM
> Subject: Re: [PHP] isset
>
>
> > <form method="post">
> > <input type="submit" name="submit">
> > </form>
> >
> > if (isset($_POST['submit'])){}
> > // or //
> > if (isset($HTTP_POST_VARS['submit']))
> >
> > If register globals is ON you can access the variable directly..
> > if (isset($submit)) {}
> >
> > Otherwise you can extract the post array before testing the variable..
> > extract($_POST);
> > if (isset($submit)) {}
> >
> > Hope this gets you started. Read up on the manual. http://www.php.net.
> :)
> > -Kevin
> >
> >
> > ----- Original Message -----
> > From: "Preston Wade" <Preston_Wade
hilton.com>
> > To: <php-general
lists.php.net>
> > Sent: Tuesday, July 09, 2002 4:20 PM
> > Subject: [PHP] isset
> >
> >
> > > Hello All,
> > >
> > > I am trying to use the isset function to test if the page has been
> > > submitted, but it seems as though it is not working. I am wondering
is
> > > there a configuration option that is messing with the functionality of
> > > isset.
> > >
> > > Any help would be appreciated.
> > >
> > > Thanks,
> > > Preston Wade
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
attached mail follows:
Me too ;)
-----Original Message----- i agree to that
> Look at that we get an easy question and 50 people reply. Today has just > been our day for spam. *LOL* :) **************************************************************************** This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you very much.
attached mail follows:
Djurovski Dejan wrote:
> What's wron in my script?
> I receive message:
> *Warning*: Supplied argument is not a valid MySQL result resource in
> *c:\inetpub\wwwroot\login.php* on line *12*
> I input validate username ²password!
>
>
> <?php
> include("config.php");
> if(!empty($username))
> {
> print("$username, $password");
>
> $aDBLink=
mysql_connect("$host", "$user", "$password");
Your problem might be that you use $user here, where everywhere else you seem to think it is called $username.
> mysql_select_db("$db", $aDBLink); > $aSQL="select * from administracija where > administracija_username=$username"; > $aQResult=mysql_query($aSQL, $aDBLink);
You can also make a call to mysql_error() here, because MySQL is probably ready to tell you why your query did not execute correctly.
> > $broj= mysql_num_rows($aQResult); > P.S. I tried to send this message to General mailing list, but i could > not. I am subscribed!
You should really try to figure out why you can't post to php-general. I receive nearly 1000 messages a day and cannot be relied upon to reply to every one. Also, others may benefit from your question and the fact that it is archived on the list, and it is always better to get a few different perspectives on a particular problem.
Happy hacking.
Chris
attached mail follows:
Richard Lynch wrote:
>Would setCookie('user_id', $PHPSESSID, 0, '/othersite.com'); > >let you get away with setting the cookies for the "other" site? >
Luckily no. :-)
There are vulnerabilities in IE 4.0 - 6.0 that will let you read/write cookies not in your domain, but this is a result of a bug in IE and not ordinary behavior.
>Hey, but all those stupid "Banner Ad" sites give me a cookie from the >*other* guy's site. > >All ya gotta do is have three invisible GIFs on all three sites that come >from the *other* sites and the GIF does the set_cookie() of whatever their >user ID is. >
I'm not sure where you got this idea, but you should investigate further. A banner ad is usually nothing more than an image, and your browser will make a complete separate HTTP GET request for that image. When that is the case, there is no way the remote site can read or write cookies outside of its own domain. They can set cookies from their own domain, and you might see the cookies warnings on the same "page" or whatever, but the domains will definitely be different.
Happy hacking.
Chris
attached mail follows:
Someone should sign this guy up for a hotmail account and check every box for spam there is.
>>>PHP General Mailing List (http://www.php.net/) >>>To unsubscribe, visit: http://www.php.net/unsub.php >>>
Oh look, there's how I unsubscribe.
>>PHP General Mailing List (http://www.php.net/) >>To unsubscribe, visit: http://www.php.net/unsub.php >>
Oh look, there it is again.
And what do you want to bet it will be at the bottom of this message, too?
*mutter*
attached mail follows:
ppl ppl ppl relax... I unsubscribed the guy already....
you guys are late LOL
Cheerz ;)
"Chris Shiflett" <shiflett
php.net> wrote in message
news:3D2B681E.4080704
php.net...
> Someone should sign this guy up for a hotmail account and check every
> box for spam there is.
>
> >>>PHP General Mailing List (http://www.php.net/)
> >>>To unsubscribe, visit: http://www.php.net/unsub.php
> >>>
>
> Oh look, there's how I unsubscribe.
>
> >>PHP General Mailing List (http://www.php.net/)
> >>To unsubscribe, visit: http://www.php.net/unsub.php
> >>
>
> Oh look, there it is again.
>
> And what do you want to bet it will be at the bottom of this message, too?
>
> *mutter*
>
attached mail follows:
>I am trying to create a piece of code that will create and display >thumbnail image. When trying to send the image to a browser, I see >binary data rather then an image. You can see the problem at >www.dallypost.com/a/test.php > >The troubled cose for this page follows: > ><?PHP
> print("<img src = $master_image_all_link>");
You can't have the IMG tag and the actual image output in the same script.
Put the IMG tag into an HTML file, and the image output into a JPEG file.
The JPEG file can't output *anything* except headers and image data.
Speaking of headers:
> imagejpeg($dst_img, '', 50);//sends the image to the browser
Right *BEFORE* this line, you need to do:
header("Content-type: image/jpeg");
Otherwise, the browser doesn't know it's a JPEG and has to guess. It might guess right. It might not.
-- Like Music? http://l-i-e.com/artists.htm
attached mail follows:
>Server Apache / PHP v.4.1.2 >At the moment the parametere register_globals is still set to on; >I'm triyng to use $_POST and $_FILES between different pages, but variables >are always empty !!!
Is 'track_vars' turned *ON* in php.ini? That's the one that fills in all those variables.
If your version of PHP is "too old" you'll need $HTTP_POST_VARS instead of $_POST and similar.
-- Like Music? http://l-i-e.com/artists.htm
attached mail follows:
On Wednesday 10 July 2002 06:03, Richard Lynch wrote: > >Server Apache / PHP v.4.1.2 > >At the moment the parametere register_globals is still set to on; > >I'm triyng to use $_POST and $_FILES between different pages, but > > variables are always empty !!! > > Is 'track_vars' turned *ON* in php.ini? That's the one that fills in all > those variables.
track_vars is always on for recent versions of php (4.0.3+).
-- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development */* Most of your faults are not your fault. */
attached mail follows:
>I have a directory of jpegs that I want to display thumbnails of and have a >link to the original jpeg. I would rather not create separate thumbnails >images preferring to create them in memory to display them. I have installed >GD v.1.8.4. The code below outputs jumbled text to the browser (possibly the >jpeg stream?).
If it starts with yayo, only with umlats over it, almost for sure, yeah, that's the JPEG data. There will be JPEG/JFIF in the text shortly after that.
If you are getting that, you know you are "close" :-)
>Code is as follows: > > </tr> > <td><img alt="text" src="<?php echo CreateThumbnail(); ?>" >valign="top" /></td> > </tr>
You can't just smush the image into the SRC=
The SRC= needs to be a URL, and that URL needs to spew out the image.
In other words, that URL needs to "fake out" the browser into thinking it really is just a static image.
<SRC=createThumbnail.php>
Then just put all the stuff below into createThumbnail.php
> ><?php >function CreateThumbnail() >{ > $x = 130; > $y = 100; > > $quality = 75; > > $thumbnail = imagecreate($x, $y); > $originalimage = imagecreatefromjpeg('test.jpg'); > > imagecopyresized($thumbnail, $originalimage, 0, 0, 0, 0, $x, $y, > ImageSX($originalimage),ImageSY($originalimage)); > > header("Content-Type: image/jpeg"); > imagejpeg($thumbnail,'test.jpg',$quality); > > imagedestroy($thumbnail); >} >?>
-- Like Music? http://l-i-e.com/artists.htm
attached mail follows:
>I have a problem with charset iso-8859-1. >My configuration is : Apache 1.3.26 on MacOS X with PHP 4.2.1 > >when I execute this script : ><? print ord("é"); ?>
Okay, like, that character in there is not necessarily going to transport well if you ever move this script to a different computer...
>I have result 142 which is the code of the macinstosh table and when i >send it to my browser or in a email, this doesn't work. >I must have the windows table where this caracter has the code 233.
Well, maybe, only that won't work on your Mac or a Linux box, or...
You *PROBABLY* should be using an HTML Entity if you just want this in a single page on a web-site...
>I've added in Apache a "AddDefaultCharset iso-8859-1". >I also made a ini_set("default_charset","iso-8859-1") But it doesn't >change anything. It seems to change the 'local values' but not the >'master values' >I canno't change the value in php.ini because on MacOS X, there wans't a >file php.ini
If there was no php.ini, then blame whomever installed PHP :-)
You can download a php.ini and put it where-ever <?php phpinfo();?> thinks it should be, and it will work just fine.
Sorry I can't help much with the actual iso-8859-1 part -- I'm woefully ignorant of charsets.
-- Like Music? http://l-i-e.com/artists.htm
attached mail follows:
>When the nessicary include file is included it does a reverse-DNS lookup to >find the remote host's DNS name. The problem with this is that is seems >slow(at least on my test server with a DSL connection).
How slow?
There's, like, a couple seconds slow, which is just how slow reverse-DNS can be, and *MINUTES* slow...
Minutes slow, most likely, indicates that where-ever you are trying to look up the DNS records is trying to do a reverse DNS on *YOU* (or, rather, PHP's web-server) and timing out.
If you have any control over that machine where you are doing the reverse-DNS, be sure they have your IP address associated with a name.
For DSL, you can use something like http://dyndns.org to give your dynamic IP address a domain name. There are dozens of competitors to http://dyndns.org, and feel free to shop around.
>I thought the best >way to speed things up would be putting the entire script into a file and >then using <img src="stats.php"> within the page. The problem is that I >don't know how to output the image with PHP.
Like, I don't even understand the theory here...
How would the script being in a file (and where is it now?) make the DNS lookups any faster? I'm so confused.
At any rate, a sample of how to dump out an image was already posted in this thread.
-- Like Music? http://l-i-e.com/artists.htm
attached mail follows:
>Whenn i acces a page then there will automatichly be a phpsesion id created
Your php.ini file may have settings that would do that.
>but i dont have got any key pressed or used sersion start in the code. > >i just wanne login to my page wich the page sets a cookie in my browser but >this doest work because the cookies does not be created in my browser
I went there and got no cookies.
You have to call session_start() if you want the cookies to go out.
You also have to session_register() each variable that you want to "keep" in the session.
-- Like Music? http://l-i-e.com/artists.htm
attached mail follows:
I just thought this was worth sharing. :-)
----- The following addresses had permanent fatal errors -----
<ehegrebe
online.no>
----- Transcript of session follows -----
RECIPIENTS MAILBOX IS FULL
554 <ehegrebe
online.no>... Service unavailable
attached mail follows:
Have you even cek the box that must run snmp too, try this snmpwalk localhost public
attached mail follows:
Hi, I am trying to import some tables from a dump file into a MySQL database from a php web page. What is the best way to do this without using backticks (fpassthru, system, exec or something else) and test for success or failure? I tried the following and while it works, my test for success or failure always produces a "Success" even when I change something to make it fail. I thought system() outputs the last line of the command on success and FALSE on failure. Any examples appreciated.
<?php
$status = system("mysql -umyuserid -pmypassword mydbname < /path/to/mydumpfile.txt");
if($status == 'FALSE'){ echo 'Failed'; } else { echo 'Success'; }
?>
attached mail follows:
On Tue, Jul 09, 2002 at 06:09:36PM -0700, Fargo Lee wrote: > > $status = system("mysql -umyuserid -pmypassword mydbname <
You need a space between "-u" and "myuserid"
--Dan
--
PHP classes that make web design easier
SQL Solution | Layout Solution | Form Solution
sqlsolution.info | layoutsolution.info | formsolution.info
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409
attached mail follows:
And also the "-p"
-------------- Cheers, Adam Alkins http://www.rasadam.com --------------
----- Original Message -----
From: "Analysis & Solutions" <danielc
analysisandsolutions.com>
To: "PHP List" <php-general
lists.php.net>
Sent: Tuesday, July 09, 2002 11:02 PM
Subject: Re: [PHP] How do I import tables into MySQL from web page ...
> On Tue, Jul 09, 2002 at 06:09:36PM -0700, Fargo Lee wrote: > > > > $status = system("mysql -umyuserid -pmypassword mydbname < > > You need a space between "-u" and "myuserid" > > --Dan > > -- > PHP classes that make web design easier > SQL Solution | Layout Solution | Form Solution > sqlsolution.info | layoutsolution.info | formsolution.info > T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y > 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > >
attached mail follows:
Thanks for pointing out the syntax error. I added the space after the -u but it did not make any difference. It still gives the same result, that is "Success", when it actually fails. What I am trying to figure out is how I can tell if it failed (did not create the tables)? The $status variable does not appear to hold the output of the system() function. Anyone know how to get the output of system, passthru or exec into the $status variable to check for success or failure?
"Analysis & Solutions" <danielc
analysisandsolutions.com> wrote in message
news:20020710030254.GA10805
panix.com...
> On Tue, Jul 09, 2002 at 06:09:36PM -0700, Fargo Lee wrote:
> >
> > $status = system("mysql -umyuserid -pmypassword mydbname <
>
> You need a space between "-u" and "myuserid"
>
> --Dan
>
> --
> PHP classes that make web design easier
> SQL Solution | Layout Solution | Form Solution
> sqlsolution.info | layoutsolution.info | formsolution.info
> T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
> 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409
attached mail follows:
On Wednesday 10 July 2002 13:27, Fargo Lee wrote: > Thanks for pointing out the syntax error. I added the space after the -u > but it did not make any difference. It still gives the same result, that is > "Success", when it actually fails. What I am trying to figure out is how I > can tell if it failed (did not create the tables)? The $status variable > does not appear to hold the output of the system() function. Anyone know > how to get the output of system, passthru or exec into the $status variable > to check for success or failure?
Your test for failure should be:
if ($status === FALSE)
-- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development */* Extreme fear can neither fight nor fly. -- William Shakespeare, "The Rape of Lucrece" */
attached mail follows:
Thanks but it still returns "Success" on a failure. If anyone knows if it is even possible to assign the output of system, passthru or exec to a variable to check for success or failure and how to do it, please advise. The $status variable seems to always be empty on success or failure when I try to echo it.
"Jason Wong" <php-general
gremlins.com.hk> wrote in message
news:200207101336.05726.php-general
gremlins.com.hk...
> On Wednesday 10 July 2002 13:27, Fargo Lee wrote:
> > Thanks for pointing out the syntax error. I added the space after the -u
> > but it did not make any difference. It still gives the same result, that
is
> > "Success", when it actually fails. What I am trying to figure out is how
I
> > can tell if it failed (did not create the tables)? The $status variable
> > does not appear to hold the output of the system() function. Anyone know
> > how to get the output of system, passthru or exec into the $status
variable
> > to check for success or failure?
>
> Your test for failure should be:
>
> if ($status === FALSE)
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
>
> /*
> Extreme fear can neither fight nor fly.
> -- William Shakespeare, "The Rape of Lucrece"
> */
>
attached mail follows:
On Wed, Jul 10, 2002 at 01:08:38AM -0400, Adam Alkins wrote:
>
> From: "Analysis & Solutions" <danielc
analysisandsolutions.com>
>
> > On Tue, Jul 09, 2002 at 06:09:36PM -0700, Fargo Lee wrote:
> > >
> > > $status = system("mysql -umyuserid -pmypassword mydbname <
> >
> > You need a space between "-u" and "myuserid"
>
> And also the "-p"
Nope. In order for the password to be considered a password, there should be no space between the -p and the password. Otherwise it gets interpreted as the name of the database you want to access.
--Dan
A: No. Q: Is top posting okay?
--
PHP classes that make web design easier
SQL Solution | Layout Solution | Form Solution
sqlsolution.info | layoutsolution.info | formsolution.info
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409
attached mail follows:
If I understand correctly, all php functions are written in php. If this is true, is it possible to view function source code? Thanks for any insight into this :-)
attached mail follows:
No, they are written in C. And yes, you can of course download the C source code from php.net.
-Rasmus
On Tue, 9 Jul 2002, Leif K-Brooks wrote:
> If I understand correctly, all php functions are written in php. If > this is true, is it possible to view function source code? Thanks for > any insight into this :-) > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >
attached mail follows:
When you compile from the source (which is in c) the functions that are available are actually c executables. > If I understand correctly, all php functions are written in php. If > this is true, is it possible to view function source code? Thanks for > any insight into this :-) > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >
-Pushkar S. Pradhan
attached mail follows:
As Rasmus said, all functions are in C.
PHP is open source: The source code is available to the public.
--- Leif K-Brooks <eurleif
buyer-brokerage.com> wrote:
> If I understand correctly, all php functions are
> written in php. If
> this is true, is it possible to view function source
> code? Thanks for
> any insight into this :-)
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
__________________________________________________ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com
attached mail follows:
I'm working on this site that is all shtml files... in order to add some dynamic content, it just includes php scripts in different places. However, sessions don't work unless you start it before outputting anything to the server and that's what's needed now...
I don't want to change all the links to end in .php and do the includes in php just so I can put <? session_start(); ?> at the beginning of all the pages.
So I was trying to get the server to treat shtml files as both server-parsed and as php scripts. Not working too well. ;)
Anyone have any ideas?
-Josh
attached mail follows:
Joshua Alexander wrote:
> So I was trying to get the server to treat shtml files as both > server-parsed and as php scripts. Not working too well. ;) > > Anyone have any ideas?
We'd need to know more about your setup, but if you're using Apache, you should be able to edit your httpd.conf file to include a PHP handler for files ending in .shtml. Just look for the directive for files ending in .php and add the same thing for .shtml. Then, both will be parsed by PHP first.
Of course, by doing so you eliminate the purpose of the .shtml extension, which is supposed to indicate static content. I'm not sure if that concerns you.
Happy hacking.
Chris
attached mail follows:
There are people who don't use Apache??? ;)
>ending in .php and add the same thing for .shtml. Then, both will be >parsed by PHP first.
But then will it be parsed by SSI second, as we would like? Doesn't seem to...
-Josh
attached mail follows:
Hi all, I got a problem when I use php's imap functions in rh7.3 system. In the php script file imaptest.php I wrote such code: $user="usernamexxx"; $password="passxxx"; $mbox = imap_open ("{localhost:143}", $user, $password) or die("can't connect: ".imap_last_error()
But when I use konqueror visit it through http, the result shows:
"
Warning: Couldn't open stream {localhost:143} in
/var/www/html/mail/imaptest.php on line 4
can't connect: Certificate failure for localhost: self signed certificate:
/C=--/ST=SomeState/L=SomeCity/O=SomeOrganization/OU=SomeOrganizationalUnit/CN=localhost.localdomain/Email=root
localhost.localdomain
"
I found such words in the maillog: Jul 10 10:09:43 revived imapd[1465]: imap service init from 127.0.0.1 Jul 10 10:09:43 revived imapd[1465]: Command stream end of file, while reading line user=??? host=UNKNOWN
I'm sure that my imap works well. Because I can use Kmail receive mails through my imap.
Who can help me? Thank all. Best regard! Yours, Xun Chen °×¹âÉÁÒ« ÑÌÎíÃÔÂþ »ÆÉ³ÂúÌì ²ÔÈÕÇåá°
_________________________________________________________________ ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger: http://messenger.microsoft.com/cn
attached mail follows:
Try localhost:143/notls there
On Wed, 10 Jul 2002, [gb2312] ÚÈ Ñ« wrote:
>
> Hi all,
> I got a problem when I use php's imap functions in rh7.3 system.
> In the php script file imaptest.php I wrote such code:
>
> $user="usernamexxx";
> $password="passxxx";
> $mbox = imap_open ("{localhost:143}", $user, $password)
> or die("can't connect: ".imap_last_error()
>
> But when I use konqueror visit it through http, the result shows:
> "
> Warning: Couldn't open stream {localhost:143} in
> /var/www/html/mail/imaptest.php on line 4
> can't connect: Certificate failure for localhost: self signed certificate:
> /C=--/ST=SomeState/L=SomeCity/O=SomeOrganization/OU=SomeOrganizationalUnit/CN=localhost.localdomain/Email=root
localhost.localdomain
>
> "
>
> I found such words in the maillog:
> Jul 10 10:09:43 revived imapd[1465]: imap service init from 127.0.0.1
> Jul 10 10:09:43 revived imapd[1465]: Command stream end of file, while
> reading line user=??? host=UNKNOWN
>
> I'm sure that my imap works well. Because I can use Kmail receive mails
> through my imap.
>
> Who can help me? Thank all.
> Best regard!
> Yours,
> Xun Chen
> °×¹âÉÁÒ« ÑÌÎíÃÔÂþ »ÆÉ³ÂúÌì ²ÔÈÕÇåá°
>
> _________________________________________________________________
> ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger:
> http://messenger.microsoft.com/cn
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
Hmmm some stupid dude land in this mailing list....
attached mail follows:
Hi guys,... In configure PHP 4.2.1 on RedHat 7.3 I found this problem
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for gawk... (cached) gawk
checking for bison... no
checking for byacc... no
configure: warning: You will need bison if you want to regenerate the PHP
parsers.
checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root... ./configure: lex: command not found
configure: error: cannot find output from lex; giving up
[yamin
dusak php-4.2.1]$
what's wrong with it ???
thanks in advance
Yamin
attached mail follows:
Yamin,
grab ur self a copy of bison and install it see this line..
configure: warning: You will need bison if you want to regenerate the PHP
parsers. )
make sure lex is in ur path on your machine..
cheers
> -----Original Message-----
> From: Yamin Prabudy [mailto:phplist
pro.net.id]
> Sent: Wednesday, 10 July 2002 12:44 PM
> To: PHP List
> Subject: [PHP] rh 7.3
>
>
> Hi guys,... In configure PHP 4.2.1 on RedHat 7.3 I found this problem
> checking for ranlib... ranlib
> checking whether ln -s works... yes
> checking for gawk... (cached) gawk
> checking for bison... no
> checking for byacc... no
> configure: warning: You will need bison if you want to regenerate the PHP
> parsers.
> checking for flex... lex
> checking for yywrap in -ll... no
> checking lex output file root... ./configure: lex: command not found
> configure: error: cannot find output from lex; giving up
> [yamin
dusak php-4.2.1]$
>
> what's wrong with it ???
>
> thanks in advance
>
> Yamin
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
Hi All,
Just wondering if some can explain this to me.
Lets assume I ahve retrieved a person entry from an LDAP server. It contains uid, and cn with 2 values.
I would expect the object when assign to $entry to look like.
$entry['uid'][0] = "Jsmith" $entry['cn'][0] = "john smith" $entry['cn'][1] = "john doe"
But if I run a each loop over the return object I find I get something like:
$entry['uid'[0] = "Jsmith" $entry[0] = 'uid' $entry[cn][0] = "john smith" $entry[cn][1] = "John Doe" $entry[1] = 'cn"
My point here is that the array being returned is not a true representation of the data on the LDAP server, and has extra values that are. not really needed, and should probably only be returned when they are requested.
Is there anyway to get a array withonly the ldap data, i.e. no extra info?
Thanks,
Stewart
attached mail follows:
Hello,
For some reason the following line is not behaving
$os = eregi_replace( "Win[^dows]", "Windows ", $os );
this should take any form of Win9x (or WinNT, or Win2k, etc) & convert it so it shows Windows 9x (or Windows NT, or... you get the picture). After running "Win98" through the above eregi_replace I end up with "Windows 8". Same problem with any of the other strings.
What's my problem??
Patrick Teague
attached mail follows:
Patrick Teague wrote:
>For some reason the following line is not behaving > >$os = eregi_replace( "Win[^dows]", "Windows ", $os ); >
I'm pretty sure (I'm not a regular expression expert) this matches "a string that begins with Win followed by a character that is not d, o, w, or s.
Thus, in the case of Win98, it replaces "Win9" with "Windows " and leaves the 8 alone.
Happy hacking.
Chris
attached mail follows:
On Tue, Jul 09, 2002 at 10:40:33PM -0500, Chris Shiflett wrote: > Patrick Teague wrote: > > >$os = eregi_replace( "Win[^dows]", "Windows ", $os ); > > I'm pretty sure (I'm not a regular expression expert) this matches "a > string that begins with Win followed by a character that is not d, o, w, > or s.
Exactly.
To get the behavior I think you want, do this:
$os = eregi_replace('(Windows|Win)', 'Windows ', $os);
The order of the pattern matches "Windows" before "Win" so if the input is "Windows" you won't wind up with "Win Windows"
--Dan
--
PHP classes that make web design easier
SQL Solution | Layout Solution | Form Solution
sqlsolution.info | layoutsolution.info | formsolution.info
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409
attached mail follows:
In a weak attempt at improving my knowledge of regular expressions, I came up with a less elegant solution than Dan's. :-)
$os=eregi_replace("Win([^0-9NT]*)", "Windows \1" $os);
This adds some additional handy replacements, such as:
Winblows98 -> Windows 98 Windoze98 -> Windows 98
It's a decent (well, so maybe not) example of using a replacement string, which I've always thought was neat.
Happy hacking.
Chris
Analysis & Solutions wrote:
> $os = eregi_replace('(Windows|Win)', 'Windows ', $os); >
attached mail follows:
Can someone tell me what the following error means, and how to fix it...please?
Parse error: parse error, unexpected T_STRING in c:\program files\apache group\apache\htdocs\phpbb\language\lang_english\lang_main.php on line 629
this is the code on that page:
$lang['Avatar_filesize'] = 'The avatar image file size must be less than %d kB'; // The avatar image file size must be less than 6 kB
(than 6 kB < this part of that line is on the next line down)
<*** http://www.myispnet.net ***>
Administrator
My ISP Network
admin
myispnet.net
<*** http://www.myispcentral.net ***>
attached mail follows:
wot's the few lines before it ? just because it says that line doesn't always mean it is that line ... and have found quite often it's the line above it...
> -----Original Message-----
> From: admin [mailto:kompukit
naisp.net]
> Sent: Wednesday, 10 July 2002 1:32 PM
> To: PHP List
> Subject: [PHP] T_string error
>
>
> Can someone tell me what the following error means,
> and how to fix it...please?
>
> Parse error:
> parse error, unexpected T_STRING in
> c:\program files\apache
> group\apache\htdocs\phpbb\language\lang_english\lang_main.php
> on line 629
>
> this is the code on that page:
>
> $lang['Avatar_filesize'] = 'The avatar image file size must be
> less than %d
> kB'; // The avatar image file size must be less than 6 kB
>
> (than 6 kB < this part of that line is on the next line down)
>
> <*** http://www.myispnet.net ***>
> Administrator
> My ISP Network
> admin
myispnet.net
> <*** http://www.myispcentral.net ***>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
You may want to try posting it at http://www.phpbb.com/phpBB/viewforum.php?f=1 since it really is something phpBB specific.
-------------- Cheers, Adam Alkins http://www.rasadam.com --------------
----- Original Message -----
From: "Peter" <php
vfsa.com.au>
To: <admin
myispnet.net>; "PHP List" <php-general
lists.php.net>
Sent: Tuesday, July 09, 2002 11:41 PM
Subject: RE: [PHP] T_string error
> wot's the few lines before it ? just because it says that line doesn't
always mean it is that line ... and have found quite often it's the line
above it...
>
> > -----Original Message-----
> > From: admin [mailto:kompukit
naisp.net]
> > Sent: Wednesday, 10 July 2002 1:32 PM
> > To: PHP List
> > Subject: [PHP] T_string error
> >
> >
> > Can someone tell me what the following error means,
> > and how to fix it...please?
> >
> > Parse error:
> > parse error, unexpected T_STRING in
> > c:\program files\apache
> > group\apache\htdocs\phpbb\language\lang_english\lang_main.php
> > on line 629
> >
> > this is the code on that page:
> >
> > $lang['Avatar_filesize'] = 'The avatar image file size must be
> > less than %d
> > kB'; // The avatar image file size must be less than 6 kB
> >
> > (than 6 kB < this part of that line is on the next line down)
> >
> > <*** http://www.myispnet.net ***>
> > Administrator
> > My ISP Network
> > admin
myispnet.net
> > <*** http://www.myispcentral.net ***>
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
attached mail follows:
Glory!
Im creating a .php file that will be uploading & putting in data from a .csv file into mySQL Tables on the server. However, my problem is that if there is any kind of a problem during the transaction, i.e, system shut down, electricity problem, or any reason why the transaction is interrupted, i would like the transaction to roll back.. that is, all the records entered before the interruption SHOULD NOT remain in the database, they should get deleted or something, so that the transaction can begin Fresh from next time.
How can i make such a function that will see this happens, in my PHP/mySQL.
Thanks, T. Edison Jr.
__________________________________________________ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com
attached mail follows:
What about uploading the new data to a temporary table... once you're assured that every thing was completed, you can delete the old and rename the new to suit...
Simular thing could be done with copying the existing table, etc.
Justin French
on 10/07/02 3:07 PM, Thomas Edison Jr. (thomasedisonjr
yahoo.com) wrote:
> Im creating a .php file that will be uploading & > putting in data from a .csv file into mySQL Tables on > the server. However, my problem is that if there is > any kind of a problem during the transaction, i.e, > system shut down, electricity problem, or any reason > why the transaction is interrupted, i would like the > transaction to roll back.. that is, all the records > entered before the interruption SHOULD NOT remain in > the database, they should get deleted or something, so > that the transaction can begin Fresh from next time. > > How can i make such a function that will see this > happens, in my PHP/mySQL.
attached mail follows:
On 9 Jul 2002 at 22:07, Thomas Edison Jr. wrote:
> why the transaction is interrupted, i would like the > transaction to roll back.. that is, all the records > entered before the interruption SHOULD NOT remain in > the database, they should get deleted or something, so > that the transaction can begin Fresh from next time. > > How can i make such a function that will see this > happens, in my PHP/mySQL.
Well be sure that your MySQL supports transactions. InnoDB or something. In perl it's just a case of eval {sql here} if($
) {rollback}else commit, the $
is empty unless the eval created an error.
Now, let me see how PHP does this, Google, where are you?
http://www.google.com/search?sourceid=navclient&q=mysql+php+rollback
Might want to be sure your MySQL supports transactions and is configure appropriately or you can drive yourself nuts.
http://www.mysql.com/doc/I/n/InnoDB_transaction_model.html
And then some ideas about how to do it with PHP:
http://www.php.net/manual/en/ref.mysql.php
(wow, right from php.net)
http://hotwired.lycos.com/webmonkey/02/11/index4a_page3.html?tw=backend
I've never used mysql for anything but a data store so I have no examples myself.
Peter
attached mail follows:
Glory,
I use phpMyAdmin which enables me to take dump of mySQL Table Data into Comma Seperated Values file (.csv)
Now, i have to create such a program that accomplishes this, without using phpMyAdmin. Can someone guide me to this procedure..
Thanks, T. Edison Jr.
__________________________________________________ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com
attached mail follows:
Glory,
> Attach a javascript event to the submit button
Something like :
<input type="submit" name="go" onSubmit=wow();>
Wherein wow() defines a the window.open function?
> and also attach the form values to the url. How do i do this? Because the 3 or 4 form fields i have, which are Hidden Fields, contain values coming in from $myrow[stuff], that is, coming in from a Database Table. How do i define these values up in the Javascript function in the <head> of the file?
Thanks, T. Edison Jr.
__________________________________________________ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com
attached mail follows:
Hello,
I want to add a set of values to the session variable $BOOKS. This is the code which I used.
if($BOOKS=="") { #this seems to be the first book which the user has selected $BOOKS = $bookid; #this param comes from the URL } else { $BOOKS = $BOOKS+","+$bookid; }
Here the 'if..' part gets executed, and because of that I cannot add details of another book. I have initialised the session and added the registered the value "BOOKS" in the previous page.
Thanks in advance, Sachin.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]