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: Sun Mar 25 2001 - 00:01:39 CST

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

    php-general Digest 25 Mar 2001 06:01:39 -0000 Issue 587

    Topics (messages 45434 through 45470):

    Re: [PHP-DB] connection id
            45434 by: JJeffman

    Re: Delaying Printed Output
            45435 by: Greg Scott
            45436 by: Jack Dempsey
            45438 by: CC Zona
            45441 by: Greg Scott
            45443 by: Kelly Corkill
            45445 by: Jeff Oien
            45446 by: CC Zona

    Re: random letters and numbers
            45437 by: Joe Stump

    read out apache log files with php
            45439 by: Andre
            45442 by: Felix Kronlage

    Re: connection id
            45440 by: Jonathan Sharp

    Text fading with PHP?
            45444 by: Jamie Anderson
            45447 by: Jack Dempsey
            45448 by: Sterling
            45453 by: almir

    Re: PHP vs Servlet
            45449 by: Krznaric Michael

    Problems passing data via GET and POST
            45450 by: Matt Adams

    Re: Very Easy Help Needed Quick!
            45451 by: Nuno Silva

    oracle last inserted
            45452 by: almir

    Re: $PHP_SELF - internal error?
            45454 by: almir

    Re: i get this for some reason
            45455 by: almir
            45466 by: adam

    Re: Image background bleeding through text
            45456 by: almir
            45467 by: Dan Harrington

    Re: WebCam and PHP
            45457 by: almir

    ImageTTFText()
            45458 by: Paulo Vinícius Vitto Ruthes

    Re: Move data from one MySql table to another?
            45459 by: almir

    indirectly call function?
            45460 by: Jaxon
            45461 by: Aaron Tuller

    Re: php4 but dont work with php3
            45462 by: Adi Wibowo

    attachments with mail() function
            45463 by: BlackLord
            45468 by: Michael Hall

    escape sequences not recognized inside an .html
            45464 by: Mauricio Junqueira
            45465 by: Jack Dempsey

    fopen with URL gives me a problem
            45469 by: marco trevisani

    [PHP4]
            45470 by: Dddogbruce \(.home.com\)

    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:


    Use persistent connections it's a matter of performance of your script.
    When you use persistent connections the next call to mysql_pconnect will
    catch a opened connection if available. The mysql_connect command always
    open a new connection which slower than get an opened one. Anyway you can't
    use the connection_id in other page. May be using PHP4 Sessions.

    HTH.

    Jayme.

    -----Mensagem Original-----
    De: andrie <andrieajk.its-sby.edu>
    Para: <php-generallists.php.net>
    Cc: <php-dblists.php.net>
    Enviada em: sexta-feira, 23 de março de 2001 20:38
    Assunto: [PHP-DB] connection id

    > Hello php mania,
    > i was connecting into mysql using mysql_connect, and i just saved
    > the return value from this funtion. now i want to use this connection
    > id in the other page so i dont have to connect into mysql again.
    > is it possible for me to do that ?
    > anybody could tell me the different between persistence connection
    > or not ? and how the implementation ?
    >
    > TIA
    >
    >
    > --
    > Best regards,
    > andrie mailto:andrieajk.its-sby.edu
    >
    >
    >
    > --
    > PHP Database Mailing List (http://www.php.net/)
    > To unsubscribe, e-mail: php-db-unsubscribelists.php.net
    > For additional commands, e-mail: php-db-helplists.php.net
    > To contact the list administrators, e-mail: php-list-adminlists.php.net
    >

    attached mail follows:


    > You can use the following commands:
    >
    > sleep(seconds);
    > usleep(microseconds);

    I've tried those 2 functions, in an example like this:

    PRINT "This<br>";
    SLEEP(2) ;
    PRINT "Is a<br>";
    SLEEP(2);
    PRINT "TEST";

    But the way it works in the browser is to wait for a total of 4 seconds
    and then it displays all the text at once, not one line at a time -
    which is what I'm after.

    Greg

    attached mail follows:


    I may be wrong about this, but I'm pretty sure that, being server side, PHP
    sends the HTML to the browser all at once...also, the browser needs a static
    HTML page to load up...it can't take a line and output as it goes...maybe
    i'm wrong, but i thought that was basically how it works, so you couldn't do
    the sleep thing you wanted...
    anyone else?

    jack

    -----Original Message-----
    From: Greg Scott [mailto:gscottmidway.tds.net]
    Sent: Saturday, March 24, 2001 1:42 PM
    To: KPortsmoutaol.com
    Cc: gscotttds.net; php-generallists.php.net
    Subject: Re: [PHP] Delaying Printed Output

    > You can use the following commands:
    >
    > sleep(seconds);
    > usleep(microseconds);

    I've tried those 2 functions, in an example like this:

    PRINT "This<br>";
    SLEEP(2) ;
    PRINT "Is a<br>";
    SLEEP(2);
    PRINT "TEST";

    But the way it works in the browser is to wait for a total of 4 seconds
    and then it displays all the text at once, not one line at a time -
    which is what I'm after.

    Greg

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


    In article <3ABCEA73.9090305midway.tds.net>, gscottmidway.tds.net (Greg Scott) wrote:

    > > sleep(seconds); > > usleep(microseconds); > > I've tried those 2 functions, in an example like this: > > PRINT "This<br>"; > SLEEP(2) ; > PRINT "Is a<br>"; > SLEEP(2); > PRINT "TEST"; > > But the way it works in the browser is to wait for a total of 4 seconds > and then it displays all the text at once, not one line at a time - > which is what I'm after.

    You might try using flush() after the prints.

    -- 
    CC
    

    attached mail follows:


    > You might try using flush() after the prints. > I tried that too, but at least in Netscape 6, it still waits until everything is done before displaying. I think Jack must be correct that this isn't possible for browser display.

    Thanks, Greg

    attached mail follows:


    Speaking off the top of my head, seems like a combination of html meta refresh and a variable that increments based on HTTP REFERRER=PHP_SELF could provide the effect you're looking for. Certainly you could meta refresh to new pages in sequence. Or of course just use an animated gif if static text. Have you looked into javascript/java?

    I doubt that you can do it solely within php as it parses once and delivers html. The connection betwixt the server and client is transaction and the client would have to initiate the call to update, unless the update was imbedded within and staged at the client.

    On Sat, 24 Mar 2001, CC Zona wrote:

    > Date: Sat, 24 Mar 2001 11:06:02 -0800 > From: CC Zona <cczonanospam.invalid> > To: php-generallists.php.net > Subject: Re: [PHP] Delaying Printed Output > > In article <3ABCEA73.9090305midway.tds.net>, > gscottmidway.tds.net (Greg Scott) wrote: > > > > sleep(seconds); > > > usleep(microseconds); > > > > I've tried those 2 functions, in an example like this: > > > > PRINT "This<br>"; > > SLEEP(2) ; > > PRINT "Is a<br>"; > > SLEEP(2); > > PRINT "TEST"; > > > > But the way it works in the browser is to wait for a total of 4 seconds > > and then it displays all the text at once, not one line at a time - > > which is what I'm after. > > You might try using flush() after the prints. > > -- > CC > > -- > 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 >

    Kelly

    303-444-1671 Boulder, Colorado

    attached mail follows:


    I don't know if this will be helpful but you can look at this JavaScript code: http://www.webdesigns1.f2s.com/js_typing_text.php ------- Jeff Oien PHP >start here http://www.webdesigns1.com/php/

    attached mail follows:


    In article <3ABCF317.4030705tds.net>, gscotttds.net (Greg Scott) wrote:

    > > You might try using flush() after the prints. > > > I tried that too, but at least in Netscape 6, it still waits until > everything is done before displaying. I think Jack must be correct that > this isn't possible for browser display.

    By any chance is this within a table? Not sure what v.6 expects, but at least in earlier versions Netscape refused to show table content until it encountered the closing </table> tag. With the end result that flush() appears not to be working, when actually PHP is doing its job fine but NN is being a bit of a PITA.

    -- 
    CC
    

    attached mail follows:


    Sure - use md5()

    --Joe

    On Sat, Mar 24, 2001 at 12:05:49PM -0500, Randy Johnson wrote: > Is there an easy way to create random numbers and letters for a file example > > > http://www.mydomain.com/1w2e3rff.txt > > and then after they download it have it be deleted off the server? > > > thanks > > randy > > -- > 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 /*****************************\ * Joe Stump * * www.Care2.com * * Office: 650.328.0198 * * Extension: 122 * \*****************************/ www.miester.org

    -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GB/E/IT d- s++:++ a? C++++ UL++$ P+ L+++$ E----! W+++$ N+ o? K? w---! O- M+ V-! P(++) PE(+) Y+ PGP+++ t+ 5? R-! tv b+ DI++ D(++++) G++ e+ h r+! z(+++++**)! ------END GEEK CODE BLOCK------

    attached mail follows:


    Hello List!! My intention is to read out the apache log files (like access.log etc) for making stats about pages hits/visits. Surely, there are some scripts (webalizer) to do this, but i can´t find scripts which are written in php. Has someone a script example? Thank you! Andre

    attached mail follows:


    On Sat, Mar 24, 2001 at 08:04:56PM +0100, Andre wrote:

    > My intention is to read out the apache log files (like access.log etc) for > making stats about pages hits/visits. Surely, there are some scripts > (webalizer) to do this, but i can´t find scripts which are written in php. > Has someone a script example?

    Have you looked at sourceforge.net (http://www.sourceforge.net/) and freshmeat (http://www.freshmeat.net/) ? If there aren't any there you might want to check for perl-scripts and take a glance at the reg.-Expressions (which should help a lot with parsing the log-file)

    -fkr

    -- 
    gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
      |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
      |all your base are belong to us  |  shame on me  | fkrIRCnet | 
    

    -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.3 (OpenBSD) Comment: For info see http://www.gnupg.org

    iD8DBQE6vPHfDTGb09msdNARAoI8AJ0VcXuBaGA0jHEC7jp5n1jHciXo3ACfegvI R6uxmqwSnRw5c3sMBU3Q0ZM= =w6Du -----END PGP SIGNATURE-----

    attached mail follows:


    TIA, What you described is not possible. When you create that connection to the mysql server, that connection dies when the script ends...

    As far as persistent connections go, you will always call the code to create the connection, but that connection lives on in that apache child process until that child process dies.

    So for example, apache spawns a child process to handle a request and it executes your PHP script with the persistent connection code (mysql_pconnect) and then after you script exits, that child process keeps the conection to mysql open. Any PHP script afterwards that uses the same connection information (host, username, password) with the mysql_pconnect() call; apache checks for an existing persistent connection (that was created with the first PHP script execution) so it returns that connection id. If you use the standard mysql_connect call the apache child will drop the connection when the script ends.

    Cheers, -Jonathan Sharp js_AT_imprev.com

    > -----Original Message----- > From: andrie [mailto:andrieajk.its-sby.edu] > Sent: Friday, March 23, 2001 3:38 PM > To: php-generallists.php.net > Cc: php-dblists.php.net > Subject: [PHP] connection id > > > Hello php mania, > i was connecting into mysql using mysql_connect, and i just saved > the return value from this funtion. now i want to use this connection > id in the other page so i dont have to connect into mysql again. > is it possible for me to do that ? > anybody could tell me the different between persistence connection > or not ? and how the implementation ? > > TIA > > > -- > Best regards, > andrie mailto:andrieajk.its-sby.edu > > > > -- > 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

    Is it possible to do text fading with PHP. For instance, I want to one line of text fade in, have another line fade in later, and a third line after that. Then all three lines will fade out at the same time and start over with three different lines. Is this possible with php?

    Thanks

    Jamie

    attached mail follows:


    Umm, what exactly are you talking about?? I'm not sure how you could have gotten PHP confused with Flash, but if you want to "fade" text, you need a graphics program, like flash, not PHP. www.macromedia.com

    jack

    -----Original Message----- From: Jamie Anderson [mailto:jamieleeiastate.edu] Sent: Saturday, March 24, 2001 2:29 PM To: php-generallists.php.net Subject: [PHP] Text fading with PHP?

    Hi

    Is it possible to do text fading with PHP. For instance, I want to one line of text fade in, have another line fade in later, and a third line after that. Then all three lines will fade out at the same time and start over with three different lines. Is this possible with php?

    Thanks

    Jamie

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


    H-

    Go here. http://www.dynamicdrive.com/

    This site has a lot of free code that does fancy html stuff.

    It'll even tell ya which browsers the code is compatible. Later, -Sterling

    Jack Dempsey wrote: > > Umm, what exactly are you talking about?? I'm not sure how you could have > gotten PHP confused with Flash, but if you want to "fade" text, you need a > graphics program, like flash, not PHP. > www.macromedia.com > > jack > > -----Original Message----- > From: Jamie Anderson [mailto:jamieleeiastate.edu] > Sent: Saturday, March 24, 2001 2:29 PM > To: php-generallists.php.net > Subject: [PHP] Text fading with PHP? > > Hi > > Is it possible to do text fading with PHP. For instance, I want to one line > of text fade in, have another line fade in later, and a third line after > that. Then all three lines will fade out at the same time and start over > with three different lines. Is this possible with php? > > Thanks > > Jamie > > -- > 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:


    i think you need DHTML or flash

    almir

    ""Jamie Anderson"" <jamieleeiastate.edu> schrieb im Newsbeitrag news:99is88$m8a$1toye.p.sourceforge.net... > Hi > > Is it possible to do text fading with PHP. For instance, I want to one line > of text fade in, have another line fade in later, and a third line after > that. Then all three lines will fade out at the same time and start over > with three different lines. Is this possible with php? > > Thanks > > Jamie > > > > -- > 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:


    So tell us?

    Mike

    -----Original Message----- From: Jesper Blomstrm [mailto:jeppepartitur.se] Sent: Monday, March 19, 2001 4:51 PM To: php-generallists.php.net Subject: SV: [PHP] PHP vs Servlet

    I found out how to do it.

    Thx anyway

    / J

    Jesper Blomström <jeppepartitur.se> skrev i diskussionsgruppsmeddelandet:3AB6293B.688FFF3Apartitur.se... > Hi! > > I am sure you have a solution to this... > > How shall I communicate with a servlet from PHP? > I have a servlet which makes a DB-query and returns the > result. > > Thanks! > > > > / Jeppe > > > > -- > Jesper Blomström > jeppepartitur.se > Arbete: 08-566 280 08 > Hem: 08-669 23 10 > Mobil: 070-30 24 911 > > -- > 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 recently wrote a (yet another) mailing portal which takes a certain action based on the contents of a hidden form field (i.e. if state==deliver then deliver mail to the recipient). Although I am certain the code could be better etc. etc. it works fine. I tested it on a Linux box running Apache-1.3.17 and PHP-4.0.4pl1 (as a module). However, when I transferred the project to another Linux server running Apache-1.3.12 and PHP-4.0.0 (also running as a module), the mailing portal refused to function properly. I discovered that the code that controls what action is taken was not picking up on the form contents passed to it.

    For a brief example, I have a file named "compose.php" which contains a form that passes a hidden field called "state" with the value "compose" to a file called "control.php" using the POST method. "control.php" is supposed to pick up on the "state" and sends the content of the "compose.php" form to the deliver stage. Unfortunately, it appears that "control.php" is not seeing any of the form data from "compose.php".

    My question is this: is there a setting in PHP (set either at compile or in the php.ini) that controls whether or not a PHP script will accept data passed to it via POST or GET?

    I would appreciate any suggestions or ideas you may have.

    Thanks

    Matt

    -- 
    Matt Adams (ICQ 109490925)
    Altair Electronics:  <mattaltair.ca>
    Scouts Canada:	     <madamsrusty.scouts.ca>
    Personal: 	     <stormkeepersofthome.net>
    

    attached mail follows:


    Hi,

    point the link "save this..." to the same script with some trailling vars: <a href=this_script.php?save=1>...</a>

    and then, in the beginning of this_script.php modify the mime type if $HTTP_GET_VARS["save"] == 1

    if ($HTTP_GET_VARS["save"] == 1) { header("Content-type: application/octect-stream"); }

    ...thats it!

    regards, Nuno

    Tony Daniels wrote:

    > Hello Everyone! > > We need something that is probably very simple. > > Here is what we are doing. > > We created a form that asks a series of questions about the product we > are looking at, such as : Name, Condition, Weight, etc. We then put all > of the information in a MySql database. Then sedn the variables to the > ad creation page. This page contains all the constant information > contained in each ad, along with all the new variables that we just > inputted. What we need to do is save this new source code to a html > file. We have been simply right clicking, viewing source, and then > saving it to our hard drive. > > What we want is a button below the ad that says, "Do you want to save > this ad?" or simply "Save?" When we click yes it will prompt us on the > name and the location we want for the file, and then it will save the ad > in html format. One important note is that we do not want this new > button included in the file we are creating. Anyone have a simple code > we can use to accomplish this. Remember, all we want is the ad saved, > not the new button. We want to view the ad before we save it, so the ad > must pop up like it does now. > > Please help soon. We appreciate your help. > > Tony

    attached mail follows:


    is there a way to get last inserted id from oracle as mysql_inerted_id() or SELECT IDENTITY AS LastId in mssql server

    i have a function that does only that, takes insert statement and returns last id, but this function have to work for all tables (different triggers in oracle) , right now the only thing i can imagine is to give this function the name of ID column and read name of table with regex and then do select max(parametar_id) from regex_table and then to do commit , this way is somehow realy stupid but is my only solution in this moment so if you have any better ideas plese help

    almir

    attached mail follows:


    is it realy everithing that you get from php or there is something missing ?

    i mean usualy it helps basename() or base_name() cant remmember now try it, but in your case it seems differently

    almir

    ""Tommy"" <Tommy09web.de> schrieb im Newsbeitrag news:99i3q7$57q$1toye.p.sourceforge.net... > Hi, > that's my paht: > > ./Webpages/Kalender/php.php > > The value of PHP_SELF in php.php is: > > /Kalender/php.php/Kalender > > How can I fix this Problem? I have PHP 4.04pl1 CGI, Windows ME. > > THX Tommy > > > > > > -- > 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:


    $text=stripslashes($text);

    almir

    ""Jason Lotito"" <JasonLehighWeb.com> schrieb im Newsbeitrag news:JGECJMDPBKLDPBIJBAJDGEIBCBAA.JasonLehighWeb.com... > > -----Original Message----- > > From: adam [mailto:vawanhome.com] > > Sent: Saturday, March 24, 2001 1:43 AM > > To: php-generallists.php.net > > Subject: Re: [PHP] i get this for some reason > > > > > > but i am not talking about running a server, i am just using php on server > > space that has php installed. > > > > what code would i incluse to get rid of this? > > > > RTM: http://www.php.net/manual/en/function.stripslashes.php > > Jason Lotito > www.NewbieNetwork.net > Where those who can, teach; > and those who can, learn. > > > -- > 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 a bunch ^^ it works great

    attached mail follows:


    check if the area you are filling with another colour is realy closed, maybe send a url to that it could help almir

    ""Kevin Rose"" <krosebluebonnet.net> schrieb im Newsbeitrag news:000c01c0b3b7$87a071c0$8105a8c0kevin... Hello,

    I am using GD v. 1.8.3, freetype 1.3.1 and php 4.0.3.p1. I am having a problem with some of my background color bleeding through my font/text when I create a new image with ImageTTFText. Specifically I want my text to be pure white (255,255,255), but it is not appearing that way on my output image.

    Here is the code I am using:

    $fontColor = ImageColorAllocate ($im,255,255,255); ImageTTFText($im,$fontSize,0,$fontX,$fontY,$fontColor,$fontFile,$fontText);

    Has anyone else experienced this?

    Thank you, Kevin

    attached mail follows:


    Yes, I have. And I wouldn't mind getting rid of that :-)

    > -----Original Message----- > From: Kevin Rose [mailto:krosebluebonnet.net] > Sent: Friday, March 23, 2001 9:37 AM > To: php-generallists.php.net > Subject: [PHP] Image background bleeding through text > > > Hello, > > I am using GD v. 1.8.3, freetype 1.3.1 and php > 4.0.3.p1. I am having a problem with some of my > background color bleeding through my font/text when I > create a new image with ImageTTFText. Specifically I > want my text to be pure white (255,255,255), but it is > not appearing that way on my output image. > > Here is the code I am using: > > $fontColor = ImageColorAllocate ($im,255,255,255); > > ImageTTFText($im,$fontSize,0,$fontX,$fontY,$fontColor,$ > fontFile,$fontText); > > Has anyone else experienced this? > > Thank you, > Kevin >

    attached mail follows:


    simply insert disk2 into flopy and press any key to continue

    almir ""Chris Lee"" <leemediawaveonline.com> schrieb im Newsbeitrag news:99fq6b$acv$1toye.p.sourceforge.net... wow thats a vague question :)

    are you trying to display them to the user?

    echo " <img src='/path/imagename.jpg'> ";

    or are you trying to read that data ?

    fopen('/path/imagename.jpg', 'r');

    is the file not in the document root ?

    header('Content-Type: image/jpeg'); readfile('/path/imagename.jpg');

    --
    

    Chris Lee leemediawaveonline.com

    ""Marcelo Pereira"" <gandalfsum.desktop.com.br> wrote in message news:006001c0b396$05167cc0$0b01a8c0hmmg... Hi All,

    How can I show images, captured by a webcamp, in my website using PHP ???

    Thanks,

    Marcelo Pereira

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


    folks, i installed php4 by a RPM, it wasn't compiled --enable-gd-imgstrttf , so, when I use a function like ImageTTFText(), it returns me the text mirrowed (inverted like a mirror) and the angulation doesn't work right... but, when I try to compile the tar.gz php installation, it don't let me compile because can't find libgd.* not in /usr /usr/lib... can anybody give me a really good reason for this not working?

    -- 
    [ Paulo Vinícius Vitto Ruthes ]
    [   paulo.ruthesuol.com.br   ]
    [        ICQ#:18058144        ]
    [    "Viva la cucaracha!!"    ]
    

    attached mail follows:


    write insert into new_table (val1, val2) select from old_table val1, val2 where id=kdsaflkj

    and execute it with php like any other statement

    almir ps. but checking mysql.com helps, there are lot of other interesting things

    ""YoBro"" <nospambrochures.co.nz> schrieb im Newsbeitrag news:99e1q7$gv8$1toye.p.sourceforge.net... > I need to know how to do it in PHP? > > > ""Cal Evans"" <calcalevans.com> wrote in message > news:NABBLCCEONHNHBGBBPHPIEABAMAB.calcalevans.com... > : Probably on the MySQL list. This is the PHP. (This is arguments,abuse is > : down the hall.) > : > : Try: > : http://www.mysql.com/documentation/lists.html > : > : > : Cal > : http://www.calevans.com > : > : > : -----Original Message----- > : From: YoBro [mailto:nospambrochures.co.nz] > : Sent: Thursday, March 22, 2001 5:20 PM > : To: php-generallists.php.net > : Subject: [PHP] Move data from one MySql table to another? > : > : > : Hello, > : > : Does anybody know where I could find out how to Move data from one Mysql > : table to another. > : > : I have a query showing all the results, and I am trying to put a link at > the > : end of each row that says "move" > : > : Clicking this will move that records information to another table. > : IE From table orders to table ordered > : > : Make sense? > : > : Please help > : > : -- > : Regards, > : > : > : YoBro > : ------------------------------------------------------------- > : DO NOT REPLY TO THIS VIA EMAIL > : PLEASE USE THE NEWSGROUP > : All emails sent to this address are automatically deleted. > : This is to avoid SPAM! > : ------------------------------------------------------------- > : > : > : > : -- > : 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:


    hi all, I'm trying to change which function is called at runtime:

    e.g. page1.php:

    include "functions_def.inc.php"; //contains definition for mod_news() $module = "mod_news()"; //for example - gets assigned by case statement include page2.inc.php

    page2.inc.php:

    <?php echo $module; ?>

    the page shows "mod_news()" instead of calling my function :( It works if I use <?php echo mod_news(); ?> but not if I'm trying to hold the function name in the variable.

    I've tried <?php echo $module; ?> <?php eval $module; ?> <?php print $module; ?>

    all to no avail.

    any ideas?

    tks! jaxon

    attached mail follows:


    $module = "mod_news";

    echo $module();

    i think that's it.

    or:

    $module = "mod_news()";

    eval("echo ".$module);

    I think the former is faster.

    -aaron

    At 7:16 PM -0500 3/24/01, Jaxon wrote: >hi all, I'm trying to change which function is called at runtime: > >e.g. >page1.php: > >include "functions_def.inc.php"; //contains definition for mod_news() >$module = "mod_news()"; //for example - gets assigned by case statement >include page2.inc.php > > >page2.inc.php: > ><?php echo $module; ?> > > >the page shows "mod_news()" instead of calling my function :( >It works if I use <?php echo mod_news(); ?> but not if I'm trying to hold >the function name in the variable. > >I've tried ><?php echo $module; ?> ><?php eval $module; ?> ><?php print $module; ?> > >all to no avail. > >any ideas? > >tks! >jaxon > > > >-- >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 Sat, 24 Mar 2001, Mauricio Alarcon wrote: > I put this line in httpd.conf but dont'work > AddType application/x-httpd-php3 .php3 > AddType application/x-httpd-php3-source .phps > AddType application/x-httpd-php .php > Action application/php4script /cgi-bin/php > > What I'm doing wrong?

    I suggest this :

    AddType application/x-httpd-php3 .php3 <-- deleted/commented AddType application/x-httpd-php3-source .phps <-- deleted/commented AddType application/x-httpd-php .php <-- add .php3

    Hope it help.

    Adi Wibowo ------------------------------- * Work matter : adiwpeter.petra.ac.id * Private matter : adiwibowoexcite.com ------------------------------------------

    attached mail follows:


    Is there anyway to include attachments in mail() function?

    If you give a small example, it will be great.

    Thanks

    attached mail follows:


    I'm not sure about including them in the mail function as such, but it can certainly be done using one of several mime_mail classes that are around. I don't have one handy right now but you can find them by searching the php archives and/or the annotated php manual. I know the one by Schumann and Ratschiller works OK.

    Mick

    On Sun, 25 Mar 2001, BlackLord wrote:

    > Is there anyway to include attachments in mail() function? > > If you give a small example, it will be great. > > 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:


    Hi, I believe I am missing some configuration regarding my apache becouse I can only get php to work inside a file .php. If my page extension is .html, nothing happend with the php script; but just changing from .html to .php everthing works fine. Anyone? Anyhelp?

    I'm new over php. I usually do stuff with Delphi/Builder and now I'm moving to web oriented programs.

    Thanks for looking!

    Mauricio Junqueira Mautec Corp.

    attached mail follows:


    Apache needs to be told what files should be parsed as php. If php is the only one working, then that means you have only php (maybe php3) listed in your apache configuration. If you wanted parse every single html file (which has been discussed in this list before--check the archives) then you would need to add the html extension to line with php. Otherwise, they're normal html...

    jack

    -----Original Message----- From: Mauricio Junqueira [mailto:mauzeronetzero.net] Sent: Saturday, March 24, 2001 9:07 PM To: php-generallists.php.net Subject: [PHP] escape sequences not recognized inside an .html

    Hi, I believe I am missing some configuration regarding my apache becouse I can only get php to work inside a file .php. If my page extension is .html, nothing happend with the php script; but just changing from .html to .php everthing works fine. Anyone? Anyhelp?

    I'm new over php. I usually do stuff with Delphi/Builder and now I'm moving to web oriented programs.

    Thanks for looking!

    Mauricio Junqueira Mautec Corp.

    --
    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'm running php3 3.3.0.18 on Debian (but i had the same problem with Red Hat) w/ Apache 1.3.14. (the same code with php3 3.3.0.16/15 was working fine....then did i uppgrade... I had too....:-( )

    I had a simple, or what i expect to be simple.., call: (it just check temperature in a city...in this case Habana, from the noaa server and print simply the part i need, This was perfectly working with php3 3.3.015, you can check www.icmc2001.org)

    Now i get a error window saying: "Document contained no data" I suspect it has something to do with $wfile = fopen.... (see code below)

    Does anybody know if it is a bug or if it is something that changed in that release? (i would apreciate if you can also reply to my email address)

    thank you, marco trevisani

    ----------code-----------------

    $noaa = "http://weather.noaa.gov/cgi-bin/mgetmetar.pl?cccc=MUHA" ; $wfile = fopen ($noaa, "r");

    $weathcont = fread ($wfile , 1024);

    ereg (" ([0-9][0-9])/([0-9][0-9]) " , $weathcont, $reg);

    $far = 32 + ( $reg[1] / (5.0 / 9.0)); $data = date("d F"); $ora = (date("H")-6);

    echo "<font size=\"-1\" color=\"SteelBlue\"><b> Temperature in Habana, on $data, at "; if ($ora < 0){ $timezone = ($ora + 24); echo $timezone; }else{ echo $ora ; } echo " is:</b></font><br> <font color=\"SteelBlue\"><b>$reg[1] C ($far F)</b></font>"; fclose($wfile);

    --------end of code --------------------------

    attached mail follows:


    I've defined all the variables in the form, and have all the files..

    <HTML> <TITLE>Submit News</TITLE> <BODY> Your news has been processed and added to the main page. Thanks! <? if($formSubmit) { $newsSubmit = file("news.txt"); $fp = fopen("news.txt", 'a'); fwrite($fp, $frmName); fclose($newsSubmit); } else { include ("newsForm.php"); } ?> </BODY> </HTML>

    See any problems? It won't dump $frmName onto the .txt file.