Re: [PHP] Session problem
On Sat, Mar 24, 2001 at 08:50:16AM +0100, Rol wrote: > I did notice that the session id is also written to the /tmp folder. Linux > mandrake. If php doesn't set a cookie to save the session-registered variables it stores them in the locatin set in the php.ini (which is by default /tmp) > Things go wrong when I delete the session id in the /tmp folder. It should > not be there in the first place I think, as all details of that session > should be written to the db. mmh...do you write the variables registered with the sessions into the database? (since that is the only information stored in the file in /tmp this seems likely) -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 | fkr@IRCnet | PGP signature
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? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Conversion between dates and weeknumbers
Hello! I don't think that's the solution to my problem. I have a weeknumber, and I need the dates of the days in that week. With strftime gives the weeknumber for a certain date; its a bit clumsy to check all dates in a year to see if the happen to fall in the week I need :). Any other solutions? I don't know how to use the PEAR/Date/Calc.php solution; can't find that php file anywhere... Anybody? Thanks, Michel Jennifer Woodhead wrote: > I think you can do it using > strftime > > %V - The ISO 8601:1988 week number of the current year as a decimal number, > range 01 to 53, where week 1 is the first week that has at least 4 days in > the current year, and with Monday as the first day of the week. > > %W - week number of the current year as a decimal number, starting with the > first Monday as the first day of the first week > > -Original Message- > From: Yasuo Ohgaki [mailto:[EMAIL PROTECTED]] > Sent: 20 March 2001 09:03 > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Conversion between dates and weeknumbers > > How about use PEAR/Date/Calc.php? > > Regards, > -- > Yasuo Ohgaki > > "Michel Groenenstijn" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hello everybody, > > > > I need to convert between dates and weeknumbers, with PHP. Converting a > > given date to a weeknumber can be done with MySQL, but I don't know how > > to go the other way around. I need a function like > > get_dates_in_week($weeknumber). A function to convert between a date and > > a weeknumber without using mysql would help too... > > > > Can anyone help? > > > > Thanx! > > Michel > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] mssql
1) if you are running it on linux(web server ) it will cost you about 2000$ at least to connect it , and you will have to use odbc for linux, 2)if you are using ms web server then you have to enable support for that in php3.ini but usualy this way is not good, i usualy had problems with that and i always used odbc with odbc.dll "Mauricio Alarcon" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello > I want to connect to a Microsoft SQL Server, I try with mssql_connect > but the script don't work, it always say > Call to unsupported or undefined function > What I do worng? > > Thanks > > -- > Mauricio Alarcon Rincon > Webmaster - Webdepot > Linux Registered User # 157093 > > > CF-18 Hornet > > \ / > \ _ / > /_\ > x--( . )--x >x|x | |_|\_/|_| | x|x > xx xx > > http://www.merlinux.org > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] $PHP_SELF - internal error?
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] i get this for some reason
> -Original Message- > From: adam [mailto:[EMAIL PROTECTED]] > Sent: Saturday, March 24, 2001 1:43 AM > To: [EMAIL PROTECTED] > 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] mssql
Actually, OpenLink's ODBC drivers can get you connected from any UNIX to MS SQLServer, and start out at free of charge for 2 concurrent database sessions. This also includes free support. The commercial pricing for higher concurrent database connections starts at $675. The free download is available at http://www.openlinksw.com and a HOWTO on compiling iODBC in with PHP (this is the Driver Manager, which is needed to use any ODBC drivers with Apache/PHP) is available at www.iodbc.org Hope this helps. Best regards, Andrew --- Andrew Hill - OpenLink Software Director Technology Evangelism eBusiness Infrastructure Technology http://www.openlinksw.com On 3/24/01 7:35 AM, "almir" <[EMAIL PROTECTED]> wrote: > 1) if you are running it on linux(web server ) it will cost you about 2000$ > at least to connect it , and you will have to use odbc for linux, > 2)if you are using ms web server then you have to enable support for that in > php3.ini but usualy this way is not good, i usualy had problems with that > and i always used odbc with odbc.dll > "Mauricio Alarcon" <[EMAIL PROTECTED]> schrieb im Newsbeitrag > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >> Hello >> I want to connect to a Microsoft SQL Server, I try with mssql_connect >> but the script don't work, it always say >> Call to unsupported or undefined function >> What I do worng? >> >> Thanks >> >> -- >> Mauricio Alarcon Rincon >> Webmaster - Webdepot >> Linux Registered User # 157093 >> >> >> CF-18 Hornet >> >> \ / >> \ _ / >> /_\ >> x--( . )--x >>x|x | |_|\_/|_| | x|x >> xx xx >> >> http://www.merlinux.org >> >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> To contact the list administrators, e-mail: [EMAIL PROTECTED] >> > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] php4 but dont work with php3
Hello Thanks t all people that reply my last message about a msSQL server, But now I got a new problem, my server was running php3 and today i try to update to php4 with apache 1.3.19 and all file .php3 and php4 don't work, the php only make a echo with all code and the php3 ask for a application or save to disk. I put this line sin 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? Thanks -- Mauricio Alarcon Rincon Webmaster - Webdepot Linux Registered User # 157093 CF-18 Hornet \ / \ _ / /_\ x--( . )--x x|x | |_|\_/|_| | x|x xx xx http://www.merlinux.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Delaying Printed Output
Is it possible using PHP to print a single line of text to a browser, have a second or two delay and then print the next line, etc. etc.? Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] php4 but dont work with php3
Hi, I`m not sure if this is 100% the right method but you can try it and see. Change httpd.conf to the following. AddType application/x-httpd-php .php .php3 Ade -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Delaying Printed Output
In a message dated 24/03/2001 14:47:03 GMT Standard Time, [EMAIL PROTECTED] writes: << Is it possible using PHP to print a single line of text to a browser, have a second or two delay and then print the next line, etc. etc.? Greg >> Hi, You can use the following commands: sleep(seconds); usleep(microseconds); HTH Ade -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] php4 but dont work with php3
Well it work partial, the .php now works but .php3 doesn't work Any other ideas? Thanks Mauricio Alarcon [EMAIL PROTECTED] wrote: > Hi, > > I`m not sure if this is 100% the right method but you can try it and see. > Change httpd.conf to the following. > > AddType application/x-httpd-php .php .php3 > > Ade > -- Mauricio Alarcon Rincon Webmaster - Webdepot Linux Registered User # 157093 CF-18 Hornet \ / \ _ / /_\ x--( . )--x x|x | |_|\_/|_| | x|x xx xx http://www.merlinux.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Delaying Printed Output
to go along with this, check out : Output Control Functions : http://www.php.net/manual/en/ref.outcontrol.php and some interesting ones in the Misc section : Miscellaneous Functions : http://www.php.net/manual/en/ref.misc.php links to a few tutorials are listed in ocf section. speaking of ocf, the Oregon Country Fair is coming up ... July 13-15 2001. the fresh squeezed orange juice is SO good! :-) regards, philip On Sat, 24 Mar 2001 [EMAIL PROTECTED] wrote: > In a message dated 24/03/2001 14:47:03 GMT Standard Time, [EMAIL PROTECTED] > writes: > > << Is it possible using PHP to print a single line of text to a browser, > have a second or two delay and then print the next line, etc. etc.? > > Greg >> > > Hi, > > You can use the following commands: > > sleep(seconds); > usleep(microseconds); > > HTH > Ade > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] php4 but dont work with php3
On Sat, Mar 24, 2001 at 10:49:57AM -0500, Mauricio Alarcon wrote: > Well it work partial, the .php now works but .php3 doesn't work Any > other ideas? make two lines out of it: AddType application/x-httpd-php .php AddType application/x-httpd-php .php3 and so forth. -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 | fkr@IRCnet | PGP signature
[PHP] random letters and numbers
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Very Easy Help Needed Quick!
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] random letters and numbers
Hello, I use a random password function to do just that, function randomPassword($length = 8) { // all the chars we want to use $all = explode( " ", "a b c d e f g h i j k l m n o p q r s t u v w x y z " . "A B C D E F G H I J K L M N O P Q R S T U V W X Y Z " . "0 1 2 3 4 5 6 7 8 9 _"); for($i=0;$i<$length;$i++) { srand((double)microtime()*100); $randy = rand(0, 61); $pass .= $all[$randy]; } return $pass; } $new_filename = randomPassword(10); For the delete of the file, unlink is your answer: http://www.php.net/manual/en/function.unlink.php hope it help! py At 12:05 PM 3/24/01 -0500, you 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: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] + == + Pierre-Yves Lem@ire + E-MedHosting.com + (514) 729-8100 + [EMAIL PROTECTED] + == -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
php-general Digest 24 Mar 2001 17:39:19 -0000 Issue 586
php-general Digest 24 Mar 2001 17:39:19 - Issue 586 Topics (messages 45411 through 45433): i get this for some reason 45411 by: adam 45414 by: adam 45415 by: Rasmus Lerdorf 45418 by: adam 45422 by: Jason Lotito Re: installation problem 45412 by: Rasmus Lerdorf Sendmail 45413 by: Atet Sugiharto Session problem 45416 by: Rol 45417 by: Felix Kronlage Re: Conversion between dates and weeknumbers 45419 by: Michel Groenenstijn Re: mssql 45420 by: almir 45423 by: Andrew Hill $PHP_SELF - internal error? 45421 by: Tommy php4 but dont work with php3 45424 by: Mauricio Alarcon 45426 by: KPortsmout.aol.com 45428 by: Mauricio Alarcon 45430 by: Felix Kronlage Delaying Printed Output 45425 by: Greg Scott 45427 by: KPortsmout.aol.com 45429 by: Philip Olson random letters and numbers 45431 by: Randy Johnson 45433 by: Pierre-Yves Lemaire Very Easy Help Needed Quick! 45432 by: Tony Daniels Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] -- everytime i post text to this file, i get the characters " and ' turning up as \" and \' is there anything i can add that would keep them from outputting into this? here is the code i use: ", $message); $date = date("l, F j Y, h:i a"); if ($email == "") { $message = "\n \n $name -- $date\n \n $message\n \n \n\n"; } else { $message = "\n \n mailto:$email>$name -- $date\n \n $message\n \n \n\n"; } $fp = fopen ("comment.php.comment", "a"); fwrite ($fp, $message); fclose ($fp); } @readfile("comment.php.comment"); ?> p.s. the submitted text $ message is what is returning the wierd quote marks Turn off magic_quotes_gpc in your php.ini file. -Rasmus On Fri, 23 Mar 2001, adam wrote: > everytime i post text to this file, i get the characters " and ' turning up > as \" and \' > > is there anything i can add that would keep them from outputting into this? > > here is the code i use: > > > if ($message) > { > /* uncomment the next two lines to strip out html from input */ > $name = strip_tags($name); > /* $message = strip_tags($message); */ > $message = ereg_replace("\r\n\r\n", "\n", $message); > $date = date("l, F j Y, h:i a"); > > if ($email == "") { > $message = "\n > \n > $name -- $date\n > \n >$message\n > \n > \n\n"; > } else { > $message = "\n > \n > mailto:$email>$name size=1> -- $date\n > \n >$message\n > \n > \n\n"; > } > $fp = fopen ("comment.php.comment", "a"); > fwrite ($fp, $message); > fclose ($fp); > } > @readfile("comment.php.comment"); > ?> > > > > > 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? > -Original Message- > From: adam [mailto:[EMAIL PROTECTED]] > Sent: Saturday, March 24, 2001 1:43 AM > To: [EMAIL PROTECTED] > 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. Because PHP needs to be able to find both the lib and the header files. Since the header files are nowhere to be found under /usr/lib, that isn't going to work. --with-gd=/usr is what you want here. -Rasmus On Sat, 24 Mar 2001, Paulo Vinícius Vitto Ruthes wrote: > can somebody explain me WHY I can't make my PHP > compile with GD? I put --with-gd=/usr/lib/ where usualy > the libgd.* are, and there THEY ARE, but the ./configure (blabla yada > yada yada) returns me that COULDN'T FIND the > libgd.* in /usr/lib/ > > does anybody have some solution please? > > Hi , I'm at a lossI've searched throught the knowledgebase, archives, docs, etc but I can't figure out what's going on. The problem is when using the mail() function nothing gets send and I don't get any error messages either. It's like the message gets eaten by a black hole. I already put "-t -i" in the path, but still doesn't work .. Anybody can help me ? Regards, Atet Sugiharto Hello all each user gets a session id which can be reused later. I am writing all encoded details to for that session to mysql database. If the same user returns later (hours,day) he/she can use her Id (input box) and I get the details from the database. I did notice that the session id is also written to the /tmp folder. Linux mandrake. Things go wrong when I delete the session id in the /tmp folder. It should not be there in th
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"; SLEEP(2) ; PRINT "Is a"; 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Delaying Printed Output
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:[EMAIL PROTECTED]] Sent: Saturday, March 24, 2001 1:42 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] 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"; SLEEP(2) ; PRINT "Is a"; 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] random letters and numbers
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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] /*\ *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-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Delaying Printed Output
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Greg Scott) wrote: > > sleep(seconds); > > usleep(microseconds); > > I've tried those 2 functions, in an example like this: > > PRINT "This"; > SLEEP(2) ; > PRINT "Is a"; > 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] read out apache log files with php
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Delaying Printed Output
> 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] read out apache log files with php
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 | fkr@IRCnet | PGP signature
Re: [PHP] Delaying Printed Output
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 <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Delaying Printed Output > > In article <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] (Greg Scott) wrote: > > > > sleep(seconds); > > > usleep(microseconds); > > > > I've tried those 2 functions, in an example like this: > > > > PRINT "This"; > > SLEEP(2) ; > > PRINT "Is a"; > > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > Kelly 303-444-1671 Boulder, Colorado -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Delaying Printed Output
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/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Delaying Printed Output
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (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 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Text fading with PHP?
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:[EMAIL PROTECTED]] Sent: Saturday, March 24, 2001 2:29 PM To: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Text fading with PHP?
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:[EMAIL PROTECTED]] > Sent: Saturday, March 24, 2001 2:29 PM > To: [EMAIL PROTECTED] > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-CVS] cvs: php4 /ext/pgsql pgsql.c
romolo Sat Mar 24 10:36:43 2001 EDT Modified files: /php4/ext/pgsql pgsql.c Log: Solved bugs #9746 and #9937, pg_close was closing twice the default conn. Index: php4/ext/pgsql/pgsql.c diff -u php4/ext/pgsql/pgsql.c:1.93 php4/ext/pgsql/pgsql.c:1.94 --- php4/ext/pgsql/pgsql.c:1.93 Sun Feb 25 22:07:12 2001 +++ php4/ext/pgsql/pgsql.c Sat Mar 24 10:36:43 2001 @@ -17,7 +17,7 @@ +--+ */ -/* $Id: pgsql.c,v 1.93 2001/02/26 06:07:12 andi Exp $ */ +/* $Id: pgsql.c,v 1.94 2001/03/24 18:36:43 romolo Exp $ */ #include @@ -531,7 +531,8 @@ if (id!=-1 || (pgsql_link && Z_RESVAL_PP(pgsql_link)==PGG(default_link))) { - zend_list_delete(PGG(default_link)); + if (id!=-1) + zend_list_delete(PGG(default_link)); PGG(default_link) = -1; } -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-CVS] cvs: php4 /pear/DB STATUS ifx.php
cox Sat Mar 24 10:56:25 2001 EDT Modified files: /php4/pear/DB STATUS ifx.php Log: Minor fixes Index: php4/pear/DB/STATUS diff -u php4/pear/DB/STATUS:1.16 php4/pear/DB/STATUS:1.17 --- php4/pear/DB/STATUS:1.16Fri Mar 23 23:00:45 2001 +++ php4/pear/DB/STATUS Sat Mar 24 10:56:24 2001 @@ -9,16 +9,16 @@ "n" - returns "not capable" "-" - no implementation of this feature -FEATURE ibase msqlmssql mysql oci8odbcpgsql sybase -simpleQuery x x x T T x T x -numCols x x x T T x T x -numRows n x x T E n T n -errorNative n n n T x x T n -prepare/execute x e e E T e E e -sequences n n n E T n T n -affectedRows n n n T T n T n -fetch modes x x x T T x T x -transactions x n n n x x x n -auto-commit x n n n x x x n -error mapping - - - T T x E - -tableInfo n n n T n n n n +FEATURE ibase msqlmssql mysql oci8odbcpgsql sybase ifx +simpleQuery x x x T T x T x x +numCols x x x T T x T x x +numRows n x x T E n T n n +errorNative n n n T x x T n x +prepare/execute x e e E T e E e - +sequences n n n E T n T n - +affectedRows n n n T T n T n x +fetch modes x x x T T x T x x +transactions x n n n x x x n - +auto-commit x n n n x x x n - +error mapping - - - T T x E - x +tableInfo n n n T n n n n - Index: php4/pear/DB/ifx.php diff -u php4/pear/DB/ifx.php:1.1 php4/pear/DB/ifx.php:1.2 --- php4/pear/DB/ifx.php:1.1Fri Mar 23 11:26:55 2001 +++ php4/pear/DB/ifx.phpSat Mar 24 10:56:24 2001 @@ -67,7 +67,7 @@ $connect_function = $persistent ? 'ifx_pconnect' : 'ifx_connect'; $this->connection = @$connect_function($dbname, $user, $pw); if ($this->connection == false) { -return $this->ifxraiseError(); +return $this->ifxraiseError(DB_ERROR_CONNECT_FAILED); } return DB_OK; } @@ -201,7 +201,7 @@ $errno = $this->errorCode(); } -return $this->raiseError($errno, false, false, false, +return $this->raiseError($errno, null, null, null, $this->errorNative()); } -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-CVS] cvs: php4 /pear/Experimental/XML sql2xml.php sql2xml_ext.php
chregu Sat Mar 24 12:00:03 2001 EDT Added files: /php4/pear/Experimental/XML sql2xml.php sql2xml_ext.php Log: First Commit of the sql2xml classes. This class takes a PEAR::DB-Result Object (or more than one) and returns a xml-representation of it. Index: php4/pear/Experimental/XML/sql2xml.php +++ php4/pear/Experimental/XML/sql2xml.php http://www.php.net/license/2_02.txt. | // | If you did not receive a copy of the PHP license and are unable to | // | obtain it through the world-wide-web, please send a note to | // | [EMAIL PROTECTED] so we can mail you a copy immediately. | // +--+ // | Authors: Christian Stocker <[EMAIL PROTECTED]> | // +--+ // // $Id: sql2xml.php,v 1.1 2001/03/24 20:00:02 chregu Exp $ /** * This class takes a PEAR::DB-Result Object (or more than one) * and returns a xml-representation of it. * * More docs will follow * * Usage example * * include_once ("DB.php"); * include_once("XML/sql2xml.php"); * $db = DB::connect("mysql://root@localhost/xmltest"); * $xml = new xml_sql2xml; * $result = $db->query("select * from bands"); * $xmlstring = $xml->getxml($result,$options)); * * more examples and outputs on * http://www.nomad.ch/php/sql2xml * for the time being * * @author Christian Stocker <[EMAIL PROTECTED]> * @version $Id: sql2xml.php,v 1.1 2001/03/24 20:00:02 chregu Exp $ */ class XML_sql2xml { /** * * @var boolean */ var $nested = True; /** * * @var boolean */ var $user_options = False; /** * * @var object domxml */ var $xmldoc; /** * * @var string */ var $xmlroot = ""; /** * * * @param string */ function XML_sql2xml ($root = "root") { $this->xmldoc = domxml_new_xmldoc('1.0'); if ($root) { $this->xmlroot = $this->xmldoc->add_root($root); } } /** * Adds an aditional resultset to the xml-document * * @paramObject result result from a DB-query * @paramarray mixed options to be passed (does it need that?) * @return string xml * @access public */ function add_result($result, $options = False) { $this->do_sql2xml($result, $options); } /** * Returns an xml-string with a xml-representation of the resultsets. * * The resultset can be directly provided here, or if you need more than one * in your xml, then you have to provide each of them with add_result befor getxml * * @paramObject result result from a DB-query * @paramarray mixed options to be passed (does it need that?) * @return string xml * @access public */ function getxml($result = False, $options = False) { return domxml_dumpmem($this->getxmlObject($result, $options)); } /** * Returns an xml DomDocument Object with a xml-representation of the resultsets. * * The resultset can be directly provided here, or if you need more than one * in your xml, then you have to provide each of them with add_result befor getxml * * @paramObject result result from a DB-query * @paramarray mixed options to be passed (does it need that?) * @return Object DomDocument * @access public */ function getxmlObject($result = False, $options = False) { if ($result) { $this->do_sql2xml($result, $options); } return $this->xmldoc; } function do_sql2xml($result, $options = False) { //set options if (is_array($options)) { foreach ($options as $option => $value) { $this->setOption($option, $value); } } //user should be able to give his own tableInfo-array, but not implemented yet if (! ($tableInfo = $result->tableInfo(False))) { //emulate tableInfo. this can go away, if every db supports tableInfo $fetchmode = DB_FETCHMODE_ASSOC; $res = $result->FetchRow($fetchmode); $this->nested = False; $i = 0; while (list($key, $val) = each($res)) { $tableInfo[$i][table]= "result"; $tableInfo[$i][name] = $key; $resFirstRow[$i] = $val; $i++; } $res = $resFirstRow; $FirstFetchDone = True; $fetchmode = DB_FETCHMODE_ORDERED; } else { $fetchmode = DB_FETCHMODE_ORDERED; } // initialize db hierarchy... $parenttable = "root"; $tableInfo[parent_key][root] = 0; foreach
[PHP-CVS] cvs: php4 /pear/HTML Common.php
adaniel Sat Mar 24 13:09:00 2001 EDT Modified files: /php4/pear/HTML Common.php Log: removed extra whitespace Index: php4/pear/HTML/Common.php diff -u php4/pear/HTML/Common.php:1.6 php4/pear/HTML/Common.php:1.7 --- php4/pear/HTML/Common.php:1.6 Fri Mar 23 20:33:10 2001 +++ php4/pear/HTML/Common.php Sat Mar 24 13:08:59 2001 @@ -16,7 +16,7 @@ // | Authors: Adam Daniel <[EMAIL PROTECTED]>| // +--+ // -// $Id: Common.php,v 1.6 2001/03/24 04:33:10 adaniel Exp $ +// $Id: Common.php,v 1.7 2001/03/24 21:08:59 adaniel Exp $ /** * Base class for all HTML classes @@ -242,4 +242,3 @@ } // end class HTML_Common ?> - -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] PHP vs Servlet
So tell us? Mike -Original Message- From: Jesper Blomstrm [mailto:[EMAIL PROTECTED]] Sent: Monday, March 19, 2001 4:51 PM To: [EMAIL PROTECTED] Subject: SV: [PHP] PHP vs Servlet I found out how to do it. Thx anyway / J Jesper Blomström <[EMAIL PROTECTED]> skrev i diskussionsgruppsmeddelandet:[EMAIL PROTECTED] > 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 > [EMAIL PROTECTED] > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-CVS] cvs: php4 / php.ini-dist
sbergmann Sat Mar 24 13:38:58 2001 EDT Modified files: /php4 php.ini-dist Log: Added php_dbx.dll. Index: php4/php.ini-dist diff -u php4/php.ini-dist:1.74 php4/php.ini-dist:1.75 --- php4/php.ini-dist:1.74 Tue Mar 20 14:45:10 2001 +++ php4/php.ini-dist Sat Mar 24 13:38:58 2001 @@ -1,5 +1,5 @@ [PHP] -; $Id: php.ini-dist,v 1.74 2001/03/20 22:45:10 phanto Exp $ +; $Id: php.ini-dist,v 1.75 2001/03/24 21:38:58 sbergmann Exp $ ;;; ; About this file ; @@ -378,6 +378,7 @@ ;extension=php_db.dll ;extension=php_dba.dll ;extension=php_dbase.dll +;extension=php_dbx.dll ;extension=php_domxml.dll ;extension=php_dotnet.dll ;extension=php_exif.dll -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Problems passing data via GET and POST
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: <[EMAIL PROTECTED]> Scouts Canada: <[EMAIL PROTECTED]> Personal:<[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-CVS] cvs: php4 /pear Makefile.in
sbergmann Sat Mar 24 13:40:26 2001 EDT Modified files: /php4/pear Makefile.in Log: Added missing files. Index: php4/pear/Makefile.in diff -u php4/pear/Makefile.in:1.73 php4/pear/Makefile.in:1.74 --- php4/pear/Makefile.in:1.73 Mon Mar 12 11:35:28 2001 +++ php4/pear/Makefile.in Sat Mar 24 13:40:25 2001 @@ -40,6 +40,7 @@ Cache/Graphics.php \ Cache/Output.php \ Cache/Container/db.php \ + Cache/Container/dbx.php \ Cache/Container/file.php \ Cache/Container/phplib.php \ Cache/Container/shm.php \ @@ -62,10 +63,14 @@ File/Find.php \ File/Passwd.php \ File/SearchReplace.php \ + HTML/Common.php \ HTML/Form.php \ HTML/IT.php \ HTML/ITX.php \ + HTML/Page.php \ HTML/Processor.php \ + HTML/Select.php \ + HTML/Table.php \ HTTP.php \ HTTP/Compress.php \ Image/Remote.php \ -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-CVS] cvs: php4 /pear Makefile.in
jon Sat Mar 24 13:48:42 2001 EDT Modified files: /php4/pear Makefile.in Log: Install the Informix database implementation. Index: php4/pear/Makefile.in diff -u php4/pear/Makefile.in:1.74 php4/pear/Makefile.in:1.75 --- php4/pear/Makefile.in:1.74 Sat Mar 24 13:40:25 2001 +++ php4/pear/Makefile.in Sat Mar 24 13:48:41 2001 @@ -52,6 +52,7 @@ DB.php \ DB/common.php \ DB/ibase.php \ + DB/ifx.php \ DB/msql.php \ DB/mssql.php \ DB/mysql.php \ -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: [PHP-DB] connection id
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 <[EMAIL PROTECTED]> Para: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED] > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] connection id
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:[EMAIL PROTECTED]] > Sent: Friday, March 23, 2001 3:38 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > 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:[EMAIL PROTECTED] > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Very Easy Help Needed Quick!
Hi, point the link "save this..." to the same script with some trailling vars: ... 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] oracle last inserted
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Text fading with PHP?
i think you need DHTML or flash almir ""Jamie Anderson"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 99is88$m8a$[EMAIL PROTECTED]">news:99is88$m8a$[EMAIL PROTECTED]... > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] $PHP_SELF - internal error?
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"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 99i3q7$57q$[EMAIL PROTECTED]">news:99i3q7$57q$[EMAIL PROTECTED]... > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] i get this for some reason
$text=stripslashes($text); almir ""Jason Lotito"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > -Original Message- > > From: adam [mailto:[EMAIL PROTECTED]] > > Sent: Saturday, March 24, 2001 1:43 AM > > To: [EMAIL PROTECTED] > > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Image background bleeding through text
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"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 000c01c0b3b7$87a071c0$8105a8c0@kevin">news:000c01c0b3b7$87a071c0$8105a8c0@kevin... 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] WebCam and PHP
simply insert disk2 into flopy and press any key to continue almir ""Chris Lee"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 99fq6b$acv$[EMAIL PROTECTED]">news:99fq6b$acv$[EMAIL PROTECTED]... wow thats a vague question :) are you trying to display them to the user? echo " "; 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 [EMAIL PROTECTED] ""Marcelo Pereira"" <[EMAIL PROTECTED]> wrote in message 006001c0b396$05167cc0$0b01a8c0@hmmg">news:006001c0b396$05167cc0$0b01a8c0@hmmg... 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] ImageTTFText()
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 ] [ [EMAIL PROTECTED] ] [ICQ#:18058144] ["Viva la cucaracha!!"] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Move data from one MySql table to another?
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"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 99e1q7$gv8$[EMAIL PROTECTED]">news:99e1q7$gv8$[EMAIL PROTECTED]... > I need to know how to do it in PHP? > > > ""Cal Evans"" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > : 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:[EMAIL PROTECTED]] > : Sent: Thursday, March 22, 2001 5:20 PM > : To: [EMAIL PROTECTED] > : 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: [EMAIL PROTECTED] > : For additional commands, e-mail: [EMAIL PROTECTED] > : To contact the list administrators, e-mail: [EMAIL PROTECTED] > : > : > : > : -- > : PHP General Mailing List (http://www.php.net/) > : To unsubscribe, e-mail: [EMAIL PROTECTED] > : For additional commands, e-mail: [EMAIL PROTECTED] > : To contact the list administrators, e-mail: [EMAIL PROTECTED] > : > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] indirectly call function?
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: the page shows "mod_news()" instead of calling my function :( It works if I use but not if I'm trying to hold the function name in the variable. I've tried all to no avail. any ideas? tks! jaxon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] indirectly call function?
$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: > > > > >the page shows "mod_news()" instead of calling my function :( >It works if I use but not if I'm trying to hold >the function name in the variable. > >I've tried > > > > >all to no avail. > >any ideas? > >tks! >jaxon > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] php4 but dont work with php3
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: [EMAIL PROTECTED] * Private matter : [EMAIL PROTECTED] -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] attachments with mail() function
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] escape sequences not recognized inside an .html
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:[EMAIL PROTECTED]] Sent: Saturday, March 24, 2001 9:07 PM To: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] i get this for some reason
thanks a bunch ^^ it works great -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Image background bleeding through text
Yes, I have. And I wouldn't mind getting rid of that :-) > -Original Message- > From: Kevin Rose [mailto:[EMAIL PROTECTED]] > Sent: Friday, March 23, 2001 9:37 AM > To: [EMAIL PROTECTED] > 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 > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] attachments with mail() function
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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] fopen with URL gives me a problem
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 finethen 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?=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 " Temperature in Habana, on $data, at "; if ($ora < 0){ $timezone = ($ora + 24); echo $timezone; }else{ echo $ora ; } echo " is: $reg[1] C ($far F)"; fclose($wfile); end of code -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] [PHP4]
I've defined all the variables in the form, and have all the files.. Submit News Your news has been processed and added to the main page. Thanks! See any problems? It won't dump $frmName onto the .txt file. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
php-general Digest 25 Mar 2001 06:01:39 -0000 Issue 587
php-general Digest 25 Mar 2001 06:01:39 - 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: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] -- 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 <[EMAIL PROTECTED]> Para: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED] > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > You can use the following commands: > > sleep(seconds); > usleep(microseconds); I've tried those 2 functions, in an example like this: PRINT "This"; SLEEP(2) ; PRINT "Is a"; 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 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:[EMAIL PROTECTED]] Sent: Saturday, March 24, 2001 1:42 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] 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"; SLEEP(2) ; PRINT "Is a"; 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Gre
[PHP] Re: Text fading with PHP?
Here's what you wrote, 01.03.24: >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 No, due to some browsers waiting for all a complete document object before outputting text. Even with browsers that will parse and display a partial feed, you really can't achieve a smooth effect due to network latency. The best thing to do is to work with JavaScript and CSS. Look into the setTimeout() function in JavaScript and use it to step through different color values for your text using CSS. Or, just use an animated gif. K -- __ Kristofer Widholm Web Pharmacy [EMAIL PROTECTED] 191 Grand Street, Brooklyn NY 11211 718.599.4893 __ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] What is session.cookie_secure?
I guess its for make use of cookie's secure option. (Send cookie only when encryption (SSL) is enabled) I haven't look into code, so I can be wrong. -- Yasuo Ohgaki "Michael Champagne" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I noticed the setting session.cookie_secure in my php_info(), but could not > find anything mentioned about it in the documentation. Does anyone know what > this setting does? > > -- > Michael Champagne, Software Engineer > Capital Institutional Services, Inc. > wk: [EMAIL PROTECTED] > hm: [EMAIL PROTECTED] > > > > ** > This communication is for informational purposes only. It is not > intended as an offer or solicitation for the purchase or sale of > any financial instrument or as an official confirmation of any > transaction, unless specifically agreed otherwise. All market > prices, data and other information are not warranted as to > completeness or accuracy and are subject to change without > notice. Any comments or statements made herein do not > necessarily reflect the views or opinions of Capital Institutional > Services, Inc. Capital Institutional Services, Inc. accepts no > liability for any errors or omissions arising as a result of > transmission. Use of this communication by other than intended > recipients is prohibited. > ** > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] [PHP4]
if($formSubmit) { echo "form submitted: $frmName"; //<= have you tried this to make sure $formSubmit is true? $newsSubmit = file("news.txt"); //RTM, your not using file() the way it's inteneded. $fp = fopen("news.txt", 'a'); //looks good fwrite($fp, $frmName); //looks good, but does $frmName contain anything? fclose($fb); //$newsSubmit is not a file pointer and should not be used as such, use $fp instead. } else {... good luck ""Dddogbruce (@home.com)"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I've defined all the variables in the form, and have all the files.. > > > Submit News > > 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"); > } > ?> > > > > See any problems? It won't dump $frmName onto the .txt file. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Compiling, How to resolve COM
I've been trying to compile php4 on Windows. Almost there, but I haven't figured out how to resolve this, except to yank COM stuff out of the source. Haven't figured out how to compile oci8 either, but that's secondary to the initial obstical. With RC1 and the latest snaps, there are unresolved symboles in the compile: Linking... Creating library ..\Debug/php4nts_debug.lib and object ..\Debug/php4nts_debug.exp internal_functions_win32.obj : error LNK2001: unresolved external symbol _VARIANT_module_entry COM.obj : error LNK2001: unresolved external symbol _php_char_to_OLECHAR COM.obj : error LNK2001: unresolved external symbol _php_OLECHAR_to_char COM.obj : error LNK2001: unresolved external symbol _php_pval_to_variant COM.obj : error LNK2001: unresolved external symbol _php_variant_to_pval ..\Debug\php4nts_debug.dll : fatal error LNK1120: 5 unresolved externals Error executing link.exe. Please enlighten me. Thanks, -Joe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]