[PHP] logout
I have php site that user is required to login, but I don't have logout function yet. Is there anyone know the most practical way of logout method that people use nowadays?, in php I mean. There is no session or cookies used in this site. Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself"
[PHP] good ide?
Does anyone know of a good PHP ide? I've tried PHP-Coder, but it has bugs stem to stern, not the least of which mysteriously deleted an entire page of code... PHP Script editor I've also tried, but it is barren and in German... If only there were a Sun Forte for php :( Luke -- 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]
Fw: [PHP] logout
Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" - Original Message - From: Jacky@lilst [EMAIL PROTECTED] To: Yamin Prabudy [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, February 27, 2001 3:49 PM Subject: Re: [PHP] logout Sorry, it was my mistake. There is session used to store userID and password after the successful login. I don't under stand what you mean about to clean up variables, how? Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" - Original Message - From: Yamin Prabudy [EMAIL PROTECTED] To: Jacky@lilst [EMAIL PROTECTED] Sent: Tuesday, February 27, 2001 2:40 AM Subject: Re: [PHP] logout but still you had the variable hanging on the cookies while you are running the login function... just clean out all the variables and then you had a log out function (clean all the cookies) if you don't used cookies how do you transfer all the login variable ? - Original Message - From: Jacky@lilst [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 28, 2001 4:14 AM Subject: [PHP] logout I have php site that user is required to login, but I don't have logout function yet. Is there anyone know the most practical way of logout method that people use nowadays?, in php I mean. There is no session or cookies used in this site. Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" -- 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] How to wrap output of formatted text
In article 05d201c0a069$4877e0c0$[EMAIL PROTECTED], [EMAIL PROTECTED] ("Clayton Dukes") wrote: $row = mysql fetch array($sth); if ($row[0] != "") { echo $row[0]; prints the data, but some of the results are long strings of text that don't wrap in the browser, how can I force them to wrap at the edge of the browser? You already discovered the wordwrap() solution. The html solution looks like this: if ($row[0] != "") { echo "p$row[0]/p"; Cheers! -- 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] logout
Sorry, it was my mistake. There is session used to store userID and password after the successful login. I don't under stand what you mean about to clean up variables, how? Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" - Original Message - From: Yamin Prabudy [EMAIL PROTECTED] To: Jacky@lilst [EMAIL PROTECTED] Sent: Tuesday, February 27, 2001 2:40 AM Subject: Re: [PHP] logout but still you had the variable hanging on the cookies while you are running the login function... just clean out all the variables and then you had a log out function (clean all the cookies) if you don't used cookies how do you transfer all the login variable ? - Original Message - From: Jacky@lilst [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 28, 2001 4:14 AM Subject: [PHP] logout I have php site that user is required to login, but I don't have logout function yet. Is there anyone know the most practical way of logout method that people use nowadays?, in php I mean. There is no session or cookies used in this site. Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" -- 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] can anyone please remove this subscriber:kia01@jnd.terra.com.br?
No offend but can anyone please remove this subscriber : [EMAIL PROTECTED] ? His mail box is full and I got the message to tell me that everytime I post the message to the list, this time included :-) Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself"
Re: [PHP] PostgreSQL vs InterBase
Hi We have been using Interbase for all our php development and have not experienced problems. The oprational database is 4gigs and if we execute large queries on it we recieve sub-second responses so speed is definetly not a problem Interbase is a good way to go if you have need for a relational database and of course a bonus is that it is free :) - Original Message - From: Arnold Gamboa [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 27, 2001 11:00 AM Subject: [PHP] PostgreSQL vs InterBase I hve heard a great deal about InterBase. Please comment on which is better: 1. Speed 2. Data Reliability 3. Compatibility with PHP Thanks for your comments. -- 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] logout
if you are using session session_destroy might do the trick... "Jacky@lilst" wrote: Sorry, it was my mistake. There is session used to store userID and password after the successful login. I don't under stand what you mean about to clean up variables, how? Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" - Original Message - From: Yamin Prabudy [EMAIL PROTECTED] To: Jacky@lilst [EMAIL PROTECTED] Sent: Tuesday, February 27, 2001 2:40 AM Subject: Re: [PHP] logout but still you had the variable hanging on the cookies while you are running the login function... just clean out all the variables and then you had a log out function (clean all the cookies) if you don't used cookies how do you transfer all the login variable ? - Original Message - From: Jacky@lilst [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 28, 2001 4:14 AM Subject: [PHP] logout I have php site that user is required to login, but I don't have logout function yet. Is there anyone know the most practical way of logout method that people use nowadays?, in php I mean. There is no session or cookies used in this site. Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" -- 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] logout
for cookie... just setcookie() of the same cookiename to null; "Jacky@lilst" wrote: I have php site that user is required to login, but I don't have logout function yet. Is there anyone know the most practical way of logout method that people use nowadays?, in php I mean. There is no session or cookies used in this site. Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" -- 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] good ide?
Dan Cleveland wrote: A good ide specifically for PHP is being developed rather rapidly. It's called PHP Studio and once version 2.0 is complete (should be within 2 weeks) an announcement will be posted to this list. Good luck until then Dan Cleveland PHP Studio Programmer -- 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] Why not VIM? VIM is a hell of editor! -- 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 / TODO
stasTue Feb 27 01:15:03 2001 EDT Modified files: /php4 TODO Log: ws fix Index: php4/TODO diff -u php4/TODO:1.118 php4/TODO:1.119 --- php4/TODO:1.118 Tue Feb 27 01:11:56 2001 +++ php4/TODO Tue Feb 27 01:15:02 2001 @@ -14,7 +14,7 @@ but don't declare those as const. This makes interaction with other interfaces difficult which pass const parameters to us. * add try..catch/throw exception handling - * make UNC filenames work with V_CD layer +* make UNC filenames work with V_CD layer global -- -- 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 / TODO
sbergmann Tue Feb 27 01:16:49 2001 EDT Modified files: /php4 TODO Log: PHP3_TLS_*() macros are no longer used in ext/dav/dav.c, ext/ldap/ldap.c. Index: php4/TODO diff -u php4/TODO:1.119 php4/TODO:1.120 --- php4/TODO:1.119 Tue Feb 27 01:15:02 2001 +++ php4/TODO Tue Feb 27 01:16:48 2001 @@ -27,7 +27,7 @@ target. * make sure all source files have the "right" copyright. * the following modules still use PHP3_TLS_*() macros (and thereby don't - work in ZTS mode): ext/dav/dav.c, ext/db/db.c, ext/gd/gd.c, ext/ldap/ldap.c + work in ZTS mode): ext/db/db.c, ext/gd/gd.c * make sure that all ZTS globals get destructed. Most ts_allocate_id() calls should have a dtor entry. * activate all extensions by default that don't rely on external -- 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: forms functions
essentially, no. PHP runs server side and the action of a form is generated client-side. To run a PHP function the page needs to be resubmitted. The code you have written will run the function before the page is submitted. try something like ... ? function myfunction() { if($submit) { $result = mysql_query("INSERT INTO app (name,company,address,suburb,state,post,areacode,phone,faxarea code,fax,email,secret) VALUES ('$name','$company','$address','$suburb','$state','$post', '$areacode','$phone','$faxareacode','$fax','$email','$secret')"); } } if ($thissubmit) myfunction(); ? form action="#?submit=?php echo($submit) ?thissubmit=1" Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html -Original Message- From: Peter Houchin [mailto:[EMAIL PROTECTED]] Sent: 27 February 2001 00:16 To: PHP MAIL GROUP Subject: forms functions Hiya, Can i call a function from the action line of a form? ie: ? function myfunction(){ if($submit){ $result = mysql_query("INSERT INTO app (name,company,address,suburb,state,post,areacode,phone,faxarea code,fax,email,secret) VALUES ('$name','$company','$address','$suburb','$state','$post','$ar eacode','$phone','$faxareacode','$fax','$email','$secret')"); } } ? form action="? myfunction(); ? i would like to do it this way because i have a form on another page with passed the vaules thru to this one .. and i don't want it looking at the if($submit) Any help would be great Thanks Peter Houchin Sun Rentals [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] remote printing from php script
Hello Listers, I wish to print a file on a remote printer that is a queue on a Novell server. The print command is coming from an exec() function in a php3 script running under IIS on an NT 4 server. If I run the script from a dos prompt at the server, the file is printed to the Novell queue, but if the php3 script is 'run' from a web page it does not print. I have also tried the using the 'system()' function with the same result. By altering the php script, I can make the output go to a printer attached to the server's lpt1 port, so I know the syntax is OK. I have tried the 'net use lpt2 \\server\print_queue ' command both in the windows registry and in a batch file (see below) to send the output to the queue. I have also tried putting the print and net use commands in a batch file and run that from php3. Maybe someone can see a better approach or has done something like this before. Cheers KIM -- 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] fwrite in PHP4
This script works properly under PHP 3.0.18, but in PHP 4.0.4pl1 is the result file empty. When I add commented line #2 instead of calling MyEcho, it works correctly. When I add lines #1, it works somehow strange. After fwrite and fclose is file empty and after second fopen (and no fwrite) "OK" appears in it. What am I doing wrong? ? function MyEcho($Text) { global $GlPOutputFile, $GlOutputFile; fwrite($GlPOutputFile, $Text); #1 fclose($GlPOutputFile); #1 copy($GlOutputFile, "after_write"); #1 $GlPOutputFile=fopen($GlOutputFile, 'a'); } { $GlOutputFile=uniqid("/tmp/").".tmp"; $GlPOutputFile=fopen($GlOutputFile, "w"); MyEcho("OK"); #2 fwrite($GlPOutputFile, "OK"); fclose($GlPOutputFile); copy($GlOutputFile, "result"); unlink($GlOutputFile); } ? -- 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] help on select
On Tue, Feb 27, 2001 at 03:12:17PM +0700, Yamin Prabudy wrote: Hi there I had a problem here I got a database in mysql that contains the date format like this "Mar 12 2001" now i try to sort the database and find out how many data in my MySQL that had a date "Mar 12 2001" how can i change that kind of format so i can compare the data in unix time stamp format Try this: ?php $date = mktime(0, 0, 0, 3, 12, 2001); $sql = "select * from table_name where unix_timestamp(date_column) " . " $date"; ? -- Jason Stechschulte [EMAIL PROTECTED] -- Interestingly enough, since subroutine declarations can come anywhere, you wouldn't have to put BEGIN {} at the beginning, nor END {} at the end. Interesting, no? I wonder if Henry would like it. :-) --lwall -- 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] Exception Handling in php
Is there any equivalent to Java's try-catch or Perl's eval{BLOCK}if($@) structure in 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] User Authentication
Try this, it works for me. Mike if(!isset($PHP_AUTH_USER)) { Header("WWW-Authenticate: Basic realm=\"User Database\""); Header("HTTP/1.0 401 Unauthorized"); echo "H1ERROR/H1You must enter a correct username and password in order to proceed\n"; exit; } else { if ($PHP_AUTH_USER=="admin" $PHP_AUTH_PW=="love2change"){ print "You are successfully authenticated"; } else { Header("WWW-Authenticate: Basic realm=\"User Database\""); Header("HTTP/1.0 401 Unauthorized"); echo "You did not supply proper credentials and are therefore denied login\n"; exit; } } ? -Original Message- From: Amer Alhabsi [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 27, 2001 1:42 AM To: [EMAIL PROTECTED] Subject: [PHP] User Authentication Hi, I'm trying to use an authentication method I found in a tutorial in the net. The server prompts for username/password. But if I enter the hard coded values (or any other values) the server rejects them with a message authorization failed. I use PHP 4 as a module on IIS Thanks very much for any help, here is the program I got from the tutorial. ?php if ( ( !isset( $PHP_AUTH_USER )) || (!isset($PHP_AUTH_PW)) || ( $PHP_AUTH_USER != 'user' ) || ( $PHP_AUTH_PW != 'open' ) ) header( 'WWW-Authenticate: Basic realm="Private"' ); header( 'HTTP/1.0 401 Unauthorized' ); echo 'Authorization Required.'; exit; } else echo 'Success!'; } ? -- 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 /sapi/isapi php4isapi.c
joostersTue Feb 27 05:29:22 2001 EDT Modified files: /php4/sapi/isapiphp4isapi.c Log: Added PHP_AUTH_USER, PHP_AUTH_PW and PHP_AUTH_TYPE environment variables for Zeus/ISAPI, so basic authenication works. Submitted by: [EMAIL PROTECTED] Index: php4/sapi/isapi/php4isapi.c diff -u php4/sapi/isapi/php4isapi.c:1.67 php4/sapi/isapi/php4isapi.c:1.68 --- php4/sapi/isapi/php4isapi.c:1.67Sun Feb 25 22:07:36 2001 +++ php4/sapi/isapi/php4isapi.c Tue Feb 27 05:29:21 2001 @@ -383,6 +383,20 @@ static_variable_buf[ variable_len - pathinfo_len - 1 ] = '\0'; php_register_variable( "PATH_TRANSLATED", static_variable_buf, track_vars_array ELS_CC PLS_CC ); } + + /* Bring in the AUTHENTICATION stuff as needed */ + variable_len = ISAPI_SERVER_VAR_BUF_SIZE; + if ( lpECB-GetServerVariable(lpECB-ConnID, "AUTH_USER", static_variable_buf, +variable_len) static_variable_buf[0] ) { + php_register_variable( "PHP_AUTH_USER", static_variable_buf, +track_vars_array ELS_CC PLS_CC ); + } + variable_len = ISAPI_SERVER_VAR_BUF_SIZE; + if ( lpECB-GetServerVariable(lpECB-ConnID, "AUTH_PASSWORD", +static_variable_buf, variable_len) static_variable_buf[0] ) { + php_register_variable( "PHP_AUTH_PW", static_variable_buf, +track_vars_array ELS_CC PLS_CC ); + } + variable_len = ISAPI_SERVER_VAR_BUF_SIZE; + if ( lpECB-GetServerVariable(lpECB-ConnID, "AUTH_TYPE", static_variable_buf, +variable_len) static_variable_buf[0] ) { + php_register_variable( "PHP_AUTH_TYPE", static_variable_buf, +track_vars_array ELS_CC PLS_CC ); + } } #endif -- 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] Copying Files to the Web Directory
Jason, Thanks for the reply, and you confirmed that I'm caught between the devil and the deep! At the same time, it's good to know that permissions work! As my client is real twitchy about changing directories, etc. I guess I'll write a little script to do all this and he can run it from his home directory after a SSH login. That will do everything for him automatically. It's a bit of a pain really, because he has to use three programs: WS-FTP to upload the files Administration web page to do the conversion to PHP Tera Term SSH to run a "publish_this" script. (I know we could have done the upload with PHP, but when WS-FTP costs only $30 it ain't worth it.) Thank you for your advice - Miles At 08:25 PM 2/26/01 -0700, Jason Cox wrote: PHP runs as the webserver user which in most cases is user nobody. For PHP to write to a directory, it has to be writable to this directory. A possible solution would be to compile a PHP executable and run a script from cron to copy the files periodically. By using cron and a cgi-version of PHP you can run it as your desired user. Jason - Original Message - From: "Miles Thompson" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 26, 2001 7:18 PM Subject: [PHP] Copying Files to the Web Directory I have a customer who insists on using Front Page, but wants protection against intruders on all his web pages. I envisioned a solution where he works in Front Page, then all his files are ftp'd to a directory on the server, opened and re-written as .php files with all links changed from "something.htm" to "something.php" and then copied to a directory on the same level called "test". So far so good, and this allows a php-one-liner to provide the necessary security. Now I'm stuck, because I have to copy these files from test to the location of the web page itself. And I've not been able to do it, and I can't do it, as far as I can see without giving world-writeable permission to the web directory. Here's the skeletal directory structure ... .../www.website.com /admin /upload /test The script (php page) I'm using to do this is stored in /admin and I want to copy everything in /test (and any subdir's it may have) to www.website.com. On the server, logged in as root, I can execute a shell script named newpub-web, located in www.website.com, which consists of: rm -f *.php rm -f ./graphics/* cp -fR ./admin/test/* . I've tried executing newpub-web from a php script, which changes to the the working directory to www.website.com, as: exec( "newpub-web"), or system( "newpub-web" ) or passthru( "newpub-web"). None have worked. I've also tried executing the commands directly using system(), all without effect, no errors, nothing. Do I have to change the group of www.website.com to nobody? That seems to be an awful security hole. Stymied in Nova Scotia - Miles Thompson -- 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] Screen Size?
Just remember that not everyone surfs with their browser window maximised. IIRC there's a window.innerheight and .innerwidth in NN's model, but not in IE's sigh Cheers Jon -Original Message- From: Todd Kerpelman [mailto:[EMAIL PROTECTED]] Sent: 26 February 2001 19:03 To: PHP Subject: RE: [PHP] Screen Size? How do you determine a user's screen size (resolution)? Isn't there a variable/function for this? I doubt you could do this in PHP, since your browser doesn't normally include screen size information in the headers it sends across to web servers. However, JavaScript can do this -- there's a screen object, with properties called screen.width and screen.height that specify (surprisingly enough) the width and height of the user's screen. You could create a form with some hidden inputs, and have a JavaScript body onLoad() event that would set the values of these hidden inputs to your user's screen size. When PHP receives this form. it could process the information from there. Hope this helps... --Todd -Original Message- From: Jason Bryner :: Focus Design Group, Inc. [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 25, 2001 10:52 PM To: PHP Subject: [PHP] Screen Size? How do you determine a user's screen size (resolution)? Isn't there a variable/function for this? -- Focus Design Group, Inc. http://www.focusdesigngroup.com -- 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] ** 'The information included in this Email is of a confidential nature and is intended only for the addressee. If you are not the intended addressee, any disclosure, copying or distribution by you is prohibited and may be unlawful. Disclosure to any party other than the addressee, whether inadvertent or otherwise is not intended to waive privilege or confidentiality' ** -- 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] Java Question
I have not programmed in Java in awhile. I keep getting an error: when I invoke the JVM java Welcome. Exception in thread "main" java.lang.NoClassDefFoundError: Welcome It compiles fine. javac Welcome.java import java.lang.*; public class Welcome { //main method public static void main( String args[] ){ System.out.println( "Welcome to Java Programming!" ); } } The above is the code I am compiling. Ryan Conover -- 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] Java Question
I have not programmed in Java in awhile. I keep getting an error: when I invoke the JVM java Welcome. Which mailinglist did you think you posted this to? This is a PHP list. Take a look at http://www.php.net/ for more information on our favourite scripting language. Regards, Soeren Staun-Pedersen - [EMAIL PROTECTED] -- "The internet is full, beat it" - Me. -- 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: CVSROOT / avail gen_acl_file.m4 loginfo
andrei Tue Feb 27 06:56:43 2001 EDT Modified files: /CVSROOTavail gen_acl_file.m4 loginfo Log: PHP Gtk web stuff. Index: CVSROOT/avail diff -u CVSROOT/avail:1.104 CVSROOT/avail:1.105 --- CVSROOT/avail:1.104 Mon Feb 26 11:34:09 2001 +++ CVSROOT/avail Tue Feb 27 06:56:43 2001 @@ -9,6 +9,7 @@ avail|jalal,zak,andre,ultrapingo,lyric,jmoore,ronabop,sbergmann,joey,sniper,torben,hellekin,cnewbill|qaweb avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,php_ext,chad,torben,lynch,kk,ted,kwazy,aka,affinity,paul,skaag,pglat,mbritton,coar,lwest,joey,bibi,mrobinso,lwh,perugini,hamoralesr,tzwenny,hirokawa,drews,paulsen,hartmann,philross,leon,valdirh,dmarion,dubois,jonen,tschuer,tfromm,manuel,stas,danbeck,sli,jmcastagnetto,mohrt,cris,goba,samesch,jon,soneca,kaufm,ronabop,glace,latoserver,phpguru_dk,lojmann,rafael,jan,jcmeloni,chrullrich,mk,sbergmann,troels,mathieu,voize,phaethon,mgx,mj,corean,pandach,brown,cycle98,vizvil,openlife,regina,cynic,jpm,dams,alponce,menuconfig,obst,topgoods,karoora,pcraft,suvia,zak,zimt,mgx,sintoris,jmoore,ftfuture,uttam,ag315,ropik,jbi1979,bbonev,malo,afortaleza,neotron,cg,delrom,dickmeiss,jkj,hellekin,kgergely,andreroq,eduardh,cnewbill,fuzzy74,inki,bjoern,fams,smasiello,dim,lucasr,cpereira,lagflores,kjh90,ernani,theseer,cevm,noribsd,eskaly,mctrash|phpdoc avail|andrei,fmk,zimt,jan|php-gtk +avail|andrei,fmk|php-gtk-web avail|emile,davidg,alan_k,ab|php4/ext/midgard avail|rasmus|php4/ext/aspell avail|andi|php4/ext/bcmath Index: CVSROOT/gen_acl_file.m4 diff -u CVSROOT/gen_acl_file.m4:1.108 CVSROOT/gen_acl_file.m4:1.109 --- CVSROOT/gen_acl_file.m4:1.108 Mon Feb 26 11:34:09 2001 +++ CVSROOT/gen_acl_file.m4 Tue Feb 27 06:56:43 2001 @@ -25,6 +25,7 @@ avail|php_qa|qaweb avail|php_dev,php_ext,php_doc|phpdoc avail|andrei,fmk,zimt,jan|php-gtk +avail|andrei,fmk|php-gtk-web avail|php_midgard|php4/ext/midgard dnl Access to individual dirs in the code tree avail|rasmus|php4/ext/aspell Index: CVSROOT/loginfo diff -u CVSROOT/loginfo:1.39 CVSROOT/loginfo:1.40 --- CVSROOT/loginfo:1.39Sat Feb 3 07:40:45 2001 +++ CVSROOT/loginfo Tue Feb 27 06:56:43 2001 @@ -1,5 +1,5 @@ # -#ident "@(#)cvs/examples:$Name: $:$Id: loginfo,v 1.39 2001/02/03 15:40:45 andrei Exp $" +#ident "@(#)cvs/examples:$Name: $:$Id: loginfo,v 1.40 2001/02/27 14:56:43 andrei Exp +$" # # The "loginfo" file is used to control where "cvs commit" log information # is sent. The first entry on a line is a regular expression which is tested @@ -48,6 +48,7 @@ pres $CVSROOT/CVSROOT/loginfo.pl [EMAIL PROTECTED] $USER %{sVv} php-lang $CVSROOT/CVSROOT/loginfo.pl [EMAIL PROTECTED] $USER %{sVv} php-gtk $CVSROOT/CVSROOT/loginfo.pl [EMAIL PROTECTED] $USER %{sVv} +php-gtk-web $CVSROOT/CVSROOT/loginfo.pl [EMAIL PROTECTED] $USER %{sVv} #CVSROOT $CVSROOT/CVSROOT/loginfo.pl [EMAIL PROTECTED] $USER %{sVv} -- 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] how do i check if a server is online ?
"Markus H. Maussner" wrote: hi.. i have the problem that i need to connect to a database on a server wich is quiet often offline. how can i connect to this database (mysql) and can check if the server is online. like.. if server is online - fine we work as normaly if server is NOT online - print out message and say "server offline try later" i tried something like mysql_connect and then die ... but it takes approx 5 mins.. till i get the message.. do i have to set the timeout lower? and if yes.. how do i do that ? You could use ping command like this: exec("ping -c 4 TheServer",$out_arr); ...and evaluate the $out_arr to see if the ping command was successful. Robert -- 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] how do i check if a server is online ?
i have the problem that i need to connect to a database on a server wich is quiet often offline. how can i connect to this database (mysql) and can check if the server is online. like.. if server is online - fine we work as normaly if server is NOT online - print out message and say "server offline try later" i tried something like mysql_connect and then die ... but it takes approx 5 mins.. till i get the message.. do i have to set the timeout lower? and if yes.. how do i do that ? This should do what you want: system("ping -c 1 www.someurl.com", $retval); if($retval == 0) { #server is alive } else { #server is down } HTH -Marc- #/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/# #Marc Swanson | \|||/ # #MSwanson Consulting | /o o\ # #Phone: (603)868-1721|-oooOooo-# #Fax:(603)868-1730| Solutions in: # #[EMAIL PROTECTED] | 'PHP'Perl # # | 'SQL'C++ # # | 'HTML 'Sh/Csh# # http://www.mswanson.com | 'Javascript# #/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/# -- 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] how do i check if a server is online ?
mysql_connect does not have a timeout option :( I wonder if your timeout is not because of mysql_connect but more a dns problem, try putting the IP in, see if it times out at a more reasonable speed. if not try fsockopen http://php.net/manual/en/function.fsockopen.php open the port, if no errors, close the port and continue, if there are errors then you know the server is down. fsockopen allows for a timeout option, set it to 2 sec or something, should be ok. ?php if ( !($fp = fsockopen ('mysql.server.com', 3306, $errno, $errstr, 2)) ) { echo " There has been an error : $errstr ($error) br "; } else mysql_connect('mysql.server.com', 'mysql_user', 'mysql_passwd'); ? is this server prone to alot of ups and downs ? might want to stay away from mysql_pconnect(). -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] ""Markus H. Maussner"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hi.. i have the problem that i need to connect to a database on a server wich is quiet often offline. how can i connect to this database (mysql) and can check if the server is online. like.. if server is online - fine we work as normaly if server is NOT online - print out message and say "server offline try later" i tried something like mysql_connect and then die ... but it takes approx 5 mins.. till i get the message.. do i have to set the timeout lower? and if yes.. how do i do that ? markus -- 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] Best browser
I am developing a PHP application for a client that allows users at remote locations to access and update a database. I would like to standardize on one www browser so that the help desk people only have to be knowledgeable about one browser. The users all have MS Win 95, 98, or NT. The quality (ie. the 'bug-free-ness") of the browser's SSL code is very important. What browser should I choose? Thanks - Jim -- 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] simple session question
looks like it might. I do a simple isset() to see if it is set. ?php session_start(); if (!isset($HTTP_SESSION_VARS['count'])) { $count = 5; session_register('count'); } ? works for me. -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] "John LYC" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... does session_register() "over-write existing variable of the same name...? for example.. //count already registered and holds value 3. session_register("count"); print $count; //output null; -- 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] Best browser
It's been my experience that Netscape doesn't support mistakes as well as IE (example...forgetting a close td tag or close table, stuff like that), so usually if I build a page, I use Netscape to check it and it almost always works the same in IE. As far as php and ssl goes, isn't that all server stuff? I'm kinda new at the server end, so this is a good question for me 2. Is it going to be an intranet page with the company only using one browser? If not, it should really probably be made to work in both browsers equally well. my 2 cents. Jason - Original Message - From: Ide, Jim [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 27, 2001 10:32 AM Subject: [PHP] Best browser I am developing a PHP application for a client that allows users at remote locations to access and update a database. I would like to standardize on one www browser so that the help desk people only have to be knowledgeable about one browser. The users all have MS Win 95, 98, or NT. The quality (ie. the 'bug-free-ness") of the browser's SSL code is very important. What browser should I choose? Thanks - Jim -- 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] Best browser
At 10:39 AM 2/27/2001, Jason Jacobs wrote: he's probably referring to the SSL code that the browser uses. In that aspect - it doesn't matter. i'd personally choose netscape because of their good track record and conformity to standards. M$ does things their way or the hiway. Both browsers use the RSA libs from rsa security, so as far as algo compatibility thier both the same. i think that i'm going in circles.but to get to my point - as far as ssl is concerned thier both the same. personally if your worried about sniffing then use netscape with the 128 enc pack. what about PPTP? have you looked at that for a solution.? ~kurth It's been my experience that Netscape doesn't support mistakes as well as IE (example...forgetting a close td tag or close table, stuff like that), so usually if I build a page, I use Netscape to check it and it almost always works the same in IE. As far as php and ssl goes, isn't that all server stuff? I'm kinda new at the server end, so this is a good question for me 2. Is it going to be an intranet page with the company only using one browser? If not, it should really probably be made to work in both browsers equally well. my 2 cents. Jason - Original Message - From: Ide, Jim [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 27, 2001 10:32 AM Subject: [PHP] Best browser I am developing a PHP application for a client that allows users at remote locations to access and update a database. I would like to standardize on one www browser so that the help desk people only have to be knowledgeable about one browser. The users all have MS Win 95, 98, or NT. The quality (ie. the 'bug-free-ness") of the browser's SSL code is very important. What browser should I choose? Thanks - Jim -- 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] Best browser
- Original Message - From: Kurth Bemis [EMAIL PROTECTED] To: Jason Jacobs [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, February 27, 2001 9:43 AM Subject: Re: [PHP] Best browser At 10:39 AM 2/27/2001, Jason Jacobs wrote: he's probably referring to the SSL code that the browser uses. In that aspect - it doesn't matter Actually it does. On the mod_ssl user list countless messages go by with IE not working with ssl. Various work arounds have been implemented but IE is a pain. Here are common probs http://marc.theaimsgroup.com/?l=apache-modsslw=2r=1s=Internet+Explorerq= b http://www.modssl.org/docs/2.8/ssl_faq.html#ToC48 -- 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] $PATH_INFO
I've got a page that I'm currently working on that grabs a couple of variable from $PATH_INFO and uses them for db queries. The page is currently called content.php. My question is this, when I replace my index file with this will http://www.mydomain.com/somevar/someothervar be the same as http://www.mydomain.com/index.php/somevar/someothervar It could make things easier for me if it is. Data Driven Design PO Box 1084 Holly Hill, Florida 32117 http://www.datadrivendesign.com http://www.rossidesigns.net -- 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] Stream Content
Karl, Your demanding a lot of a stateless device. I seem to remember reading something, somewhere in Goodman's JavaScript Bible about sending output after the page had "finished". Your other option may be to use frames and have the frame contain the values you want refreshed. You're going to spend a lot of time keeping track of where you are. Miles Thompson At 08:16 AM 2/27/01 -0700, Karl J. Stubsjoen wrote: Does anyone know how to stream information to a browser (without the client having to hit refresh)? What do I need to get started? We want to have 2 numbers we want to display on the browser, we want these numbers to change as the data changes in the table, but done "streaming". * I am coding this in PHP of course : ) * Karl -- 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] FORM module/extention for PHP4??
Hello Yasuo, On 27-Feb-01 01:37:30, you wrote: Hello all, I would like to know if anyone already wrote FORM module (not PHP class/function) that handles HTML forms (elements, validation, etc). I searched freashmeat, I couldn't find one. You did not search enough! :-) It seems that what you are looking for is a class like this that does Forms generation and validation: http://phpclasses.UpperDesign.com/browse.html/package/1 Regards, Manuel Lemos Web Programming Components using PHP Classes. Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED] -- E-mail: [EMAIL PROTECTED] URL: http://www.mlemos.e-na.net/ PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp -- -- 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] Return Image for PHP Link
Hello, I'd like the source of an image tag to point to PHP code. I'd like that PHP code to generate an image (accordingly) and print/output the results back to the calling image. So: img src="myphpcode.php" Where, myphpcode.php returns a valid image. I've done this before, but it is not fresh in my brain. Any help would be appreciated! Karl -- 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] Best browser
as per sourceforge: http://sourceforge.net/account/login.php Internet Explorer users will have intermittent SSL problems, so they should leave SSL after login. Netscape users should stay in SSL mode permanently for maximum security. Visit Microsoft for more information about this known problem. nuff said, Matt "Trollboy" Wiseman www.shoggoth.net/trollboy/trollboy.jpg [EMAIL PROTECTED] "I wish the world had one throat!!" -Al Bundy - Original Message - From: "Christopher Allen" [EMAIL PROTECTED] To: "Jason Jacobs" [EMAIL PROTECTED]; [EMAIL PROTECTED]; "Kurth Bemis" [EMAIL PROTECTED] Sent: Tuesday, February 27, 2001 10:49 AM Subject: Re: [PHP] Best browser - Original Message - From: Kurth Bemis [EMAIL PROTECTED] To: Jason Jacobs [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, February 27, 2001 9:43 AM Subject: Re: [PHP] Best browser At 10:39 AM 2/27/2001, Jason Jacobs wrote: he's probably referring to the SSL code that the browser uses. In that aspect - it doesn't matter Actually it does. On the mod_ssl user list countless messages go by with IE not working with ssl. Various work arounds have been implemented but IE is a pain. Here are common probs http://marc.theaimsgroup.com/?l=apache-modsslw=2r=1s=Internet+Explorerq= b http://www.modssl.org/docs/2.8/ssl_faq.html#ToC48 -- 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 Digest 27 Feb 2001 17:27:09 -0000 Issue 537
php-general Digest 27 Feb 2001 17:27:09 - Issue 537 Topics (messages 41795 through 41847): Can't find php.ini on my Linux/Apache module install 41795 by: Ken 41803 by: Ben Peter 41804 by: Ben Peter Re: redirect pages 41796 by: Yasuo Ohgaki how to keep variable "alive" thur pages? 41797 by: John LYC 41800 by: Ankur Verma Resolved: Can't find php.ini on my Linux/Apache module install 41798 by: Ken Re: Newbie: why do I get this error? 41799 by: Harshdeep S Jawanda User Authentication 41801 by: Amer Alhabsi 41827 by: Krznaric Michael Safe_mode and prepend/append includes 41802 by: Kim Lindberg simple session question 41805 by: John LYC 41838 by: Chris Lee help on select 41806 by: Yamin Prabudy 41825 by: Jason Stechschulte logout 41807 by: Jacky.lilst 41811 by: Jacky.lilst 41813 by: Jacky.lilst 41818 by: John LYC 41819 by: Jacky.lilst 41820 by: John LYC good ide? 41808 by: Luke Loeffler 41809 by: John LYC 41810 by: Dan Cleveland 41821 by: Gustavo Vieira Goncalves Coelho Rios Re: How to wrap output of formatted text 41812 by: CC Zona can anyone please remove this subscriber:[EMAIL PROTECTED]? 41814 by: Jacky.lilst PostgreSQL vs InterBase 41815 by: Arnold Gamboa 41816 by: Wade Halsey logout and clean up session and cookies 41817 by: Jacky.lilst Re: forms functions 41822 by: Tim Ward remote printing from php script 41823 by: Kim Prisk Joyce Fennell fwrite in PHP4 41824 by: Otakar Nejezchleb Exception Handling in php 41826 by: kevin1 Re: Copying Files to the Web Directory 41828 by: Miles Thompson Re: Screen Size? 41829 by: Jon Haworth Java Question 41830 by: Conover, Ryan 41831 by: Soeren Staun-Pedersen how do i check if a server is online ? 41832 by: Markus H. Maussner 41834 by: Robert Vetter 41835 by: Marc Swanson 41836 by: Chris Lee Stream Content 41833 by: Karl J. Stubsjoen 41844 by: Miles Thompson Best browser 41837 by: Ide, Jim 41839 by: Jason Jacobs 41840 by: Christopher Allen 41841 by: Kurth Bemis 41842 by: Christopher Allen 41847 by: Matt \"TrollBoy\" Wiseman $PATH_INFO 41843 by: Data Driven Design Re: FORM module/extention for PHP4?? 41845 by: Manuel Lemos Return Image for PHP Link 41846 by: Karl J. Stubsjoen 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] -- I can't seem to locate the php.ini file on my system. Here's some pertinent info from phpinfo(): PHP Version 4.0.4pl1 SystemLinux i686 unknown Configure Command './configure' '--with-mysql' '--with-apxs' '--enable-versioning' Server API Apache Configuration File (php.ini) Path /usr/local/lib find -name php.ini reveals no php.ini file. /usr/local/lib contains a php directory. The php directory seems to only contain PHP 4.0 source code. There IS a php3.ini file on the system, from a previous install. Is there any chance that this file is still being used? Where SHOULD this file be? And how do I find out for sure which one it is? Is it possible that it doesn't exist? If not, does that mean I could create one in /usr/local/lib? Where am I supposed to get a default version? Thanks, Ken Ken, if PHP is 'built in' to apache (--with-apxs, besides other ways to achieve this), it is configured through Apache. This is either httpd.conf, or .htaccess files within your web tree. The 'configuration' section in the manual is more specific on that. Cheers, Ben Ken wrote: I can't seem to locate the php.ini file on my system. Here's some pertinent info from phpinfo(): PHP Version 4.0.4pl1 SystemLinux i686 unknown Configure Command './configure' '--with-mysql' '--with-apxs' '--enable-versioning' Server API Apache Configuration File (php.ini) Path /usr/local/lib find -name php.ini reveals no php.ini file. /usr/local/lib contains a php directory. The php directory seems to only contain PHP 4.0 source code. There IS a php3.ini file on the system, from a previous install. Is there any chance that this file is still being used? Where SHOULD this file be? And how do I find out for sure which one it is? Is it possible that it doesn't exist? If not, does that mean I could create one in /usr/local/lib? Where am I supposed to get a default version? Thanks, Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To
[PHP] regex help
how do I select the first space after some alpha-numeric characters? I can ^\D\s to get the characters and the space, but how can I select the space only? Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -- 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] $PATH_INFO
I would have to be inclined to say that you couldn't do that. None of the examples that I have ever seen do it that way, and from a perspective of how a URL is built, how would the browser ever know that you are trying to access index.php/somevar/somevalue as opposed to thinking that "somevalue" is supposed to be the name of a page? I am sure someone will chime in if this is wrong, but I would doubt that it isof course, I guess the best way to find out is to try it :) -- Sam Masiello Systems Analyst Chek.Com (716) 853-1362 x289 [EMAIL PROTECTED] On 2001.02.27 11:10:57 -0500 Data Driven Design wrote: I've got a page that I'm currently working on that grabs a couple of variable from $PATH_INFO and uses them for db queries. The page is currently called content.php. My question is this, when I replace my index file with this will http://www.mydomain.com/somevar/someothervar be the same as http://www.mydomain.com/index.php/somevar/someothervar It could make things easier for me if it is. Data Driven Design PO Box 1084 Holly Hill, Florida 32117 http://www.datadrivendesign.com http://www.rossidesigns.net -- 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] $PATH_INFO
I already know that the second example works, I just wanted to know if the first would before I try it on a live site. Data Driven Design PO Box 1084 Holly Hill, Florida 32117 http://www.datadrivendesign.com http://www.rossidesigns.net - Original Message - From: "Sam Masiello" [EMAIL PROTECTED] To: "Data Driven Design" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, February 27, 2001 12:33 PM Subject: Re: [PHP] $PATH_INFO I would have to be inclined to say that you couldn't do that. None of the examples that I have ever seen do it that way, and from a perspective of how a URL is built, how would the browser ever know that you are trying to access index.php/somevar/somevalue as opposed to thinking that "somevalue" is supposed to be the name of a page? I am sure someone will chime in if this is wrong, but I would doubt that it isof course, I guess the best way to find out is to try it :) -- Sam Masiello Systems Analyst Chek.Com (716) 853-1362 x289 [EMAIL PROTECTED] On 2001.02.27 11:10:57 -0500 Data Driven Design wrote: I've got a page that I'm currently working on that grabs a couple of variable from $PATH_INFO and uses them for db queries. The page is currently called content.php. My question is this, when I replace my index file with this will http://www.mydomain.com/somevar/someothervar be the same as http://www.mydomain.com/index.php/somevar/someothervar It could make things easier for me if it is. Data Driven Design PO Box 1084 Holly Hill, Florida 32117 http://www.datadrivendesign.com http://www.rossidesigns.net -- 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] GD installed but imageFUNCTIONS dont work
Hi, hopefully somebody can help to solve this miracle. My phpinfo My provider (and phpinfo) says GD =1.62 is installed. But when I run scripts using the php-imagefunctions that require gd like ?php Header ("Content-type: image/jpeg"); $im = imagecreate (400, 30); $black = ImageColorAllocate ($im, 0, 0, 0); $white = ImageColorAllocate ($im, 255, 255, 255); ImageTTFText ($im, 20, 0, 10, 20, $white, "/path/arial.ttf", "Testing... Omega: #937;"); ImageJPEG ($im); ImageDestroy ($im); ? The lines containing the functions like createImage(), or ImagecolorAllocate() return error messages. How can I find out without doubt whether the functions work properly or not? Every advice is appreciated. Helmut
[PHP] dir() only works with file/dir names = 6 chars? (irix)
Hi Folks, I have run into a problem using the dir() function. The following code behaves properly on linux and does not using irix: Contents of the dir (only folders) are: CH104/ CH105/ CH120/ ABCDEFGHIJKL/ abcdefghijkl/ When I execute the following code: chdir("$dir_path"); echo ("Dir Path = $dir_pathbr"); $dir = dir("."); $dir - rewind(); $file=$dir-read(); echo ("file is $filebr\n"); $file=$dir-read(); echo ("file is $filebr\n"); $file=$dir-read(); echo ("file is $filebr\n"); $file=$dir-read(); echo ("file is $filebr\n"); I get the following incorrect results (php 4.0.2, irix 6.5.7) Dir Path = /Public/Web/db/msds file is . file is .. file is CH104 file is CH105 file is CH120 file is ABCDEF~KL file is abcdef~kl So, it appears that if the dir (or file) is less than or equal to 6 char the dir() function work correctly. However, if it is longer, the name get garbled. On a redhat linux box (php 4.0.2), it works fine and I get proper dir names. This behavior is the same for filenames not just dir names. I have checked the bugs.php.net and email lists without finding information related to this problem. Hope I have not missed it some where... Has anyone seen this or am I missing something? Or, maybe likely, this is just a bug. If so, I will submit it to the bug database. Thanks for any suggestions! Dean -- - Dean Waldow, Associate Professor (253) 535-7533 Department of Chemistry (253) 536-5055 (FAX) Pacific Lutheran University [EMAIL PROTECTED] Tacoma, WA 98447 USA http://www.chem.plu.edu/waldow/ - ---CIRRUS, the UG research resource: http://cirrus.chem.plu.edu/--- - -- 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] session problem
Hi! I have a page in wich i register and fill the value of some session varibles: session_start(); session_register("vehiculesess"); session_register("hotelsess"); session_register("riadsess"); session_register("transfertsess"); session_register("excursionsess"); include "sessions.inc"; bit when i go to other pages and come back to it , it creates a new session ?! however i want to fill more that variables ! NB: i also discovered that when i reload that page it creates another session however when i add and click on a submit button with action =echo PHP_Self it works, i mean it no more creates another session any idea ? Thanks _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -- 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/NT4/IIS5 problem
I have PHP 4.0.4 running on my Win 2K with IIS5 - no problem! When I try to install the same PHP on a NT4 with SP6 and IIS5 I cannot get the Isapi filter to work - the status comes up as failed. Am I overlooking some simple? Todd -- Todd Cary Ariste Software [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] good ide?
May I suggest the Zend IDE, at the moment it is the only one to really be a full IDE with Debugger support etc. you can get a demo of it from http://www.zend.com/store/. James -Original Message- From: Luke Loeffler [mailto:[EMAIL PROTECTED]] Sent: 27 February 2001 08:32 To: [EMAIL PROTECTED] Subject: [PHP] good ide? Does anyone know of a good PHP ide? I've tried PHP-Coder, but it has bugs stem to stern, not the least of which mysteriously deleted an entire page of code... PHP Script editor I've also tried, but it is barren and in German... If only there were a Sun Forte for php :( Luke -- 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] Exception Handling in php
Addressed to: kevin1 [EMAIL PROTECTED] [EMAIL PROTECTED] ** Reply to note from kevin1 [EMAIL PROTECTED] Tue, 27 Feb 2001 08:10:05 -0500 Is there any equivalent to Java's try-catch or Perl's eval{BLOCK}if($@) structure in PHP? No. There has been some discussion about adding it on the developers list, but I don't expect to see it any time soon. Rick Widmer Internet Marketing Specialists http://www.developersdesk.com -- 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] good ide?
At 20:14 27.02.2001, James Moore said: [snip] May I suggest the Zend IDE, at the moment it is the only one to really be a full IDE with Debugger support etc. you can get a demo of it from http://www.zend.com/store/. [snip] Visit PHPEd home page at http://www.soysal.com/PHPEd ...ebird O Ernest E. Vogelsinger (\)http://www.1-at-web.at/ ^ ICQ# 13394035 -- 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] good ide?
Ouch! At $250.00, I'll stick to using Vim for free :-) - Original Message - From: "James Moore" [EMAIL PROTECTED] To: "Luke Loeffler" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, February 27, 2001 2:14 PM Subject: RE: [PHP] good ide? May I suggest the Zend IDE, at the moment it is the only one to really be a full IDE with Debugger support etc. you can get a demo of it from http://www.zend.com/store/. James -Original Message- From: Luke Loeffler [mailto:[EMAIL PROTECTED]] Sent: 27 February 2001 08:32 To: [EMAIL PROTECTED] Subject: [PHP] good ide? Does anyone know of a good PHP ide? I've tried PHP-Coder, but it has bugs stem to stern, not the least of which mysteriously deleted an entire page of code... PHP Script editor I've also tried, but it is barren and in German... If only there were a Sun Forte for php :( Luke -- 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] File sending?
Hi, Is it possible to send a file to a browser? I would like to allow people to download a file, but I don't want to give away the path to the file, so a normal link wouldn't work. I am hoping there is a way to use php to send the file using code, rather than trying to first copy the file to a temp dir then give them the link, then worry about deleting the temp dir again. Thanks, Chris
[PHP] while loop and modulus?
OK, using this code: ? echo "table border=\"0\"\n"; echo "tr\n"; $photocount = 0; while($row = mysql_fetch_array($result)) { $smallpic = $row['smallpic']; echo "td$smallpic/td\n"; if (($photocount % 3) == 2) { echo "/tr\ntr\n"; } $photocount++; } echo "/tr\n"; echo "/table"; ? And 8 photos in the table, I'm getting this output: table border="0" tr tdsm982438092.gif/td tdsm982437452.gif/td tdsm982439016.gif/td /tr tr tdsm982529915.gif/td tdsm983222652.gif/td tdsm983222686.gif/td /tr tr tdsm983222868.gif/td tdsm983222919.gif/td /tr /table Great, except it's missing an end cell, and after a few hours fiddling about with code last night, I still didn't get any further in working out how I was going to echo a table cell even if data's missing. So, any help would be appreciated. Apologies for what're probably "easy" questions. I slog away at work all day, come back hoping to get something productive done on this, and the ol'brain won't take it. Frustrating, to say the least. James. -- 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] search + sitemap scripts
could anybody help with links to a good search and sitemap script written in php. Thanks Ali -- 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] Return Image for PHP Link
I'm not 100% sure this works, but maybe try something like this: img src="? include 'myphpcode.php'; ?>"> If that doesn't work, you can always have the php generate the entire tag ? $image = "myimagefile.gif"; // What ever you need print "img src=\"$image\">"; ?> Hope this helps :-) "Karl J. Stubsjoen" wrote: Hello, I'd like the source of an image tag to point to PHP code. I'd like that PHP code to generate an image (accordingly) and print/output the results back to the calling image. So: img src="myphpcode.php"> Where, myphpcode.php returns a valid image. I've done this before, but it is not fresh in my brain. Any help would be appreciated! Karl -- 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] -- 209 Media http://www.209media.com> Ron Wills [EMAIL PROTECTED]> Programmer -- 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] search + sitemap scripts
Try DGS Search, very easy and works great! http://www.digitalgenesis.com/software/dgssearch.html - Original Message - From: "Ali" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 27, 2001 2:22 PM Subject: [PHP] search + sitemap scripts could anybody help with links to a good search and sitemap script written in php. Thanks Ali -- 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] quoting issues in PHP
Is there a qq operator like Perl's in 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]
[PHP] Solaris and libtool
Is anyone here framiliar with Solaris/libtool issue's? thanks, evan -- 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] imap prob.
Hi all, I've a prob. using the imap functions ... with a simple code that retrieve a multipart mail, $struttura=imap_fetchstructure($link,2);//2 is the msg nr $pezzi=0; foreach($struttura as $key=$val){ //some code if($key=="parts"){ foreach($val as $w){ $pezzi++; } } //now $pezzi is an int var that tell me how many parts has the msg for($x=0;$x(1+$pezzi);$x++){ print "textarea cols=50 rows=10"; if(eregi("Content-Type: text/html;",imap_fetchbody($link,2,$x))){ print quoted_printable_decode(imap_fetchbody($link,2,$x)); } else { print imap_fetchbody($link,2,$x); } print "/textareabrbr"; } //this loop show me the single part of the msg the problem is: only if the part is concerning an embedded image, I can't see the "header" of the part (I mean this: --=_NextPart_000_000D_01C0A127.2D37C500 Content-Type: image/gif; name="chat.gif" Content-Transfer-Encoding: base64 Content-ID: 000c01c0a11e$cb6bbbe0$0100a8c0@maxa ) but I see only the base64_encode source of the image file My question are: is this due to a my mistake? How can I take the "header" and the "source" if the part is concerning to an image file? Many thanks in advance. max -- 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/oci8 oci8.c /ext/readline readline.c /ext/sablot sablot.c /ext/session mod_user.c /ext/standard assert.c /ext/xml xml.c
andiTue Feb 27 12:16:36 2001 EDT Modified files: /php4/ext/oci8 oci8.c /php4/ext/readline readline.c /php4/ext/sablotsablot.c /php4/ext/session mod_user.c /php4/ext/standard assert.c /php4/ext/xml xml.c Log: - Pointed out by Andrei. zval_ptr_dtor() should be used instead of the zval_del_ref() function which should be nuked. Index: php4/ext/oci8/oci8.c diff -u php4/ext/oci8/oci8.c:1.111 php4/ext/oci8/oci8.c:1.112 --- php4/ext/oci8/oci8.c:1.111 Sun Feb 25 22:07:08 2001 +++ php4/ext/oci8/oci8.cTue Feb 27 12:16:34 2001 @@ -17,7 +17,7 @@ +--+ */ -/* $Id: oci8.c,v 1.111 2001/02/26 06:07:08 andi Exp $ */ +/* $Id: oci8.c,v 1.112 2001/02/27 20:16:34 andi Exp $ */ /* TODO list: * @@ -489,7 +489,7 @@ php_info_print_table_start(); php_info_print_table_row(2, "OCI8 Support", "enabled"); - php_info_print_table_row(2, "Revision", "$Revision: 1.111 $"); + php_info_print_table_row(2, "Revision", "$Revision: 1.112 $"); #ifndef PHP_WIN32 php_info_print_table_row(2, "Oracle Version", PHP_OCI8_VERSION ); php_info_print_table_row(2, "Compile-time ORACLE_HOME", PHP_OCI8_DIR ); @@ -509,7 +509,7 @@ oci_debug("_oci_define_hash_dtor: %s",define-name); - zval_del_ref(define-zval); + zval_ptr_dtor(define-zval); if (define-name) { efree(define-name); @@ -527,7 +527,7 @@ oci_debug("_oci_bind_hash_dtor:"); - zval_del_ref((bind-zval)); + zval_ptr_dtor((bind-zval)); } /* }}} */ Index: php4/ext/readline/readline.c diff -u php4/ext/readline/readline.c:1.18 php4/ext/readline/readline.c:1.19 --- php4/ext/readline/readline.c:1.18 Sun Feb 25 22:07:14 2001 +++ php4/ext/readline/readline.cTue Feb 27 12:16:35 2001 @@ -16,7 +16,7 @@ +--+ */ -/* $Id: readline.c,v 1.18 2001/02/26 06:07:14 andi Exp $ */ +/* $Id: readline.c,v 1.19 2001/02/27 20:16:35 andi Exp $ */ /* {{{ includes prototypes */ @@ -397,7 +397,7 @@ } for (i = 0; i 4; i++) { - zval_del_ref(params[i]); + zval_ptr_dtor(params[i]); } zval_dtor(_readline_array); Index: php4/ext/sablot/sablot.c diff -u php4/ext/sablot/sablot.c:1.35 php4/ext/sablot/sablot.c:1.36 --- php4/ext/sablot/sablot.c:1.35 Sun Feb 25 22:07:15 2001 +++ php4/ext/sablot/sablot.cTue Feb 27 12:16:35 2001 @@ -71,7 +71,7 @@ /* Free macros */ #define S_FREE(__var) if (__var) efree(__var); -#define FUNCH_FREE(__var) if (__var) zval_del_ref((__var)); +#define FUNCH_FREE(__var) if (__var) zval_ptr_dtor((__var)); /* ERROR Macros */ @@ -1136,7 +1136,7 @@ default: convert_to_string_ex(handler); php_error(E_WARNING, "Sorry, too many elements, %s discarded", Z_STRVAL_PP(handler)); -zval_del_ref(handler); +zval_ptr_dtor(handler); break; } item++; @@ -1161,7 +1161,7 @@ efree(retval); for (i=0; iargc; i++) { -zval_del_ref((args[i])); +zval_ptr_dtor((args[i])); } } /* }}} */ @@ -1460,7 +1460,7 @@ efree(retval); for (i = 1; i argc; i++) { - zval_del_ref(argv[i]); + zval_ptr_dtor(argv[i]); } } else { if (level == MH_LEVEL_CRITICAL || @@ -1541,7 +1541,7 @@ *byteCount = Z_STRLEN_P(argv[3]); for (idx = 1; idx 3; idx++) { - zval_del_ref((argv[idx])); + zval_ptr_dtor((argv[idx])); } } Index: php4/ext/session/mod_user.c diff -u php4/ext/session/mod_user.c:1.13 php4/ext/session/mod_user.c:1.14 --- php4/ext/session/mod_user.c:1.13Sun Feb 25 22:07:15 2001 +++ php4/ext/session/mod_user.c Tue Feb 27 12:16:35 2001 @@ -107,7 +107,7 @@ retval = ps_call_handler(PSF(close), 0, NULL); for (i = 0; i 6; i++) - zval_del_ref(mdata-names[i]); + zval_ptr_dtor(mdata-names[i]); efree(mdata); PS_SET_MOD_DATA(NULL); Index: php4/ext/standard/assert.c diff -u php4/ext/standard/assert.c:1.27 php4/ext/standard/assert.c:1.28 --- php4/ext/standard/assert.c:1.27 Sun Feb 25 22:07:16 2001 +++ php4/ext/standard/assert.c Tue Feb 27 12:16:35 2001 @@ -16,7 +16,7 @@ +--+ */ -/* $Id: assert.c,v 1.27 2001/02/26 06:07:16 andi Exp $ */ +/* $Id: assert.c,v 1.28 2001/02/27 20:16:35 andi Exp $ */ /* {{{ includes/startup/misc */ @@ -227,9 +227,9 @@ call_user_function(CG(function_table), NULL, args[0], retval, 3, args+1); for (i = 0; i 4; i++) { -
[PHP] finding Friday's date
Could somebody show me an example of a script that will find out the date of each upcoming Friday, thanks. Adam Plocher -- 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] convert GIF to JPEG with PHP
if i have a GIF file, how can i convert this to a JPG file through php? p.s.: ill do anything as long as i dont have to recompile php/apache - noah -- 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] RE: [PHP-DB] Resolution detect and redirect
This is the wrong mailing list for this information. try: news://comp.lang.javascript (newsgroup) http://www.javascript.com/ (website) http://www.obscure.org/javascript/ (javascript mailing list homepage) -Original Message- From: Matthew Cothier [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 27, 2001 12:17 PM To: [EMAIL PROTECTED] Subject: RE: [PHP-DB] Resolution detect and redirect Why not just create a table that will resize to any resolution? Because I am using different sized images for the different resolutions as well as other page thingys. And I need the script for other things too. So can anyone help? _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -- 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] convert GIF to JPEG with PHP
I've been doing some similar with images. I've been executing ImageMagick utils from php. You could do it as follows: if (exec("convert image.gif image.jpeg")) { some error code } ImageMagick I believe comes with most Linux distributions, but can also be found at www.imagemagick.org I hope this helps you out :-) Student Center wrote: if i have a GIF file, how can i convert this to a JPG file through php? p.s.: ill do anything as long as i dont have to recompile php/apache - noah -- 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] -- 209 Media http://www.209media.com> Ron Wills [EMAIL PROTECTED]> Programmer -- 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] while loop and modulus?
by default, HTML browsers, according to spec, will handle the rendering of any and all empty cells at the end of a row. even netscape ;) so, this is technically not a bug. my question is how it works when you have 7 photos in a row, or 4? DanO -Original Message- From: James, Yz [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 27, 2001 11:18 AM To: [EMAIL PROTECTED] Subject: [PHP] while loop and modulus? OK, using this code: ? echo "table border=\"0\"\n"; echo "tr\n"; $photocount = 0; while($row = mysql_fetch_array($result)) { $smallpic = $row['smallpic']; echo "td$smallpic/td\n"; if (($photocount % 3) == 2) { echo "/tr\ntr\n"; } $photocount++; } echo "/tr\n"; echo "/table"; ? And 8 photos in the table, I'm getting this output: table border="0" tr tdsm982438092.gif/td tdsm982437452.gif/td tdsm982439016.gif/td /tr tr tdsm982529915.gif/td tdsm983222652.gif/td tdsm983222686.gif/td /tr tr tdsm983222868.gif/td tdsm983222919.gif/td /tr /table Great, except it's missing an end cell, and after a few hours fiddling about with code last night, I still didn't get any further in working out how I was going to echo a table cell even if data's missing. So, any help would be appreciated. Apologies for what're probably "easy" questions. I slog away at work all day, come back hoping to get something productive done on this, and the ol'brain won't take it. Frustrating, to say the least. James. -- 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] quoting issues in PHP
I don't believe php uses any type of Perl quoting conventions such as qq. If you do need to use quotes within quotes you can use the '\' to remove the quotes value, such as: $text = "The following text is \"quoted\""; Or if that doesn't work (like adding the return value of a function to a string) you can use the '.' operator to concat your results: $test = "The current directory is :". getcwd(); I hope this helps you out. Good Luck :-) kevin1 wrote: Is there a qq operator like Perl's in 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] -- 209 Media http://www.209media.com> Ron Wills [EMAIL PROTECTED]> Programmer -- 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] PostgreSQL vs InterBase
I know this isn't one of the databases that you;re inquiring about, but we've been using MySQL (www.mysql.com) and it has been working beautifully. We have an email server with a MySQL db that's about 4 Gigs now a it's still running strong. MySQL is free and might be worth looking into :-) Arnold Gamboa wrote: I hve heard a great deal about InterBase. Please comment on which is better: 1. Speed 2. Data Reliability 3. Compatibility with PHP Thanks for your comments. -- 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] -- 209 Media http://www.209media.com> Ron Wills [EMAIL PROTECTED]> Programmer -- 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] mySQL table joins are slow, need rebuild?
hi, i have a query that is comparing a table with 1235 rows with another that has 635 rows. The query looks like this: $res = mysql_query("select cust_info.ID, cust_info.first_name, cust_info.last_name, cust_info.address, cust_info.datestamp from cust_info, cust_order_info where cust_info.ID=cust_order_info.cust_id order by $mainsort" . $order . ";"); The parse time with the join is 19 seconds. I have to do a join because there a different methods that the user must be able to sort by. The parse time on the cust_info table alone, with a order by is .95 seconds. Now, we have a RPM binary of mySQL, and when performing the query, not only is it slow, but sometimes will dump its core. Does anyone see anything wrong with the query, or should we consider building the source on our box.. or? 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]
Re: [PHP] mySQL table joins are slow, need rebuild?
You need to remember a few things when it comes to joins: the joined fields must be the EXACT same definition - example: a join on id int(9) and id int(3) will NOT be optimized - more: a join on id char(9) and id int(9) is REALLY NOT optimized :O) We have an accounts table with userID as the key char(15) (don't ask, it's an old design made by a former employee) which has roughly 1.6 million rows in it. We regularily do joins on it with other tables that have thousands of records in less than .05 seconds. This sounds like a table structure problem to me. --Joe On Tue, Feb 27, 2001 at 02:21:53PM -0800, Jason wrote: hi, i have a query that is comparing a table with 1235 rows with another that has 635 rows. The query looks like this: $res = mysql_query("select cust_info.ID, cust_info.first_name, cust_info.last_name, cust_info.address, cust_info.datestamp from cust_info, cust_order_info where cust_info.ID=cust_order_info.cust_id order by $mainsort" . $order . ";"); The parse time with the join is 19 seconds. I have to do a join because there a different methods that the user must be able to sort by. The parse time on the cust_info table alone, with a order by is .95 seconds. Now, we have a RPM binary of mySQL, and when performing the query, not only is it slow, but sometimes will dump its core. Does anyone see anything wrong with the query, or should we consider building the source on our box.. or? 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] -- --- Joe Stump, PHP Hacker, [EMAIL PROTECTED] -o) http://www.miester.org http://www.care2.com /\\ "It's not enough to succeed. Everyone else must fail" -- Larry Ellison _\_V --- -- 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] Direction Help!
Hello Php Gurus, Need help on direction. I am using PHP for a while now, I was able to develop very nice sites using PHP/MySql. Now I very comfortable in using PHP and I want to learn more advanced features of PHP. Can anyone tell me go from here?? I have used PHP for tradtional query based application so far. Thanks in advance. -Unni -- 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] File downloading?
Hi, Is it possible to send a file to a browser? I would like to allow people to download a file, but I don't want to give away the path to the file, so a normal link wouldn't work. I am hoping there is a way to use php to send the file using code, rather than trying to first copy the file to a temp dir then give them the link, then worry about deleting the temp dir again. ( I am not sure if my first email went through, I got an error back about the mailbox being full) Thanks, Chris
RE: [PHP] File downloading?
Is it possible to send a file to a browser? Sure. file(); I would like to allow people to download a file, but I don't want to give away the path to the file, so a normal link wouldn't work. In that case: Header("Content-type: application/octet-stream"); file("whatyouwanttosend"); ( I am not sure if my first email went through, I got an error back about the mailbox being full) I didn't see it ... Jason -- Jason Murray [EMAIL PROTECTED] Web Design Team, Melbourne IT Fetch the comfy chair! -- 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] good ide?
I really like NEdit for XWindows. Grabbed a file for PHP highlighting off the site. http://nedit.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: Fw: [PHP] logout
Bassically what you wanna do is to delete all the variables you set up when the user log in. So, if you gave the session ID when a user log in, delete if from the database when user log out. Reuben D. B At 03:52 PM 2/27/01 -0600, Jacky@lilst wrote: Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" - Original Message - From: Jacky@lilst [EMAIL PROTECTED] To: Yamin Prabudy [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, February 27, 2001 3:49 PM Subject: Re: [PHP] logout Sorry, it was my mistake. There is session used to store userID and password after the successful login. I don't under stand what you mean about to clean up variables, how? Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" - Original Message - From: Yamin Prabudy [EMAIL PROTECTED] To: Jacky@lilst [EMAIL PROTECTED] Sent: Tuesday, February 27, 2001 2:40 AM Subject: Re: [PHP] logout but still you had the variable hanging on the cookies while you are running the login function... just clean out all the variables and then you had a log out function (clean all the cookies) if you don't used cookies how do you transfer all the login variable ? - Original Message - From: Jacky@lilst [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 28, 2001 4:14 AM Subject: [PHP] logout I have php site that user is required to login, but I don't have logout function yet. Is there anyone know the most practical way of logout method that people use nowadays?, in php I mean. There is no session or cookies used in this site. Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" -- 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] good ide?
I really like NEdit for XWindows. Picked up a PHP syntax file from the site. http://nedit.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] parse error on line after last one???
Hi all, Can anyone tell me why Im getting an unhelpful error when trying to pull up a file? The index.php Im calling is including a functions file functions.inc.php Im getting a parse error on line 144 but functions.inc.php only has 143 lines...! does this actually mean anything, or is it just poor error reporting?? Cheers! 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] Direction Help!
I've, I guess, graduated to more complex PHP programs mainly through projects at work. I'd challenge myself to do EVERYTHING in PHP. I've created everything from large scale, targeted, mailing lists to search engines based on DMOZ with PHP - with great results. I suppose the best way to move on to "advanced features" is to challenge yourself and have a good understanding of programming concepts, UNIX, and the various protocols you work with. Just my $0.02 --Joe On Tue, Feb 27, 2001 at 04:01:22PM -0700, Web master wrote: Hello Php Gurus, Need help on direction. I am using PHP for a while now, I was able to develop very nice sites using PHP/MySql. Now I very comfortable in using PHP and I want to learn more advanced features of PHP. Can anyone tell me go from here?? I have used PHP for tradtional query based application so far. Thanks in advance. -Unni -- 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, PHP Hacker, [EMAIL PROTECTED] -o) http://www.miester.org http://www.care2.com /\\ "It's not enough to succeed. Everyone else must fail" -- Larry Ellison _\_V --- -- 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] Help with a very small array problem
Hello, I have a problem getting this to work right. I have two variables that store the name of a Link and the actual link. I am trying to display them on the page but it doesn't do it like i would have hoped. I want it to appear like this [Link1] [Link2] [Link3] ? foreach ( $blink as $valink ){ //The link path echo " [a href=$valink"; foreach ($but as $val ){ //The link Text echo "$val"; } echo "/a]"; } ? 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]
Re: [PHP] parse error on line after last one???
At 06:31 PM 27/02/2001, Jaxon wrote: Hi all, Can anyone tell me why Im getting an unhelpful error when trying to pull up a file? The index.php Im calling is including a functions file functions.inc.php Im getting a parse error on line 144 but functions.inc.php only has 143 lines...! does this actually mean anything, or is it just poor error reporting?? Chances are, you are missing a } closing off something in that file, and its assuming that "well, if you havent closed it off yet, you need to do it at least by the last line" so its assuming that you need to add in a line 144 with a closing } in reality, it means you have to go back into your functions.inc.php and see where you are missing the } and the error should go away. Chris -- 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] parse error on line after last one???
From: "Jaxon" [EMAIL PROTECTED] Hi all, Can anyone tell me why Im getting an unhelpful error when trying to pull up a file? The index.php Im calling is including a functions file functions.inc.php Im getting a parse error on line 144 but functions.inc.php only has 143 lines...! does this actually mean anything, or is it just poor error reporting?? I think this usually means you have opened a block (e.g. an if statement), and forgotten to close it. Cheers Simon Garner -- 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 not proccessing input?
I am trying to post some info to my php script using the microsoft internet control: strurl = http://www.myserver.com/test.asp strdata = "lah=sddta=test You're not really missing the quote here, are you?... Inet1.Execute strurl, "POST", strdata PHP returns HTTP_POST_VARS as being empty. Yet, if I use PERL, I can read the posted info just fine. PHP does work fine with normal php forms. Why can PERL recognize my data, but PHP not, how are they handling the posted info differently? Is there a way I can get PHP to display the raw data that the script receives so I can see what is happening? ?php phpinfo();? will show you pretty much everything PHP has to work with. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- 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] Upload --Permission denied simple error...
You need to be copying files to a directory that the user PHP runs as has write-access to. Windows NT file permissions are accessed by using right-click. Other Windows versions, only Bill Gates knows. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Dhaval Desai [EMAIL PROTECTED] Newsgroups: php.general Sent: Saturday, February 24, 2001 1:31 AM Subject: [PHP] Upload --Permission denied simple error... hi! I have fws simple lines: ?php if ($userfile) { copy($userfile, "C:\\"); } else { echo "Possible file upload attack: filename '$userfile'."; } ? Warning: Unable to create 'C:\': Permission denied in c:\phpdev2\www\upload\action.php on line 3 and I get this error..I tried coyping to D:\ too but the same error.. Can u tell me what could be the problem possibly.. Thank you Dhaval Desai __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- 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] function mail
$sent=mail("[EMAIL PROTECTED]", $subject, $msg, $from); if $sent==1 -- the e-mail was sent if $sent==0 -- problem when sending e-mail?? how this works? When the function mail will have a problem? if the "to" mail are wrong? If you are sending "local" mail, with no "@" in it, you'd probably get 0 back if it is an invalid user. If sendmail (or your SMTP server in Windows) is dead, you'd get a "0" back. The "to" mail could be completely bogus, and you'll still get a 1 back, though. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- 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] persistant user tracking
What are some methods for persistant user tracking? I need to limit the number of times a person can search for certain material without forcing them to create a login. Currently I am using cookies to limit the number of searches a person can do but, quiting and removing the cookie file easily defeats that. Storing their IP address locally would work but then not everyone has a static ip. Would grabbing the MAC from their ethernet card be doable? Again alot of people use modems. Any thoughts or resources you know of? Othere than logging in, which you seem to want to avoid for the first N searches, there doesn't seem to be much more you can do. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- 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] Detecting if JavaScript is enabled
Who can give me a PHP-Script to detect if JavaScript is enabled? It should work with both, IE and NN! --- yoursite.com/nojavascript.htm HTML HEAD SCRIPT LANGUAGE=JavaScript document.location="yoursite.com/javascript.htm"; /SCRIPT /HEAD BODY Non-javascript content here. /BODY /HTML -- 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] Implode?
What is the best way to pull data from one table and insert into another? insert into newmembers(name, email, whatever) select name, email, whatever from oldmembers How can I delete entries from a table with a php document? The same way you select entries. mysql_query() can send *ANY* query to your database. The gist of what I'm trying to accomplish is this. This is somewhat of a detailed outline, so please bear with me. 1. I have one table (members) that has all the old data. 2. I'm am going to send an e-mail to every entry in that table that has an e-mail address and have a link for them to follow to a PHP page. Any entry that does not have an e-mail address, will be moved over with a different (but similar) PHP script that will do a mass search and move of that data to the new table (memberdetail) Wouldn't it be easier to present different info to members based on their email or lack thereof, and similarly based on their password or lack thereof, than to mess around with shuffling all the data from table to table?... -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- 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] session_start
do we have to use in each page using the data of a session the session-start()? cause in the manual it says that session_start -- Initialize session data and session_start() creates a session ?! thanks You want session_start() at the top of every page that uses session data. It initializes session data to the existing values, and creates a (logical) session for you to work with. It doesn't wipe out your session and make a new one, which is how I think you read it. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- 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] How do I submit a POST form?
Search for "Rasmus Lerdorf" and "posttohost" in your fave PHP code archive or search engine. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: "Alexis Michel Golzman" [EMAIL PROTECTED] Newsgroups: php.general Sent: Sunday, February 25, 2001 2:47 AM Subject: [PHP] How do I submit a POST form? Hi, I've submitted many times a GET form like this: header("Location: http://examplesite.com/myscript.php3?key=valuekey2=value2keyn=valuen"); but now I need to submit a POST form. How is this done? I found this Perl code on the web: -- use strict; use LWP::UserAgent; # libwww-perl my $ua = new LWP::UserAgent or die "new UA: $!"; $ua-agent("testclient/1.0"); my $url = 'http://localhost/cgi-bin/test.pl'; my $request = new HTTP::Request('POST', $url) or die "new HTTP::Request POST '$url': $!"; $request-content_type('application/x-www-form-urlencoded'); $request-content('field1=value1field2=value2field3=value3'); #$request-content('field1=value1'); # optional method #$request-add_content('field2=value2'); #$request-add_content('field3=value3'); my $response = $ua-request($request); print $response-content; -- But I want to know if there is a way of doing it in PHP... Thanks in advance for your help! :-) Kind regards, Alexis Golzman mailto:[EMAIL PROTECTED] http://trafficbar.com -- 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] register stop working with a site
Log every time they take an action in your database, and if they are inactive after a certain time limit, force re-login. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: "Plamen Slavov" [EMAIL PROTECTED] Newsgroups: php.general Sent: Monday, February 26, 2001 2:44 AM Subject: [PHP] register stop working with a site Hi all, i was wondering if someone has any idea about how to register that a client has stopped working with my site and log him/her out? -- 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] forms functions
Can i call a function from the action line of a form? No. PHP lives on the web-server. What you describe, I think, is executing a PHP function inside the browser. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- 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] Sessions question
You probably need to "unset" the cookie PHP is using to store the session ID when you destroy the session. Change your cookie handling in your browser to the "warn me before every cookie" and play around a bit maybe. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Evelio Martinez [EMAIL PROTECTED] Newsgroups: php.general Sent: Monday, February 26, 2001 11:58 AM Subject: [PHP] Sessions question How can I have an new session id without closing the browser? session.inc contains basically the postgresql session functions (user handler) in http://www.php.net/manual/en/ref.session.php I have change pg_pconnect for pg_connect and I have added pg_destroy_session. 1. There is a login/password page 2. Afterwards all pages that access the DB have the following include file: ? include('sesion.inc'); if (!isset($g_login)) {// flag that indicates that validation was succesful echo "script language='javascript' !-- var lugar = window.location.href; if ( lugar != \"http://www.my_web.com/login.php\" ) { window.location.assign('http://www.my_web.com/login.php'); } file://-- /script"; } if (isset($g_hora)) { $timeout = 3600 ; $lapso = time() - $g_hora; if ( $lapso = $timeout ) { session_destroy();// delete session from database session_unset(); // suppose to delete session variable from memory $sesion = md5(uniqid("prueba")); session_id($sesion); // new session echo "script language='javascript' !-- var lugar = window.location.href; var lugars; window.alert('La sesin ha expirado'); var lugar = window.location.href; if ( lugar != \"http://www.my_web.com/login.php\" ) { window.location.assign('http://www.my_web.com/login.php'); } file://-- /script"; } } ? 3. How am I supposed to create a new session identificator ? session_unset is suppose to "free" (delete?) all session variables currently registered, isn't it? After timeout, it goes to login page but I have still the old session id instead of the new one. What am I missing? TIA -- Evelio Martnez -- 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] mod_php4
Does anyone know the difference between the cgi version of php4 (php.exe) as opposed to setting up php4 as a server's module? I have both versions installed its just that I do not know what is the difference when it comes to functionality. Does the cgi version execute faster then the other...things like this! CGI much slower, somewhat more stable since it's been around longer. There will be some features not available in CGI, but if you're using NT they probably wouldn't have worked anyway. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- 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] Another question about using shmop!
I read about the php manual, I find that, shmop function can let me use to store information directly on a shared segment memory. However, I have some question about these! Does it provide a faster performance, if I use these rather than store things in mysql DB, I know this might be stupid, but I have to make sure this. I belive shared memory is *much* faster than MySQL. But there's nothing to "save" your data if the machine crashes, and all sorts of tricky stuff you'll need to figure out on your own about shared memory. Shared memory is not for the faint of heart. And, can I shared the segment ( the data stored inside ) with different user session. Would you show me how. Not only *can* you share it with different user sessions, you have no choice about it. The whole point of shared memory is that *EVERY* process on the machine is using the same memory. So, if you stuff "Hello World" into shared memory location 42, *every* script, every program, every everything on that computer has "Hello World" in shared memory location 42. Period. Lastly, is there any further information about using this? the manual only take a little bit!! There's bound to be a HowTo somewhere, but you will really need to be careful. Things you need to think about: What if *two* people run this script at exactly the same time? How do I know my script isn't tromping on other program's usage of shared memory? I can't think of any more, but that's mostly because I consider shared memory "too tricky for me" and have never played with it... -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- 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 file prob
For starters, PHP throws away any uploaded files when the script finishes to avoid a denial of service attack where somebody can overflow your /tmp by uploading over and over. You have to copy the files in the first script, and pass *those* locations on to your next page. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: John LYC [EMAIL PROTECTED] Newsgroups: php.general Sent: Monday, February 26, 2001 11:04 PM Subject: [PHP] image file prob hi.. i have a form that allow users to upload several image files. every time they submit, i do fread them and assign them to an array... this array will be passed on until user confirmation.. then i insert into database as blob type file://freed image file and assign to array. $diagram[$ind] = addslashes(fread(fopen($HTTP_POST_FILES["QuestDia"]["tmp_name"][$ind],"r"), file://to facilitate posting of any existing array of the above to the next form... for($ind=0;$ind count($diagram);$ind++) print "input type=\"hidden\" name=\"diagram[$ind]\" value=\"".$diagram[$ind]."\""; the script will bring user back to the form and allow them to upload more... the 2nd time round, i have got error.. i see parts of $diagram being displayed out... meaning funny characters are displayed.. once $diagram is insert into database,,, the pic is corrupted.. it works fine if the form does not repeat.. meaning user post images and database is updated straight away. can someone tell me wat's wrong? john -- 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] logout and clean up session and cookies
Can anyone guide me how to do the logout function that can get rid off session and cookies? Both are used to store userID and password through the site. session_destroy(); SetCookie("SID", ""); -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- 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] File sending?
Is it possible to send a file to a browser? I would like to allow people to download a file, but I don't want to give away the path to the file, so a normal link wouldn't work. I am hoping there is a way to use php to send the file using code, rather than trying to first copy the file to a temp dir then give them the link, then worry about deleting the temp dir again. A HREF=yoursite.com/download.php/whatever.doc?filename=whatever.docwhatever.d oc/A (Yes, that extra whatever.doc in the URL is on purpose. Microsoft sucks.) ?php #download.php: #This header forces a download: header("Content-type: application/octet-stream"); #This header convinces some browsers to prompt with whatever.doc instead of download.php: header("Content-disposition: $filename"); #There are about 6 more headers to convince other browser versions of the same... #Look in the code archives for them. passthru("/secret/path/not/in/your/website/$filename); ? -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- 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] Fopen image and print as binary/Image
? header( "Content-type: image/gif" ); $img = fopen($DOCUMENT_ROOT . "/store/include/TestingImage.gif","rb"); print($img); ? prints this: Resource id #1 I'm trying to print the image as binary or as an image. Have I missed a step? Hope i'm not being too confusing. $img is a "file pointer" -- It is simply a "reference" you can use to get stuff out of a file: while (!feof($img)){ $image_data = fread($img, 100); print($image_data); } However, you should be using passthru() instead, since that's pretty much what it was designed for. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- 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] mail() question
just the info in the .txt file did you want to actually send the .txt file or just the info in the .txt file?? -Original Message- From: W.D. [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 28, 2001 10:19 AM To: [EMAIL PROTECTED] Subject: [PHP] mail() question I want to send a .txt file back to the sender when a form is filled out, sort of like an autoresponder. I have one mail() to send info from form to me, is the only way to send out a file back to the sender by using a second mail()? _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- 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] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- 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] Full mailbox
Can some moderator please do something about this guy - every post to the list gets an autoresponse: - Your message with subject [Re: [PHP] parse error on line after last one???] was not delivered to the following recipient: [kia01]. This recipient's mailbox is full. Sua mensagem com assunto [Re: [PHP] parse error on line after last one???] nao foi entregue ao seguinte destinatario: [kia01]. A caixa-postal deste destinatario esta' cheia. by srv8-sao.sao.terra.com.br (8.9.3/8.9.3) with ESMTP id UAA27560 for [EMAIL PROTECTED]; Tue, 27 Feb 2001 20:28:56 -0300 Received: (from mail@localhost) by srv3-tl1.tl1.terra.com.br (8.9.3/8.9.3) id UAA12938 for [EMAIL PROTECTED]; Tue, 27 Feb 2001 20:28:55 -0300 Received: from toye.php.net (va.php.net [198.186.203.51]) by srv3-tl1.tl1.terra.com.br (8.9.3/8.9.3) with SMTP id UAA12926 for [EMAIL PROTECTED]; Tue, 27 Feb 2001 20:28:54 -0300 Received: (qmail 8791 invoked by uid 1013); 27 Feb 2001 23:25:22 - Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk list-help: mailto:[EMAIL PROTECTED] list-unsubscribe: mailto:[EMAIL PROTECTED] list-post: mailto:[EMAIL PROTECTED] Delivered-To: mailing list [EMAIL PROTECTED] Received: (qmail 8648 invoked from network); 27 Feb 2001 23:25:20 - Message-ID: 004901c0a114$f09af980$[EMAIL PROTECTED] From: "Simon Garner" [EMAIL PROTECTED] To: "Jaxon" [EMAIL PROTECTED], [EMAIL PROTECTED] References: [EMAIL PROTECTED] Date: Wed, 28 Feb 2001 12:27:08 +1300 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Subject: Re: [PHP] parse error on line after last one??? -- 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] mySQL table joins are slow, need rebuild?
On Tue, 27 Feb 2001 15:04:09 -0800, Joe Stump ([EMAIL PROTECTED]) wrote: You need to remember a few things when it comes to joins: the joined fields must be the EXACT same definition - example: a join on id int(9) and id int(3) will NOT be optimized - more: a join on id char(9) and id int(9) is REALLY NOT optimized :O) true, but even more important than this is to make sure there's an index on both fields. without that it will crawl. also if the 'order by' is causing problems you might want to up the tmp_table_size in my.cnf, and very important is to not let the partition that tmp is on get too full. - Mark -- 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] File downloading?
Great, thanks. I looked at the file(), but it sounded like is was just for local file use. Is it possible to send a file to a browser? Sure. file(); I would like to allow people to download a file, but I don't want to give away the path to the file, so a normal link wouldn't work. In that case: Header("Content-type: application/octet-stream"); file("whatyouwanttosend"); ( I am not sure if my first email went through, I got an error back about the mailbox being full) I didn't see it ... Jason -- Jason Murray [EMAIL PROTECTED] Web Design Team, Melbourne IT Fetch the comfy chair! -- 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] mail() question
Set your mail script up something like //open the file $myfile= file("data.txt"); //put file contents into one string $myfile = implode($myfile, ""); $mailTo = "[EMAIL PROTECTED]"; // if its going to more than one use a comma after " $mailSubject = "some subject"; // subject of email $mailBody = $myfile // call in $myfile $mailHeaders "From: [EMAIL PROTECTED]\n"; add mail headers here mail($mailTo, $mailSubject, $mailBody, $mailHeaders); your done I can't see why this wouldn't work for you Peter -Original Message- From: W.D. [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 28, 2001 10:34 AM To: Peter Houchin; [EMAIL PROTECTED] Subject: Re: [PHP] mail() question just the info in the .txt file did you want to actually send the .txt file or just the info in the .txt file?? -Original Message- From: W.D. [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 28, 2001 10:19 AM To: [EMAIL PROTECTED] Subject: [PHP] mail() question I want to send a .txt file back to the sender when a form is filled out, sort of like an autoresponder. I have one mail() to send info from form to me, is the only way to send out a file back to the sender by using a second mail()? _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- 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] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- 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]