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: Sat Mar 17 2001 - 20:35:17 CST

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

    php-general Digest 18 Mar 2001 02:35:17 -0000 Issue 573

    Topics (messages 44389 through 44421):

    Re: How no-cache some object?
            44389 by: Boaz Yahav

    Re: Classes and Object Oriented Programming
            44390 by: Derek Sivers

    Re: header:(location) error
            44391 by: Stas Newdel
            44393 by: Data Driven Design
            44394 by: Brett

    Re: Headers
            44392 by: Clayton Dukes

    Form problem...
            44395 by: Good Fella
            44400 by: rm

    submit button
            44396 by: george
            44405 by: Richard

    Re: Can you recommend an ISP with the following?
            44397 by: Robert Morse

    mySQL - Swap data in a field between two rows
            44398 by: Vincent P. Cocciolone
            44403 by: Gary Huntress

    URL parsing
            44399 by: Dave Smith

    urlencode
            44401 by: rkirk.com Mail
            44402 by: John Lim
            44406 by: rkirk.com Mail

    Re: avoiding redirect
            44404 by: John Lim

    Re: JDBC? Was: [PHP] Hello! PHP
            44407 by: Julian Wood
            44408 by: andrew
            44410 by: Julian Wood

    include() suggestion
            44409 by: Steve Wardell
            44414 by: Don Read
            44415 by: Steve Wardell
            44416 by: Don Read

    form post without pathinfo
            44411 by: Clayton Dukes

    Re: Executing a string with both html and php inside it..
            44412 by: Aviv Revach

    Combining Perl and PHP
            44413 by: Matthew Hanna

    Anyone good with Java??
            44417 by: Chris Anderson

    how do i get a variable type?
            44418 by: phpman
            44420 by: Don Read

    Oracle + PHP + RH 6.2 (and 7.0)
            44419 by: Robert Mena

    Cant configure php4 from within shell script
            44421 by: Scott Brown

    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:


    Hi

    Check out :

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

    Sincerely

          berber

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

    -----Original Message-----
    From: Brett [mailto:brettjnewman.net]
    Sent: Saturday, March 17, 2001 4:33 PM
    To: PHP
    Subject: Re: [PHP] How no-cache some object?

    > Hello, this probably no related to PHP, but I don't know where to ask.
    >
    > When retrieving and updating images from MySql record, I noticed Netscape
    sometimes fooled by cache values, then it won't show correct image but
    previous image instead.
    >
    > How can say to browsers 'hey, please don't cache this <img src....>
    statement"?
    > Note inside src there is PHP program <img src="show.php?image=....>
    >
    > I read entire chapter 14.9 "cache control" from http doc but didn't
    understand .
    >
    > Thanks
    >
    > Mig

    Hello,

    Do a search for no cache in the archives or on google. I don't recall the
    exact code, but it has been covered a lot in this list.

    Brett

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


    >Is there a good tutorial on Classes?

    http://www.zend.com/zend/tut/class-intro.php

    That's a really good one.

    attached mail follows:


    Brett, I only have conditional logic above my header() call... this page is processing form input and does a redirect based on the result? Will this not work?

    Thank you

    brettjnewman.net ("Brett") wrote in <02b401c0aea2$34676460$e1214ed8bcnu>:

    > >> I am receiving the following error from my app, and I'd be gratefull if >> somebody would point out the usual cause of it. I am doing a redirect >> based on a form validation routine. Thank you. >> >> Warning: Cannot add header information - headers already sent in >> /usr/home/stas/html/cathedral/scripts/act_save_resume.php on line 175 > >Make sure you have no whitespace above your <? ?> tags. If any output is >sent to the browser then you can not add a header, session, cookie. > >Brett > >

    attached mail follows:


    Do you have any white space outside of your <?php ?> tags? That is considered as output by the parser.

    ----- Original Message ----- From: Stas Newdel <stan_newdelhotmail.com> To: <php-generallists.php.net> Sent: Saturday, March 17, 2001 6:56 AM Subject: Re: [PHP] header:(location) error

    > Brett, I only have conditional logic above my header() call... this page is > processing form input and does a redirect based on the result? Will this not > work? > > Thank you > > > > brettjnewman.net ("Brett") wrote in <02b401c0aea2$34676460$e1214ed8bcnu>: > > > > >> I am receiving the following error from my app, and I'd be gratefull if > >> somebody would point out the usual cause of it. I am doing a redirect > >> based on a form validation routine. Thank you. > >> > >> Warning: Cannot add header information - headers already sent in > >> /usr/home/stas/html/cathedral/scripts/act_save_resume.php on line 175 > > > >Make sure you have no whitespace above your <? ?> tags. If any output is > >sent to the browser then you can not add a header, session, cookie. > > > >Brett > > > > > > > -- > 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:


    > Brett, I only have conditional logic above my header() call... this page is > processing form input and does a redirect based on the result? Will this not > work? >

    If there is a single empty line above your first <? tag then that will cause the error. If you post yor code it will be more helpful to understand.

    Brett

    attached mail follows:


    Thanks :-)

    Clayton Dukes

    ----- Original Message ----- From: "Brett" <brettjnewman.net> To: "PHP" <php-generallists.php.net> Sent: Saturday, March 17, 2001 9:17 AM Subject: Re: [PHP] Headers

    > > How do I do something like: > > if headers_sent=false > > include header.inc > > > > if (headers_sent() == false)include 'header.inc'; > > be sure and check the manual to make sure that "header_sent()" is the > correct format. > > Brett > > > -- > 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 am currently having problems with my PHP form I have made. The form is working fine, and does everything I want it to, except for one minor problem that only I can see.

    The output to the user is fine, but when I recieve the contents of the users data from the form, and they have things like quotation marks, it appears in the text.

    For example, if they wrote; "it's"

    It is outputted as: "it/'s" in my email.

    How do I get rid of this? I have tried several things stripslashes, addslashes, htmlspecialchars etc... But I'm not quite sure how to go about it. Any help would be appreciated.

    Thanks,

    Regards,

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

    attached mail follows:


    stripslashes should work in most cases, something like

    $text=stripslashes($text); before it goes to email

    rm

    __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/

    attached mail follows:


    IS there a way of making sure that a submit button cant be pressed twice.I am using a form to send an email and dont want two emails showing up.

    TIA

    george

    attached mail follows:


    You will have to use JavaScript.

    Use the following: document.poster.action.disabled=true; // Disable Submit & Preview button

    Or, if you aren't having it within a form, put the javascript in the end of the page and write:

    document.btnSend.disabled=true;

    Note that the first code disables ALL "action" buttons...

    - Richard

    ""george"" <chiefmonkeywisemonkeydesign.co.uk> wrote in message news:99029b$78h$1toye.p.sourceforge.net... > IS there a way of making sure that a submit button cant be pressed twice.I > am using a form to send an email and dont want two emails showing up. > > TIA > > george > > > > > -- > 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've started using javapie.com. Weird name and terrible site design. But they are cheap and provide all you're asking for below.

    Their tech support is responsive. They have always responded within a day. You have to send the a picture id to get ssh access.

    >I'm looking to move from an old Web host (stormweb.net) that has >entirely stopped responding to customer support emails. I liked what >they had to offer, before they became unresponsive, so I'm looking for >a similar ISP with: > >*PHP4 >*MySQL >*Telnet access >*Decent Support >*Preferably a Cobalt server (or one with a VERY good Web-based >administrator, most other types of Web administrators I've seen have >been clunky and a PITA) >*Pretty Cheap

    attached mail follows:


    There must be an easy way, but it escapes me.

    How can I switch the data in a feild of one row with the data in that field of another row?

    example: row: id=1 fname=John lname=Doe row: id=2 fname=Mary lname=Poppins to: row: id=2 fname=John lname=Doe row: id=1 fname=Mary lname=Poppins Thanks...

    attached mail follows:


    I don't mean to be argumentative, but why would you need to do this? A key field is usually intended to uniquely identify a row and nothing more, the actual value of the key (whether the id is 1 or 2) *should* be immaterial.

    I'm probably over simplifying this, but are you sure you really need to do this?

    Regards,

    Gary H. ""Vincent P. Cocciolone"" <VinceQuatraMedia.com> wrote in message news:001001c0aeff$ce098dc0$eafe8318mw.mediaone.net... > There must be an easy way, but it escapes me. > > How can I switch the data in a feild of one row with the data in that field of > another row? > > example: > row: id=1 fname=John lname=Doe > row: id=2 fname=Mary lname=Poppins > to: > row: id=2 fname=John lname=Doe > row: id=1 fname=Mary lname=Poppins > 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 >

    attached mail follows:


    I have heard that the new standard for URLS is ...test.php?op=3;op2=6... using the semi colon as a seperator. Is this currently supported by php 4.0.3?

    Cheers

    Dave Smith

    attached mail follows:


    Help - I've a problem when using urlencode/decode functions (same with rawurl...). If I encode : mnemonic = "lnkphoto"

    I get: mnemonic+%3D++%22lnkphoto%22

    And if decode it during the same script execution it converts back to exactly: mnemonic = "lnkphoto" which is what I'd expect.

    However, if I pass this value as a URL argument and decode it in the receiving script I get: mnemonic = \"lnkphoto\" which causes me all sorts of problems! Is this a "feature" or have I misunderstood the way this should work?

    Thanks

    attached mail follows:


    You have magic_quotes_runtime enabled which causes this behaviour. You can disable it by turning it off in your PHP.ini.

    See http://php.net/manual

    "rkirk.com Mail" <rkirkrkirk.com> wrote in message news:LPBBKEIJJGAGFMHDBOAIEEFECGAA.rkirkrkirk.com... > Help - I've a problem when using urlencode/decode functions (same with > rawurl...). > If I encode : > mnemonic = "lnkphoto" > > I get: > mnemonic+%3D++%22lnkphoto%22 > > And if decode it during the same script execution it converts back to > exactly: > mnemonic = "lnkphoto" > which is what I'd expect. > > However, if I pass this value as a URL argument and decode it in the > receiving script I get: > mnemonic = \"lnkphoto\" > which causes me all sorts of problems! > Is this a "feature" or have I misunderstood the way this should work? > > 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

    attached mail follows:


    No, its set to "off".

    -----Original Message----- From: John Lim [mailto:heyjohnlimyahoo.com] Sent: Saturday, March 17, 2001 5:14 PM To: php-generallists.php.net Subject: Re: [PHP] urlencode

    You have magic_quotes_runtime enabled which causes this behaviour. You can disable it by turning it off in your PHP.ini.

    See http://php.net/manual

    "rkirk.com Mail" <rkirkrkirk.com> wrote in message news:LPBBKEIJJGAGFMHDBOAIEEFECGAA.rkirkrkirk.com... > Help - I've a problem when using urlencode/decode functions (same with > rawurl...). > If I encode : > mnemonic = "lnkphoto" > > I get: > mnemonic+%3D++%22lnkphoto%22 > > And if decode it during the same script execution it converts back to > exactly: > mnemonic = "lnkphoto" > which is what I'd expect. > > However, if I pass this value as a URL argument and decode it in the > receiving script I get: > mnemonic = \"lnkphoto\" > which causes me all sorts of problems! > Is this a "feature" or have I misunderstood the way this should work? > > 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:


    From memory, 3 will delay 3 seconds before redirect. Change to :

    printf ("<meta http-equiv=\"refresh\" content=\"0;URL=http://coolsite/test/newfile.html\">");

    mat t <matremail.net> wrote in message news:20010317004125.AAA3D36F9sitemail.everyone.net... > I have a form that allows user to either upload a file from the client to the server or take the contents of the textarea and dump it in a new file on the server. > > Unfortunately I have tried to make the form write the new file to the server and at the same time redirect to the this new file. It seems that php takes a second to write the new file and therefore only works if I delay the process by redirecting as follows: > > printf ("<meta http-equiv=\"refresh\" content=\"3;URL=http://coolsite/test/newfile.html\">"); > > Is there any better process I can use? > > > > _____________________________________________________________ > Pick up your email anywhere in the world ---> http://www.remail.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:


    I'm not quite sure what you mean. You use a JDBC driver to connect your java program to an sql db. PHP has an abstracted db layer which parallels the function of JDBC for the php environment. PHP also has db-specific API's, which tend to be somewhat faster and can take advantage of specific db features. Does that help?

    J

    on 3/16/01 7:36 PM, andrew at andrewsalamander.net wrote:

    > > On a related noted, does PHP have JDBC support? > > I'm unable to find anything about this - anyone know if it's possible? > > regards, > andrew > >

    --
    Julian Wood
    Learning Technologies and Digital Media
    University of Calgary
    

    attached mail follows:


    actually, just wondering if PHP can use JDBC drivers to connect to databases. what is the 'abstracted db layer' that you mention?

    regards, andrew

    On 3/17/01 2:52 PM, "Julian Wood" <woodjucalgary.ca> wrote:

    > > I'm not quite sure what you mean. You use a JDBC driver to connect your java > program to an sql db. PHP has an abstracted db layer which parallels the > function of JDBC for the php environment. PHP also has db-specific API's, > which tend to be somewhat faster and can take advantage of specific db > features. Does that help? > > J > > on 3/16/01 7:36 PM, andrew at andrewsalamander.net wrote: > >> >> On a related noted, does PHP have JDBC support? >> >> I'm unable to find anything about this - anyone know if it's possible? >> >> regards, >> andrew >> >> > -- > Julian Wood > Learning Technologies and Digital Media > University of Calgary > >

    attached mail follows:


    No - PHP has it's own drivers, just like perl has it's own (DBI), and java has it's own (JDBC). As for PHP's abstraction layer, PHP comes built with one for dbm style db's (http://www.php.net/manual/en/ref.dba.php), but not for sql type db's. Several abstraction layer projects for sql db's have been mentioned on the list - I have never used any of them - just the db-specific API's. Try ADODB - there's a tutorial here: http://php.weblogs.com/adodb_tutorial

    J

    on 3/17/01 1:10 PM, andrew at andrewsalamander.net wrote:

    > > actually, just wondering if PHP can use JDBC drivers to connect to > databases. what is the 'abstracted db layer' that you mention? > > regards, > andrew > > > On 3/17/01 2:52 PM, "Julian Wood" <woodjucalgary.ca> wrote: > >> >> I'm not quite sure what you mean. You use a JDBC driver to connect your java >> program to an sql db. PHP has an abstracted db layer which parallels the >> function of JDBC for the php environment. PHP also has db-specific API's, >> which tend to be somewhat faster and can take advantage of specific db >> features. Does that help? >> >> J >> >> on 3/16/01 7:36 PM, andrew at andrewsalamander.net wrote: >> >>> >>> On a related noted, does PHP have JDBC support? >>> >>> I'm unable to find anything about this - anyone know if it's possible? >>> >>> regards, >>> andrew >>> >>> >> -- >> Julian Wood >> Learning Technologies and Digital Media >> University of Calgary >> >> > >

    --
    Julian Wood
    Learning Technologies and Digital Media
    University of Calgary
    

    attached mail follows:


    I didn't know where else to post feature requests so I'll post it here. Could we get included files to not merely be sucked in to the file that is including it but still think of it as a distinctive file in terms of getting debug output for errors. The reasons for this are 2 fold:

    1) You could see all the files run by a particular page and not have to trace through files to see all the files which are called during a request to the server. 2) For error messages, it would give you the line number of the particular file that has the error and not the line number of the merged single file.

    For anyone who has used Cold Fusion, you'll know what I mean by how this should work. This would be a MAJOR improvement for making debugging during development easier. Thanks.

    Steve

    attached mail follows:


    On 17-Mar-01 Steve Wardell wrote: > I didn't know where else to post feature requests so I'll post it here. > Could we get included files to not merely be sucked in to the file that is > including it but still think of it as a distinctive file in terms of getting > debug output for errors. The reasons for this are 2 fold: > > 1) You could see all the files run by a particular page and not have to > trace through files to see all the files which are called during a request > to the server. > 2) For error messages, it would give you the line number of the particular > file that has the error and not the line number of the merged single file. >

    Errm ...

    Not sure what you mean by 'the line number of the merged single file.' ? a syntax error will mention the correct file unless you don't close a block. For trace debuging i use (in common.php):

    function debug($fl, $ln, $msg='') { global $debug; if (! empty($debug)) printf("<DIV ALIGN=\"LEFT\"><FONT SIZE=\"-1\">%s %s:\n%s</FONT></DIV>", $fl , $ln ,$msg); }

    and used as : $qry="select id, name, contact, email, addr1, addr2, city, state, 1zip, country, left(datesigned,10) as ds from webmaster where id=$qwid";

    debug(__FILE__,__LINE__, $qry);

    $res = mysql_query($qry); if ( $res) { ...

    just add &debug=1 to the url to trace out execution.

    Regards,

    -- 
    Don Read                                         dreadtexas.net
    -- If you are going to sin, sin against God, not the bureaucracy. 
                      God will forgive you but the bureaucrats won't. 
    

    attached mail follows:


    Say you have index.php and 20 lines into index.php you include file.inc and there's an error on line 30 of file.inc, but I'm pretty sure PHP would say there was an error on line 50 of index.php and not like 30 of file.inc. It doesn't keep track of included files as separate files that are called but rather sort of merges it in memory into one file to run it seems.

    Steve

    "Don Read" <dreadtexas.net> wrote in message news:XFMail.010317173312.dreadtexas.net... > > On 17-Mar-01 Steve Wardell wrote: > > I didn't know where else to post feature requests so I'll post it here. > > Could we get included files to not merely be sucked in to the file that is > > including it but still think of it as a distinctive file in terms of getting > > debug output for errors. The reasons for this are 2 fold: > > > > 1) You could see all the files run by a particular page and not have to > > trace through files to see all the files which are called during a request > > to the server. > > 2) For error messages, it would give you the line number of the particular > > file that has the error and not the line number of the merged single file. > > > > Errm ... > > Not sure what you mean by 'the line number of the merged single file.' ? > a syntax error will mention the correct file unless you don't close a > block. > For trace debuging i use (in common.php): > > function debug($fl, $ln, $msg='') { > global $debug; > > if (! empty($debug)) > printf("<DIV ALIGN=\"LEFT\"><FONT SIZE=\"-1\">%s %s:\n%s</FONT></DIV>", > $fl , $ln ,$msg); > } > > and used as : > $qry="select id, name, contact, email, addr1, addr2, > city, state, 1zip, country, left(datesigned,10) as ds > from webmaster where id=$qwid"; > > debug(__FILE__,__LINE__, $qry); > > $res = mysql_query($qry); > if ( $res) { > ... > > just add &debug=1 to the url to trace out execution. > > Regards, > -- > Don Read dreadtexas.net > -- If you are going to sin, sin against God, not the bureaucracy. > God will forgive you but the bureaucrats won't. > > -- > 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 18-Mar-01 Steve Wardell wrote: > Say you have index.php and 20 lines into index.php you include file.inc and > there's an error on line 30 of file.inc, but I'm pretty sure PHP would say > there was an error on line 50 of index.php and not like 30 of file.inc. It > doesn't keep track of included files as separate files that are called but > rather sort of merges it in memory into one file to run it seems. >

    just tried it,

    hitstats.php ------

    require('secure.php'); authuser("Statistics"); include('history.php'); include('fpstats.php');

    if (isset($lint)) error_reporting(31); ...

    fpstats.php ------- removed a semi-colon.

    browser output ------- <br> <b>Parse error</b>: parse error in <b>fpstats.php</b> on line <b>130</b><br>

    --
    PHP/3.0.18 (maybe a 4.0 thing ?)
    

    Regards, -- Don Read dreadtexas.net -- If you are going to sin, sin against God, not the bureaucracy. God will forgive you but the bureaucrats won't.

    attached mail follows:


    Hi :-)

    How can I convert from this: <form method=POST action="<? echo $PHP_SELF; ?>/approve"> </form> ...snip } elseif ($pathinfo == "/approve") { do something...

    to something that posts to itself without altering the path? My problem is, I'm using themes which are dependent on the path, so if I post using the method above, the path changes and screws up the images, colors, etc after the user submits.

    TIA!

    Clayton Dukes

    attached mail follows:


    Hey!

    Shaun, I'm really glad to say that I finally solved the problem I had with "executing a string that contains both HTML and PHP inside it", and it's all thanks to you!

    Thank you very much -

    Aviv Revach

    At 10:37 15/03/01 -0500, you wrote: >Hey, I glanced over your message, and you can use eval to execute >php/html, but you have to open and close the <? ?> tags when you use it >because eval is in php mode, not html mode. > >eval('?>" . $htmlandphp . '<?'); > > >On Wed, 14 Mar 2001, Aviv Revach wrote: > > > Hey! > > > > I would like to thank you and Mark for your quick reply. > > > > What am I trying to accomplish is the following: > > > > I have created an engine which separates my website's code and design. > > The code is stored in one file(code.txt) and the design in > > another(design.txt). > > > > The engine loads up parts of each file in order to create the final > > result, meaning - > > * It prints the "<html><head>" etc.. > > * It prints DESIGN.TXT's head > > * It prints CODE.TXT's head > > * It prints "</head><body>" etc.. > > * It prints part of DESIGN.TXT's body > > * It prints CODE.TXT's body > > * It prints the second-part of the DESIGN.TXT's body > > * It prints "</body></html>" > > > > That's the general idea of what the engine does, but it's doing other > > things as well. > > The engine works the way it does because I wanted to have the entire > content > > and the entire design all in 2 separate files. > > Most of the engines I've seen so far, used 3 different files for the > > design, and included > > them in different places inside their content. I don't wish to do that.. > > > > Now, all worked fine until a while go, I used the 'echo' command in > > order to print the > > strings that contain content/design HTML code. > > > > The troubles began when I added PHP code to my content - > > The PHP tags were IGNORED... ! > > > > > > Now, after I've told you all the things you should know, I ask for your > > assistance. > > What do you suggest me to do? > > > > > > Thank you in advance - > > > > Aviv Revach > > > > > > At 13:26 15/03/01 +0100, Christian Reiniger wrote: > > >On Wednesday 14 March 2001 12:50, you wrote: > > > > > > > My string contains HTML tags with PHP code inside(in '<?php' and '?>' > > > > tags), not only PHP as eval() requires. > > > > > > > > Do you have any other suggestion? > > > > > >AFAIK there's no other way than using include(). > > > > > >Why do you need that anyway? > > > > > > > > > What should I do in order to execute the next string: > > > > > > $str = "<html>\n" > > > > > > $str .= "blabla\n"; > > > > > > $str .= " <?php echo \"hello!\"; ?>\n"; > > > > > > $str .= "blabla\n"; > > > > > > $str .= "</html>\n"; > > > > > > > > > > > > When I tried using 'echo' with the string, but the php code didn't > > > > > > work... > > > > > >-- > > >Christian Reiniger > > >LGDC Webmaster (http://sunsite.dk/lgdc/) > > > > > >Pretty cool, the kind of power information technology puts in our hands > > >these days. > > > > > >- Securityfocus on probing 36000000 hosts for known problems in 3 weeks > > > > > > BRILLIANeT Website - > > http://www.brillianet.com/ > > > > > > > >--

    BRILLIANeT Website - http://www.brillianet.com/

    attached mail follows:


    Has anyone heard of calling Perl libraries from PHP? I have seen it done with Java classes but it would be great if there was a way to do it with Perl.

    Thanks! Matthew Hanna hannaclemson.edu

    attached mail follows:


    I know php can't do this but I hoped somehere would know how. I have a page with many select boxes(drop downs). I want it so that if someone selects a value, it is removed from all the others. And if they change it, the old value is returned to the other boxes. Any help would be appreciated

    attached mail follows:


    hello all,

    let's say i have this: $a="varone=hello world|vartwo44|varthree0|";

    now i do this:

    $bplode('|',$a); $z unt($b); for ($x $tmpplode('=',$b[$x]); ....

    and i want to find out if $tmp[1] is a string or an integer (that's really all I need to determine so i can put together an SQL statement that puts single quotes around strings and none around integers). Obviously i won't know at design time all of the variables and their values. Thank you.

    -dave

    attached mail follows:


    On 18-Mar-01 phpman wrote: > hello all, > <snip>

    > > and i want to find out if $tmp[1] is a string or an integer (that's really > all I need to determine

    gettype($foo) ?

    > so i can put > together an SQL statement that puts single quotes around strings and none > around integers).

    <snip>

    depending on your SQL engine, you can usually quote integers.

    Regards,

    -- 
    Don Read                                         dreadtexas.net
    -- If you are going to sin, sin against God, not the bureaucracy. 
                      God will forgive you but the bureaucrats won't. 
    

    attached mail follows:


    Hi, I was wondering if anyone has some links about articles, code snippets or tips regarding the use of oracle as rdbms and php.

    I have experience with mysql so I am considering the use of an abstraction layer to access so I could easily por existing apps.

    BTW. Does anybody know If the latest 8.1.7 works with RedHat 7.0 ? Is it possible to install just the necessary libs to compile and run php+apache with oracle support ? My web server is in a different machine than the actual db server and I would not like to install the whole package uncessary.

    Thanks.

    __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/

    attached mail follows:


    OK - this one really is stumping me.

    I have a shell script that I'm running through bash on my linux server.... it includes:

    ./configure \ --with-apache=../apache_1.3.17 \ --with-gd \ --with-mysql \ --with-gdbm \ --with-mhash \ --enable-safe-mode \ --enable-magic-quotes \ --enable-apc \ --enable-ftp \ --enable-debug=no \ --enable-memory-limit=yes \ --enable-xml \ --enable-track-vars

    When I run it as part of the script, I get this:

    checking for working makeinfo... found Updated php_version.h checking whether to enable maintainer-specific portions of Makefiles... no checking host system type... Configuration name missing. Usage: ./config.sub CPU-MFR-OPSYS or ./config.sub ALIAS where ALIAS is a recognized configuration type.

    checking for gawk... gawk checking for bison... bison -y checking bison version... 1.25 (ok) checking for gcc... gcc checking whether the C compiler (gcc ) works... yes

    but when I run the same (cut and pasted from the shell script) ./configuration... command I get:

    checking for working makeinfo... found Updated php_version.h checking whether to enable maintainer-specific portions of Makefiles... no checking host system type... i686-pc-linux-gnu checking for gawk... gawk checking for bison... bison -y checking bison version... 1.25 (ok) checking for gcc... gcc checking whether the C compiler (gcc ) works... yes

    What gives?

    System is Linux 5.2 (Linux version 2.0.36 ), bash version is GNU bash, version 1.14.7(1)