OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: php-general-digest-helplists.php.net
Date: Fri Jul 06 2001 - 11:35:22 CDT

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    php-general Digest 6 Jul 2001 16:35:22 -0000 Issue 739

    Topics (messages 56441 through 56519):

    Re: mail() and command line headers
            56441 by: Don Read

    Re: changing to a different file in browser
            56442 by: Brad Wright
            56444 by: Brian White
            56445 by: Brad Wright

    Re: testing
            56443 by: John Monfort
            56447 by: Don Read
            56448 by: Chris \"TunkeyMicket\" Watford
            56449 by: Chris Anderson
            56452 by: ReDucTor
            56453 by: Chris \"TunkeyMicket\" Watford
            56456 by: ReDucTor

    Bibliography & Profiles Directory - Looking for Existing GPL Apps
            56446 by: Mike Gifford
            56450 by: Chris Anderson
            56491 by: Mike Gifford
            56511 by: Chris Anderson

    Very urgent!!!
            56451 by: Duy B
            56478 by: Sebastian Stadtlich

    PHP 4.0.6 and Apache 1.3.6 ?
            56454 by: Micha Ober

    Browser Detection. Need a perfect one.
            56455 by: Maxim Maletsky
            56460 by: Adrian Ciutureanu
            56494 by: Kurt Lieber
            56515 by: PHPBeginner.com

    Re: $phpvar = javascriptvar???
            56457 by: Adrian Ciutureanu

    when to delete a temporary file ?
            56458 by: Arash Dejkam

    Re: Executing after certain time
            56459 by: AJDIN BRANDIC

    Number of the line ?
            56461 by: Emmanuel FAIVRE
            56462 by: Micha Ober
            56463 by: ReDucTor
            56465 by: Marc van Duivenvoorde
            56467 by: Christian Reiniger
            56477 by: Alexander Wagner

    Re: Socket Madness !!!!
            56464 by: Steve Brett

    Re: where can I find a good documentation on regular expressions?
            56466 by: Christian Reiniger
            56471 by: Tom Carter

    Single quote
            56468 by: Andy
            56469 by: Steve Brett
            56470 by: Alexander Deruwe

    Convert MP3s using PHP ?
            56472 by: Micha Ober
            56488 by: Michel 'ZioBudda' Morelli
            56489 by: Tom Carter

    confirm subscribe to php-generallists.php.net
            56473 by: tcboss
            56475 by: ReDucTor

    Re: Oracle Database keeps disconnecting - or something
            56474 by: Thies C. Arntzen

    Binding PHP Arrays to Oracle Arrays in OCI library - can you do it?
            56476 by: Neil Kimber
            56479 by: Thies C. Arntzen

    get a screen resolution
            56480 by: Marc van Duivenvoorde
            56481 by: Nick Davies
            56482 by: Marc van Duivenvoorde
            56484 by: Tom Carter
            56485 by: Justin Farnsworth
            56486 by: SED

    Exec and Session
            56483 by: Martin Harm

    Re: checking if checkbox is checked
            56487 by: Michel 'ZioBudda' Morelli
            56495 by: George Whiffen

    Fatal error: Internal Zend error
            56490 by: hennink.patrijs.max.nl

    Common security problems in PHP
            56492 by: Paul K Egell-Johnsen

    -help
            56493 by: Peter Mead
            56498 by: Chris Anderson

    Re: javascript var on a php var...
            56496 by: George Whiffen

    Re: Batch job in UNIX.
            56497 by: George Whiffen

    new lines in text fields
            56499 by: Mat Marlow
            56502 by: rick

    Question
            56500 by: James W Greene
            56501 by: Tyler Longren
            56503 by: Clayton Dukes

    Performance: functions vs includes?
            56504 by: Chris Lott

    Re : Recommendation for - FREE Yellow Page entry
            56505 by: data_center.only-yellow-pages.com

    functions?
            56506 by: zerosumzero.yahoo.com
            56508 by: rick
            56517 by: zerosumzero.yahoo.com

    Re: Cookie Strange Problem
            56507 by: Felipe Moreno

    Re: FEDEx API's
            56509 by: Daniel Guerrier
            56510 by: Daniel Guerrier

    addslashes problem ..
            56512 by: Chad Day

    Re: upgrading to gd2.0.1
            56513 by: Andrew Chase

    remote files on IIS
            56514 by: Dieter Stolpmann

    Re: mysql fun! JOIN me ...
            56516 by: Jason Ward

    Re: Interpreting PHP in dynamic generated web-pages
            56518 by: Dieter Stolpmann

    hey, got a question....
            56519 by: ReDucTor

    Administrivia:

    To subscribe to the digest, e-mail:
            php-general-digest-subscribelists.php.net

    To unsubscribe from the digest, e-mail:
            php-general-digest-unsubscribelists.php.net

    To post to the list, e-mail:
            php-generallists.php.net

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

    attached mail follows:


    On 05-Jul-01 Eric Wood wrote:
    > I can easliy add addional email header using the php mail() function. Does
    > 'mail' or 'sendmail' have this same ability to add email headers from the
    > command line?

    man sendmail

    Pay attention to options '-ba' & '-t'

    Regards,

    -- 
    Don Read                                       dreadtexas.net
    -- It's always darkest before the dawn. So if you are going to 
       steal the neighbor's newspaper, that's the time to do it.
    

    attached mail follows:


    i'm not sure which file you meant but i took out all whityespace , hence:

    login.php: *********************************** <?PHP session_start();?> <?PHP // Connect to the database $db = mysql_connect("localhost", "user", "pass"); if( !$db ) die ("Couldnt connect to server, try again soon.."); // Select Database mysql_select_db("LoginDB", $db) or die ("Couldn't connect to database"); // Query Database table $query = "select * from Admin_Login_TB where teamLogin = '$teamLogin' && teamPass = '$teamPass' " ; $result = mysql_query($query,$db); // LIst the matching row values list ($teamLogin, $teamPass, $teamNo)=mysql_fetch_row($result); // Test to see if a match was found // If not: the die // if match found then continue if (!mysql_numrows($result) ) { die ( "username/password not valid"); } else{ header("Location: adminMenu.php"); exit; } ?> *******************************************

    menu.php: ****************************************** <?PHP session_start();?> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="blue"> </body> </html> ******************************************

    I still get the same error......

    any ideas???

    cheers, brad > From: Brian White <bwhitesteptwo.com.au> > Date: Fri, 06 Jul 2001 13:59:45 +1000 > To: Brad Wright <bradwrightoptushome.com.au>, PHP General List > <php-generallists.php.net> > Subject: Re: [PHP] Re: changing to a different file in browser > > At 13:36 6/07/2001 +1000, Brad Wright wrote: >> I'm sure there is something REALLY simple Im missing here.... below is the >> ... > > OK. I think your problem is here. Between the first "?>" and the second > "<?PHP" > is a piece of white-space. This is treated by PHP as text, which triggers it > to > send the headers, before sending off the encountered text. > > Try making removing them and see what happens. > >> login.php: >> <?PHP >> session_start(); >> ?> >> <?PHP >> >> // Connect to the database >> $db = mysql_connect("localhost", "user", "pass"); >> if( !$db ) die ("Couldnt connect to server, try again soon. "); >> >> // Select Database >> >> mysql_select_db("LoginDB", $db) or die ("Couldn't connect to the database, >> sorry."); >> >> // Query Database table >> $query = "select * from Admin_Login_TB where teamLogin = '$teamLogin' && >> teamPass = '$teamPass' " ; >> $result = mysql_query($query,$db); >> >> // LIst the matching row values >> list ($teamLogin, $teamPass, $teamNo)=mysql_fetch_row($result); >> >> >> >> >> // Test to see if a match was found >> // If not: then die >> // if match found then continue >> >> if (!mysql_numrows($result) ) { >> die ( "username/password not valid"); >> } >> else{ >> header("Location: menu.php"); >> exit; } >> ?> >> >> >> ***************************************** >> >> menu.php >> <?PHP session_start(); >> ?> >> test >> **************************************** >> >> I hope you can see a glareingly obvious problem that i can't >> >> Cheers, >> Brad >> >>> From: "..s.c.o.t.t.." <scottfurt.com> >>> Date: Thu, 5 Jul 2001 23:13:09 -0700 >>> To: "Php-General" <php-generallists.php.net> >>> Subject: RE: [PHP] Re: changing to a different file in browser >>> >>> even a blank line at the end of a file that you're >>> include()ing will break header. >>> >>> you could use output buffering, but i dont think >>> you really want to go to all that trouble for a simple >>> redirect :) >>> >>>> -----Original Message----- >>>> From: Chris Anderson [mailto:chrisdersonameritech.net] >>>> Sent: Thursday, July 05, 2001 19:47 >>>> To: Brad Wright; PHP General List >>>> Subject: Re: [PHP] Re: changing to a different file in browser >>>> >>>> >>>> If you use Header after ANY page output, even a space, it will not work >>>> ----- Original Message ----- >>>> From: "Brad Wright" <bradwrightoptushome.com.au> >>>> To: "PHP General List" <php-generallists.php.net> >>>> Sent: Thursday, July 05, 2001 10:25 PM >>>> Subject: Re: [PHP] Re: changing to a different file in browser >>>> >>>> >>>> tried it, but it didn't work... still getting the same message in IE. Am I >>>> missing something? Can I actually use the headr() function to redirect >> to a >>>> different page while using sesions and session variables?? >>>> >>>>> From: "..s.c.o.t.t.." <scottfurt.com> >>>>> Date: Thu, 5 Jul 2001 22:32:22 -0700 >>>>> To: "Php-General" <php-generallists.php.net> >>>>> Subject: RE: [PHP] Re: changing to a different file in browser >>>>> >>>>> put "Location" before the URL: >>>>> >>>>> header("Location: http://server.com/file.php"); >>>>> or >>>>> header("Location: ./file.php"); >>>>> >>>>> >>>>>> -----Original Message----- >>>>>> From: Brad Wright [mailto:bradwrightoptushome.com.au] >>>>>> Sent: Thursday, July 05, 2001 18:54 >>>>>> To: PHP General List >>>>>> Subject: Re: [PHP] Re: changing to a different file in browser >>>>>> >>>>>> >>>>>> ihave tried the header() function as Julio suggested. But I get an error >>>>>> message in the browser. I am also using session variables in all these >>>> pages >>>>>> (only 2). >>>>>> >>>>>> My code : >>>>>> if (!mysql_numrows($result) ) { >>>>>> die ( "username/password not valid"); >>>>>> } >>>>>> else{ >>>>>> >>>>>> >>>>>> header("Menu.php"); >>>>>> } >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> the error message in IE: >>>>>> Warning: Cannot add header information - headers already sent by (output >>>>>> started at /home/e-smith/files/ibays/bigpool1/html/login.php:1) in >>>>>> /home/e-smith/files/ibays/bigpool1/html/login.php on line 1 >>>>>> >>>>>> >>>>>> Thanks in advance, >>>>>> brad >>>>>> >>>>>> >>>>>>> From: "Inércia Sensorial" <inertehotmail.com> >>>>>>> Date: Thu, 5 Jul 2001 22:26:24 -0300 >>>>>>> To: php-generallists.php.net >>>>>>> Subject: [PHP] Re: changing to a different file in browser >>>>>>> >>>>>>> header ("http://www.example.com"); // Goes to example.com. >>>>>>> >>>>>>> -- >>>>>>> >>>>>>> >>>>>>> Julio Nobrega. >>>>>>> >>>>>>> A hora está chegando: >>>>>>> http://sourceforge.net/projects/toca >>>>>>> >>>>>>> "Brad Wright" <bradwrightoptushome.com.au> wrote in message >>>>>>> news:B76B4E96.384%bradwrightoptushome.com.au... >>>>>>>> Hi all, >>>>>>>> I know this is probably the most stupid question you'll see on this >>>> list >>>>>>> for >>>>>>>> a while, but anyway, >>>>>>>> In an 'if..else' statement, I want to (if a condition is met) >> change to >>>> a >>>>>>>> totally new php page in the browser window. I know this is simple (in >>>> fact >>>>>>> i >>>>>>>> had it working last night but have now forgotten how i did it). >>>>>>>> >>>>>>>> ie (no the following is NOT actual PHP....sheesh :) >>>>>>>> >>>>>>>> If a=1 >>>>>>>> go to required_page.php >>>>>>>> else >>>>>>>> do nothing >>>>>>>> >>>>>>>> Thanks in advance, >>>>>>>> Brad >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> PHP General Mailing List (http://www.php.net/) >>>>>>> To unsubscribe, e-mail: php-general-unsubscribelists.php.net >>>>>>> For additional commands, e-mail: php-general-helplists.php.net >>>>>>> To contact the list administrators, e-mail: >> php-list-adminlists.php.net >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> PHP General Mailing List (http://www.php.net/) >>>>>> To unsubscribe, e-mail: php-general-unsubscribelists.php.net >>>>>> For additional commands, e-mail: php-general-helplists.php.net >>>>>> To contact the list administrators, e-mail: php-list-adminlists.php.net >>>>>> >>>>> >>>>> >>>>> -- >>>>> PHP General Mailing List (http://www.php.net/) >>>>> To unsubscribe, e-mail: php-general-unsubscribelists.php.net >>>>> For additional commands, e-mail: php-general-helplists.php.net >>>>> To contact the list administrators, e-mail: php-list-adminlists.php.net >>>>> >>>> >>>> >>>> -- >>>> PHP General Mailing List (http://www.php.net/) >>>> To unsubscribe, e-mail: php-general-unsubscribelists.php.net >>>> For additional commands, e-mail: php-general-helplists.php.net >>>> To contact the list administrators, e-mail: php-list-adminlists.php.net >>>> >>>> >>>> >>>> >>>> -- >>>> PHP General Mailing List (http://www.php.net/) >>>> To unsubscribe, e-mail: php-general-unsubscribelists.php.net >>>> For additional commands, e-mail: php-general-helplists.php.net >>>> To contact the list administrators, e-mail: php-list-adminlists.php.net >>>> >>> >>> >>> -- >>> PHP General Mailing List (http://www.php.net/) >>> To unsubscribe, e-mail: php-general-unsubscribelists.php.net >>> For additional commands, e-mail: php-general-helplists.php.net >>> To contact the list administrators, e-mail: php-list-adminlists.php.net >>> >> >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, e-mail: php-general-unsubscribelists.php.net >> For additional commands, e-mail: php-general-helplists.php.net >> To contact the list administrators, e-mail: php-list-adminlists.php.net > > ------------------------- > Brian White > Step Two Designs Pty Ltd - SGML, XML & HTML Consultancy > Phone: +612-93197901 > Web: http://www.steptwo.com.au/ > Email: bwhitesteptwo.com.au >

    attached mail follows:


    You didn't quite get what I meant - in login.php, you have two lumps of PHP code ( lump being <?PHP ... ?> ) separated by a little bit of white space. That little bit of white-space BETWEEN the lumps is what is causing your problems.

    Reduce it down to one lump and try again.

    Ie:

    login.php: <?PHP session_start();

    // "?> ... <?PHP" removed from here

    // Connect to the database $db = mysql_connect("localhost", "user", "pass"); if( !$db ) die ("Couldnt connect to server, try again soon. ");

    ( ... remainder of login.php ...)

    At 14:20 6/07/2001 +1000, Brad Wright wrote:

    >i'm not sure which file you meant but i took out all whityespace , hence: > > >login.php: >*********************************** ><?PHP session_start();?> ><?PHP >// Connect to the database > $db = mysql_connect("localhost", "user", "pass"); > if( !$db ) die ("Couldnt connect to server, try again soon.."); >// Select Database >mysql_select_db("LoginDB", $db) or die ("Couldn't connect to database"); >// Query Database table >$query = "select * from Admin_Login_TB where teamLogin = '$teamLogin' && >teamPass = '$teamPass' " ; >$result = mysql_query($query,$db); >// LIst the matching row values >list ($teamLogin, $teamPass, $teamNo)=mysql_fetch_row($result); >// Test to see if a match was found >// If not: the die >// if match found then continue >if (!mysql_numrows($result) ) { >die ( "username/password not valid"); >} >else{ >header("Location: adminMenu.php"); >exit; } >?> >******************************************* > >menu.php: >****************************************** ><?PHP session_start();?> >****************************************** > >I still get the same error...... > > > >any ideas??? > > >cheers, >brad > > From: Brian White <bwhitesteptwo.com.au> > > Date: Fri, 06 Jul 2001 13:59:45 +1000 > > To: Brad Wright <bradwrightoptushome.com.au>, PHP General List > > <php-generallists.php.net> > > Subject: Re: [PHP] Re: changing to a different file in browser > > > > At 13:36 6/07/2001 +1000, Brad Wright wrote: > >> I'm sure there is something REALLY simple Im missing here.... below is the > >> ... > > > > OK. I think your problem is here. Between the first "?>" and the second > > "<?PHP" > > is a piece of white-space. This is treated by PHP as text, which > triggers it > > to > > send the headers, before sending off the encountered text. > > > > Try making removing them and see what happens. > > > >> login.php: > >> <?PHP > >> session_start(); > >> ?> > >> <?PHP > >> > >> // Connect to the database > >> $db = mysql_connect("localhost", "user", "pass"); > >> if( !$db ) die ("Couldnt connect to server, try again soon. "); > >> > >> // Select Database > >> > >> mysql_select_db("LoginDB", $db) or die ("Couldn't connect to the > database, > >> sorry."); > >> > >> // Query Database table > >> $query = "select * from Admin_Login_TB where teamLogin = '$teamLogin' && > >> teamPass = '$teamPass' " ; > >> $result = mysql_query($query,$db); > >> > >> // LIst the matching row values > >> list ($teamLogin, $teamPass, $teamNo)=mysql_fetch_row($result); > >> > >> > >> > >> > >> // Test to see if a match was found > >> // If not: then die > >> // if match found then continue > >> > >> if (!mysql_numrows($result) ) { > >> die ( "username/password not valid"); > >> } > >> else{ > >> header("Location: menu.php"); > >> exit; } > >> ?> > >> > >> > >> ***************************************** > >> > >> menu.php > >> <?PHP session_start(); > >> ?> > >> test > >> **************************************** > >> > >> I hope you can see a glareingly obvious problem that i can't > >> > >> Cheers, > >> Brad > >> > >>> From: "..s.c.o.t.t.." <scottfurt.com> > >>> Date: Thu, 5 Jul 2001 23:13:09 -0700 > >>> To: "Php-General" <php-generallists.php.net> > >>> Subject: RE: [PHP] Re: changing to a different file in browser > >>> > >>> even a blank line at the end of a file that you're > >>> include()ing will break header. > >>> > >>> you could use output buffering, but i dont think > >>> you really want to go to all that trouble for a simple > >>> redirect :) > >>> > >>>> -----Original Message----- > >>>> From: Chris Anderson [mailto:chrisdersonameritech.net] > >>>> Sent: Thursday, July 05, 2001 19:47 > >>>> To: Brad Wright; PHP General List > >>>> Subject: Re: [PHP] Re: changing to a different file in browser > >>>> > >>>> > >>>> If you use Header after ANY page output, even a space, it will not work > >>>> ----- Original Message ----- > >>>> From: "Brad Wright" <bradwrightoptushome.com.au> > >>>> To: "PHP General List" <php-generallists.php.net> > >>>> Sent: Thursday, July 05, 2001 10:25 PM > >>>> Subject: Re: [PHP] Re: changing to a different file in browser > >>>> > >>>> > >>>> tried it, but it didn't work... still getting the same message in > IE. Am I > >>>> missing something? Can I actually use the headr() function to redirect > >> to a > >>>> different page while using sesions and session variables?? > >>>> > >>>>> From: "..s.c.o.t.t.." <scottfurt.com> > >>>>> Date: Thu, 5 Jul 2001 22:32:22 -0700 > >>>>> To: "Php-General" <php-generallists.php.net> > >>>>> Subject: RE: [PHP] Re: changing to a different file in browser > >>>>> > >>>>> put "Location" before the URL: > >>>>> > >>>>> header("Location: http://server.com/file.php"); > >>>>> or > >>>>> header("Location: ./file.php"); > >>>>> > >>>>> > >>>>>> -----Original Message----- > >>>>>> From: Brad Wright [mailto:bradwrightoptushome.com.au] > >>>>>> Sent: Thursday, July 05, 2001 18:54 > >>>>>> To: PHP General List > >>>>>> Subject: Re: [PHP] Re: changing to a different file in browser > >>>>>> > >>>>>> > >>>>>> ihave tried the header() function as Julio suggested. But I get an > error > >>>>>> message in the browser. I am also using session variables in all these > >>>> pages > >>>>>> (only 2). > >>>>>> > >>>>>> My code : > >>>>>> if (!mysql_numrows($result) ) { > >>>>>> die ( "username/password not valid"); > >>>>>> } > >>>>>> else{ > >>>>>> > >>>>>> > >>>>>> header("Menu.php"); > >>>>>> } > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> the error message in IE: > >>>>>> Warning: Cannot add header information - headers already sent by > (output > >>>>>> started at /home/e-smith/files/ibays/bigpool1/html/login.php:1) in > >>>>>> /home/e-smith/files/ibays/bigpool1/html/login.php on line 1 > >>>>>> > >>>>>> > >>>>>> Thanks in advance, > >>>>>> brad > >>>>>> > >>>>>> > >>>>>>> From: "Inércia Sensorial" <inertehotmail.com> > >>>>>>> Date: Thu, 5 Jul 2001 22:26:24 -0300 > >>>>>>> To: php-generallists.php.net > >>>>>>> Subject: [PHP] Re: changing to a different file in browser > >>>>>>> > >>>>>>> header ("http://www.example.com"); // Goes to example.com. > >>>>>>> > >>>>>>> -- > >>>>>>> > >>>>>>> > >>>>>>> Julio Nobrega. > >>>>>>> > >>>>>>> A hora está chegando: > >>>>>>> http://sourceforge.net/projects/toca > >>>>>>> > >>>>>>> "Brad Wright" <bradwrightoptushome.com.au> wrote in message > >>>>>>> news:B76B4E96.384%bradwrightoptushome.com.au... > >>>>>>>> Hi all, > >>>>>>>> I know this is probably the most stupid question you'll see on this > >>>> list > >>>>>>> for > >>>>>>>> a while, but anyway, > >>>>>>>> In an 'if..else' statement, I want to (if a condition is met) > >> change to > >>>> a > >>>>>>>> totally new php page in the browser window. I know this is > simple (in > >>>> fact > >>>>>>> i > >>>>>>>> had it working last night but have now forgotten how i did it). > >>>>>>>> > >>>>>>>> ie (no the following is NOT actual PHP....sheesh :) > >>>>>>>> > >>>>>>>> If a=1 > >>>>>>>> go to required_page.php > >>>>>>>> else > >>>>>>>> do nothing > >>>>>>>> > >>>>>>>> Thanks in advance, > >>>>>>>> Brad > >>>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> -- > >>>>>>> PHP General Mailing List (http://www.php.net/) > >>>>>>> To unsubscribe, e-mail: php-general-unsubscribelists.php.net > >>>>>>> For additional commands, e-mail: php-general-helplists.php.net > >>>>>>> To contact the list administrators, e-mail: > >> php-list-adminlists.php.net > >>>>>>> > >>>>>> > >>>>>> > >>>>>> -- > >>>>>> PHP General Mailing List (http://www.php.net/) > >>>>>> To unsubscribe, e-mail: php-general-unsubscribelists.php.net > >>>>>> For additional commands, e-mail: php-general-helplists.php.net > >>>>>> To contact the list administrators, e-mail: > php-list-adminlists.php.net > >>>>>> > >>>>> > >>>>> > >>>>> -- > >>>>> PHP General Mailing List (http://www.php.net/) > >>>>> To unsubscribe, e-mail: php-general-unsubscribelists.php.net > >>>>> For additional commands, e-mail: php-general-helplists.php.net > >>>>> To contact the list administrators, e-mail: > php-list-adminlists.php.net > >>>>> > >>>> > >>>> > >>>> -- > >>>> PHP General Mailing List (http://www.php.net/) > >>>> To unsubscribe, e-mail: php-general-unsubscribelists.php.net > >>>> For additional commands, e-mail: php-general-helplists.php.net > >>>> To contact the list administrators, e-mail: php-list-adminlists.php.net > >>>> > >>>> > >>>> > >>>> > >>>> -- > >>>> PHP General Mailing List (http://www.php.net/) > >>>> To unsubscribe, e-mail: php-general-unsubscribelists.php.net > >>>> For additional commands, e-mail: php-general-helplists.php.net > >>>> To contact the list administrators, e-mail: php-list-adminlists.php.net > >>>> > >>> > >>> > >>> -- > >>> PHP General Mailing List (http://www.php.net/) > >>> To unsubscribe, e-mail: php-general-unsubscribelists.php.net > >>> For additional commands, e-mail: php-general-helplists.php.net > >>> To contact the list administrators, e-mail: php-list-adminlists.php.net > >>> > >> > >> > >> -- > >> PHP General Mailing List (http://www.php.net/) > >> To unsubscribe, e-mail: php-general-unsubscribelists.php.net > >> For additional commands, e-mail: php-general-helplists.php.net > >> To contact the list administrators, e-mail: php-list-adminlists.php.net > > > > ------------------------- > > Brian White > > Step Two Designs Pty Ltd - SGML, XML & HTML Consultancy > > Phone: +612-93197901 > > Web: http://www.steptwo.com.au/ > > Email: bwhitesteptwo.com.au > > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: php-general-unsubscribelists.php.net >For additional commands, e-mail: php-general-helplists.php.net >To contact the list administrators, e-mail: php-list-adminlists.php.net

    ------------------------- Brian White Step Two Designs Pty Ltd - SGML, XML & HTML Consultancy Phone: +612-93197901 Web: http://www.steptwo.com.au/ Email: bwhitesteptwo.com.au

    attached mail follows:


    Brian, Oh Brian, you wonderful person you...... thank you, i still have most of my hair ready for my next encounter with an annoying error.

    Thank you to all who helped, my weekend suddenly is looking much rosier :)

    Cheers, Brad

    > From: Brian White <bwhitesteptwo.com.au> > Date: Fri, 06 Jul 2001 14:39:05 +1000 > To: Brad Wright <bradwrightoptushome.com.au>, PHP General List > <php-generallists.php.net> > Subject: RE: [PHP] Re: changing to a different file in browser > > You didn't quite get what I meant - in login.php, you have two lumps > of PHP code ( lump being <?PHP ... ?> ) separated by a little bit of white > space. That little bit of white-space BETWEEN the lumps is what is causing > your problems. > > Reduce it down to one lump and try again. > > Ie: > > login.php: > <?PHP > session_start(); > > // "?> ... <?PHP" removed from here > > // Connect to the database > $db = mysql_connect("localhost", "user", "pass"); > if( !$db ) die ("Couldnt connect to server, try again soon. "); > > ( ... remainder of login.php ...) > > > > At 14:20 6/07/2001 +1000, Brad Wright wrote: > > >> i'm not sure which file you meant but i took out all whityespace , hence: >> >> >> login.php: >> *********************************** >> <?PHP session_start();?> >> <?PHP >> // Connect to the database >> $db = mysql_connect("localhost", "user", "pass"); >> if( !$db ) die ("Couldnt connect to server, try again soon.."); >> // Select Database >> mysql_select_db("LoginDB", $db) or die ("Couldn't connect to database"); >> // Query Database table >> $query = "select * from Admin_Login_TB where teamLogin = '$teamLogin' && >> teamPass = '$teamPass' " ; >> $result = mysql_query($query,$db); >> // LIst the matching row values >> list ($teamLogin, $teamPass, $teamNo)=mysql_fetch_row($result); >> // Test to see if a match was found >> // If not: the die >> // if match found then continue >> if (!mysql_numrows($result) ) { >> die ( "username/password not valid"); >> } >> else{ >> header("Location: adminMenu.php"); >> exit; } >> ?> >> ******************************************* >> >> menu.php: >> ****************************************** >> <?PHP session_start();?> >> ****************************************** >> >> I still get the same error...... >> >> >> >> any ideas??? >> >> >> cheers, >> brad >>> From: Brian White <bwhitesteptwo.com.au> >>> Date: Fri, 06 Jul 2001 13:59:45 +1000 >>> To: Brad Wright <bradwrightoptushome.com.au>, PHP General List >>> <php-generallists.php.net> >>> Subject: Re: [PHP] Re: changing to a different file in browser >>> >>> At 13:36 6/07/2001 +1000, Brad Wright wrote: >>>> I'm sure there is something REALLY simple Im missing here.... below is the >>>> ... >>> >>> OK. I think your problem is here. Between the first "?>" and the second >>> "<?PHP" >>> is a piece of white-space. This is treated by PHP as text, which >> triggers it >>> to >>> send the headers, before sending off the encountered text. >>> >>> Try making removing them and see what happens. >>> >>>> login.php: >>>> <?PHP >>>> session_start(); >>>> ?> >>>> <?PHP >>>> >>>> // Connect to the database >>>> $db = mysql_connect("localhost", "user", "pass"); >>>> if( !$db ) die ("Couldnt connect to server, try again soon. "); >>>> >>>> // Select Database >>>> >>>> mysql_select_db("LoginDB", $db) or die ("Couldn't connect to the >> database, >>>> sorry."); >>>> >>>> // Query Database table >>>> $query = "select * from Admin_Login_TB where teamLogin = '$teamLogin' && >>>> teamPass = '$teamPass' " ; >>>> $result = mysql_query($query,$db); >>>> >>>> // LIst the matching row values >>>> list ($teamLogin, $teamPass, $teamNo)=mysql_fetch_row($result); >>>> >>>> >>>> >>>> >>>> // Test to see if a match was found >>>> // If not: then die >>>> // if match found then continue >>>> >>>> if (!mysql_numrows($result) ) { >>>> die ( "username/password not valid"); >>>> } >>>> else{ >>>> header("Location: menu.php"); >>>> exit; } >>>> ?> >>>> >>>> >>>> ***************************************** >>>> >>>> menu.php >>>> <?PHP session_start(); >>>> ?> >>>> test >>>> **************************************** >>>> >>>> I hope you can see a glareingly obvious problem that i can't >>>> >>>> Cheers, >>>> Brad >>>> >>>>> From: "..s.c.o.t.t.." <scottfurt.com> >>>>> Date: Thu, 5 Jul 2001 23:13:09 -0700 >>>>> To: "Php-General" <php-generallists.php.net> >>>>> Subject: RE: [PHP] Re: changing to a different file in browser >>>>> >>>>> even a blank line at the end of a file that you're >>>>> include()ing will break header. >>>>> >>>>> you could use output buffering, but i dont think >>>>> you really want to go to all that trouble for a simple >>>>> redirect :) >>>>> >>>>>> -----Original Message----- >>>>>> From: Chris Anderson [mailto:chrisdersonameritech.net] >>>>>> Sent: Thursday, July 05, 2001 19:47 >>>>>> To: Brad Wright; PHP General List >>>>>> Subject: Re: [PHP] Re: changing to a different file in browser >>>>>> >>>>>> >>>>>> If you use Header after ANY page output, even a space, it will not work >>>>>> ----- Original Message ----- >>>>>> From: "Brad Wright" <bradwrightoptushome.com.au> >>>>>> To: "PHP General List" <php-generallists.php.net> >>>>>> Sent: Thursday, July 05, 2001 10:25 PM >>>>>> Subject: Re: [PHP] Re: changing to a different file in browser >>>>>> >>>>>> >>>>>> tried it, but it didn't work... still getting the same message in >> IE. Am I >>>>>> missing something? Can I actually use the headr() function to redirect >>>> to a >>>>>> different page while using sesions and session variables?? >>>>>> >>>>>>> From: "..s.c.o.t.t.." <scottfurt.com> >>>>>>> Date: Thu, 5 Jul 2001 22:32:22 -0700 >>>>>>> To: "Php-General" <php-generallists.php.net> >>>>>>> Subject: RE: [PHP] Re: changing to a different file in browser >>>>>>> >>>>>>> put "Location" before the URL: >>>>>>> >>>>>>> header("Location: http://server.com/file.php"); >>>>>>> or >>>>>>> header("Location: ./file.php"); >>>>>>> >>>>>>> >>>>>>>> -----Original Message----- >>>>>>>> From: Brad Wright [mailto:bradwrightoptushome.com.au] >>>>>>>> Sent: Thursday, July 05, 2001 18:54 >>>>>>>> To: PHP General List >>>>>>>> Subject: Re: [PHP] Re: changing to a different file in browser >>>>>>>> >>>>>>>> >>>>>>>> ihave tried the header() function as Julio suggested. But I get an >> error >>>>>>>> message in the browser. I am also using session variables in all these >>>>>> pages >>>>>>>> (only 2). >>>>>>>> >>>>>>>> My code : >>>>>>>> if (!mysql_numrows($result) ) { >>>>>>>> die ( "username/password not valid"); >>>>>>>> } >>>>>>>> else{ >>>>>>>> >>>>>>>> >>>>>>>> header("Menu.php"); >>>>>>>> } >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> the error message in IE: >>>>>>>> Warning: Cannot add header information - headers already sent by >> (output >>>>>>>> started at /home/e-smith/files/ibays/bigpool1/html/login.php:1) in >>>>>>>> /home/e-smith/files/ibays/bigpool1/html/login.php on line 1 >>>>>>>> >>>>>>>> >>>>>>>> Thanks in advance, >>>>>>>> brad >>>>>>>> >>>>>>>> >>>>>>>>> From: "Inércia Sensorial" <inertehotmail.com> >>>>>>>>> Date: Thu, 5 Jul 2001 22:26:24 -0300 >>>>>>>>> To: php-generallists.php.net >>>>>>>>> Subject: [PHP] Re: changing to a different file in browser >>>>>>>>> >>>>>>>>> header ("http://www.example.com"); // Goes to example.com. >>>>>>>>> >>>>>>>>> -- >>>>>>>>> >>>>>>>>> >>>>>>>>> Julio Nobrega. >>>>>>>>> >>>>>>>>> A hora está chegando: >>>>>>>>> http://sourceforge.net/projects/toca >>>>>>>>> >>>>>>>>> "Brad Wright" <bradwrightoptushome.com.au> wrote in message >>>>>>>>> news:B76B4E96.384%bradwrightoptushome.com.au... >>>>>>>>>> Hi all, >>>>>>>>>> I know this is probably the most stupid question you'll see on this >>>>>> list >>>>>>>>> for >>>>>>>>>> a while, but anyway, >>>>>>>>>> In an 'if..else' statement, I want to (if a condition is met) >>>> change to >>>>>> a >>>>>>>>>> totally new php page in the browser window. I know this is >> simple (in >>>>>> fact >>>>>>>>> i >>>>>>>>>> had it working last night but have now forgotten how i did it). >>>>>>>>>> >>>>>>>>>> ie (no the following is NOT actual PHP....sheesh :) >>>>>>>>>> >>>>>>>>>> If a=1 >>>>>>>>>> go to required_page.php >>>>>>>>>> else >>>>>>>>>> do nothing >>>>>>>>>> >>>>>>>>>> Thanks in advance, >>>>>>>>>> Brad >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> PHP General Mailing List (http://www.php.net/) >>>>>>>>> To unsubscribe, e-mail: php-general-unsubscribelists.php.net >>>>>>>>> For additional commands, e-mail: php-general-helplists.php.net >>>>>>>>> To contact the list administrators, e-mail: >>>> php-list-adminlists.php.net >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> PHP General Mailing List (http://www.php.net/) >>>>>>>> To unsubscribe, e-mail: php-general-unsubscribelists.php.net >>>>>>>> For additional commands, e-mail: php-general-helplists.php.net >>>>>>>> To contact the list administrators, e-mail: >> php-list-adminlists.php.net >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> PHP General Mailing List (http://www.php.net/) >>>>>>> To unsubscribe, e-mail: php-general-unsubscribelists.php.net >>>>>>> For additional commands, e-mail: php-general-helplists.php.net >>>>>>> To contact the list administrators, e-mail: >> php-list-adminlists.php.net >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> PHP General Mailing List (http://www.php.net/) >>>>>> To unsubscribe, e-mail: php-general-unsubscribelists.php.net >>>>>> For additional commands, e-mail: php-general-helplists.php.net >>>>>> To contact the list administrators, e-mail: php-list-adminlists.php.net >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> PHP General Mailing List (http://www.php.net/) >>>>>> To unsubscribe, e-mail: php-general-unsubscribelists.php.net >>>>>> For additional commands, e-mail: php-general-helplists.php.net >>>>>> To contact the list administrators, e-mail: php-list-adminlists.php.net >>>>>> >>>>> >>>>> >>>>> -- >>>>> PHP General Mailing List (http://www.php.net/) >>>>> To unsubscribe, e-mail: php-general-unsubscribelists.php.net >>>>> For additional commands, e-mail: php-general-helplists.php.net >>>>> To contact the list administrators, e-mail: php-list-adminlists.php.net >>>>> >>>> >>>> >>>> -- >>>> PHP General Mailing List (http://www.php.net/) >>>> To unsubscribe, e-mail: php-general-unsubscribelists.php.net >>>> For additional commands, e-mail: php-general-helplists.php.net >>>> To contact the list administrators, e-mail: php-list-adminlists.php.net >>> >>> ------------------------- >>> Brian White >>> Step Two Designs Pty Ltd - SGML, XML & HTML Consultancy >>> Phone: +612-93197901 >>> Web: http://www.steptwo.com.au/ >>> Email: bwhitesteptwo.com.au >>> >> >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, e-mail: php-general-unsubscribelists.php.net >> For additional commands, e-mail: php-general-helplists.php.net >> To contact the list administrators, e-mail: php-list-adminlists.php.net > > ------------------------- > Brian White > Step Two Designs Pty Ltd - SGML, XML & HTML Consultancy > Phone: +612-93197901 > Web: http://www.steptwo.com.au/ > Email: bwhitesteptwo.com.au > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net >

    attached mail follows:


    My map says, 'I am here'!

    On Thu, 5 Jul 2001, McShen wrote:

    > where are u guys? > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net > >

    attached mail follows:


    On 06-Jul-01 McShen wrote: > where are u guys?

    I'm sorry, I've gone insane, please leave your message and number at the tone. I will return your call as soon as i get back.

    ... BEEP!

    -- 
    Don Read                                       dreadtexas.net
    -- It's always darkest before the dawn. So if you are going to 
       steal the neighbor's newspaper, that's the time to do it.
    

    attached mail follows:


    Hi2u ReDucTor

    Chris "TunkeyMicket" Watford -------------------------------- TunkeyMicket Productions www.tunkeymicket.com

    ----- Original Message ----- From: "ReDucTor" <sjdtmvtpg.com.au> To: "McShen" <webmasterceleritieszones.com> Cc: <php-generallists.php.net> Sent: Thursday, July 05, 2001 11:13 PM Subject: Re: [PHP] testing

    > I'm on my way to Mars atm... > ----- Original Message ----- > From: McShen <webmasterceleritieszones.com> > To: <php-generallists.php.net> > Sent: Friday, July 06, 2001 1:09 PM > Subject: [PHP] testing > > > > where are u guys? > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > > For additional commands, e-mail: php-general-helplists.php.net > > To contact the list administrators, e-mail: php-list-adminlists.php.net > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net

    attached mail follows:


    You mean I'm not here? ----- Original Message ----- From: "Don Read" <dreadtexas.net> To: "McShen" <webmasterceleritieszones.com> Cc: <php-generallists.php.net> Sent: Friday, July 06, 2001 2:32 AM Subject: RE: [PHP] testing

    > > On 06-Jul-01 McShen wrote: > > where are u guys? > > I'm sorry, I've gone insane, please leave your message and number at the tone. > I will return your call as soon as i get back. > > ... BEEP! > -- > Don Read dreadtexas.net > -- It's always darkest before the dawn. So if you are going to > steal the neighbor's newspaper, that's the time to do it. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net >

    attached mail follows:


    Hey, how is micket pro going? ----- Original Message ----- From: Chris "TunkeyMicket" Watford <tunkeymicketedgenetwk.com> To: <php-generallists.php.net> Sent: Friday, July 06, 2001 4:41 PM Subject: Re: [PHP] testing

    > Hi2u ReDucTor > > Chris "TunkeyMicket" Watford > -------------------------------- > TunkeyMicket Productions > www.tunkeymicket.com > > ----- Original Message ----- > From: "ReDucTor" <sjdtmvtpg.com.au> > To: "McShen" <webmasterceleritieszones.com> > Cc: <php-generallists.php.net> > Sent: Thursday, July 05, 2001 11:13 PM > Subject: Re: [PHP] testing > > > > I'm on my way to Mars atm... > > ----- Original Message ----- > > From: McShen <webmasterceleritieszones.com> > > To: <php-generallists.php.net> > > Sent: Friday, July 06, 2001 1:09 PM > > Subject: [PHP] testing > > > > > > > where are u guys? > > > > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > > > For additional commands, e-mail: php-general-helplists.php.net > > > To contact the list administrators, e-mail: php-list-adminlists.php.net > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > > For additional commands, e-mail: php-general-helplists.php.net > > To contact the list administrators, e-mail: php-list-adminlists.php.net > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net >

    attached mail follows:


    Was 100% done, now 70% done as a hard-drive crash set me back a bit...

    Chris "TunkeyMicket" Watford -------------------------------- TunkeyMicket Productions www.tunkeymicket.com

    ----- Original Message ----- From: "ReDucTor" <sjdtmvtpg.com.au> To: "Chris "TunkeyMicket" Watford" <tunkeymicketedgenetwk.com> Cc: <php-generallists.php.net> Sent: Friday, July 06, 2001 3:10 AM Subject: Re: [PHP] testing

    > Hey, how is micket pro going? > ----- Original Message ----- > From: Chris "TunkeyMicket" Watford <tunkeymicketedgenetwk.com> > To: <php-generallists.php.net> > Sent: Friday, July 06, 2001 4:41 PM > Subject: Re: [PHP] testing > > > > Hi2u ReDucTor > > > > Chris "TunkeyMicket" Watford > > -------------------------------- > > TunkeyMicket Productions > > www.tunkeymicket.com > > > > ----- Original Message ----- > > From: "ReDucTor" <sjdtmvtpg.com.au> > > To: "McShen" <webmasterceleritieszones.com> > > Cc: <php-generallists.php.net> > > Sent: Thursday, July 05, 2001 11:13 PM > > Subject: Re: [PHP] testing > > > > > > > I'm on my way to Mars atm... > > > ----- Original Message ----- > > > From: McShen <webmasterceleritieszones.com> > > > To: <php-generallists.php.net> > > > Sent: Friday, July 06, 2001 1:09 PM > > > Subject: [PHP] testing > > > > > > > > > > where are u guys? > > > > > > > > > > > > > > > > -- > > > > PHP General Mailing List (http://www.php.net/) > > > > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > > > > For additional commands, e-mail: php-general-helplists.php.net > > > > To contact the list administrators, e-mail: > php-list-adminlists.php.net > > > > > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > > > For additional commands, e-mail: php-general-helplists.php.net > > > To contact the list administrators, e-mail: php-list-adminlists.php.net > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > > For additional commands, e-mail: php-general-helplists.php.net > > To contact the list administrators, e-mail: php-list-adminlists.php.net > >

    attached mail follows:


    Mind sending me a copy? ----- Original Message ----- From: Chris "TunkeyMicket" Watford <tunkeymicketedgenetwk.com> To: <php-generallists.php.net> Sent: Friday, July 06, 2001 5:10 PM Subject: Re: [PHP] testing

    > Was 100% done, now 70% done as a hard-drive crash set me back a bit... > > Chris "TunkeyMicket" Watford > -------------------------------- > TunkeyMicket Productions > www.tunkeymicket.com > > ----- Original Message ----- > From: "ReDucTor" <sjdtmvtpg.com.au> > To: "Chris "TunkeyMicket" Watford" <tunkeymicketedgenetwk.com> > Cc: <php-generallists.php.net> > Sent: Friday, July 06, 2001 3:10 AM > Subject: Re: [PHP] testing > > > > Hey, how is micket pro going? > > ----- Original Message ----- > > From: Chris "TunkeyMicket" Watford <tunkeymicketedgenetwk.com> > > To: <php-generallists.php.net> > > Sent: Friday, July 06, 2001 4:41 PM > > Subject: Re: [PHP] testing > > > > > > > Hi2u ReDucTor > > > > > > Chris "TunkeyMicket" Watford > > > -------------------------------- > > > TunkeyMicket Productions > > > www.tunkeymicket.com > > > > > > ----- Original Message ----- > > > From: "ReDucTor" <sjdtmvtpg.com.au> > > > To: "McShen" <webmasterceleritieszones.com> > > > Cc: <php-generallists.php.net> > > > Sent: Thursday, July 05, 2001 11:13 PM > > > Subject: Re: [PHP] testing > > > > > > > > > > I'm on my way to Mars atm... > > > > ----- Original Message ----- > > > > From: McShen <webmasterceleritieszones.com> > > > > To: <php-generallists.php.net> > > > > Sent: Friday, July 06, 2001 1:09 PM > > > > Subject: [PHP] testing > > > > > > > > > > > > > where are u guys? > > > > > > > > > > > > > > > > > > > > -- > > > > > PHP General Mailing List (http://www.php.net/) > > > > > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > > > > > For additional commands, e-mail: php-general-helplists.php.net > > > > > To contact the list administrators, e-mail: > > php-list-adminlists.php.net > > > > > > > > > > > > > > > > > -- > > > > PHP General Mailing List (http://www.php.net/) > > > > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > > > > For additional commands, e-mail: php-general-helplists.php.net > > > > To contact the list administrators, e-mail: > php-list-adminlists.php.net > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > > > For additional commands, e-mail: php-general-helplists.php.net > > > To contact the list administrators, e-mail: php-list-adminlists.php.net > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net >

    attached mail follows:


    Hello,

    I'm looking to see if someone out there has already developed a php/mysql bibilography. I haven't been able to find one online.

    I'm also looking for a profiles directory. Rather vague definition here, sorry.

    Ultimately it will be i18n compliant..

    Mike

    -- 
    Mike Gifford, OpenConcept Consulting, http://openconcept.ca
    Offering everything your organization needs for an effective web site.
    Abolish Nuclear Weapons Now!: http://pgs.ca/petition/
    It is a miracle that curiosity survives formal education. - A Einstein
    

    attached mail follows:


    "profiles"? ----- Original Message ----- From: "Mike Gifford" <mikeopenconcept.ca> To: <php-generallists.php.net> Sent: Friday, July 06, 2001 2:06 AM Subject: [PHP] Bibliography & Profiles Directory - Looking for Existing GPL Apps

    > Hello, > > I'm looking to see if someone out there has already developed a php/mysql > bibilography. I haven't been able to find one online. > > I'm also looking for a profiles directory. Rather vague definition here, sorry. > > Ultimately it will be i18n compliant.. > > Mike > -- > Mike Gifford, OpenConcept Consulting, http://openconcept.ca > Offering everything your organization needs for an effective web site. > Abolish Nuclear Weapons Now!: http://pgs.ca/petition/ > It is a miracle that curiosity survives formal education. - A Einstein > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net >

    attached mail follows:


    Sorry for being so vague in my last message.

    Let's say you want to hilight 100 people (say best atheletes, coders, what have you). You want a brief profile of this person. Name, location, languages, picture, areas of interest, etc..

    Something so that you can get a sense of who these folks are.

    Mike

    Chris Anderson wrote:

    > "profiles"? > ----- Original Message ----- > From: "Mike Gifford" <mikeopenconcept.ca> > To: <php-generallists.php.net> > Sent: Friday, July 06, 2001 2:06 AM > Subject: [PHP] Bibliography & Profiles Directory - Looking for Existing GPL > Apps > > > >>Hello, >> >>I'm looking to see if someone out there has already developed a php/mysql >>bibilography. I haven't been able to find one online. >> >>I'm also looking for a profiles directory. Rather vague definition here, >> > sorry. > >>Ultimately it will be i18n compliant.. >> >>Mike >>-- >>Mike Gifford, OpenConcept Consulting, http://openconcept.ca >>Offering everything your organization needs for an effective web site. >>Abolish Nuclear Weapons Now!: http://pgs.ca/petition/ >>It is a miracle that curiosity survives formal education. - A Einstein >> >> >>-- >>PHP General Mailing List (http://www.php.net/) >>To unsubscribe, e-mail: php-general-unsubscribelists.php.net >>For additional commands, e-mail: php-general-helplists.php.net >>To contact the list administrators, e-mail: php-list-adminlists.php.net >> >> >

    -- 
    Mike Gifford, OpenConcept Consulting, http://openconcept.ca
    Offering everything your organization needs for an effective web site.
    Abolish Nuclear Weapons Now!: http://pgs.ca/petition/
    It is a miracle that curiosity survives formal education. - A Einstein
    

    attached mail follows:


    Ahh, dunno about that at all ----- Original Message ----- From: "Mike Gifford" <mikeopenconcept.ca> To: "Chris Anderson" <chrisdersonameritech.net> Cc: <php-generallists.php.net> Sent: Friday, July 06, 2001 9:41 AM Subject: Re: [PHP] Bibliography & Profiles Directory - Looking for Existing GPL Apps

    > Sorry for being so vague in my last message. > > Let's say you want to hilight 100 people (say best atheletes, coders, what have > you). You want a brief profile of this person. Name, location, languages, > picture, areas of interest, etc.. > > Something so that you can get a sense of who these folks are. > > Mike > > Chris Anderson wrote: > > > "profiles"? > > ----- Original Message ----- > > From: "Mike Gifford" <mikeopenconcept.ca> > > To: <php-generallists.php.net> > > Sent: Friday, July 06, 2001 2:06 AM > > Subject: [PHP] Bibliography & Profiles Directory - Looking for Existing GPL > > Apps > > > > > > > >>Hello, > >> > >>I'm looking to see if someone out there has already developed a php/mysql > >>bibilography. I haven't been able to find one online. > >> > >>I'm also looking for a profiles directory. Rather vague definition here, > >> > > sorry. > > > >>Ultimately it will be i18n compliant.. > >> > >>Mike > >>-- > >>Mike Gifford, OpenConcept Consulting, http://openconcept.ca > >>Offering everything your organization needs for an effective web site. > >>Abolish Nuclear Weapons Now!: http://pgs.ca/petition/ > >>It is a miracle that curiosity survives formal education. - A Einstein > >> > >> > >>-- > >>PHP General Mailing List (http://www.php.net/) > >>To unsubscribe, e-mail: php-general-unsubscribelists.php.net > >>For additional commands, e-mail: php-general-helplists.php.net > >>To contact the list administrators, e-mail: php-list-adminlists.php.net > >> > >> > > > > > > -- > Mike Gifford, OpenConcept Consulting, http://openconcept.ca > Offering everything your organization needs for an effective web site. > Abolish Nuclear Weapons Now!: http://pgs.ca/petition/ > It is a miracle that curiosity survives formal education. - A Einstein > >

    attached mail follows:


    Dear all, Is there anybody know how to upload a file gif or jpg from a form into Oracle database? I am very keen to solve that problem. Please show me soon. Thanks you very much. Best regards, BaoDuy

    attached mail follows:


    have a look here : http://www.php.net/manual/en/function.ocinewdescriptor.php second example should answer all your questions...

    sebastian

    > -----Ursprüngliche Nachricht----- > Von: Duy B [mailto:ngo_duyfmail.vnn.vn] > Gesendet: Samstag, 9. Januar 1999 00:16 > An: php-generallists.php.net > Betreff: [PHP] Very urgent!!! > > > Dear all, > Is there anybody know how to upload a file gif or jpg from a > form into Oracle database? > I am very keen to solve that problem. Please show me soon. > Thanks you very much. > Best regards, > BaoDuy >

    attached mail follows:


    I've installed Apache 1.3.6 and PHP 4.0.6 and it works. But if I load an extension in the php.ini Apache says "abnormal program termination".

    ===== Linux... Because it works.

    __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/

    attached mail follows:


    Hi All!

    I have a very quick question:

    I need a browser/platform recognition script, function or class.

    I do know how to write one or could maybe use get_browser() func. But, has anyone created or maybe came across a "perfect" one?

    My need is simple, I just need to know the OS and BROWSER on a user's request. It should also be a resources-economic one.

    Again, I know how to make it, I'm just in search for perfection.

    Cheers, Maxim Maletsky

    attached mail follows:


    What can be more perfect than get_browser()? :) I presume that you have the BROWSCAP.ini file...

    > -----Original Message----- > From: Maxim Maletsky [mailto:maximjapaninc.com] > Sent: 6 iulie 2001 10:20 > To: php-generallists.php.net > Subject: [PHP] Browser Detection. Need a perfect one. > > > Hi All! > > I have a very quick question: > > I need a browser/platform recognition script, function or class. > > I do know how to write one or could maybe use get_browser() > func. But, has > anyone created or maybe came across a "perfect" one? > > My need is simple, I just need to know the OS and BROWSER on a user's > request. It should also be a resources-economic one. > > Again, I know how to make it, I'm just in search for perfection. > > Cheers, > Maxim Maletsky > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: > php-list-adminlists.php.net > >

    attached mail follows:


    If getBrowser() doesn't do what you're looking for, check out PHP Client Sniffer over at sourceforge. To quote:

    " A PHP class file that allows one to quickly determine the client's browser and system information based on the HTTP_USER_AGENT string. The class can be used to generate browser specific html markup and other client side scripting."

    http://sourceforge.net/projects/phpsniff/

    hth

    --kurt

    ----- Original Message ----- From: "Maxim Maletsky" <maximjapaninc.com> To: <php-generallists.php.net> Sent: Friday, July 06, 2001 12:19 AM Subject: [PHP] Browser Detection. Need a perfect one.

    > Hi All! > > I have a very quick question: > > I need a browser/platform recognition script, function or class. > > I do know how to write one or could maybe use get_browser() func. But, has > anyone created or maybe came across a "perfect" one? > > My need is simple, I just need to know the OS and BROWSER on a user's > request. It should also be a resources-economic one. > > Again, I know how to make it, I'm just in search for perfection. > > Cheers, > Maxim Maletsky > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net > >

    attached mail follows:


    Thanks Kurt.

    It is pretty much what I was looking for: a simple class easy to extend and adapt for my needs.

    Who wrote it? Any of you? Whoever it was - Great Job!

    -Maxim Maletsky

    -----Original Message----- From: Kurt Lieber [mailto:phpinternalcombustion.com] Sent: Friday, July 06, 2001 11:11 PM To: Maxim Maletsky; php-generallists.php.net Subject: Re: [PHP] Browser Detection. Need a perfect one.

    If getBrowser() doesn't do what you're looking for, check out PHP Client Sniffer over at sourceforge. To quote:

    " A PHP class file that allows one to quickly determine the client's browser and system information based on the HTTP_USER_AGENT string. The class can be used to generate browser specific html markup and other client side scripting."

    http://sourceforge.net/projects/phpsniff/

    hth

    --kurt

    ----- Original Message ----- From: "Maxim Maletsky" <maximjapaninc.com> To: <php-generallists.php.net> Sent: Friday, July 06, 2001 12:19 AM Subject: [PHP] Browser Detection. Need a perfect one.

    > Hi All! > > I have a very quick question: > > I need a browser/platform recognition script, function or class. > > I do know how to write one or could maybe use get_browser() func. But, has > anyone created or maybe came across a "perfect" one? > > My need is simple, I just need to know the OS and BROWSER on a user's > request. It should also be a resources-economic one. > > Again, I know how to make it, I'm just in search for perfection. > > Cheers, > Maxim Maletsky > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net > >

    --
    PHP General Mailing List (http://www.php.net/)
    To unsubscribe, e-mail: php-general-unsubscribelists.php.net
    For additional commands, e-mail: php-general-helplists.php.net
    To contact the list administrators, e-mail: php-list-adminlists.php.net
    

    attached mail follows:


    You probably want to make statistics for web pages. The most common way to do that is to use a PHP script that outputs an image and writes to a database some data. The code may look like this:

    /** stat.php ********************/ <? $query = "INSERT INTO stats (id, remote_host, http_user_agent, http_referer, path, query, screen) VALUES ('$tracking_id', '$REMOTE_HOST', '$HTTP_USER_AGENT', '$HTTP_REFERER', '$URI[path]', '$URI[query]', '$scr')"; $result = pg_exec($conn, $query); passthru('cat stat.png'); ?>

    /** any_file.html ***************/ <script language="JavaScript"> <!-- scr = screen.width + 'x' + screen.height; document.write('<img src="stat.php?screen=' + scr + '">'); //--> </script>

    > -----Original Message----- > From: Romeo Manzur [mailto:rmanzurisilicom.com.mx] > Sent: 5 iulie 2001 22:12 > To: php-generallists.php.net > Subject: Re: [PHP] $phpvar = javascriptvar??? > > > I want to store the value of screen.ColorDepth on a php var... > Thanks... > > Kurt Lieber wrote: > > > As the original respondent said: > > > > window.location = 'http://url?yourVar=' + yourVar; > > > > from there, parse out the URL variable and store it into a > PHP variable and > > you're good to go. > > ----- Original Message ----- > > From: "Romeo Manzur" <rmanzurisilicom.com.mx> > > To: <php-generallists.php.net> > > Sent: Thursday, July 05, 2001 11:55 AM > > Subject: [PHP] $phpvar = javascriptvar??? > > > > > what I mean is, how could I save a javascript var value > on a php var??? > > > Thanks... > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > > > For additional commands, e-mail: php-general-helplists.php.net > > > To contact the list administrators, e-mail: > php-list-adminlists.php.net > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: > php-list-adminlists.php.net > >

    attached mail follows:


    Hi,

    I've created a site where users can upload photos and specify which other users are allowed to view them using PHP session management. now I have alittle problem in the post-upload page, script creates a temporary copy of the uploaded image with a name the same as user's session ID, and puts a <img src="temp file..."> in the page for the user to view the uploaded photo and confirm it. now I don't know when to delete that temporary file ! because I don't know how long does the user's browser take to download the image. currently I delete it in the script coming up just after user clicks the confirm button, but what if the user close his/her browser before clicking the confirm button ? the file remains there for ever !! what's your suggestion ?

    Thanks Arash Dejkam

    attached mail follows:


    if you are going to use a cron job and you haven't got 'php as CGI' then use something like below and save it in your crod_daily or hourly

    #! /bin/sh wget -q -c http://my.domain/phpfile.php3 > /dev/null

    Ajdin

    On Thu, 5 Jul 2001, Marty Landman wrote:

    > At 08:41 am 7/5/01 -0700, Oliver Hotz wrote: > >Hey guys, I have a php script that generates files, and a www page that > >links to them. > > > >Is there a way to delete those files, based on a time variable ?.. > > Why not have cron kick off a script every minute that checks all candidate > files and deletes the ones that need it. You can either embed the delete > criteria within the file name or alternatively have the program which > creates the candidate files post entries to a control file which the cron > pgm reads. > > What about updating the links on the webpage though? You'll have to handle > this too unless the page is written by a program which generates links on > the fly based on candidate file availability. Like generating the links > from a read of the candidate file directory. > > Of course you'll want a very appealing 404 handler (see .htaccess for > those) because the webpage could be invoked by a visitor to the site > displaying links that are clobbered some seconds/minutes later by the cron > job. Then the visitor clicks and it ain't there. :( > > Maybe there's a better way to accomplish what you're after?? > > hth, > > Marty > > Face 2 Interface Web Solutions > Website Creation Made SIMPL(tm) > Online Demo Available > http://face2interface.com/Home/Demo.shtml > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net > >

    attached mail follows:


    Hi All,

    i'm currently writing a debugging lib in PHP and i would like to find the number of the line in my script

    when i made an

    myfile.php

    1 <?php 2 echo "i'm on line $NUMBER_LINE\n"; 3 echo "i'm on line $NUMBER_LINE\n"; 4 ?>

    would give :

    i'm on line 2 i'm on line 3

    it perhaps exists because when we have warning we see the line number

    Thanks

    Manu

    attached mail follows:


    That's easy :) Use __LINE__ ! example: 1 <? 2 echo "Current line is: ".__LINE__; 3 ?>

    --- Emmanuel FAIVRE <manumanucorp.com> wrote: > Hi All, > > i'm currently writing a debugging lib in PHP and i > would like to find > the number of the line in my script > > when i made an > > myfile.php > > 1 <?php > 2 echo "i'm on line $NUMBER_LINE\n"; > 3 echo "i'm on line $NUMBER_LINE\n"; > 4 ?> > > would give : > > i'm on line 2 > i'm on line 3 > > it perhaps exists because when we have warning we > see the line number > > Thanks > > > Manu > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: > php-general-unsubscribelists.php.net > For additional commands, e-mail: > php-general-helplists.php.net > To contact the list administrators, e-mail: > php-list-adminlists.php.net >

    ===== Linux... Because it works.

    __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/

    attached mail follows:


    get editplus at editplus.com great program, has syntax highlighting, numbers, auto complete, everything.... - James "ReDucTor" Mitchell ----- Original Message ----- From: Emmanuel FAIVRE <manumanucorp.com> To: <php-generallists.php.net> Sent: Friday, July 06, 2001 6:19 PM Subject: [PHP] Number of the line ?

    > Hi All, > > i'm currently writing a debugging lib in PHP and i would like to find > the number of the line in my script > > when i made an > > myfile.php > > 1 <?php > 2 echo "i'm on line $NUMBER_LINE\n"; > 3 echo "i'm on line $NUMBER_LINE\n"; > 4 ?> > > would give : > > i'm on line 2 > i'm on line 3 > > it perhaps exists because when we have warning we see the line number > > Thanks > > > Manu > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net >

    attached mail follows:


    You could also use phpcoder, if you're working with M$ windows.

    http://www.phpide.de

    It is freeware and currently still in development, but it's working quite fine. I use it when programming php in windows, under linux I still use Gvim.

    Marc van Duivenvoorde

    At 06:37 PM 7/6/2001 +1000, ReDucTor wrote: >get editplus at editplus.com great program, has syntax highlighting, >numbers, auto complete, everything.... > - James "ReDucTor" Mitchell >----- Original Message ----- >From: Emmanuel FAIVRE <manumanucorp.com> >To: <php-generallists.php.net> >Sent: Friday, July 06, 2001 6:19 PM >Subject: [PHP] Number of the line ? > > > > Hi All, > > > > i'm currently writing a debugging lib in PHP and i would like to find > > the number of the line in my script > > > > when i made an > > > > myfile.php > > > > 1 <?php > > 2 echo "i'm on line $NUMBER_LINE\n"; > > 3 echo "i'm on line $NUMBER_LINE\n"; > > 4 ?> > > > > would give : > > > > i'm on line 2 > > i'm on line 3 > > > > it perhaps exists because when we have warning we see the line number > > > > Thanks > > > > > > Manu > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > > For additional commands, e-mail: php-general-helplists.php.net > > To contact the list administrators, e-mail: php-list-adminlists.php.net > > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: php-general-unsubscribelists.php.net >For additional commands, e-mail: php-general-helplists.php.net >To contact the list administrators, e-mail: php-list-adminlists.php.net

    attached mail follows:


    On Friday 06 July 2001 10:19, Emmanuel FAIVRE wrote: > Hi All, > > i'm currently writing a debugging lib in PHP and i would like to find > the number of the line in my script > > when i made an > > myfile.php > > 1 <?php > 2 echo "i'm on line $NUMBER_LINE\n"; > 3 echo "i'm on line $NUMBER_LINE\n";

    echo "I'm in file " . __FILE__ . ", line " . __LINE__ . "\n";

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

    (A)bort (R)etry (P)retend this never happened ...

    attached mail follows:


    Emmanuel FAIVRE wrote: > i'm currently writing a debugging lib in PHP and i would like to find > the number of the line in my script > 1 <?php > 2 echo "i'm on line $NUMBER_LINE\n"; > 3 echo "i'm on line $NUMBER_LINE\n"; > 4 ?>

    It's __LINE__, I think.

    regards Wagner

    -- 
    "Isn't it strange? The same people who laugh at gypsy fortune tellers take 
    economists seriously."
     - Cincinnati Enquirer   
    

    attached mail follows:


    many thanks.

    i settled for fgetc and checking for a NULL (ascii 0)

    Steve

    > -----Original Message----- > From: David George [mailto:davidharksystems.com] > Sent: 05 July 2001 21:50 > To: Justin Farnsworth > Cc: php-generallists.php.net > Subject: Re: [PHP] Socket Madness !!!! > > > Justin Farnsworth wrote: > > >Steve Brett wrote: > > > >>does anyone know the ascii value for EOF ? > >> > > > >I think it is four (CTRL-D), viz: > > > >| 00 nul| 01 soh| 02 stx| 03 etx| 04 eot| 05 enq| 06 ack| 07 bel| > > > Actually EOT is not EOF. There is no such ASCII character as > EOF. It > is a condition not a character. Different functions that use an EOF > condition have different ways of indicating it. > > There are examples at: > http://www.php.net/manual/en/function.fgets.php > > Here is a link to PHP's feof function: > http://www.php.net/manual/en/function.feof.php > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: > php-list-adminlists.php.net >

    attached mail follows:


    On Thursday 05 July 2001 19:33, Mick Foster wrote: > where can I find a good documentatio on regular expressions? > I´m desperate in need of it... > > thanks for your time

    http://php.net/manual/en/pcre.pattern.syntax.php

    And if you need an intro look through phpbuilder.com.

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

    (A)bort (R)etry (P)retend this never happened ...

    attached mail follows:


    Or if yu9o *really* want to learn reg-ex's then I can highly recommed "Mastering Regular Expressions" by O'Reilly press.... starts from nothing and by the end you'll find them easy as can be

    HTH ----- Original Message ----- From: "Christian Reiniger" <creinigmayn.de> To: "Mick Foster" <mickonda.com.br>; <php-generallists.php.net> Sent: Friday, July 06, 2001 10:18 AM Subject: Re: [PHP] where can I find a good documentation on regular expressions?

    > On Thursday 05 July 2001 19:33, Mick Foster wrote: > > where can I find a good documentatio on regular expressions? > > I´m desperate in need of it... > > > > thanks for your time > > http://php.net/manual/en/pcre.pattern.syntax.php > > And if you need an intro look through phpbuilder.com. > > -- > Christian Reiniger > LGDC Webmaster (http://lgdc.sunsite.dk/) > > (A)bort (R)etry (P)retend this never happened ... > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net >

    attached mail follows:


    I got a data file containing this line: $ 1'000'000.-

    Then I read and echo this line $fp = fopen ( $sFilename,"r"); $sData = fgets ( $fp, 1000 ) )

    echo $sData

    Now what came out is $ 1\'000\'000.-

    I tried to get rid of these slashes with ereg_replace( "\\'", "'", $sData ); but I had no luck.

    Who can help? Andy.

    attached mail follows:


    string stripslashes (string str)

    Returns a string with backslashes stripped off. (\' becomes ' and so on.) Double backslashes are made into a single backslash.

    Steve

    > -----Original Message----- > From: Andy [mailto:andreas.felderfelderweb.ch] > Sent: 06 July 2001 10:29 > To: php-generallists.php.net > Subject: [PHP] Single quote > > > I got a data file containing this line: > $ 1'000'000.- > > Then I read and echo this line > $fp = fopen ( $sFilename,"r"); > $sData = fgets ( $fp, 1000 ) ) > > echo $sData > > Now what came out is > $ 1\'000\'000.- > > I tried to get rid of these slashes with > ereg_replace( "\\'", "'", $sData ); > but I had no luck. > > Who can help? > Andy. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: > php-list-adminlists.php.net >

    attached mail follows:


    On Fri, Jul 06, 2001 at 11:28:38AM +0200, Andy wrote: > I got a data file containing this line: > $ 1'000'000.- > > Then I read and echo this line > $fp = fopen ( $sFilename,"r"); > $sData = fgets ( $fp, 1000 ) ) > > echo $sData > > Now what came out is > $ 1\'000\'000.- > > I tried to get rid of these slashes with > ereg_replace( "\\'", "'", $sData ); > but I had no luck. >

    Use: stripslashes($sData); That ought to do the trick..

    ad

    attached mail follows:


    hi, is it possible to convert a mp3 file (for example 190kbps) to a mp3 file with 128kbps or less ?

    ===== Linux... Because it works.

    __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/

    attached mail follows:


    On Fri, 6 Jul 2001, Micha Ober wrote:

    >hi, >is it possible to convert a mp3 file (for example >190kbps) to a mp3 file with 128kbps or less ?

    exec() system()

    bye

    -- 
    "Cara tu dici che ami i fiori e li strappi dai campi, dici che ami i pesci e te li mangi. Cara quando dici che mi
    ami io ho paura."
    

    -- Michel <ZioBudda> Morelli michelziobudda.net

    ICQ UIN: 58351764 PR of Linux in Italy http://www.ziobudda.net http://www.linuxlab.it

    attached mail follows:


    > >hi, > >is it possible to convert a mp3 file (for example > >190kbps) to a mp3 file with 128kbps or less ? > > exec() > system()

    To expand upon that previous answer.. sort of. PHP can't, but if you can find a command line utility to perform the conversion (sorry, I don't know any of hand) then PHP can save the file to the syatem, run the utility by exec() and then read in the resulting file.

    HTH

    attached mail follows:


    Hi! This is the ezmlm program. I'm managing the php-generallists.php.net mailing list.

    I'm working for my owner, who can be reached at php-general-ownerlists.php.net.

    To confirm that you would like

    tcboss163.com

    added to the php-general mailing list, please send an empty reply to this address:

    php-general-sc.994316341.jpmcilpgeljljhehneed-tcboss=163.comlists.php.net

    Usually, this happens when you just hit the "reply" button. If this does not work, simply copy the address and paste it into the "To:" field of a new message.

    or click here: mailto:php-general-sc.994316341.jpmcilpgeljljhehneed-tcboss=163.comlists.php.net

    This confirmation serves two purposes. First, it verifies that I am able to get mail through to you. Second, it protects you in case someone forges a subscription request in your name.

    Some mail programs are broken and cannot handle long addresses. If you cannot reply to this request, instead send a message to <php-general-requestlists.php.net> and put the entire address listed above into the "Subject:" line.

    --- Administrative commands for the php-general list ---

    I can handle administrative requests automatically. Please do not send them to the list address! Instead, send your message to the correct command address:

    To subscribe to the list, send a message to: <php-general-subscribelists.php.net>

    To remove your address from the list, send a message to: <php-general-unsubscribelists.php.net>

    Send mail to the following for info and FAQ for this list: <php-general-infolists.php.net> <php-general-faqlists.php.net>

    Similar addresses exist for the digest list: <php-general-digest-subscribelists.php.net> <php-general-digest-unsubscribelists.php.net>

    To get messages 123 through 145 (a maximum of 100 per request), mail: <php-general-get.123_145lists.php.net>

    To get an index with subject and author for messages 123-456 , mail: <php-general-index.123_456lists.php.net>

    They are always returned as sets of 100, max 2000 per request, so you'll actually get 100-499.

    To receive all messages with the same subject as message 12345, send an empty message to: <php-general-thread.12345lists.php.net>

    The messages do not really need to be empty, but I will ignore their content. Only the ADDRESS you send to is important.

    You can start a subscription for an alternate address, for example "johnhost.domain", just add a hyphen and your address (with '=' instead of '') after the command word: <php-general-subscribe-john=host.domainlists.php.net>

    To stop subscription for this address, mail: <php-general-unsubscribe-john=host.domainlists.php.net>

    In both cases, I'll send a confirmation message to that address. When you receive it, simply reply to it to complete your subscription.

    If despite following these instructions, you do not get the desired results, please contact my owner at php-general-ownerlists.php.net. Please be patient, my owner is a lot slower than I am ;-)

    --- Enclosed is a copy of the request I received.

    Return-Path: <rootphp2.chek.com> Received: (qmail 22894 invoked from network); 5 Jul 2001 06:59:00 -0000 Received: from unknown (HELO php2.chek.com) (208.247.106.187) by pb1.pair.com with SMTP; 5 Jul 2001 06:59:00 -0000 Received: (qmail 30790 invoked by uid 99); 5 Jul 2001 06:56:08 -0000 Date: 5 Jul 2001 06:56:08 -0000 Message-ID: <20010705065608.30789.qmailphp2.chek.com> To: php-general-subscribe-tcboss=163.comlists.php.net Subject: Website Subscription From: tcboss163.com

    This was a request generated from the form at http://www.php.net/support.php.

    attached mail follows:


    Really? :) hehehe ----- Original Message ----- From: tcboss <tcboss163.com> To: <php-generallists.php.net> Sent: Friday, July 06, 2001 8:00 PM Subject: [PHP] confirm subscribe to php-generallists.php.net

    > Hi! This is the ezmlm program. I'm managing the > php-generallists.php.net mailing list. > > I'm working for my owner, who can be reached > at php-general-ownerlists.php.net. > > To confirm that you would like > > tcboss163.com > > added to the php-general mailing list, please send > an empty reply to this address: > > php-general-sc.994316341.jpmcilpgeljljhehneed-tcboss=163.comlists.php.net > > Usually, this happens when you just hit the "reply" button. > If this does not work, simply copy the address and paste it into > the "To:" field of a new message. > > or click here: > mailto:php-general-sc.994316341.jpmcilpgeljljhehneed-tcboss=163.comlists.ph p.net > > This confirmation serves two purposes. First, it verifies that I am able > to get mail through to you. Second, it protects you in case someone > forges a subscription request in your name. > > Some mail programs are broken and cannot handle long addresses. If you > cannot reply to this request, instead send a message to > <php-general-requestlists.php.net> and put the > entire address listed above into the "Subject:" line. > > > --- Administrative commands for the php-general list --- > > I can handle administrative requests automatically. Please > do not send them to the list address! Instead, send > your message to the correct command address: > > To subscribe to the list, send a message to: > <php-general-subscribelists.php.net> > > To remove your address from the list, send a message to: > <php-general-unsubscribelists.php.net> > > Send mail to the following for info and FAQ for this list: > <php-general-infolists.php.net> > <php-general-faqlists.php.net> > > Similar addresses exist for the digest list: > <php-general-digest-subscribelists.php.net> > <php-general-digest-unsubscribelists.php.net> > > To get messages 123 through 145 (a maximum of 100 per request), mail: > <php-general-get.123_145lists.php.net> > > To get an index with subject and author for messages 123-456 , mail: > <php-general-index.123_456lists.php.net> > > They are always returned as sets of 100, max 2000 per request, > so you'll actually get 100-499. > > To receive all messages with the same subject as message 12345, > send an empty message to: > <php-general-thread.12345lists.php.net> > > The messages do not really need to be empty, but I will ignore > their content. Only the ADDRESS you send to is important. > > You can start a subscription for an alternate address, > for example "johnhost.domain", just add a hyphen and your > address (with '=' instead of '') after the command word: > <php-general-subscribe-john=host.domainlists.php.net> > > To stop subscription for this address, mail: > <php-general-unsubscribe-john=host.domainlists.php.net> > > In both cases, I'll send a confirmation message to that address. When > you receive it, simply repl