RE: [PHP] if($var) vs. if(isset($var))
$var = false; Then the first returns false While the second is true > -Original Message- > From: Sam Smith [mailto:[EMAIL PROTECTED] > Sent: dinsdag 23 november 2004 14:23 > To: PHP > Subject: [PHP] if($var) vs. if(isset($var)) > > > > What's the difference between: > > if($var) > > and > > if(isset($var)) > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP5 Windows not built with Soap Enabled?
Did you adjust your php.ini file? > -Original Message- > From: Sean Malloy [mailto:[EMAIL PROTECTED] > Sent: donderdag 15 juli 2004 3:50 > To: [EMAIL PROTECTED] > Subject: [PHP] PHP5 Windows not built with Soap Enabled? > > > Am I the only one experiencing this: > > Fatal error: Class 'SoapClient' not found > > checking the output of phpinfo() for the 5.0.0 binary from www.php.net, it would seem there is no soap support built in at all. Or have I just not woken up today? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Bar/Line Graph Tool
I like http://www.phplot.com/ --- Vincent Jansen [EMAIL PROTECTED] -Original Message- From: Hawkes, Richard [mailto:[EMAIL PROTECTED] Sent: vrijdag 16 april 2004 10:09 To: '[EMAIL PROTECTED]' Subject: [PHP] Bar/Line Graph Tool Good morning gang, I'm looking for a snazzy line/bar graph class. I've got GD running, with just the basic fonts (I'm using an ISP, so I can't do anything about it!). Any ideas? I've tried a few of the classes at www.phpclasses.org <http://www.phpclasses.org> , but they all seem to be giving me errors... Although some of them are rather old! Hope you can help Richard == This message is for the sole use of the intended recipient. If you received this message in error please delete it and notify us. If this message was misdirected, CSFB does not waive any confidentiality or privilege. CSFB retains and monitors electronic communications sent through its network. Instructions transmitted over this system are not binding on CSFB until they are confirmed by us. Message transmission is not guaranteed to be secure. == -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Forwarding to another PHP page
>PS: Someone will undoubtedly mention output buffering, which is a hack to allow header() to work even if there is output. >Just learn to do it the right way. :) That would be me then :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Forwarding to another PHP page
It should work even if you included something You probably have spaces outside the mailto:[EMAIL PROTECTED] Sent: vrijdag 9 april 2004 11:53 To: [EMAIL PROTECTED] Subject: [PHP] Forwarding to another PHP page Hello, Thanks John (Holmes) for the clue on form-param-reading. Simple one, but shows I got a lot of basics to learn yet. Here I have another doubt I cant resist asking help for. What are the various ways of forwarding to another page. I tried header().. based on an example I found it in, but it doesnt work if I have done an include before calling the header. What are the other alternatives of forwarding. (I tried searching the PHP manual, but didnt find any clue. Nor did I come across any learn material which seemed to deal with this.) Thanks for all help, Ash -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP5 xslt omit-xml-declaration
Does this 'omit-xml-declaration' work? (my stylesheet looks with this) http://www.w3.org/1999/XSL/Transform";> templates.. All my transformation result in a document starting with In a browser this is ok, but when trying to pass the document to Excel 2002 the first line seems to break the readingcapabillity of excel. How (if) can I lose this first line? Thanks Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: XSLT bug?
That works, but shouldn't this behave the way I thought it should -Original Message- From: Juan Torres [mailto:[EMAIL PROTECTED] Sent: vrijdag 2 april 2004 15:59 To: [EMAIL PROTECTED] Subject: [PHP] Re: XSLT bug? Try this: Good Luck. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] XSLT bug?
Don't know if this is the best place to post. I'm also not shure if this is a problem with the PHP implementation or it's something a bug in libxslt. But here's the deal. (I use php5.0.0RC1 for testing on winXP) This works: And this doesn't: Seems to me the < gets interpreted as an opening tag Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Constants
Not too fast. >From http://www.php.net/zend-engine-2.php PHP 5 introduces per-class constants: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] wysiwyg editor
I use http://www.fredck.com/FCKeditor/ Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] How to make sure a redirect works
>If you output a location header then I don't know what the browser will >do with text sent after that. Hopefully nothing! I experienced some strange behaviour(=no redirect at all!!) with a script that send data after the location header. Best to do this header("Location: http://somesite.nl";); die(); Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP and GET/POST
If you let your script decide which page to load by examining $_POST['step'] You should get the desired behaviour. Seems like you have register_globals = on in your php.ini file and you're testing the variable $step (not the best of practices) Hope this helps. Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] new session in new window
I quess you should start another session with another name session_name("newApp"); session_start(); Vincent -Original Message- From: Tim Traver [mailto:[EMAIL PROTECTED] Sent: dinsdag 9 maart 2004 0:01 To: Jason Davidson Cc: [EMAIL PROTECTED] Subject: Re: [PHP] new session in new window Hthat would mean that anywhere I used sessions I would have to specify a window name, right ? and where do I determine the window name ? not sure that would work with what I want to do...I just want to start a new window like I would start it if I opened a fresh IE window. Each of those windows would have different session id's... It sounds like you were talking about doing something similar, cause what I want to do is to automatically log someone in to a different app, while keeping the main person logged in to the main window... Anyone else have any ideas ? Tim. At 02:21 PM 3/8/2004, Jason Davidson wrote: >could create an array to hold the same session? >This may not at all be what your looking for, but ive used something >similar to this when building a wizard class to handle storing states >in wizard steps. like >$_SESSION['mySessions']['WindowOne'] = array($userid, $loginTime, $etc) >$_SESSION['mySessions']['WindowTwo'] = array($userid, $loginTime, $etc) > > >Tim Traver <[EMAIL PROTECTED]> wrote: > > > > Hi all, > > > > I am programming an interface using PHP and rely on sessions to keep > > state. > > > > What I want to be able to do is to open a new window from my > > application that has a new session, without disturbing the current > > session. > > > > I know that I can kill the current session and start a new one, but > > that's not what I want to do. When I launch a new window, it keeps > > the same session as the one that it was launched from. If I kill the > > session in > that > > new window, then it kills the old sessino too... > > > > Any suggestions ??? > > > > Thanks, > > > > Tim. > > > > > > > > > > > > SimpleNet's Back ! > > http://www.simplenet.com/ > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Two easy questions I think..
Sum() and auto_increment Why not read the mysql manual? -Original Message- From: Radwan Aladdin [mailto:[EMAIL PROTECTED] Sent: vrijdag 13 februari 2004 11:14 To: [EMAIL PROTECTED] Subject: [PHP] Two easy questions I think.. Hi.. 1- In my mySQL DB there is a field named "Whole".. there are many rows.. and every one has the value for the field "Whole". What I want is to add all these values in all rows for the field "Whole" then show it on the screen.. I mean by add : 1 + 2 + 3 = 6... 2- I have another filed there also.. named "UserNo" I want every adding query to this field to include a value in the row for that field = the latest row's value + 1 For example : if there are three rows in the table.. Row1 : "UserNo" value = 1 Row2 : "UserNo" value = 2 Row3 : "UserNo" value = 3 I want PHP to get the last row's value for that field (In this example : 3) then add to it 1.. so it will be 4 and insert it to the new row.. Regards.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] getting month from date variable
Don't reinvent http://www.php.net/manual/en/function.strftime.php -Original Message- From: Angelo Zanetti [mailto:[EMAIL PROTECTED] Sent: donderdag 12 februari 2004 10:13 To: [EMAIL PROTECTED] Subject: [PHP] getting month from date variable HI, I have looked the php manual and cannot find a function where I can extract the month (in words) from a variable which contains a date. eg: I input : 2004-01-26 and the function must return: January Is there a php function like this? I dont want to reinvent the wheel. If there isnt i will have to write my own. Thanx in advance. Angelo Disclaimer This e-mail transmission contains confidential information, which is the property of the sender. The information in this e-mail or attachments thereto is intended for the attention and use only of the addressee. Should you have received this e-mail in error, please delete and destroy it and any attachments thereto immediately. Under no circumstances will the Cape Technikon or the sender of this e-mail be liable to any party for any direct, indirect, special or other consequential damages for any use of this e-mail. For the detailed e-mail disclaimer please refer to http://www.ctech.ac.za/polic or call +27 (0)21 460 3911 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: Re[2]: [PHP] Math Question
Hi Richard I agree But you always want to round down ;) Blake> Is there a function that when you divide 2 numbers you drop the Blake> remainder and are left with the whole number. Still seems floor() to me Vincent -Original Message- From: Richard Davey [mailto:[EMAIL PROTECTED] Sent: woensdag 11 februari 2004 15:23 To: Vincent Jansen Cc: [EMAIL PROTECTED] Subject: Re[2]: [PHP] Math Question Hello Vincent, Wednesday, February 11, 2004, 2:15:15 PM, you wrote: VJ> Seems to me you need VJ> floor($number1 / $number2) Only if you always want to round *down* the equation. For example flooring a result of 4.99 will give you an integer of 4 whereas round() (or ceil()) will give you 5. It depends on the situation as to which is most useful. -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Math Question
Seems to me you need floor($number1 / $number2) Vincent -Original Message- From: Richard Davey [mailto:[EMAIL PROTECTED] Sent: woensdag 11 februari 2004 15:07 To: Jeremy Schroeder Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Math Question Hello Jeremy, Wednesday, February 11, 2004, 2:00:32 PM, you wrote: JS> Is there a function that when you divide 2 numbers you drop the JS> remainder and are left with the whole number. round($number1 / $number2) See the manual for the precision value if you need it. -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
FW: [PHP] Re: Generating an Excel file?
I use header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); header( "Content-type: application/x-excel" ); header( "Content-Disposition: attachment; filename=MyFile.xls" ); header( "Content-Description: PHP Generated Data" ); For me this works in both IE6 and Mozilla 1.5 --- Vincent Jansen -Original Message- From: Williams, Olwen - SAL [mailto:[EMAIL PROTECTED] Sent: dinsdag 20 januari 2004 4:59 To: [EMAIL PROTECTED] Subject: RE: [PHP] Re: Generating an Excel file? Name it for example something.csv The in your .htaccess file put ForceType application/x-httpd-php Olwen Williams [EMAIL PROTECTED] -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 20, 2004 4:43 PM To: Ben Ramsey Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Re: Generating an Excel file? Ben Ramsey wrote: > Adding any of those headers still does not remove the ".php" from the > end of the file when I am prompted for the download. I have a client > that will be downloading this file, and I do not wish to instruct them > to first remove the ".php" extension before they can view it. Are you using IE? I think it has this annoying feature. From what I've seen on here, the only workaround is to pass an extra variable in the URL that ends in ".csv", even though you don't need to use that variable. file.php?var=whatever&dummy=f.csv It doesn't matter what "dummy" is or "f.csv" is, so long as the entire URL ends in ".csv". Hopefully that'll work for you. All of the headers will remain the same. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals - www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php CAUTION - This message may contain privileged and confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify Safe Air Ltd immediately. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Safe Air. _ For more information on the Safe Air Group, visit us online at http://www.safeair.co.nz/ _ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Function Problem (Long-ish)
I doubt that... MySQL says: Mixing of GROUP columns (MIN(),MAX(),COUNT()...) with no GROUP columns is illegal if there is no GROUP BY clause --- Vincent Jansen -Original Message- From: Dave Carrera [mailto:[EMAIL PROTECTED] Sent: dinsdag 13 januari 2004 13:58 To: 'Richard Davey' Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Function Problem (Long-ish) Thanks for the reply Richard. If I use this sql in my func: $sql = mysql_query("select count(fieldtocount) as cnt, sum(fieldforsum) as total from $tab3 where fieldtocompare =\"$varcomparedwith\""); Then all is fine and works as expected. If I then add: $sql = mysql_query("select fieldtoselect, count(fieldtocount) as cnt, sum(fieldforsum) as total from $tab3 where fieldtocompare =\"$varcomparedwith\""); So adding the extra field to select, This dose not work :-( Although in other apps not sql-ing within a func this kind of sql query works. So I am puzzled why and if you or the list can help I would appreciate it. Thank you Dave C -Original Message- From: Richard Davey [mailto:[EMAIL PROTECTED] Sent: 13 January 2004 12:48 To: Dave Carrera Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Function Problem (Long-ish) Hello Dave, Tuesday, January 13, 2004, 12:34:33 PM, you wrote: DC> sql = mysql_query("select *, count(id) as cnt from table where DC> somefield=\"somevar\""){ It's nothing to do with your function, simply that your SQL is invalid. -- Best regards, Richardmailto:[EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.560 / Virus Database: 352 - Release Date: 08/01/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.560 / Virus Database: 352 - Release Date: 08/01/2004 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] XML/HTML encoding?
I see this using MSIE 6 But in Mozilla 1.5 I get ë for ë I'm hoping this is fixable without changing browser settings -Original Message- From: Ray Hunter [mailto:[EMAIL PROTECTED] Sent: vrijdag 9 januari 2004 16:34 To: 'Php-general' Subject: Re: [PHP] XML/HTML encoding? On Fri, 2004-01-09 at 08:23, Vincent Jansen wrote: > I'm doing some XML processing with PHP5 > I'm using UTF-8 encoding > When I look at my xml doc it looks something like > > > > dotted e (ë) works > > > (I hope you see a dotted e) > After xslt I end up with a html document with a souce that looks > something like > > > "http://www.w3.org/TR/REC-html40/loose.dtd";> > > > dotted e (ë) works > > > Etc. > > This is what I want > But my browser displays "dotted e () works" > > Because I don't want yes or no: Please tell me what (maybe obvious > thing) I'm doing wrong What browser and version are you using? -- Ray -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] XML/HTML encoding?
I'm doing some XML processing with PHP5 I'm using UTF-8 encoding When I look at my xml doc it looks something like dotted e (ë) works (I hope you see a dotted e) After xslt I end up with a html document with a souce that looks something like http://www.w3.org/TR/REC-html40/loose.dtd";> dotted e (ë) works Etc. This is what I want But my browser displays "dotted e () works" Because I don't want yes or no: Please tell me what (maybe obvious thing) I'm doing wrong Thanks --- Vincent Jansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP code documentation tool
I prefer phpDocumentor http://phpdocu.sourceforge.net/ --- Vincent Jansen -Original Message- From: Richard Davey [mailto:[EMAIL PROTECTED] Sent: donderdag 8 januari 2004 16:44 To: Karam Chand Cc: [EMAIL PROTECTED] Subject: Re: [PHP] PHP code documentation tool Hello Karam, Thursday, January 8, 2004, 3:41:36 PM, you wrote: KC> Is there any tool like doc-o-matic for PHP or anybody developing KC> something like that? http://www.phpdoc.de/ -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Gridwidget - javascript
Hi all, I'm trying to write a grid widget in php. When the user changes the value of a cell the totals must be recalculated at the client side. I can write a javascript when I use simple variables like A1, B1. This javascript will do the trick: function njrecalculate() { document.forms[0].mytot.value = Math.round(document.forms[0].A1.value) + Math.round(document.forms[0].B1.value) ; } But now I want to create a dynamice grid by using the array variable e.g. mycell[]: "; echo ""; echo ""; ?> Does anybody know how to access these mycell form fields on the client side using javascript. Nico Jansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: JPGrapgh and GD Library SAMBAR server
Hi Christopher, I think that we have the same configuration. I'm running PHP with the SAMBAR server as well and the JP Graph module is working OK with me so it should be working. Have you tried the JP Graph - testsuit : On my notebook ( W2K ) I installed it at http://localhost/jpgraph-1.6.1/src/Examples/testsuit_jpgraph.php Hopes this help : Good Luck N:-J www.niro-it.nl My phpini looks like this: include_path=. [PHP] extension=php_gd.dll My modifications in jpgraph.php for my configuration: // The full absolute name of directory to be used as a cache. This directory MUST // be readable and writable for PHP. Must end with '/' DEFINE("CACHE_DIR","/db/njhome/jpgraph-1.6.1/jpgraph_cache/"); // The URL relative name where the cache can be found, i.e // under what HTTP directory can the cache be found. Normally // you would probably assign an alias in apache configuration // for the cache directory. DEFINE("APACHE_CACHE_DIR","/jpgraph-1.6.1/jpgraph_cache/"); // Directory for TTF fonts. Must end with '/' DEFINE("TTF_DIR","/dv/fonts/jpgttf/ttf/"); PHPinfo looks like this: PHP Version 4.1.1 System Windows NT 5.0 build 2195 gd GD Support enabled GD Version 1.6.2 or higher FreeType Support enabled FreeType Linkage with TTF library JPG Support enabled PNG Support enabled WBMP Support enabled SERVER["SERVER_SOFTWARE"] SAMBAR 5.0 "Andy" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi Christopher, > > it seems to me that you have gd1.8 enabled but jdgraph in you version > requires gd2. > > Check your php.ini if the propper library is activated. > > Hope this helps, > > Andy > -- > > http://www.globosapiens.net > Global Travellers Network! > > > > "Christopher J. Crane" <[EMAIL PROTECTED]> schrieb im Newsbeitrag > news:[EMAIL PROTECTED]... > > I recently installed and got working the GD library under a Windows 2K > > server running SAMBAR server as the web server. I got a simple test script > > to try to be sure the GD Library was working and it is and I am able to > > output images in PNG JPEG and GIF formats. > > > > My problem is that I can not get the JPGraph scripts running correctly. I > > get error messages such as: > > Warning: Undefined index: gd2 in ../jpgraph.php on line 3418 > > > > Warning: Undefined index: gd2 in ../jpgraph.php on line 3343 > > > > Warning: Undefined index: gd2 in ../jpgraph.php on line 3343 > > > > Warning: Undefined index: gd2 in ../jpgraph.php on line 3343 > > > > Warning: Undefined index: gd2 in ../jpgraph.php on line 3343 > > > > Warning: Cannot add header information - headers already sent by (output > > started at ../jpgraph.php:3418) in ../jpgraph.php on line 4257 > > ?PNG > > > > I am not sure what I am doing wrong. I would like to use JPGraph because > of > > the nice graphs I have seen on his website. Any help would be great. > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >
[PHP] Re: [PEAR] PEAR
On Wed, 3 Apr 2002 20:12:46 +0100, Georgie Casey wrote: >The sites documentation is crap compared to PHP. I love to hear people critizing constructively. >what is it and how do i install it on my windows system? Add the directory, where your PEAR code is located (e.g. c:\php4\pear), to include_path in your php.ini and you're done. >and more, importantly do i have 2 force my host to install it or can i do it >myself. i'm just looking to use the file_find package. Upload the desired package somewhere on your website and again add the location to your include_path. - Martin -- Martin Jansen, <[EMAIL PROTECTED]> http://www.martin-jansen.de/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Unknown-Error in Sessions
Hi, I just started using sessions on my Linux-Server with PHP 4.0.7 and got that error-message: Fatal error: Maximum execution time of 30 seconds exceeded in Unknown on line 0 I used the following scripts: PHP-Script 1: PHP-Script 2: What is wrong? Thanks, Hans -- PHP General Mailing List (http://www.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] Feedback welcome!
Everyone, *I checked to make sure it would be OK to post the following here so please don't mistake it for spam. I was told it would be more than OK!* I help develop a text editor called EmEditor and we are about to focus development on supporting the needs/wants of a select number of communities. Our editor currently supports the development of over a dozen languages with syntax highlighting, auto complete, plugins, high configurability, etc. We get a lot of positive feedback but very little from open source-positive communities like the PHP community. The head developer and owner of our company responds to user feedback so naturally the loudest communties get what they want while the rest don't. I've been a fan of PHP and I am very much interested in developing an editor with PHP and PHP developers in mind but I can't convince my boss to include PHP in our future plans if he doesn't hear from the community itself. Even the Ruby community in Japan makes itself heard! To cut this short, I think this is a great chance for interested parties in the PHP community to have a say in the development of another editor that actively tries to make itself useful to PHP developers. Our editor is shareware so of course it costs nothing to try it out and start speaking up for the changes and features you would like to see. There are a lot of nice environments in which to write PHP but it sure doesn't hurt to have another choice. Thanks, David Jansen www.emurasoft.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-CVS] cvs: CVSROOT / loginfo
On Tue, 10 Apr 2001 16:31:01 -, Rasmus Lerdorf wrote: >-pearweb $CVSROOT/CVSROOT/loginfo.pl [EMAIL PROTECTED] $USER %{sVv} >+pearweb $CVSROOT/CVSROOT/loginfo.pl [EMAIL PROTECTED] $USER %{sVv} Wouldn't it be better to send the commit messages to [EMAIL PROTECTED] or [EMAIL PROTECTED]? -Martin -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-CVS] cvs: php4 /pear/DB common.php
mj Tue Apr 10 01:03:47 2001 EDT Modified files: /php4/pear/DB common.php Log: fixed typo in inline docs Index: php4/pear/DB/common.php diff -u php4/pear/DB/common.php:1.42 php4/pear/DB/common.php:1.43 --- php4/pear/DB/common.php:1.42Mon Mar 26 16:57:24 2001 +++ php4/pear/DB/common.php Tue Apr 10 01:03:46 2001 @@ -671,7 +671,7 @@ * '3' => 'three', * ) * - * ...while the call getAssoc('SELECT id,text,date FROM mydate') returns: + * ...while the call getAssoc('SELECT id,text,date FROM mytable') returns: * array( * '1' => array('one', '944679408'), * '2' => array('two', '944679408'), -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-CVS] cvs: php4 /pear/HTML Common.php
mj Thu Mar 22 07:27:07 2001 EDT Modified files: /php4/pear/HTML Common.php Log: - removed wrong copyright notice. Index: php4/pear/HTML/Common.php diff -u php4/pear/HTML/Common.php:1.2 php4/pear/HTML/Common.php:1.3 --- php4/pear/HTML/Common.php:1.2 Wed Mar 21 22:23:38 2001 +++ php4/pear/HTML/Common.php Thu Mar 22 07:27:07 2001 @@ -16,14 +16,13 @@ // | Authors: Adam Daniel <[EMAIL PROTECTED]>| // +--+ // -// $Id: Common.php,v 1.2 2001/03/22 06:23:38 mj Exp $ +// $Id: Common.php,v 1.3 2001/03/22 15:27:07 mj Exp $ /** * Base class for all HTML classes * * @author Adam Daniel <[EMAIL PROTECTED]> * @version 1.3 -* @copyright Copyright 2001 Ethicon Endo-Surgery * @since PHP 4.0.3pl1 */ class HTML_Common { -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-CVS] cvs: php4 /pear/HTML Table.php
mj Thu Mar 22 06:32:51 2001 EDT Modified files: /php4/pear/HTML Table.php Log: - Fixed bug reported by Bertrand Mansion. Index: php4/pear/HTML/Table.php diff -u php4/pear/HTML/Table.php:1.2 php4/pear/HTML/Table.php:1.3 --- php4/pear/HTML/Table.php:1.2Wed Mar 21 22:23:38 2001 +++ php4/pear/HTML/Table.phpThu Mar 22 06:32:51 2001 @@ -17,7 +17,7 @@ // | Bertrand Mansion <[EMAIL PROTECTED]> | // +--+ // -// $Id: Table.php,v 1.2 2001/03/22 06:23:38 mj Exp $ +// $Id: Table.php,v 1.3 2001/03/22 14:32:51 mj Exp $ require_once "PEAR.php"; require_once "HTML/Common.php"; @@ -419,7 +419,7 @@ */ function setColAttributes($col, $attributes=null) { - for ($i = 0; $i < $this->_cols; $i++) { + for ($i = 0; $i < $this->_rows; $i++) { $this->setCellAttributes($i,$col,$attributes); } } // end func setColAttributes @@ -432,7 +432,7 @@ */ function updateColAttributes($col, $attributes=null) { - for ($i = 0; $i < $this->_cols; $i++) { + for ($i = 0; $i < $this->_rows; $i++) { $this->updateCellAttributes($i,$col,$attributes); } } // end func updateColAttributes -- 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-CVS] cvs: php4 /pear/HTML Common.php
On Thu, 22 Mar 2001 04:14:43 -, Adam Daniel wrote: >* @copyright Copyright 2001 Ethicon Endo-Surgery Isn't this a contradiction to the copyright notice of the license in the head of the file? -Martin -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-CVS] cvs: php4 /pear/HTML Common.php Table.php
mj Wed Mar 21 22:23:38 2001 EDT Modified files: /php4/pear/HTML Common.php Table.php Log: - some cosmetic changes in pear/html/HTML_Common and pear/html/HTML_Table for better readability. Index: php4/pear/HTML/Common.php diff -u php4/pear/HTML/Common.php:1.1 php4/pear/HTML/Common.php:1.2 --- php4/pear/HTML/Common.php:1.1 Wed Mar 21 20:14:42 2001 +++ php4/pear/HTML/Common.php Wed Mar 21 22:23:38 2001 @@ -16,7 +16,7 @@ // | Authors: Adam Daniel <[EMAIL PROTECTED]>| // +--+ // -// $Id: Common.php,v 1.1 2001/03/22 04:14:42 adaniel Exp $ +// $Id: Common.php,v 1.2 2001/03/22 06:23:38 mj Exp $ /** * Base class for all HTML classes @@ -27,18 +27,21 @@ * @since PHP 4.0.3pl1 */ class HTML_Common { + /** * Associative array of table attributes * @var array * @access private */ var $_attributes = array(); + /** * Tab offset of the table * @var int * @access private */ var $_tabOffset = 0; + /** * Class constructor * @parammixed $attributes Associative array of table tag attributes @@ -49,7 +52,8 @@ { $this->setTabOffset($tabOffset); $this->setAttributes($attributes); -} +} // end constructor + /** * Returns the current API version * @access public @@ -58,7 +62,8 @@ function apiVersion() { return 1.3; -} +} // end func apiVersion + /** * Returns a string of \t for the tabOffset property * @access private @@ -66,7 +71,8 @@ function _getTabs() { return $this->_tabOffset > 0 ? str_repeat("\t", $this->_tabOffset) : ""; -} +} // end func _getTabs + /** * Returns an HTML formatted attribute string * @paramarray $attributes @@ -86,7 +92,8 @@ } } return $strAttr; -} +} // end func _getAttrString + /** * Returns a valid atrributes array from either a string or array * @parammixed $attributes Either a typical HTML attribute string or an associative array @@ -118,7 +125,8 @@ return $arrAttr; } } -} +} // end func _parseAttributes + /** * Updates the attributes in $attr1 with the values in $attr2 without changing the other existing attributes * @paramarray $attr1 Original attributes array @@ -152,7 +160,8 @@ } } } -} +} // end func _updateAtrrArray + /** * Sets the HTML attributes * @parammixed $attributes Either a typical HTML attribute string or an associative array @@ -161,7 +170,8 @@ function setAttributes($attributes) { $this->_attributes = $this->_parseAttributes($attributes); -} +} // end func _setAttributes + /** * Updates the passed attributes without changing the other existing attributes * @parammixed $attributes Either a typical HTML attribute string or an associative array @@ -171,7 +181,8 @@ { $attributes = $this->_parseAttributes($attributes); $this->_updateAttrArray($this->_attributes, $attributes); -} +} // end func updateAttributes + /** * Sets the tab offset * @paramint $offset @@ -180,6 +191,7 @@ function setTabOffset($offset) { $this->_tabOffset = $offset; -} -} +} // end func setTabOffset + +} // end class HTML_Common ?> Index: php4/pear/HTML/Table.php diff -u php4/pear/HTML/Table.php:1.1 php4/pear/HTML/Table.php:1.2 --- php4/pear/HTML/Table.php:1.1Wed Mar 21 20:15:42 2001 +++ php4/pear/HTML/Table.phpWed Mar 21 22:23:38 2001 @@ -14,10 +14,10 @@ // | [EMAIL PROTECTED] so we can mail you a copy immediately. | // +--+ // | Authors: Adam Daniel <[EMAIL PROTECTED]>| -// | Bertrand Mansion <[EMAIL PROTECTED]> | +// | Bertrand Mansion <[EMAIL PROTECTED]> | // +--+ // -// $Id: Table.php,v 1.1 2001/03/22 04:15:42 adaniel Exp $ +// $Id: Table.php,v 1.2 2001/03/22 06:23:38 mj Exp $ require_once "PEAR.php"; require_once "HTML/Common.php"; @@ -31,40 +31,46 @@ * @since PHP 4.0.3pl1 * * Example: - $table = new HTML_Table; - ... +* $table = new HTML_Table; +* ... */ class HTML_Table extends HTML_Common { + /** * Automatically adds a new row or column if a given row or column index does not exist * @var bool * @access private */ var $_autoGrow = true; + /** * Value to insert into empty cells * @var string
[PHP-CVS] cvs: php4 /pear Cache.php
mj Sun Mar 4 06:26:59 2001 EDT Modified files: /php4/pear Cache.php Log: fixed typo Index: php4/pear/Cache.php diff -u php4/pear/Cache.php:1.3 php4/pear/Cache.php:1.4 --- php4/pear/Cache.php:1.3 Sat Mar 3 11:21:49 2001 +++ php4/pear/Cache.php Sun Mar 4 06:26:58 2001 @@ -16,7 +16,7 @@ // | Sebastian Bergmann <[EMAIL PROTECTED]> | // +--+ // -// $Id: Cache.php,v 1.3 2001/03/03 19:21:49 uw Exp $ +// $Id: Cache.php,v 1.4 2001/03/04 14:26:58 mj Exp $ /** * Cache is a base class for cache implementations. @@ -24,7 +24,7 @@ * TODO: Simple usage example goes here. * * @author Ulf Wendel <[EMAIL PROTECTED]> -* @version $Id: Cache.php,v 1.3 2001/03/03 19:21:49 uw Exp $ +* @version $Id: Cache.php,v 1.4 2001/03/04 14:26:58 mj Exp $ * @package Cache * @access public */ @@ -86,7 +86,7 @@ $storage_class = 'Cache_Container_' . $storage_driver; $storage_classfile = 'Cache/Container/' . $storage_driver . '.php'; -include_once $storage_classfile +include_once $storage_classfile; $this->container = new $storage_class($storage_options); $this->garbageCollection(); -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-CVS] cvs: php4 /pear/Benchmark Iterate.php
mj Fri Mar 2 10:24:00 2001 EDT Modified files: /php4/pear/BenchmarkIterate.php Log: - added check for existing bcmath extensions to Benchmark/Iterate.php - did some cosmetic changes to Benchmark/Iterate.php Index: php4/pear/Benchmark/Iterate.php diff -u php4/pear/Benchmark/Iterate.php:1.4 php4/pear/Benchmark/Iterate.php:1.5 --- php4/pear/Benchmark/Iterate.php:1.4 Tue Jan 9 17:01:53 2001 +++ php4/pear/Benchmark/Iterate.php Fri Mar 2 10:23:59 2001 @@ -16,7 +16,7 @@ // | Authors: Sebastian Bergmann <[EMAIL PROTECTED]> | // +--+ // -// $Id: Iterate.php,v 1.4 2001/01/10 01:01:53 ssb Exp $ +// $Id: Iterate.php,v 1.5 2001/03/02 18:23:59 mj Exp $ // require_once 'Benchmark/Timer.php'; @@ -32,12 +32,12 @@ * * $benchmark = new Benchmark_Iterate; * -* $benchmark->run( 'my_function', 100 ); +* $benchmark->run('my_function', 100); * * $result = $benchmark->get(); * * @author Sebastian Bergmann <[EMAIL PROTECTED]> -* @version $Revision: 1.4 $ +* @version $Revision: 1.5 $ * @access public */ @@ -59,13 +59,13 @@ for($i = 1; $i <= $iterations; $i++) { // set 'start' marker for current iteration -$this->set_marker('start_' . $i); +$this->set_marker('start_'.$i); // call function to be benchmarked call_user_func($function); // set 'end' marker for current iteration -$this->set_marker('end_' . $i); +$this->set_marker('end_'.$i); } } @@ -75,9 +75,9 @@ /** * Returns benchmark result. * -* $result[ x] = execution time of iteration x -* $result[ 'mean' ] = mean execution time -* $result[ 'iterations' ] = number of iterations +* $result[x ] = execution time of iteration x +* $result['mean' ] = mean execution time +* $result['iterations'] = number of iterations * * @return array $result * @access public @@ -97,20 +97,28 @@ for($i = 1; $i <= $iterations; $i++) { // get elapsed time for current iteration -$time = $this->time_elapsed('start_' . $i , 'end_' . $i); +$time = $this->time_elapsed('start_'.$i , 'end_'.$i); // sum up total time spent -$total = bcadd($total, $time, 6); - +if (extension_loaded('bcmath')) { +$total = bcadd($total, $time, 6); +} else { +$total = $total + $time; +} + // store time -$result[ $i ] = $time; +$result[$i] = $time; } // calculate and store mean time -$result[ 'mean' ] = bcdiv($total, $iterations, 6); +if (extension_loaded('bcmath')) { +$result['mean'] = bcdiv($total, $iterations, 6); +} else { +$result['mean'] = $total / $iterations; +} // store iterations -$result[ 'iterations' ] = $iterations; +$result['iterations'] = $iterations; // return result array return $result; -- 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]