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