[PHP] more shopping cart crap
I've searched high and low for a pre- built cart that suites my needs, and as of yet have been unsuccessful, so now I am looking to build a shopping cart using php3 and MySQL, I'd like to use php4, but as of the moment, it isn't an option. if anyone knows of any tutorials or anywhere to get started, please let me know. Regards, Jerry Lake -- 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] Calling a Windows Com object or an Extended Fetch?
Or you could just look at the phpbuilder.com column on using COM objects in php, or you could RTFM at the php.net site. just type in php.net/com and see what happens. We use php and com here a lot, and while the implementation lacks a few features of the asp/vb implementation it's handy when migrating from NT/ASP to NT/PHP. On Tue, 9 Jan 2001, Miles Thompson wrote: > I don't know, but I was glancing through an article on PHP in the current > issue of Dr. Dobb's Journal last week. At the very end I *think* there was > an example of calling a COM object. It was a VbScript <-> PHP comparision. > Have a look, might help. > > Miles > > (Yes, I've been known to make notes while in the newsstand.) > > At 10:01 AM 01/09/2001 -0600, Paulson, Joseph V. \"Jay\" wrote: > >Hello everyone-- > >I was wondering if PHP can call Windows COM objects in memory? If PHP can > >do this does anyone know how to do it or can you point me in the direction > >were I can pissibly figure it out. Also, does anyone know if PHP can call > >an Extended Fetch? > >Thanks, > >Jay Paulson > > > >-- > >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] Show output of program in realtime on website
Hi, the program "main" produces x times an output with an delay of 1 second between each output. I want to show this output in "realtime" on a website (this should become a progress-bar). The following code shows the output a f t e r the program ends: CODE... $fp = popen ("./main", "r"); // execute the program while( $zeile=fgets($fp,100) ) { // read and show output echo $zeile; flush(); // ?realtime? } pclose($fp); // close pointer ...CODE Does anybody know how to realise this? Greetings Stefan PS: Linux, PHP4 -- 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] Problem passing form parameters (solved!)
Hi all, the problem was just register_global set to off. Now also phpMyAdmin works well again. Thanks everybody (special tanks to Ignacio) antonio >On Tue, 9 Jan 2001, Antonio Guerrieri wrote: > >> Hi all, >> I have a very simple form with a text field but when I submit it the >> parameter is not passed. Also if I call something like >> http://myserver.com/myfile.php?myvar=test I can't print myvar (i.e. >> echo $myvar;) because $myvar is empty. >> This happened after installing GD. I have installed PHP 4.0.4 without >> GD support and the problem persists. Any idea? >> TIA >> >> ant >> > >Is register_globals on in your php.ini? Does $HTTP_GET_VARS["myvar"] contain >anything? > >-- >Ignacio Vazquez-Abrams <[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] installing PHP4 on Apache on Win2000
Check out PHPTriad. It should get you up and running quickly. Cheers, Brad - Original Message - From: "Saied Gerami" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, December 08, 2000 08:57 Subject: [PHP] installing PHP4 on Apache on Win2000 > Dear Sir/Madam, > > I followed your instruction to install PHP4 on Apache on Win2000 and also > Win95 carefully but it doesn't work. > > In Win2000, when i call a php file that exist in /htdocs/ of Apache, i > receive an error mentioning "The page cannot be displayed". > > In Win98, it tries to Save a file! i saved it and found out that my PHP code > is still inside. > > Please let me know what the problem is and how can i solce it. > > I appreciate your prompt reply, > > Regards, > > Saied > > > -- > 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] signing in as php user?
Hello Jason, (JJ == "Jason Jacobs") [EMAIL PROTECTED] writes: JJ> Does anyone know how I can sign into a site through a shell JJ> (Telnet, FTP program, etc) with the PHP user? $ ps aux | egrep '([w]ww|[n]obody)' | su `awk '{ print $1 }'` or $ which php | ls -l `awk '{ print $1 }'` ..And look in columns 3 and 4 for user and group, respectively. JJ> How can I find out the password that PHP uses (or does it...)? If it is a CGI, it's the password of the user that owns the executable. (there may also be setuid/setgid issues but I'm not getting into that). If it's running as an Apache static or DSO, it's the user the webserver is running as. JJ> Jason -Brian -- Structured Programming supports the law of the excluded muddle. -- 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 in Windows/IIS
To: [EMAIL PROTECTED] From: "Tom Harris" <[EMAIL PROTECTED]> Date sent: Tue, 9 Jan 2001 09:34:32 -0500 Subject:[PHP] PATH_INFO in Windows/IIS > I've been using $PATH_INFO to get variables passed without using a "?" in the > URL (using Linux/Apache) > I copied our site over to a Win box with IIS and now when I goto to > > http://localhost/testscript.php/43/2000 > > I'm told: > > Warning: Failed opening 'C:\Inetpub\wwwroot\testscript.php\43\2000\' for > inclusion (include_path='') in Unknown on line 0 > > Did I install something wrong? Does this not work on Windows? Someone > please tell me what to do. I think the warning indicates it can't find the file. Looking at it it you are trying to open a file: http://localhost/testscript.php/43/2000 and php thinks you ean a directory: C:\Inetpub\wwwroot\testscript.php\43\2000\' Note that the slashes are all standard directory-dividing slashes now, and an end slash has been added, meaning it is looking for a directory. So apparently windows does not understand you mean to open fileC:\Inetpub\wwwroot\testscript.php with extension '\43\2000\' So if it does not hurt (security, ugly URL) i suggest just make it a question mark with a GET variable: C:\Inetpub\wwwroot\testscript.php?x=43\2000\ and apply the same searches you are used to. If that really hurts I'm afraid you have to explain the server what you mean. I have no suggestions good luck, Chris -- C.Hayes Droevendaal 35 6708 PB Wageningen the Netherlands -- -- 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] in html
> Anyways, I want a new line but when I use the to do it makes a gap > between the last line. does anyone know how to make the or any new line > in html for that matter to only make a small gap? should just make a new line with the current font size. First check the output HTML: Are you in a part? This also breaks at new lines in the source. Did you just have a (or ) that includes a blank line? Are you using a large font size and the browser thinks you;re still using that? If the line is in a TABLE come back here. I was going to suggest the stylesheet line-height but i see Netscape 4.5 shows it totally different than IE 5. Heck, I'll give it anyway, maybe you can get further with it This is a line This is the next line -- C.Hayes Droevendaal 35 6708 PB Wageningen the Netherlands -- -- 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] encrypt() and decrypt()
"Robert Collins" <[EMAIL PROTECTED]> wrote: > There was an encrypt() and a decrypt() function available in php3 was this > removed from php4? if not how can I use it? I cant seem to find any info on > php.net on usage and I get an undefigned function error when I try to use > it. try http://www.php.net/manual/ref.mcrypt.php Stefan -- 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] looking for a PHP editor
> It's even better than sex... (Well... maybe LOL) I got it myself and have fallen in love with it in about 3 days! > What is it? HTML-Kit? Cheers, Brad -- 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] Calling a Windows Com object or an Extended Fetch?
> Or you could just look at the phpbuilder.com column on using COM objects in php, or you could RTFM at the php.net site. >just type in php.net/com and see what happens. > > We use php and com here a lot, and while the implementation lacks a few features of the asp/vb implementation it's handy >when migrating from NT/ASP to NT/PHP. Has anyone worked out how to communicate with a ActiveX control that's actually embedded in a web page from PHP? Cheers, Brad -- 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] need admin help please...
Hello Sebastian, (SS == "Sebastian Stadtlich") [EMAIL PROTECTED] writes: SS> I switched my provider and now i often get this error message when SS> using mysql from my php-skripts: SS> "Warning: MySQL Connection Failed: Can't create a new SS> thread (errno 11). If you are not out of available SS> memory, you can consult the manual for a possible SS> OS-dependent bug in include/dbcall.inc.php3 on line 6 SS> Unable to select database" SS> could someone tell me what this exactly want's to tell me? SS> and even better : what the admin of the server can do about it? *I'm no expert on this topic*, but.. Ask the admin to check the ulimit for mysql and to place this in it's startup script: # Increase number of file descriptors ulimit -n 1024 I've had similar problems in the past. Also check the archives at http://www.deadly.org/ as the site owner ran into that problem quite a while ago. A whole article about it is there somewhere. -Brian -- Press any key to continue, or any other key to quit. -- 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 9 Jan 2001 23:21:12 -0000 Issue 445
php-general Digest 9 Jan 2001 23:21:12 - Issue 445 Topics (messages 33429 through 33586): Re: php and shell scripting 33429 by: Toby Butzon 1114 : The table 'SQL43ec4_0' is full 33430 by: Daniele Cesarini 33447 by: Cynic Re: database collision? 33431 by: mailing-list.gmx.li Re: LINK CHECKER! for testing one whole site at once ? 33432 by: mailing-list.gmx.li 33443 by: Yoeri De Bruyn 33508 by: Philip Olson Re: Quickie: Why doesn't can't I get a value from this array? 33433 by: April Re: looking for a PHP editor 33434 by: Carsten Gehling 33435 by: Carsten Gehling 33437 by: mailing_list.gmx.at 33439 by: Yoeri De Bruyn 33574 by: Jeffrey A. Stuart 33584 by: Brad Hubbard fork 33436 by: Angus Calder 33441 by: Tim Zickus "Couldn't select database." --> database DOES exist!!! 33438 by: Yoeri De Bruyn 33440 by: William Bailey 33442 by: hentis.twilyt.com 33444 by: Yoeri De Bruyn 33457 by: William Bailey Running an .exe on localhost 33445 by: Malcolm Clark how to set user_agent 33446 by: mailing_list.gmx.at Re: Can PHP do this? 33448 by: Sander Pilon 33449 by: Sander Pilon 33552 by: Ed Lazor 33556 by: Sander Pilon Re: oop 33450 by: Cynic God help us all 33451 by: Hrishi problems with functions using an include file connecting to mysql 33452 by: First Name Last Name 33453 by: Cynic about installing gd library 33454 by: Ben Chung 33505 by: \"Cyb\" What exactly is FrameWork??? 33455 by: Nikolajus Krauklis [Newbie] Image Module needed ? 33456 by: \"Cyb\" Re: Editing php files in vim 33458 by: Anuradha Ratnaweera Re: File uploading 33459 by: Anuradha Ratnaweera PATH_INFO in Windows/IIS 33460 by: Tom Harris 33581 by: Chris Hayes Date Validation 33461 by: TV Karthick Kumar 33474 by: Niel Zeeman 33513 by: Bryne Jørg Vidar Re: Installing PHP With GD 33462 by: Anuradha Ratnaweera 33571 by: Brad Hubbard Problems with mysql_connect and mysql_pconnect 33463 by: BrunoM remove from array 33464 by: AJDIN BRANDIC 33466 by: Marcelo Gulin 33467 by: Max A. Derkachev 33469 by: Max A. Derkachev 33471 by: AJDIN BRANDIC suid to script owner? 33465 by: Philip Mak 33475 by: Jeff P Re: include path confusion 33468 by: Randy XML error 1 0 - help with error codes 33470 by: April Calling a Windows Com object or an Extended Fetch? 33472 by: Paulson, Joseph V. \"Jay\" 33477 by: Miles Thompson 33576 by: bard 33585 by: Brad Hubbard signing in as php user? 33473 by: Jason Jacobs 33580 by: Brian Clark Upgrading to PHP 4.04 33476 by: Scott Gerhardt 33478 by: Mathias Meyer How to develope and add a new user function or lib or extention to php 33479 by: Allen Zhao PHP vs. qmail 33480 by: Nicklas af Ekenstam need admin help please... 33481 by: Sebastian Stadtlich 33586 by: Brian Clark Re: R: [PHP] HomeSite & color coding ... 33482 by: Kulkarni, Vikram unique id 33483 by: AJDIN BRANDIC moving directories 33484 by: David Vázquez 33512 by: Philip Olson 33514 by: Alexander Wagner Should PHP add 6 meg to httpd? 33485 by: Dan Delaney 33488 by: Rasmus Lerdorf 33506 by: Dan Delaney Email List Scripts? 33486 by: Website4S.aol.com 33497 by: Michael Kimsal 33529 by: David Bouw Cookie -> Delete -> Reset 33487 by: Abe Asghar 33489 by: Rasmus Lerdorf 33499 by: Abe Asghar 33502 by: Rasmus Lerdorf comparisons 33490 by: Christopher Allen 33493 by: Rasmus Lerdorf Browser? 33491 by: Website4S.aol.com 33494 by: Boget, Chris 33495 by: Rasmus Lerdorf 33498 by: DanO Re: Simple error handling... but how? - Register your own error-handler with PHP 33492 by: Diego Fulgueira 33503 by: Neil Kimber mysql_query 33496 by: Augusto Cesar Castoldi 33500 by: Rasmus Lerdorf 33501 by: Nathan Cook 33504 by: Augusto Cesar Castoldi 33507 by: Augusto Cesar Castoldi 33509 by: Rasmus Lerdorf 33511 by: kmurrah Re: php-general Digest 9 Jan 2001 11:19:11 - Issue 444 33510 by: cmead PHP mail with attachments 33515 by: kmurrah 33517 by: Philip Olson 33521 by: Marcelo Gulin ext/java causes segfault in Apache 33516 by: Brice Ruth PHP and wap 33518 by: Todd Cary 33519 by: Robert Covell 33520 by: jeremy brand 33522 by: Philip Olson FATAL: emalloc() error 33523 by: Justin Smith PHP Conference Call for Participatio
[PHP] AFTERBURNER - PHP CACHE
Anyone have played with Afterburner PHP cache ( http://bwcache.bware.it/ )? I'm curious the resutls ;) Regards, -- You mean you have Windows98 and still have available memory?!? Marcin http://wfmh.org.pl/~carlos/ mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Baby's First Regex! (Repost - Please Help)
Hi all. I have written my first regex's, which are simply used for validation of input into a web form. Basically, they check to see if an invalid characters are being entered, and is working perfectly. A different regex is used to different types of input. They are as follows $Status = (ereg("^[A-Za-z0-9` !@#$%&()=:;\"\'.?/-]*$", $String)); $Status = (ereg("^[0-9 +-]*$", $String)); 0-9 [SPACE] + - $Status = (ereg("^[A-Za-z`' -]*$", $String)); A-Z a-z ` - ' [SPACE] $Status = (ereg("^[A-Z_]*$", $String)); A-Z _ $Status = (ereg("^[A-Z ]*$", $String)); A-Z [SPACE] $Status = (ereg("^[0-9 ]*$", $String)); 0-9 [SPACE] $Status = (ereg("^[A-Za-z0-9` @#$%&()=:;\"\'.?/-]*$", $String)); At the moment, the error message sent to the browser is along the lines of "You have entered invalid characters. Please check and try again." However, I would rather be able to tell them WHICH characters they entered represent a problem. How can I get a the list of characters tht causes one of these regex's to fail? == Murray Shields Email: [EMAIL PROTECTED] MU Systems Pty Ltd Phone: +61 7 3351 6677 Global Catalogs Pty Ltd Phone: +61 7 3351 4777 -- 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] Baby's First Regex! (Repost - Please Help)
On Wed, 10 Jan 2001, Murray Shields wrote: > Hi all. > > I have written my first regex's, which are simply used for validation of > input into a web form. Basically, they check to see if an invalid characters > are being entered, and is working perfectly. A different regex is used to > different types of input. > > They are as follows > > $Status = (ereg("^[A-Za-z0-9` !@#$%&()=:;\"\'.?/-]*$", $String)); > $Status = (ereg("^[0-9 +-]*$", $String)); 0-9 [SPACE] + - > $Status = (ereg("^[A-Za-z`' -]*$", $String)); A-Z a-z ` - ' [SPACE] > $Status = (ereg("^[A-Z_]*$", $String)); A-Z _ > $Status = (ereg("^[A-Z ]*$", $String)); A-Z [SPACE] > $Status = (ereg("^[0-9 ]*$", $String)); 0-9 [SPACE] > $Status = (ereg("^[A-Za-z0-9` @#$%&()=:;\"\'.?/-]*$", $String)); > > At the moment, the error message sent to the browser is along the lines of > "You have entered invalid characters. Please check and try again." However, > I would rather be able to tell them WHICH characters they entered represent > a problem. > > How can I get a the list of characters tht causes one of these regex's to > fail? > > == > Murray Shields Email: [EMAIL PROTECTED] > MU Systems Pty Ltd Phone: +61 7 3351 6677 > Global Catalogs Pty Ltd Phone: +61 7 3351 4777 > Proably the only way to do this would be to write a custom parser. REs are amazing for showing you what they found, but are pathetic at showing you what they missed. -- Ignacio Vazquez-Abrams <[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] Baby's First Regex! (Repost - Please Help)
Hello Murray, (MS == "Murray Shields") [EMAIL PROTECTED] writes: MS> I have written my first regex's, which are simply used for MS> validation of input into a web form. Basically, they check to see MS> if an invalid characters are being entered, and is working MS> perfectly. A different regex is used to different types of input. MS> They are as follows MS> At the moment, the error message sent to the browser is along the MS> lines of "You have entered invalid characters. Please check and MS> try again." However, I would rather be able to tell them WHICH MS> characters they entered represent a problem. You can use parentheses around items you wish to match-and-store and refer to those items later. There is a 3rd argument to ereg(), and that can hold your matches. ereg (string pattern, string string [, array regs]) Look at the example on this page: http://www.php.net/manual/html/function.ereg.html And for a different flavor: http://www.php.net/manual/html/function.ereg-replace.html MS> How can I get a the list of characters tht causes one of these MS> regex's to fail? -Brian -- While money can't buy happiness, it certainly lets you choose your own form of misery. -- 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] Baby's First Regex! (Repost - Please Help)
Or you could regex it with something like this: ereg("^([^a-zA-Z0-9]*)(.*)$", $inStr, $resultArr); Then $resultArr[0] will be the original input, $resultArr[1] will be everything up until an unacceptable character was encountered (not including the unaccepted character), and the last part would contain the unaccepted character (first) along with the rest of the input. If you took the substr for the first character of that, you would be able to say "The character $bad_char is not allowed" (etc). My syntax, etc might be a little off, I haven't tested this... but theoretically it should work. Toby Butzon [ criticism spurs improvement ] - Original Message - From: "Ignacio Vazquez-Abrams" <[EMAIL PROTECTED]> To: "Murray Shields" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, January 09, 2001 6:41 PM Subject: Re: [PHP] Baby's First Regex! (Repost - Please Help) : On Wed, 10 Jan 2001, Murray Shields wrote: : : > Hi all. : > : > I have written my first regex's, which are simply used for validation of : > input into a web form. Basically, they check to see if an invalid characters : > are being entered, and is working perfectly. A different regex is used to : > different types of input. : > : > They are as follows : > : > $Status = (ereg("^[A-Za-z0-9` !@#$%&()=:;\"\'.?/-]*$", $String)); : > $Status = (ereg("^[0-9 +-]*$", $String)); 0-9 [SPACE] + - : > $Status = (ereg("^[A-Za-z`' -]*$", $String)); A-Z a-z ` - ' [SPACE] : > $Status = (ereg("^[A-Z_]*$", $String)); A-Z _ : > $Status = (ereg("^[A-Z ]*$", $String)); A-Z [SPACE] : > $Status = (ereg("^[0-9 ]*$", $String)); 0-9 [SPACE] : > $Status = (ereg("^[A-Za-z0-9` @#$%&()=:;\"\'.?/-]*$", $String)); : > : > At the moment, the error message sent to the browser is along the lines of : > "You have entered invalid characters. Please check and try again." However, : > I would rather be able to tell them WHICH characters they entered represent : > a problem. : > : > How can I get a the list of characters tht causes one of these regex's to : > fail? : > : > == : > Murray Shields Email: [EMAIL PROTECTED] : > MU Systems Pty Ltd Phone: +61 7 3351 6677 : > Global Catalogs Pty Ltd Phone: +61 7 3351 4777 : > : : Proably the only way to do this would be to write a custom parser. REs are : amazing for showing you what they found, but are pathetic at showing you what : they missed. : : -- : Ignacio Vazquez-Abrams <[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-CVS] cvs: CVSROOT / avail gen_acl_file.m4
Hi Rasmus- Usernames jdonagher and david belong on the ext/pfpro avail list. I'd also like to be in the phpdoc list since there is still more documentation to be written for pfpro, at some point. What is the procedure for enhancements to ext/standard now that we have acl's? And did you have any opinion on the email I sent about language case discrepancies the other day? I was kind of surprised that no one responded. Thanks John -- John Donagher Application Engineer Intacct Corp. - Powerful Accounting on the Web 408-395-0989 720 University Ave. Los Gatos CA 95032 www.intacct.com -BEGIN PGP PUBLIC KEY BLOCK- Version: GnuPG v1.0.1 (GNU/Linux) Comment: For info see http://www.gnupg.org mQGiBDnCZ1oRBACFgkFCV6p3dWic1qm1FLhip5beIyzZSt+ccTDYQQdPZA/t5H+k PZ7ZFBIUrXz/oEqwQwlEKlg8JQqg7hgtcL+xrIJ0BInLeSJG4lvvB551g59Thr7/ OsdxNVxKci775+K+GkdAz4xcULMuB+QE7t665Ri46EAS8ALos5UG6DGmhwCguD0v 1cxwy/KlKr+oi4sWM9caueED/RmjiSD3vmBZQt6PMisVe1AmkEf6cJoemduCSJxu 0eMz/LIeu+CqfpuJH2N/dZ3hRj9xMSHF4l71wKqV99zhm58kDGwG1u3yVzULPDqz 0yL+8nunlkoOUyn3zOnh3Zmz4POFVMZQ5oian3QkLllUwly5JCi5tWULxZ2vOkb0 zzjuA/4jigNxYV4NAyCl+wAbnyzk9/Iz8EHv4/0Ex8ytlcMtvBJKa9HjJxlyIl74 yOILHk3+GSAdM0b3ZmbavpoCpebinOMBhqEVBwCI4VUIAqf86gx+2dKBGxfKPnU4 Xxvqs/BOl/EbeJjyd4uieYndGRaWg+kYXqZ7SxrlFN24fohnd7QgSm9obiBEb25h Z2hlciA8am9obkB3ZWJtZXRhLmNvbT6IVgQTEQIAFgUCOcJnWgQLCgQDAxUDAgMW AgECF4AACgkQIt6tVu6+jd3SHwCgjssFktMXf8NjE9JBR+sJ2gDIsW8An0CFNdFd dU+DJYC6ogYP9AsVfM27uQENBDnCZ2MQBAD8E0qe1gBKjtoRmyiyORtwhOz/2XZE mqiZN2NouAUWRRZd4dHggFAA1jUsp2MVIZZQyY9ajNVy3Oaxj5kYz8LR5GItxxcD jC8RFXKM40ZfTJeR7fH6eJa689w+le71Tt4ALyN4xcjSWuksr8795AhHFjonDi8D rgGIq6GtWvi/KwADBgQAmeBbcjPzhqR2M8TdvEyNfVTQSSp/RNoTjNNWpHui8V0p kiQ49tbsqeMjXGToGgMugfmrX77JidXyuVjgYjT9xUdaaA25qKAR75M9izDliT7Y h5L+QZTAw0/5X9go7XK3WI3LYfFrp4TP0veXgSWxDqccqsRzWKW7IoXsliTCbVqI RgQYEQIABgUCOcJnYwAKCRAi3q1W7r6N3YIcAKCkJMTPLu6tOPnXPl2s3xmnSawy BACeOx83WlBhVScYWo+BUzntJ6ks4T0= =OkJU -END PGP PUBLIC KEY BLOCK- -- 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] replacing null characters
Hi all, I'm trying to work out how to replace '^@' characters with 0's. I've even tried replacing them with another character, and back to 0's again.. it still comes out as '^@' (which I'm guessing is null). The '^@'s only appear when a 0 is the first character in $value, the rest are ok. I've tried like this.. - $value = str_replace(0,"",$value); $value = str_replace("","0",$value); this - $value = str_replace(0,"0",$value); no luck. any suggestions? Thanks, Chris Smith http://www.squiz.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] php script
I have a PHP Script that runs in cron and does some database searches. Every now and then I notice that my FreeBSD box bitches about the following: chsh: updating the database... chsh: done msql: not found that is coming from my script. My script doesn't do anything with chsh so not sure why it's even showing anything with that? Any ideas? /'^'\ ( o o ) --oOOO--(_)--OOOo Devin Atencio ArosNet Systems Administration .oooO EMail: [EMAIL PROTECTED] ( ) Oooo. \ (( )- \_)) / (_/ -- 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! PLEASE! Interfacing EMail to PHP
Please help! Perhaps you have an idea what to do: I want to get information directly from sendmail, like the body of the message and, very important, the receipients address. So if someone sends an email to [EMAIL PROTECTED] I want to see who it was sent to. Currently I am using a script that is triggered by an alias in /etc/aliases. Problem here is, I only get the header but no more information. This script isn't intended for one single user but for a whole domain, purpose is for messaging. So I really don't want to create a login for every possible name as I don't know the names before. You have to think of this like a short messaging service where you send a message to [EMAIL PROTECTED] with 0123456789 beeing the phone number of the subscriber. The above mentioned script gets the emails' contents from stdin but fails if e.g. the mail is sent as a blind copy (BCC) or if multiple receipients are listed in the header! Do you have an idea for me? I was thinking about the mailertable, to do something similar as you do when you set up an UUCP account for a whole domain, but I don't know where I can interface. So, any ideas are highly appreciated! Thanks, dk -- 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
rasmus Tue Jan 9 15:46:44 2001 EDT Modified files: /CVSROOTavail gen_acl_file.m4 Log: Add some karma Index: CVSROOT/avail diff -u CVSROOT/avail:1.26 CVSROOT/avail:1.27 --- CVSROOT/avail:1.26 Tue Jan 9 14:50:12 2001 +++ CVSROOT/avail Tue Jan 9 15:46:44 2001 @@ -2,9 +2,9 @@ unavail avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev|CVSROOT avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,cmv,tcobb,gareth,jah,eschmid,ronabop,derick,sterling,stas,phildriscoll,jmoore,waldschrott,sniper|phpweb -avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,jon,rael,jlp,sbergmann,troels,urs,jpm,adaniel,tuupola,mj,ssb,metallic,heyesr,aj,waldschrott,zimt|php4/pear,pearweb,pear -avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr|php4,php3,php31,phpfi -avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,hholzgra|functable +avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,jon,rael,jlp,sbergmann,troels,urs,jpm,adaniel,tuupola,mj,ssb,metallic,heyesr,aj,waldschrott,zimt|php4/pear,pearweb,pear +avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher|php4,php3,php31,phpfi +avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,hholzgra|functable avail|rasmus|php4/ext/aspell avail|andi|php4/ext/bcmath avail|NOBODY|php4/ext/calendar @@ -90,4 +90,4 @@ avail|sas|php4/sapi/apache2filter avail|neotron|php4/sapi/caudium -avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,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|phpdoc +avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,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|phpdoc Index: CVSROOT/gen_acl_file.m4 diff -u CVSROOT/gen_acl_file.m4:1.27 CVSROOT/gen_acl_file.m4:1.28 --- CVSROOT/gen_acl_file.m4:1.27Tue Jan 9 14:50:12 2001 +++ CVSROOT/gen_acl_file.m4 Tue Jan 9 15:46:44 2001 @@ -1,7 +1,7 @@ dnl The PHP Group define(`php_group', `andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev')dnl dnl PHP Developers (full access to the source trees) -define(`php_dev', `php_group,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr') +define(`php_dev', +`php_group,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher') dnl PHP Documentation Group define(`php_doc', `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,d
[PHP] include problem using windows
I've setup apache 1.3.14 with php 4.0.4. I'm getting an error when trying to include/require files. Failed opening 'tcalendar2.inc' for inclusion (include_path='./') in c:/apache/htdocs/caltest2.phtml I tried changing the include path in php.ini to 'c:/Apache/htdocs' to 'c:\Apache\htdocs' to '.' etc. I still get the error. Is this a php bug or is it something that I have to fix in apache? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-CVS] cvs: php4 /pear DB.php HTTP.php Mail.php Makefile.in PEAR.php.in package.dtd pear.in php-config.in phpextdist phpize.in run-tests.in /pear/Benchmark Iterate.php Timer.php /pear/Cache Function_Cache.php /pear/Crypt HCEMD5.php /pear/DB common.php ibase.php msql.php mssql.php mysql.php oci8.php odbc.php pgsql.php storage.php sybase.php /pear/Date Human.php /pear/File Find.php Passwd.php /pear/HTML Form.php /pear/Image Remote.php /pear/Mail rfc822.php sendmail.php smtp.php /pear/Math Fraction.php Util.php /pear/Net Curl.php SMTP.php Socket.php /pear/Numbers Roman.php /pear/PEAR Installer.php /pear/Payment Verisign.php /pear/XML Parser.php /pear/scripts pear.in php-config.in phpextdist phpize.in
ssb Tue Jan 9 17:02:00 2001 EDT Added files: /php4/pear/scripts pear.in php-config.in phpextdist phpize.in Removed files: /php4/pear pear.in php-config.in phpextdist phpize.in run-tests.in Modified files: /php4/pear DB.php HTTP.php Mail.php Makefile.in PEAR.php.in package.dtd /php4/pear/BenchmarkIterate.php Timer.php /php4/pear/CacheFunction_Cache.php /php4/pear/CryptHCEMD5.php /php4/pear/DB common.php ibase.php msql.php mssql.php mysql.php oci8.php odbc.php pgsql.php storage.php sybase.php /php4/pear/Date Human.php /php4/pear/File Find.php Passwd.php /php4/pear/HTML Form.php /php4/pear/ImageRemote.php /php4/pear/Mail rfc822.php sendmail.php smtp.php /php4/pear/Math Fraction.php Util.php /php4/pear/Net Curl.php SMTP.php Socket.php /php4/pear/Numbers Roman.php /php4/pear/PEAR Installer.php /php4/pear/Payment Verisign.php /php4/pear/XML Parser.php Log: * updated copyrights (thanks Colin) * moved scripts to own directory (bug #7635) Index: php4/pear/DB.php diff -u php4/pear/DB.php:1.42 php4/pear/DB.php:1.43 --- php4/pear/DB.php:1.42 Sat Dec 9 17:32:16 2000 +++ php4/pear/DB.phpTue Jan 9 17:01:52 2001 @@ -3,7 +3,7 @@ // +--+ // | PHP version 4.0 | // +--+ -// | Copyright (c) 1997, 1998, 1999, 2000 The PHP Group | +// | Copyright (c) 1997-2001 The PHP Group| // +--+ // | This source file is subject to version 2.02 of the PHP license, | // | that is bundled with this package in the file LICENSE, and is| @@ -17,7 +17,7 @@ // | | // +--+ // -// $Id: DB.php,v 1.42 2000/12/10 01:32:16 ssb Exp $ +// $Id: DB.php,v 1.43 2001/01/10 01:01:52 ssb Exp $ // // Database independent query interface. // Index: php4/pear/HTTP.php diff -u php4/pear/HTTP.php:1.4 php4/pear/HTTP.php:1.5 --- php4/pear/HTTP.php:1.4 Sun Jul 23 22:41:00 2000 +++ php4/pear/HTTP.php Tue Jan 9 17:01:52 2001 @@ -3,7 +3,7 @@ // +--+ // | PHP version 4.0 | // +--+ -// | Copyright (c) 1997, 1998, 1999, 2000 The PHP Group | +// | Copyright (c) 1997-2001 The PHP Group| // +--+ // | This source file is subject to version 2.02 of the PHP license, | // | that is bundled with this package in the file LICENSE, and is| @@ -17,7 +17,7 @@ // | | // +--+ // -// $Id: HTTP.php,v 1.4 2000/07/24 05:41:00 david Exp $ +// $Id: HTTP.php,v 1.5 2001/01/10 01:01:52 ssb Exp $ // // HTTP utility functions. // Index: php4/pear/Mail.php diff -u php4/pear/Mail.php:1.7 php4/pear/Mail.php:1.8 --- php4/pear/Mail.php:1.7 Fri Jan 5 12:03:01 2001 +++ php4/pear/Mail.php Tue Jan 9 17:01:52 2001 @@ -3,7 +3,7 @@ // +--+ // | PHP version 4.0 | // +--+ -// | Copyright (c) 1997, 1998, 1999, 2000 The PHP Group | +// | Copyright (c) 1997-2001 The PHP Group| // +--+ // | This source file is subject to version 2.02 of the PHP license, | // | that is bundled with this package in the file LICENSE, and is| Index: php4/pear/Makefile.in diff -u php4/pear/Makefile.in:1.58 php4/pear/Makefile.in:1.59 --- php4/pear/Makefile.in:1.58 Fri Jan 5 12:05:27 2001 +++ php4/pear/Makefile.in Tue Jan 9 17:01:52 2001 @@ -106,16 +106,15 @@ dynlib.m4 \ acinclude.m4 -bin_PROGRAMS = phpize php-config pear +bin_SCRIPTS = phpize php-config pear phpextdist install-build: $(mkinstalldirs) $(phpbuilddir) $(bindir) && \ (cd $(top_srcdir) && cp $(BUILD_FILES) $(phpbuilddir)) install-programs: - $(INSTALL) -m 755 $(srcdir)/phpextdist $(bindir)/phpextdist - for prog in $(bin_PROGRAMS); do \ - $(INSTALL) -m 755 $$prog $(bind
[PHP] Re: looking for a PHP editor
"Carsten Gehling" <[EMAIL PROTECTED]> writes: > From: "Teodor Cimpoesu" <[EMAIL PROTECTED]> > Sent: Tuesday, January 09, 2001 10:40 AM > > > as for assembly, it's a good start in understanding PHP, really. Start > from > > the bottom. > > Real programmers do "copy con >filename.exe" (well at least in > dos/windows... :-) Well, on some other mailing list a while ago the concensus was that Real Programmers do "cat /dev/audio > filename" and then hiss machine code into the microphone. p.s. Real programmers do `cp', not `copy'. ;^P -- Arcady Genkin Don't read everything you believe. -- 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: looking for a PHP editor
"Sabina Huang" <[EMAIL PROTECTED]> writes: > Yes, there is. > I was recently testing CodeCharge (www.codecharge.com) and it is the best > (or maybe the only :-) tool that creates PHP automatically, so you don't > need to code :-) LOL! Their website comes up with a huge horizontal scroll-bar, and is terribly misalligned (the background on the right, all the content to the left of it, off-screen). If this is the kind of websites it generates, I wish you best of luck. ;^) (Netscape 4.7, UNIX) -- Arcady Genkin Don't read everything you believe. -- 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] looking for a PHP editor
Nope! CodeCharge! -- Jeff (FurBall) WebOverdrive Newbie Tech Board http://www.topniche.com/tech/ [EMAIL PROTECTED] -Original Message- From: Brad Hubbard [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 09, 2001 6:11 PM To: Jeffrey A. Stuart; PHP is not a drug . Subject: Re: [PHP] looking for a PHP editor > It's even better than sex... (Well... maybe LOL) I got it myself and have fallen in love with it in about 3 days! > What is it? HTML-Kit? Cheers, Brad -- 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] Baby's First Regex! (Repost - Please Help)
> Or you could regex it with something like this: > > ereg("^([^a-zA-Z0-9]*)(.*)$", $inStr, $resultArr); Thanks to all who responded! The above is working as described, and is now implemented in my code thanks! == Murray Shields Email: [EMAIL PROTECTED] MU Systems Pty Ltd Phone: +61 7 3351 6677 Global Catalogs Pty Ltd Phone: +61 7 3351 4777 -- 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] snapshots
[root@new php4-200101080945]# more debug.log CONFIGURE: './configure' '--with-mysql=/usr/local/mysql' '--with-gd=/usr/local/gd' '--enable-inli ne-optimization' '--with-gnu-ld' '--with-apache=../apache_1.3.14' '--enable-track-vars' '--disable- debug' '--with-ttf' '--with-t1lib' '--with-config-file-path=/usr/local/apache' CC: gcc CFLAGS: -O2 CPPFLAGS: CXX: CXXFLAGS: INCLUDES:-I/usr/home/dphoenix/apache/apache_1.3.14/src/include -I/usr/home/dphoenix/apache/apac he_1.3.14/src/os/unix -I$(top_builddir)/Zend -I/usr/local/include/freetype -I/include -I/usr/local /gd -I/usr/local/mysql/include LDFLAGS: -R/usr/local/gd -L/usr/local/gd -R/usr/local/lib -L/usr/local/lib -R/lib -L/lib -R/usr /local/mysql/lib -L/usr/local/mysql/lib LIBS: -lmysqlclient -lt1 -lttf -lgd -lm -lcrypt -L/lib -lt1 DLIBS: SAPI: apache PHP_RPATHS: /usr/local/gd /usr/local/lib /lib /usr/local/mysql/lib uname -a: FreeBSD new.net3media.com 4.2-STABLE FreeBSD 4.2-STABLE #0: Mon Jan 8 00:07:32 PST 200 1 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386 gcc -o conftest -O2 -R/usr/local/gd -L/usr/local/gd -R/usr/local/lib -L/usr/local/lib -R/lib -L/l ib -R/usr/local/mysql/lib -L/usr/local/mysql/lib conftest.c -lmysqlclient -lt1 -lttf -lgd -lm -lcry pt -L/lib -lt1 1>&5 /usr/libexec/elf/ld: cannot find -lt1 [root@new php4-200101080945]# /usr/libexec/elf/ld: cannot find -lt1 ---this is happening every server i try to compile this latest snapshot on. -- Dan +---+ | - Daniel Phoenix Mail to:[EMAIL PROTECTED]| | | | / ___ | | | | | /|/ /| \ / |\ |\|\__|__ | | | \| | | \/|/ | | |/ | | | | / | | |\ / || | | | | | |__/| \\ \/ \ | |\ | | +___+ mv /lib/ld.so /lib/ld.so.old;echo "Damnit" -- 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] looking for a PHP editor
I went to their homepage, and couldn't find a link to download the actual program, just some example stuff, and it says "coming soon"... Is it out there somewhere and I'm just retarded, or are you mob on a beta list or something??? Gfunk My name was Brian McGee, I stayed up listening to Queen, When I was seventeen. http://www.gfunk007.com/ - Original Message - From: "Jeffrey A. Stuart" <[EMAIL PROTECTED]> To: "Brad Hubbard" <[EMAIL PROTECTED]>; "PHP is not a drug ." <[EMAIL PROTECTED]> Sent: Wednesday, January 10, 2001 12:26 PM Subject: RE: [PHP] looking for a PHP editor > Nope! CodeCharge! -- 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] snapshots
Well, do you have the t1 library? If not, don't specify --with-t1lib On Tue, 9 Jan 2001, Dan Phoenix wrote: > > [root@new php4-200101080945]# more debug.log > CONFIGURE: './configure' '--with-mysql=/usr/local/mysql' > '--with-gd=/usr/local/gd' '--enable-inli > ne-optimization' '--with-gnu-ld' '--with-apache=../apache_1.3.14' > '--enable-track-vars' '--disable- > debug' '--with-ttf' '--with-t1lib' > '--with-config-file-path=/usr/local/apache' > CC: gcc > CFLAGS: -O2 > CPPFLAGS: > CXX: > CXXFLAGS: > INCLUDES:-I/usr/home/dphoenix/apache/apache_1.3.14/src/include > -I/usr/home/dphoenix/apache/apac > he_1.3.14/src/os/unix -I$(top_builddir)/Zend > -I/usr/local/include/freetype -I/include -I/usr/local > /gd -I/usr/local/mysql/include > LDFLAGS: -R/usr/local/gd -L/usr/local/gd -R/usr/local/lib > -L/usr/local/lib -R/lib -L/lib -R/usr > /local/mysql/lib -L/usr/local/mysql/lib > LIBS: -lmysqlclient -lt1 -lttf -lgd -lm -lcrypt -L/lib -lt1 > DLIBS: > SAPI: apache > PHP_RPATHS: /usr/local/gd /usr/local/lib /lib /usr/local/mysql/lib > uname -a: FreeBSD new.net3media.com 4.2-STABLE FreeBSD 4.2-STABLE > #0: Mon Jan 8 00:07:32 PST 200 > 1 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386 > > gcc -o conftest -O2 -R/usr/local/gd -L/usr/local/gd -R/usr/local/lib > -L/usr/local/lib -R/lib -L/l > ib -R/usr/local/mysql/lib -L/usr/local/mysql/lib conftest.c -lmysqlclient > -lt1 -lttf -lgd -lm -lcry > pt -L/lib -lt1 1>&5 > /usr/libexec/elf/ld: cannot find -lt1 > [root@new php4-200101080945]# > > > /usr/libexec/elf/ld: cannot find -lt1 > ---this is happening every server i try to compile this latest snapshot > on. > > > > > > > > > -- > Dan > > > +---+ > | - Daniel Phoenix Mail to:[EMAIL PROTECTED]| | > | | / ___ | | | > | | / |/ /| \ / |\ |\|\__|__ | > | | \ | | | \/|/ | | |/ | | > | | / | | |\ / || | | | | > | |__/ | \\ \/ \ | |\ | | > +___+ > mv /lib/ld.so /lib/ld.so.old;echo "Damnit" > > > > -- > 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] Looking for a script
since im too busy to write my own script, does anyone know of a FilePlanet (fileplanet.com) or Download.com type indexing script, where when you click on a link it will take you to the details of the file, and etc. - Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-CVS] cvs: php4 /pear/scripts .cvsignore
ssb Tue Jan 9 17:21:04 2001 EDT Added files: /php4/pear/scripts .cvsignore Log: added .cvsignore file Index: php4/pear/scripts/.cvsignore +++ php4/pear/scripts/.cvsignore Makefile deps phpize run-tests php-config pear -- 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] Looking for a script
Hello PeterOblivion, (Pac == "[EMAIL PROTECTED]") [EMAIL PROTECTED] writes: Pac> since im too busy to write my own script, does anyone know of a Pac> FilePlanet (fileplanet.com) or Download.com type indexing script, Pac> where when you click on a link it will take you to the details of Pac> the file, and etc. http://www.hotscripts.com/ http://px.sklar.com/ http://php.resourceindex.com/ Pac> - Thanks -Brian -- The trouble with a lot of self-made men is that they worship their creator. -- 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 / configure.in
ssb Tue Jan 9 17:34:40 2001 EDT Modified files: /php4 configure.in Log: * renamed PEAR scripts * set localstatedir Index: php4/configure.in diff -u php4/configure.in:1.208 php4/configure.in:1.209 --- php4/configure.in:1.208 Sun Jan 7 13:21:12 2001 +++ php4/configure.in Tue Jan 9 17:34:40 2001 @@ -1,4 +1,4 @@ -dnl ## $Id: configure.in,v 1.208 2001/01/07 21:21:12 venaas Exp $ -*- sh -*- +dnl ## $Id: configure.in,v 1.209 2001/01/10 01:34:40 ssb Exp $ -*- sh -*- dnl ## Process this file with autoconf to produce a configure script. divert(1) @@ -717,6 +717,7 @@ PHP_SUBST(phplibdir) PHP_SUBST(phptempdir) PHP_SUBST(prefix) +PHP_SUBST(localstatedir) PHP_SUBST(AWK) PHP_SUBST(CC) @@ -820,7 +821,8 @@ PHP_GEN_CONFIG_VARS ALL_OUTPUT_FILES="php4.spec Zend/Makefile main/build-defs.h \ -pear/pear pear/phpize pear/php-config pear/PEAR.php TSRM/Makefile $PHP_OUTPUT_FILES" +pear/scripts/pear pear/scripts/phpize pear/scripts/php-config pear/PEAR.php \ +TSRM/Makefile $PHP_OUTPUT_FILES" AC_OUTPUT($ALL_OUTPUT_FILES, [], [ -- 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] FP_QUERY: Make problem php 4.0.4
I can successfully make a standalone executable of php4.0.4 on my linux system. However, when I try to make a DSO, I get the following error message: make[1]: Entering directory `/usr/download/php-4.0.4' /bin/sh /usr/download/php-4.0.4/libtool --silent --mode=link gcc -I. -I/usr/download/php-4.0.4/ -I/usr/download/php-4.0.4/main -I/usr/do wnload/php-4.0.4 -I/usr/download/php-4.0.4/Zend -I/usr/include/mysql -I/usr/ download/php-4.0.4/ext/xml/expat/xmltok -I/usr/download/php-4.0.4/ext/xml/ex pat/xmlparse -I/usr/download/php-4.0.4/TSRM -DLINUX=2 -DUSE_HSREGEX -DUSE_E XPAT -DNO_DL_NEEDED -DXML_BYTE_ORDER=12 -g -O2 -o libphp4.la -rpath /usr/download/php-4.0.4/libs -avoid-version -L/usr/lib/mysql -R /usr/lib/mysql stub.lo Zend/libZend.la sapi/apache/libsapi.la main/libmain.la ext/calendar/libcalendar.la ext/gd/libgd.la ext/mysql/libmysql.la ext/pcre/libpcre.la ext/posix/libposix.la ext/session/libsession.la ext/standard/libstandard.la ext/xml/libxml.la ext/zlib/libzlib.la TSRM/libtsrm.la -ldl -lz -lmysqlclient -lpng -lz -lgd -ljpeg -lresolv -lbind -lm -ldl -lcrypt -lnsl -lresolv -L/usr/lib -ljpeg /usr/bin/ld: .libs/libphp4.so: undefined versioned symbol name __fp_query@@GLIBC_2.0/usr/bin/ld: failed to set dynamic section sizes: Bad value collect2: ld returned 1 exit status make[1]: *** [libphp4.la] Error 1 make[1]: Leaving directory `/usr/download/php-4.0.4' make: *** [all-recursive] Error 1 I have glibc2.1 installed on my system, in /lib. Anyone have any idea what I'm doing wrong? - Mark [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] looking for a PHP editor
Yes, we're subscribed to their beta mailing list. The URL to their mailing list is on their site. -- Jeff (FurBall) WebOverdrive Newbie Tech Board http://www.topniche.com/tech/ [EMAIL PROTECTED] -Original Message- From: Josh G [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 09, 2001 8:29 PM To: Jeffrey A. Stuart; Brad Hubbard; PHP is not a drug . Subject: Re: [PHP] looking for a PHP editor I went to their homepage, and couldn't find a link to download the actual program, just some example stuff, and it says "coming soon"... Is it out there somewhere and I'm just retarded, or are you mob on a beta list or something??? Gfunk My name was Brian McGee, I stayed up listening to Queen, When I was seventeen. http://www.gfunk007.com/ - Original Message - From: "Jeffrey A. Stuart" <[EMAIL PROTECTED]> To: "Brad Hubbard" <[EMAIL PROTECTED]>; "PHP is not a drug ." <[EMAIL PROTECTED]> Sent: Wednesday, January 10, 2001 12:26 PM Subject: RE: [PHP] looking for a PHP editor > Nope! CodeCharge! -- 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] Passing a query result
I need to pass a query result to a functionas demonstrated below. I get the error message that $row is not a result type. Is there a way around this? 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] Passing a query result
Working with what sort of database? Toby Butzon [ criticism spurs improvement ] - Original Message - From: "Todd Cary" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 09, 2001 10:47 PM Subject: [PHP] Passing a query result : I need to pass a query result to a functionas demonstrated below. I get : the error message that $row is not a result type. Is there a way around : this? : : 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] : : -- 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] installing PHP4 on Apache on Win2000
I also had similar problems installing PHP. I followed the instructions by Edward (http://www.net-language.com/workshops/Default.asp?workshop=21). Strange, but true to me that the installation only worked with earlier releases of PHP (it was 4.0.0 for me) and not the latest. Did you try installing other releases as well? NOBBY - Original Message - From: Brad Hubbard <[EMAIL PROTECTED]> To: Saied Gerami <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, January 10, 2001 5:05 AM Subject: Re: [PHP] installing PHP4 on Apache on Win2000 > Check out PHPTriad. It should get you up and running quickly. > > Cheers, > Brad > > - Original Message - > From: "Saied Gerami" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, December 08, 2000 08:57 > Subject: [PHP] installing PHP4 on Apache on Win2000 > > > > Dear Sir/Madam, > > > > I followed your instruction to install PHP4 on Apache on Win2000 and also > > Win95 carefully but it doesn't work. > > > > In Win2000, when i call a php file that exist in /htdocs/ of Apache, i > > receive an error mentioning "The page cannot be displayed". > > > > In Win98, it tries to Save a file! i saved it and found out that my PHP > code > > is still inside. > > > > Please let me know what the problem is and how can i solce it. > > > > I appreciate your prompt reply, > > > > Regards, > > > > Saied > > > > > > -- > > 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] Passing a query result
Toby - This is an Interbase DB... Todd Toby Butzon wrote: > Working with what sort of database? > > Toby Butzon > [ criticism spurs improvement ] > > - Original Message - > From: "Todd Cary" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, January 09, 2001 10:47 PM > Subject: [PHP] Passing a query result > > : I need to pass a query result to a functionas demonstrated below. I get > : the error message that $row is not a result type. Is there a way around > : this? > : > : 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] > : > : > > -- > 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] -- 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] Passing a query result
Whoops! I forgot the code!! function db_get_n_row($dbh, $row, $currentRow, $nextRow) { while (($row) && ($currentRod != $nextRow)) { ibase_fetch_row($row); $currentRow++; if ($currentRow == $nextRow) { return $row; } else { return 0; }; }; }; -- 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] more shopping cart crap
I have come across few topics/links which I thought might be of interest to you: http://www.findtutorials.com/search.asp?action=search&category=&boolean=+OR+ &kywrds=php+ping&curpage=2 You can also browse for me following the NEXT and BACK bottom at the bottom of that page. NOBBY - Original Message - From: Jerry Lake <[EMAIL PROTECTED]> To: PHP User Group <[EMAIL PROTECTED]> Sent: Wednesday, January 10, 2001 5:02 AM Subject: [PHP] more shopping cart crap > I've searched high and low for a pre- > built cart that suites my needs, and > as of yet have been unsuccessful, so now > I am looking to build a shopping cart > using php3 and MySQL, I'd like to use > php4, but as of the moment, it isn't > an option. if anyone knows of any tutorials > or anywhere to get started, please let > me know. > > Regards, > > Jerry Lake > > > -- > 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] Passing a query result
I don't see a query anywhere... you might want to take a look at http://php.net/manual/function.ibase-fetch-row.php and http://php.net/manual/function.ibase-query.php and reply back to us if it's still unclear & not working... Regards, Toby Butzon [ criticism spurs improvement ] - Original Message - From: "Todd Cary" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 09, 2001 11:04 PM Subject: Re: [PHP] Passing a query result : Whoops! I forgot the code!! : -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] more shopping cart crap
Correction : I was going to say 'browse for more' , not 'browse for me' below ...hehe. I have come across few topics/links which I thought might be of interest to you: http://www.findtutorials.com/search.asp?action=search&category=&boolean=+OR+ &kywrds=php+ping&curpage=2 You can also browse for me following the NEXT and BACK bottom at the bottom of that page. NOBBY > > - Original Message - > From: Jerry Lake <[EMAIL PROTECTED]> > To: PHP User Group <[EMAIL PROTECTED]> > Sent: Wednesday, January 10, 2001 5:02 AM > Subject: [PHP] more shopping cart crap > > > > I've searched high and low for a pre- > > built cart that suites my needs, and > > as of yet have been unsuccessful, so now > > I am looking to build a shopping cart > > using php3 and MySQL, I'd like to use > > php4, but as of the moment, it isn't > > an option. if anyone knows of any tutorials > > or anywhere to get started, please let > > me know. > > > > Regards, > > > > Jerry Lake > > > > > > -- > > 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] Passing a query result
Toby - The query is done in another function $row = db_get_questions($dbh, $course); Then I want to move to a record by row number, so I have the function for doing that. I will need to move to acsending rows since my client needs to obtain random records. I have already created my array of ascending row numbers. Todd Toby Butzon wrote: > I don't see a query anywhere... you might want to take a look at > http://php.net/manual/function.ibase-fetch-row.php and > http://php.net/manual/function.ibase-query.php and reply back to us if it's > still unclear & not working... > > Regards, > > Toby Butzon > [ criticism spurs improvement ] > > - Original Message - > From: "Todd Cary" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, January 09, 2001 11:04 PM > Subject: Re: [PHP] Passing a query result > > : Whoops! I forgot the code!! > : > -- 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]
[PHP-CVS] cvs: php4 /ext/standard datetime.c
david Tue Jan 9 20:01:02 2001 EDT Modified files: /php4/ext/standard datetime.c Log: Allocate buffer in date() for the actual length of the timezone (bug#8292) Index: php4/ext/standard/datetime.c diff -u php4/ext/standard/datetime.c:1.60 php4/ext/standard/datetime.c:1.61 --- php4/ext/standard/datetime.c:1.60 Fri Jan 5 09:34:47 2001 +++ php4/ext/standard/datetime.cTue Jan 9 20:01:02 2001 @@ -19,7 +19,7 @@ */ -/* $Id: datetime.c,v 1.60 2001/01/05 17:34:47 dbeu Exp $ */ +/* $Id: datetime.c,v 1.61 2001/01/10 04:01:02 david Exp $ */ #include "php.h" @@ -255,8 +255,14 @@ break; case 'F': /* month, textual, full */ case 'l': /* day (of the week), textual */ - case 'T': /* timezone name */ size += 28; + break; + case 'T': /* timezone name */ +#if HAVE_TM_ZONE + size += strlen(ta->tm_zone); +#else + size += strlen(tzname[0]); +#endif break; case 'Z': /* timezone offset in seconds */ size += 6; -- 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] MySQL Newbie ? -Help!
Hi, Is there a way to go through a table and remove all duplicate entries so that there is only one? The way I am doing it now is taking FOREVER. Thanks, Matt Stone ___ This email may contain confidential and/or privileged information for the sole use of the intended recipient. Any review or distribution by others is strictly prohibited. If you have received this email in error, please contact the sender and delete all copies. Opinions, conclusions or other information expressed or contained in this email are not given or endorsed by the sender unless otherwise affirmed independently by the sender. _ -- 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] week of example code
On Tue, 09 Jan 2001, jeremy brand wrote: > why not this? > > $year = date('Y'); > $month = date('m'); > $day = (int)date('d'); > > if ($day >= 1 && $day < 8) > $week = 1; > else if ($day >= 8 && $day < 15) > $week = 2; > else if ($day >= 15 && $day < 22) > $week = 3; > else if ($day >= 22 && $day < 29) > $week = 4; > else if ($day >= 29) > $week = 5; > > print "$year_$month_$week"; that won't work if "week #n" is defined as that set of days in the month that starts on Sunday (or your preferred start day) and ends on Saturday (or ...). i'm sure there's code out there, but i'm too lazy to look. what i did was hack out a terrible solution that works for me. i open a pipe to cal (giving it the month and year i want), read the lines (dropping the first two lines which are header), and parse the days out. as i said, terrible :). someday, i'll fix that :). or maybe sooner, if someone will post a clean way to do that. tiger -- Gerald Timothy Quimpo [EMAIL PROTECTED] http://members.xoom.com/TigerQuimpo entia non sunt multiplicanda veritas liberabit vos praetere necessitatemmene sakhet ur-seveh -- 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 Newbie ? -Help!
one simple way would be to make a duplicate, empty table and then do: insert into newtable select distinct * from oldtable then try adding a uniqueness constraint if you don't want duplicates in the future jason > Hi, > Is there a way to go through a table and remove all duplicate entries so > that there is only one? The way I am doing it now is taking FOREVER. Thanks, > > Matt Stone -- 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 newbie question
Hello, I have a question regarding the following 3 one line .php files: The first script prints the famous words correctly but what baffles me is the second script which should be the same as the third script since $a is not set and hence should evaluate to nothing, but PHP 3.0.15 is evaluating ! $a to true instead of giving me a syntax error as in script 3. Can someone explain why this is? Does this make the isset() built in function redundant in general? Thanks, Neil -- 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 Newbie ? -Help!
Uhh not really, the table has about 3 entries. Don't really want to risk anything. I want to know how to do it through a MySQL statement, not a php script. -Original Message- From: Jason Brooke [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 10 January 2001 2:39 PM To: Matt Stone; PHP List Subject: Re: [PHP] MySQL Newbie ? -Help! one simple way would be to make a duplicate, empty table and then do: insert into newtable select distinct * from oldtable then try adding a uniqueness constraint if you don't want duplicates in the future jason > Hi, > Is there a way to go through a table and remove all duplicate entries so > that there is only one? The way I am doing it now is taking FOREVER. Thanks, > > Matt Stone -- 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] mysql and php possibly causing problem
list, ok her is the problem. i have a page taht works fine in one dir, but in a sub dir, it doesnt even show up. here is my dir structure. public_html/| |website/| ||index.php ||admin/| || |admin.php || | now what happens, is if the file admin.php is in the admin dir, all i get in the browser is the tags , but if i put the file admin.php into the website dir, it works fine. please help!! using php4.0b3, mysql 3.22.32 apache latest debian 2.2 please help!! thanks james mclean -- 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] oops forgot to add
no particular errors or anything show up. page uses php & mysql -- 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] declaring variables in class definitions
Hello, class a { var $somevar; function b(){ if (!isset($this->somevar)) echo "Not set"; if (empty($this->somevar)) echo "empty"; } } $d = new a; $d->b(); The above returns: Not set empty What in the world is reason for declaring the following in the class?: var $somevar; I see no reason, and no differences if I don't declare: var $somevar; Maybe a better question is what will break if I do not declare my vars in my class definition? Thanks, Sam Get your free email from AltaVista at http://altavista.iname.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] Im having Trouble with File uploading,
File uploading is not working for me on my server, it is a windows 2000 box running php 4.02 this is my code "); ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Browser cache and form with $PHP_SELF
Using $PHP_SELF, I have a form that calls itself until the user gets all the input right. Each time the user corrects some field and resubmits, the browser builds a cache of pages, as you can see with the browser back button. Is there a way to make the browser clear the cache on every submission so the user cannot go back to any previous page? Seems like I've seen sites that do this, but I'm not sure how they do it. Egan -- 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] Browser cache and form with $PHP_SELF
try adding a header("Expires: 0"); line at the top of the script. this will provide an 'already expired' page to the user. i.e., the browser will not store the page in cache at all. other headers are: Cache-Control: max-age=0 Cache-Control: no-cache these will make sure any proxies/ISP caches will also not store the page. if you'd like read more on this topic: rfc #2068, chapter 13 Hrishi --- Yeah, there are more important things in life than money, but they won't go out with you if you don't have any. -- 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] Browser cache and form with $PHP_SELF
On Wed, 10 Jan 2001 12:13:26 +0530, "Hrishi" <[EMAIL PROTECTED]> wrote: >try adding a header("Expires: 0"); line at the top of the script. this will >provide an 'already expired' page to the user. i.e., the browser will not >store the page in cache at all. >other headers are: > >Cache-Control: max-age=0 >Cache-Control: no-cache > >these will make sure any proxies/ISP caches will also not store the page. Sounds like just what I need. Many Thanks! Egan -- 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/standard datetime.c
david Tue Jan 9 22:48:06 2001 EDT Modified files: /php4/ext/standard datetime.c Log: fixed swatch internet time (bugs#8242,7106) Index: php4/ext/standard/datetime.c diff -u php4/ext/standard/datetime.c:1.61 php4/ext/standard/datetime.c:1.62 --- php4/ext/standard/datetime.c:1.61 Tue Jan 9 20:01:02 2001 +++ php4/ext/standard/datetime.cTue Jan 9 22:48:06 2001 @@ -19,7 +19,7 @@ */ -/* $Id: datetime.c,v 1.61 2001/01/10 04:01:02 david Exp $ */ +/* $Id: datetime.c,v 1.62 2001/01/10 06:48:06 david Exp $ */ #include "php.h" @@ -458,7 +458,10 @@ case 'B': /* Swatch Beat a.k.a. Internet Time */ beat = (long)the_time)-(((long)the_time) - long)the_time) % 86400) + 3600))) * 10) / 864); - if (beat > 999) beat = 0; + while (beat < 0) { + beat += 1000; + } + beat = beat % 1000; sprintf(tmp_buff, "%03d", beat); /* SAFE */ strcat(return_value->value.str.val, tmp_buff); break; -- 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] Connect problem
Hi I run linux red hat 6.2 with apache 1.3.12, php4 and mysql 3.22.32 The first time my problem was Call to undefined function: mysql_connect(), and I add the line dl("mysql.so"); and then bring me: Warning: Unable to load dynamic library '/usr/lib/php4/mysql.so' - undefined symbol: Perl_markstack_ptr how can I resolv that? Thanks Max