[PHP] High quality image resizing
Hi, I'm searching for a high quality image resizing facility to be used within PHP in an Unix/Linux environment. Probably everyone will now answer: imagecopyresampled() However, the quality of that functionality doesn't match the expectations of our designers. I've done my tests with PHP4 and GD lib 2.0.33 and everything produces with them got rejected so far. I was also going through the comments on php.net regarding self-written Bicubical algorithm functions, yet their outcome didn't match. My next step was to try ImageMagick. The quality is much better when using the 'mogrify' tool from this package, yet not good enough for my designers. Of course, their expectations are very high because of their daily usage of Photoshop. During my research I was running over http://resizr.lord-lance.com/ which uses an commercial Windows library. Using a commercial package would be completely fine for me, however I just haven't found anything, thus this message. Whether the tool is a PHP library or just an ordinary Unix command doesn't matter, as long as it is usable from within PHP. thanks for any hints, - Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: High quality image resizing
Hi, Al wrote: Suggest visiting the IM forums and asking for help. Also, try resizing some images here http://studio.webbyland.com/MagickStudio/scripts/MagickStudio.cgi thanks for the hints, I'll give them a try. I use php exec() for my work. Same here. I know there are PHP libraries out there, but I think for the end-product it shouldn't matter. - Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] High quality image resizing
Richard Lynch wrote: Perhaps you could run GIMP from the command line to get it to re-size... Thanks .. very interesting idea. I'll see if I can make this feasable. Having the server running without X may be problematic .. not impossible, but probably hard. You should also consider what quality setting you are using to dump out the JPEG. Maybe imagecopyresampled would have been fine if you cranked up the JPEG output quality setting to a higher value... For quality reference I was using the highest (=100) value which, as described, didn't meet the expactations. thanks, - Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] unpack on offsets in binary data in variable?
Hi, I'm searching for an efficient way to use unpack on binary data within a variable (php 5.1.something). In the past I was doing fopen fseek unpack( fread(...) fseek etc. Now this time I need to do the same, but I don't have an actual file: my data is only in a variable and I don't want to operate on a file but the variable within. I was thinking about using substr() and passing the small chunks of data I need to the unpack() function. Question: does this work without problems on arbitrary binary, maybe containing zero-byte values reliable? thanks, - Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP4, domxml and xpath with Namespaces
Hi, I haven't yet worked with namespaces in XML before when it comes to DOM related methods. My source is an Office 2003 Excel XML and it contains XML like: ?xml version=1.0? ?mso-application progid=Excel.Sheet? Workbook xmlns=urn:schemas-microsoft-com:office:spreadsheet xmlns:o=urn:schemas-microsoft-com:office:office xmlns:x=urn:schemas-microsoft-com:office:excel xmlns:ss=urn:schemas-microsoft-com:office:spreadsheet xmlns:html=http://www.w3.org/TR/REC-html40; DocumentProperties xmlns=urn:schemas-microsoft-com:office:office/ Worksheet ss:Name=Sheet1 Table ss:ExpandedColumnCount=256 ss:ExpandedRowCount=670 x:FullColumns=1 x:FullRows=1 ss:DefaultColumnWidth=60 Column ss:StyleID=s22 ss:AutoFitWidth=0 ss:Width=284.25/ Row How can I use an xpath expression to find e.g. all rows in Worksheet Sheet1 ? My problem here is that the name of the Worksheet is in a namespace attribute and I don't know how to express this as an xpath expression. The following doesn't work, always returns an empty nodeset to me: [EMAIL PROTECTED]:Name='Sheet1'] Can someone give me a push into the right direction? thanks, - Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP4, domxml and xpath with Namespaces
Thanks Rob, that's it! I really appreciate your help, because I know that my initial question had very little to do with PHP but with XML .. again, thank you! - Markus Rob wrote: Markus Fischer wrote: Hi, I haven't yet worked with namespaces in XML before when it comes to DOM related methods. My source is an Office 2003 Excel XML and it contains XML like: ?xml version=1.0? ?mso-application progid=Excel.Sheet? Workbook xmlns=urn:schemas-microsoft-com:office:spreadsheet xmlns:o=urn:schemas-microsoft-com:office:office xmlns:x=urn:schemas-microsoft-com:office:excel xmlns:ss=urn:schemas-microsoft-com:office:spreadsheet xmlns:html=http://www.w3.org/TR/REC-html40; DocumentProperties xmlns=urn:schemas-microsoft-com:office:office/ Worksheet ss:Name=Sheet1 Table ss:ExpandedColumnCount=256 ss:ExpandedRowCount=670 x:FullColumns=1 x:FullRows=1 ss:DefaultColumnWidth=60 Column ss:StyleID=s22 ss:AutoFitWidth=0 ss:Width=284.25/ Row How can I use an xpath expression to find e.g. all rows in Worksheet Sheet1 ? My problem here is that the name of the Worksheet is in a namespace attribute and I don't know how to express this as an xpath expression. The following doesn't work, always returns an empty nodeset to me: [EMAIL PROTECTED]:Name='Sheet1'] Can someone give me a push into the right direction? You need to register the namespace and a prefix (prefix can be anything you want to use) with xpath and don't forget what the elements are within a default namespace coming from the xmlns=urn:schemas-microsoft-com:office:spreadsheet namespace declaration on the Workbook element. xpath_register_ns($xpath,ss, urn:schemas-microsoft-com:office:spreadsheet); $nodeset = xpath_eval($xpath,ss:[EMAIL PROTECTED]:Name='Sheet1']); both the element and attribute are within the same namespace so the namespace and prefix are registered once and the prefix is used to identify both in the xpath expression. Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PDO pdo_odbc
Hi, I'm using the following code in a PHP 5.1, Windows CLI environment: $p = new PDO('odbc:driver={Microsoft Access Driver (*.mdb)};Dbq=beispieldatenbank.mdb'); $s = $p-prepare('INSERT INTO ADDRESSES(TITLE0, LASTNAME0) VALUES(?, ?)'); $s-execute(array('test1', 'test2')); I'm always getting the last value of the array passed to execute in all the fields which have markers in the prepare statement, like I would have written: INSERT INTO ADDRESSES(TITLE0, LASTNAME0) VALUES('test2', 'test2') I also tried bindValue like this $s = $p-prepare('INSERT INTO ADDRESSES(TITLE0, LASTNAME0) VALUES(?, ?)'); $s-bindValue(1, 'test1'); $s-bindValue(2, 'test2'); $s-execute(); or name values: $s = $p-prepare('INSERT INTO ADDRESSES(TITLE0, LASTNAME0) VALUES(:a, :b)'); $s-bindValue(':a', 'test1'); $s-bindValue(':b', 'test2'); $s-execute(); but which all resulted in a row being inserted but the values were just empty. When I tried something like this: $s = $p-prepare('INSERT INTO ADDRESSES(TITLE0, LASTNAME0) VALUES(?, ?)'); $val1 = 'test1'; $val2 = 'test2'; $s-bindParam(1, $val1); $s-bindParam(2, $val2); $s-execute(); I even get a crash. Am I doing something conceptual wrong? thanks for any pointers, - Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Document source code for PHP5
Denis Gerasimov wrote: Can someone recommend a documentation tool which supports the new PHP5 syntax? PHPDocumentor (http://www.phpdoc.org/) does. I am using Zend Studio integrated version and it works fine. Then I'm wondering what I'm doing wrong because it puts interface function definitions into the global function scope ... - Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Document source code for PHP5
Hi, I'm currently using phpdoc.org to generated documentation of my code, but it doesn't seem to support PHP5. Interfaces are not recognized and function headers defined therein are parsed as public function. Can someone recommend a documentation tool which supports the new PHP5 syntax? thanks, - markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] More toroughly checking a script before execution
Richard Lynch wrote: On Thu, July 21, 2005 3:50 pm, Markus Fischer said: is there a way to have a more torough checking of PHP code before executing? Use E_ALL if you aren't already. Most people aren't because the default is E_ALL ~ E_NOTICE, which is a Big Mistake for a default, imnsho. To make it clear: I'm not talking about runtime behaviour here. I want to spot problems _before_ running the script because as Applications get more and more complex, it's also more time consuming to actually get to the places you want to test. If it breaks there just because a function name/variable name was missspelle could be avoided in certain cases if there was the ability to perform such extra checks. - Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] More toroughly checking a script before execution
Rasmus Lerdorf wrote: Sounds like you just need to turn on E_NOTICE. At least for your variable access stuff assuming your test case actually hits that part of the code. I was talking about finding the problems bevore executing the code. If you are talking about complete code coverage letting you catch any such mistyped variables or functions, that is simply impossible to do at that level because variables and function names can be defined at runtime. I know it's impossible to catch all cases, I mentioned this in my post. Neverthless it would help to find out basic prolematic zones. Just because a function doesn't exist at compile time doesn't mean that it won't be created before the call to it at runtime. And it doesn't need to be as complicated as you make it out to be with your variable variable example. A simple conditional include completely changes the nature of everything at runtime. What you really need is to create decent regression tests and use a code coverage tool to make sure your tests cover your code well. Xdebug can do the code coverage check for you. I guess you're refering to http://www.xdebug.org/docs-functions.php#coverage . I didn't knew about it and I'll take a look if it can help me with my problem, thanks! - Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] More toroughly checking a script before execution
Hi, is there a way to have a more torough checking of PHP code before executing? I can't remember the number of times when I try to read a variable which hasn't assigned a value yet. This increases as projects are getting bigger and more files are used. I know that due it's loosely typed nature, it wouldn't be possible to detect things like this: $foo = bar; $$foo = baz; echo $bar; but that would be okay with me. At least it should catch things like _before_ starting execution: - read variables not assigned a value before - verify that a function/method is actually defined I'm willing to accept a longer time PHP starting up because of this. I'm seeing it's main usefulness when using with the cli application to have it ran on code before it goes live or something. This would speed up testing dramatically, as it wouldn't be necessary to go through all test paths just to realize that a function/method call was misspelled or so. Basically it's like the compiling stage done in e.g. Java (oh no, did I wrote the J.. word? ;). I'm also aware that certain modern IDEs provide lookup features/introspecton at least for function/methods, but unfortunatley it's not everyones favourite. thanks for any pointers, - Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP5, Tidy: node and parent node
Hi, I'm trying to figure out the parent of a node in tidy. As it seems to me there's no property/method available for this. I really want to avoid traversing the whole document and build the relation myself; this is getting pretty slow. Any ideas on this? thanks, - Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP5, Tidy: node and parent node
Markus Fischer wrote: I'm trying to figure out the parent of a node in tidy. As it seems to me there's no property/method available for this. I really want to avoid traversing the whole document and build the relation myself; this is getting pretty slow. PHP5 currently doesn't feature this method although the tidy library provides this. I've put together a patch if someone else is interested too. - Markus ? tidy_getParent.diff.txt Index: php_tidy.h === RCS file: /repository/php-src/ext/tidy/php_tidy.h,v retrieving revision 1.25 diff -u -r1.25 php_tidy.h --- php_tidy.h 25 Apr 2005 20:46:16 - 1.25 +++ php_tidy.h 15 Jul 2005 09:59:44 - @@ -89,6 +89,7 @@ TIDY_NODE_METHOD(isJste); TIDY_NODE_METHOD(isAsp); TIDY_NODE_METHOD(isPhp); +TIDY_NODE_METHOD(getParent); ZEND_BEGIN_MODULE_GLOBALS(tidy) char *default_config; Index: tidy.c === RCS file: /repository/php-src/ext/tidy/tidy.c,v retrieving revision 1.65 diff -u -r1.65 tidy.c --- tidy.c 25 Apr 2005 20:46:16 - 1.65 +++ tidy.c 15 Jul 2005 09:59:45 - @@ -291,6 +291,7 @@ TIDY_NODE_ME(isJste, NULL) TIDY_NODE_ME(isAsp, NULL) TIDY_NODE_ME(isPhp, NULL) + TIDY_NODE_ME(getParent, NULL) {NULL, NULL, NULL} }; @@ -1668,6 +1669,30 @@ } /* }}} */ +/* {{{ proto boolean tidyNode::getParent() + Returns the parent node if available or NULL */ +TIDY_NODE_METHOD(getParent) +{ + TidyNodeparent_node; + PHPTidyObj *newobj; + TIDY_FETCH_ONLY_OBJECT; + + parent_node = tidyGetParent(obj-node); + if(parent_node) { + tidy_instanciate(tidy_ce_node, return_value TSRMLS_CC); + newobj = (PHPTidyObj *) zend_object_store_get_object(return_value TSRMLS_CC); + newobj-node = parent_node; + newobj-type = is_node; + newobj-ptdoc = obj-ptdoc; + newobj-ptdoc-ref_count++; + tidy_add_default_properties(newobj, is_node TSRMLS_CC); + } else { + ZVAL_NULL(return_value); + } +} +/* }}} */ + + static void _php_tidy_register_nodetypes(INIT_FUNC_ARGS) { TIDY_NODE_CONST(ROOT, Root); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: dynamic class loaders
[EMAIL PROTECTED] wrote: Hi there i was wondering if there is such an extension available or possbility to have a dynamicclass loader extension which would use the request_uri as loading the class constructors ? I justthink building such a thing in php which is what i am doing too slow for each request and think itshould happen in the internals ? Let me know if its an insane idea. PHP5 provides autoload, see http://at2.php.net/manual/en/language.oop5.autoload.php for details. HTH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: dynamic class loaders
Dan Rossi wrote: Thanks this seemed to work except say you had a class Packagename_Classname its trying to load the file like that Packagename_Classname.php Well, you can put whatever logic you need into the autoload function. It's up to you. HTH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Problem with PHP5, CGI and Session
Hi, I'm expiriencing a problem when I use my application with PHP5 as a CGI module (this is due to my provider). I've developed and tested the application on two servers, both using PHP5 as module, without problems. It seems that the session gets malformed somehow during the first reuqest. 1) On the first request, the session itself is empty: array(0) { } 2) On the second request, using session cookies, I see the initialized session array: array(1) { [fru]= array(1) { [cache]= array(0) { } } } But only as long as I'm in my applications constructor. But as soon as my class' constructor returns, the session suddenly contains another value: object(Application)#1 (4) { [db:protected]= object(TsMySQLConnection)#2 (4) { [conRes:private]= [..] The simplified code-flow is: session.php class MySession { function __construct() { session_start(); $_SESSION['app']['cache'] = array(); } } application.php class Application { protected $session; function __construct() { $this-session = new MySession(); } } index.php require_once 'application.php'; $app = new Application; # here, var_dump($_SESSION['fru']) outputs suddenly the Application-class, instead of the empty array $app-main(); I'm unable to find out the problem. It seems that after return from the constructor the _SESSION is messed up and contains the object which I just created newly. Anyone expiriencing similiar problems? regards, - Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Automating the process of creating overviews of data
Hi, [Warnung: pretty long email about trying to make use of MVC and php5] I'm seeking some input in (architectually) designed my code so I can reach the following: - overview from the subject is defined as a table rows/columns displaying simple or complex results from an sql query - it is part of a backend for administrating data, e.g. displayig the procuts, customers, etc In simple ascii, the visual output would be: id | name | last login ---+--+--- 1 | schubert | yesterday 2 | haydn| last year Ok, so far nothing new; I just want to make clear what I'm talking about. The feature list this overview should have: - sortable rows, i.e. clicking on a column header sorts the select row - clicking on a row links to editing the specific entry - optional: provides ability (e.g. via small graphical buttons) to move an entry up/down (aka sorting) - optional: display a checkbox next to each entry; UI to delete all selected entries To achive this, I've currently separated the code into a few classes: abstract class OverviewController abstract class OverviewData interface OverviewView OverviewData: Knows what colums are defined and how they're set up (e.g. which columns are sortable, what type they display) and also knows how to fetch the data and convert it into a format so OverviewView can work with it. OverviewView: Knowns how to draw the output, e.g. the table/columns/rows/links for the client (browser) OverviewController: Takes OverviewData and OverviewView and controls them to generated the relevant output. The classes only define the basic architecture and don't work immidiately. The implementation of OverviewView should idially work with any class extending OverviewData; so I've kept CustomOverviewView generic to handle this. As I've started working on it, a few things have shown up which I need to resolve as intellegent as possible so I don't screw up the design: - How to a build the the links in the OverviewView output which control simple things like sorting for a specific column? What's the deal here? Well, OverviewView should be generic, not bound to anything specific. So when I integrate it into a application, the application definitely needs some GET/POST parameters which need to be present to handle its own state, not related to the OverviewView at all. So I started to give each instance of CustomOverviewView a distinct name by which the OverviewView known it can refer to itself without interfering with other variables used in the GET request. In the specific implementation, I'm using name as the basis for an array, so every state which needs to be remembered will be a entry in that array, e.g. name is procuctView then all states will be handled as productView[sortby], etc. But this alone doesn't fix the complete problem. There are certainly parameters which additionally need to be passed from the application itself. Therefore I've added a setParameterGetCallback method on the OverviewView interface by which a callback handler will be set; this callback is into the application itself, because this is the best place (I could think of) where this should be handled. The application _knows_ its state. The callback handler just additionally takes the parameters which need to be set by the CustomOverviewView implementation and returns the complete content for the GET request (e.g. for the href-Attribute). The next thing about sorting is: somewhere I need to know which column to sort. Idially (for me) this would be in the OverviewData implementation. Because this is where I fetch the data and I plan to have it fetched and stored for OverviewView right the way it is needed - sorted correctly by the choosen column. On the other hand, I need to sorting column information still in the OverviewView implementation too, because I need visual indication (up/down arrow). - The next thing: when I want to move an entry up/down (e.g. manuall sort), basically I'm fireing off a command: this entry ID whatever should be sorted UP. But I'm not quite sure where these action should be done. Is it part of the OverviewData implementation to execute this action (because it already does some action for sorting after the right column, albeit this is more a read only thing, whereas sorting an entry manually is like writing to the database, updating existing entries). Or is it a Controller thing? Or something I haven't yet thought off? And still, things I haven't completely considered are: - searching (not too different from sorting, anyway) - deleting (same problem as moving manually entries I guess: need to write to the database, but where from?) For simplicity I haven't included user-level permissions yet, but they've to come (but may currently be part of the Application itself). I do not want to make the design too complex; I want to make it practical. The current design for me is practical. I just use another CustomOverviewView and the table
[PHP] Re: gmail accounts
Greg Donald wrote: I have some gmail accounts of anyone wants one. Email me off list. Limited supply, first requests, etc.. I would be interested if there's still one left ;) And now for my php question: Which do you prefer, echo() or print() ? I find that after I've done a bunch of Perl coding and I'm back on some PHP work I use print. But then after I do a bunch of PHP coding I start to use echo again because it's one character shorter and I'm lazy like that. What about you? I prefer echo ... even without the parentheses. The nice about it is, you can pass multiple arguments, separated by commas, without parentheses. You can't do that with print. Albeit that, they're identical I think (both are core language construct, no real functions). I don't use print at all, but only 'printf' and 'sprintf', I do use them a lot for string formating (especially SQL and HTML output). For long text I also use the HEREDOC (also in Perl, afaik) Syntax echo HTML html.../html HTML; I don't know your editor, but I once suggested to the php vim syntax author to make the highlighting of strings inside heredocs based on the HEREDOC terminator string; that is: HTML highlighted HTML/JS, SQL, maybe some other to (JAVASCRIPT) ? HTH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: gmail accounts
John Holmes wrote: From: Markus Fischer [EMAIL PROTECTED] Which do you prefer, echo() or print() ? Albeit that, they're identical I think (both are core language construct, no real functions). Come on... all good bottom-posting-firewall-turning-off PHP programmers know that print() is a function and returns a value while echo does not. We're all using templates, anyhow, so your code wouldn't have but one echo statement, right? ;) I'm not arguing about return value but that it is a language construct, not a function, which is backed up by the documentation (which of course may be wrong): print() is not actually a real function (it is a language construct) so you are not required to use parentheses with its argument list. To my knowledge, there's no way a real function can ommit parentheses. cheers, - Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Handling XML output in a slim way
Raditha Dissanayake wrote: If it's not broken don't fix it. If what you are doing right now works stick with it because it consumes very little memory or CPU compared to DOM functions. You are right, it works. But I'm not satisified and up until now I've been dealing with very simple XML documents, but they're getting more and more complexer and I'm spending more and more time getting complex XML output right with the string-concact method. - Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Handling XML output in a slim way
Manuel Lemos wrote: You may want to try this XML writer class. It lets you just add tags and data and then it outputs the data properly encoded and nicely indented according to your specifications. It does not requere any special extension. Probably exactly what I want, thanks. - Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Handling XML output in a slim way
Hi, up until now, when outputing XML I've been constructing the output as a continous string-soup in such ways like [...] $xml .= printf('item name=%s%s/item', makeXmlSave($name), makexmlSave($contentOfItem)); [...] makeXmlSave() makes sure that quotes, ampersand, and are properly escaped with their entity reference. However I was thinking if it wasn't possible to e.g. generated a a complete DOM tree first and then just having this tree being dumped as XML. I'm using PHP4 right now. thanks, - Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Zlib - Insert files?
Hi, basically, gzip is only about compression of data. If you want compress more than one file at once, you need to put it into an archive before, e.g. a tar archive. Then you can compress this tar-Archive (single file) width gzip. HTH, - Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Using exceptions to write more perfect software ...
Hello Adam, Adam Bregenzer wrote: On Mon, 2004-02-09 at 15:58, Markus Fischer wrote: But doing this now for every internal function call I don't want to lead my program into an unwanted state isn't very appealing. snip Ultimately I decided to wrap my necessary function calls in error checking wherever they are in my files. This gives me more granularity in the application of the error at the cost of some code bloat. It's not an optimal solution but I have found I use little functions calls in the first place that would generate an exception in return. Isn't this the same thing I started doing anyway? I however didn't integrated those functions in my application directly but put them in a file of its own so I can (hopefully ;) reuse them. Also, I have started using code generation for handling the data side. This sounds very interesting. Can you elaborate how and what you actually did for generating the code (what was your input and how did you transform it)? Ultimately I think it would be nice to have an object hierarchy of the function calls in php. However I don't see php supporting it natively and PEAR is still trying to sort itself out. Being a 'third party' project it is too much for one person but would be quite useful. Maybe when php5 becomes more popular we can all band together and standardize this. I think such a real hierarchy of classes will never exist. That's too much for PHP; none of the developers want to break BC and also follow the KISS credo (which is good, imho). But it sounds interesting in re-creating the globbered global function table of PHP in a well thought class framework and make it exception-proof. But that would be a step back either if this wrapping would only occur in PHP side - for every PHP function there would need to be called a userland PHP code before. I even don't want to think about the performance implications. But well, since this is effectively what I started with with my System class, there my be needs where this trade off is accecptable (compensating longer execution time with caches and more hardware power/ram/whatever). I think for the current issue I will just continue recreating the PHP functions inside an exception-proof class if I don't find a better way. Only creating them on-demand isn't a real problem (at the moment). - Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] [PHP5] Using exceptions to write more perfect software, but ...
Hi, I've been playing around quite some while with the new exceptions in PHP5 and must say that this new feature by it self is .. well, exceptional. However .. since internal PHP function do not make use of them, it's pretty hard to produce exception proof software. Because earlier or later, some internal functions will always throw an PHP warnung or error. I'm talking about run-time errors here; not fatal errors. Which brings me into the dilemma that when I wisely use exceptions to catch bad runtime behaviour, I still may get out of luck because internal functions are not aware of this. In such cases either the error won't cought or will only be caught in a later stage due the domino effect. Simple example: take mysql_query(). If it fails in a miserable way (due to malformed SQL statement, database changes, whatever), it still only produces a warning and will return false; it's not useable from the POV of exceptions. So, to have this area covered, I started to *duplicate* internal functions in its own namespace (static class) which , in case of errors, will throw an exception, and not only a warning (the warning is still OK, it should go to a dedicated log file anyway and not the output stream). In practive this looks like this: class System { static function mysql_query() { $arguments = func_get_args(); if (false === ($retval = call_user_func_array('mysql_query', $arguments))) { if (strlen($mysql_error = mysql_error()) 0) { $mysql_error = ; mysql_error = . $mysql_error; } throw new Exception(Unable to execute MySQL query$mysql_error); } return $retval; } } But doing this now for every internal function call I don't want to lead my program into an unwanted state isn't very appealing. I've had given hints not to use PHP as programming language if I want to have such a degree of safety. Not possible for me, I'm pretty mature in PHP and can't afford learning another language just because of this issue. I'm seeking for a more perfect programming model for application demanding that uncontrolled factors are limited to the max. Has anyone played around with PHP5 and thought about such issues? cheers, - Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PHP-DEV] PHP 4.3.0pre1 [updated]
Shouldn't this be synchronised with a Win32 binary release? (Apologies if pre1 binaries for Win32 are available, I can't seem to get the inforamtion where they are?) thanks, - Markus On Thu, Oct 10, 2002 at 03:05:22PM -0400, Andrei Zmievski wrote : Apologies, the correct URL to download PHP 4.3.0pre1 from is: http://www.php.net/~andrei/php-4.3.0pre1.tar.bz2 -Andrei http://www.gravitonic.com/ * 2 + 2 = 5 for extremely large values of 2. * -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc rei_ Derick, while ($xml) $ass-get_new_ideas(); [James] Markus: IE on_user_fart() -- People doesn't seem to like the new XHTML2 specs :) -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PHP-DEV] Lib creation
[Cc'd to [EMAIL PROTECTED]] On Tue, Oct 08, 2002 at 12:40:12PM +0200, Metal3d wrote : Hello I'm new here, and i'll try to stay ... :oP I'm French so excuse me if i do mistakes . My friend and I have created a lib in php ( a framework) ... So i wonder if it is possible to install this lib into PHP to use it without have to call include('class.inc') in scipts ... If it is possible ... how can i do that ? I think your answer is the 'auto_prepend_file' directive in php.ini Have i to recode this in C and compil an lib ? is there a documentation for it ? http://www.php.net/manual/en/zend.php Btw, such questions are best asked at [EMAIL PROTECTED] . - Markus -- GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc rei_ Derick, while ($xml) $ass-get_new_ideas(); [James] Markus: IE on_user_fart() -- People doesn't seem to like the new XHTML2 specs :) -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PHP-DEV] problem in starting apache in win2k with mcrypt and mhash module
You're mixing an older library with a newer php version (or the other way around). Please clean up your system first. Please ask on [EMAIL PROTECTED] next time. (Reply-To set). - Markus On Fri, Sep 06, 2002 at 09:56:59AM +0800, Terence Lee wrote : Hello i've uncommended the mcrypt and mhash line in c:\winnt\php.ini. then i try to start the apache but encounter the following error msg The procedure entry point _ecalloc could not be located in the dynamic link library php4ts.dll Unable to load dynamic library 'c:\php\extensions\php_mcrypt.dll - The specified procedure could not be found. mhash: Unable to initialize module Module compiled with module API=20010901, debug=0, thread-safety=1 PHP compiled with module API=20020429, debug=0, thread-safety=1 There options need to match i m sure that the php_mcrypt.dll is already in that location. i've also tried to change the extension_dir in c:\winnt\php.ini to c:\php c:\php\extensions\ c:\winnt c:\winnt\system32 and copied all the required dll to corresponding directories. same error was encountered when i start the apache. can you advice how can i solve it? i would like to use the mhash and mcrypt functions. Terence -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc In short, the window belongs to me. The document belongs to the web site designer. - Poster on opera.wishlist -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: SV: [PHP-DEV] How to specify exstension_dir in PHP.ini for Windows
On Wed, Aug 28, 2002 at 01:16:44PM +0200, Steinar Kolnes wrote : Thanks for the respond, I am actually using 'extension_dir' There was only a typos in the e-mail. The question however; how do I specify the directory ?? Chances are pretty high that you've modified the wrong php.ini . Please ask further question on php-general -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: SV: SV: [PHP-DEV] How to specify extension_dir in PHP.ini for Windows
On Wed, Aug 28, 2002 at 02:09:57PM +0200, Steinar Kolnes wrote : When changing the directory to the latter it seems that it finds something because it comes up with an new error message: The procedure entry point _Zend_list_delete could not be located in the dynamic link library php4ts.dll That sympton occurs if you the PHP version you're using differes from the one the library was linked against. Make sure you don't mix up those and always only use php and libs from the very same distribution. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PHP-DEV] Trying to input a webpage - need help
On Fri, Aug 16, 2002 at 08:02:17PM -0400, Ken Meyer wrote : I am trying to write a script that will read a page from another website. So long at the page is accessed via a GET, this is no problem; I just need to open the page using fopen, readfile or file_get_contents. The problem is that I need to access a page that requires a POST. Any suggestions as to how I could do this? You can either use the curl extension (see manual) or Snoopy (see sourceforge), a browser client class. - Markus ps: php-general is the right list to post such questions. -- GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc Finally, if someone actually flying a plane is relying on a freakin' webcam to land, we're all in trouble. - A /. poster. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PEAR-DEV] phpDocumentor 1.1.0rc2 RELEASE ANNOUNCEMENT
Hey, you should really teach your webmaser to fix the site. First I thought okay, he doesn't like opera but then .. It's even a mess in IE5.5. Only NS4.7 which I just had by chance renders it readable (yet it looks completely different layout-wise) ... um. Plain text would have done it too :-) - Markus -- GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PHP-DEV] static not working as expected
'statis' is ONLY used inside functions. You need the 'var' keyword to define class property. This is true for ZE1, I can't tell if ZE2 has static class properties, anyone else? - Markus On Tue, Jun 18, 2002 at 10:42:43AM -0700, Purushotham Komaravolu wrote : ?php class Counter { var $counter = 0; function increment_and_print() { print ++$this-counter; print \n; } } class SingletonCounter { static $m_instance = NULL; // throwing error here function Instance() { if (self::$m_instance == NULL) { self::$m_instance = new Counter(); } return self::$m_instance; } } SingletonCounter::Instance()-increment_and_print(); SingletonCounter::Instance()-increment_and_print(); SingletonCounter::Instance()-increment_and_print(); ? is throwing the following error Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /singleton.php on line 15 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PHP-DEV] Console application with PHP
Hi, all is possible. I suggest taking a look at http://gtk.php.net/ and http://www.php.net/manual/en/features.commandline.php for a start. - Markus On Fri, May 17, 2002 at 12:12:20AM +0800, DoL wrote : Hi All I am trying to write something similar to a server console display, is it a good idea to use PHP? Wondering how things like 1. server clock (similar to a clock applet) 2. server status can be displayed with PHP code? Note: I need to display the above two in a continuous fashion on the status bar!! Many Thanks Dominic -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- Please always Cc to me when replying to me on the lists. GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc - I mean When in doubt, blame mcrypt is more often right than wrong :) Always right, never wrong :) - Two PHP developers who want to remain unnamed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: [PHP-DEV] Console application with PHP
Windows too. - Markus On Thu, May 16, 2002 at 02:31:52PM -0700, Vail, Warren wrote : Does this work on Windows, or is it restricted to Linux/unix? Warren Vail Tools, Metrics Quality Processes (415) 667-7814 Pager (877) 774-9891 215 Fremont 02-658 -Original Message- From: Markus Fischer [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 11:58 AM To: DoL Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] Re: [PHP-DEV] Console application with PHP Hi, all is possible. I suggest taking a look at http://gtk.php.net/ and http://www.php.net/manual/en/features.commandline.php for a start. - Markus On Fri, May 17, 2002 at 12:12:20AM +0800, DoL wrote : Hi All I am trying to write something similar to a server console display, is it a good idea to use PHP? Wondering how things like 1. server clock (similar to a clock applet) 2. server status can be displayed with PHP code? Note: I need to display the above two in a continuous fashion on the status bar!! Many Thanks Dominic -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- Please always Cc to me when replying to me on the lists. GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc - I mean When in doubt, blame mcrypt is more often right than wrong :) Always right, never wrong :) - Two PHP developers who want to remain unnamed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Please always Cc to me when replying to me on the lists. GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc - I mean When in doubt, blame mcrypt is more often right than wrong :) Always right, never wrong :) - Two PHP developers who want to remain unnamed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Bug #17121 Updated: failed to make with OCI8 for oracle support
Hi, this is not a bug issue, but an installation question. Either as on php-general@ (CC'd) or php-install@ (don't recall the exact name). Can't find clntsh usually means you don't have passed the right path to the oci PHP configure switch and/or the library isn't in your library path (/etc/ld.so.conf) - Markus On Fri, May 10, 2002 at 09:05:08AM -, [EMAIL PROTECTED] wrote : ID: 17121 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: OCI8 related Operating System: Redhat 7..2 .7.3 PHP Version: 4.2.0 New Comment: Ok, so i have oracle client installed but i did not do a administrativr install So I did that last night now we are getting past that problem What happens now is that it states that ld can't find -lclntsh what now I'm just reinstalling maybe i'll get past this but anay suggestion is welcome Previous Comments: [2002-05-09 11:49:34] [EMAIL PROTECTED] You need at least Oracle client installed in order to compile PHP. For more info see http://www.php.net/manual/en/ref.oci8.php [2002-05-09 11:19:30] [EMAIL PROTECTED] Gee!! you responded quickly I'm using oracle9i And no i don't have it on my system [2002-05-09 10:57:36] [EMAIL PROTECTED] Which version of Oracle do you have installed? There shoud be oci.h in /home/oracle/OraHome1/rdbms/demo, if its not there could you try finding the file under $ORACLE_HOME (/home/oracle/OraHome1). [2002-05-09 10:48:45] [EMAIL PROTECTED] Hi there we have tried with both Redhat 7.2 and 7.3 and php 4.1.1 and 4.2.0 I extracted the sorce to /usr/local/php4.2.0/ When doing a config(actualy config.nice) all works fine below my config.nice #! /bin/sh # # Created by configure './configure' \ '--with-apxs2=/usr/local/apache/bin/apxs' \ '--with-config-file-path=/usr/local/apache/conf' \ '--enable-versioning' \ '--with-mysql=/usr/local' \ '--enable-ftp' \ '--with-imap=/usr/local' \ '--with-gd=/usr/local/gd1.3' \ '--enable-bcmath' \ '--disable-debug' \ '--enable-memory-limit=yes' \ '--enable-track-vars' \ '--with-oci8=/home/oracle/OraHome1' \ $@ when doing a make I get a failure in the php_oci8.h file Below is the last few lines of the terminal output I can't find anything that tels me what is going wrong everything looks right and in place please,,please can you help -I/usr/local/gd1.3/ -I/usr/local/include -I/usr/local/include/mysql -I/home/oracle/OraHome1/rdbms/demo -I/home/oracle/OraHome1/plsql/public -I/usr/local/php-4.2.0/ext/xml/expat -D_REENTRANT -I/usr/local/php-4.2.0/TSRM -g -O2 -pthread -DZTS -prefer-pic -c internal_functions.c In file included from internal_functions.c:38: /usr/local/php-4.2.0/ext/oci8/php_oci8.h:52:17: oci.h: No such file or directorymake[2]: *** [internal_functions.lo] Error 1 make[2]: Leaving directory `/usr/local/php-4.2.0/main' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/php-4.2.0/main' make: *** [all-recursive] Error 1 -- Edit this bug report at http://bugs.php.net/?id=17121edit=1 -- Please always Cc to me when replying to me on the lists. GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc I'm not stupid, you know? :) - Jani Taskinen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Testing Alert: Significant changes to DOM-XML
[This mail goes out to php-dev, php-qa and php-general and has its Reply-To: set to php-dev!] Hi Zak, thanks for the mail, I was thinking about writing such a mail myself but was to tired I guess. Yep, the CVS note to the latest ext/domxml changes state it clearly: # Testers/patches/contribs welcome. The actual changelog can be found here [1]. Also for anyone out there who has no idea about CVS: It won't help me anything filing bug reports against any released source code of PHP out there. Please use the HEAD branch when filing bug reports. See CVS instructions at http://www.php.net/anoncvs.php how to achive this. Although I don't expect a rush on this ;) I want to give out some simple rules for anyone helping us getting domxml more stable: .) If you have a reproduceable crash with small self-containing script with no other external dependencies than loading a file - don't forget to use the bug reporting system! Do not mail me privately about it! No, I'm not lazy or whatever but I wan't to broaden the audience reading about the bugs (two eyes see less than more eyes) and it also helps me keeping track of all the problems. .) If you have a reproduceable crash but can't create a small self-containing script, there are three options: 1) still try to create one (prefered) 2) Provide backtrace in your bug report ('bt full' command, not normal bt) 3) give me access to your devel system (no, no joke. This has worked in the past, it can in the future) But no promises. .) Before reporting, try creating a testcase which is suiteable to run on the command line of PHP (read: with the CGI version). Apache is nice but it adds some extra work when handling the bugs I prefer the reproduceable scripts which use the CGI version for testing and don't contain any fancy br / tags but newlines and such instead. The find bug/fix it cycle is much faster without apache. Again, I'm not lazy, but I'm also using MSVC for debugging and although I'm not a windows fan I've seen myself being faster chasing down bugs with it then with gdb (doh!). .) Patches can go directly to me; but please also tell me why and what and give a testing script and not only send a diff to me. Of cousre, anyone with the proper karma is encouraged to fix it himself (you might want to check back if I'm not currently working on it). .) NEW FEATURES No, I do NOT plan to add now featuers. I'm just interesting in making the current version more stable but time doesn't permit to expand this scope. But you're still encouraged to use the bug report system to put your feature requests there or do it yourself. What I wrote done seems normal to me and I do not explicetely prefer this for domxml but anything else too. Saves mit quite lot of time. On Sat, Dec 01, 2001 at 08:19:47PM -0700, Zak Greant wrote : Marcus Fischer has made [...] Yo, and its still MarKKKus ;-) - Markus [1] http://cvs.php.net/cvs.php/php4/ext/domxml/php_domxml.c -- Please always Cc to me when replying to me on the lists. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: [PHP-DEV] What's wrong with my PHP
Please ask support questions at [EMAIL PROTECTED] And, check what type '$this-a' is. It's probably not an array. - Markus On Sun, Oct 21, 2001 at 05:33:25PM +0800, fatbobman wrote : when i try to open add a record to my db.. php tell me Warning: Cannot use a scalar value as an array in c:\program files\apache group\apache\htdocs\textdb\tdb.inc.php on line 127 127: $this-a[] = array($fieldname, $fieldtype); why ... my php.ini's wrong ...? how to edit it i'm using php 4 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] Re: [PHP-DEV] Bug #13545: oci8 compile problem
Again, is this patch against some kind of libc problem? Because standard 8.1.7 does not support glibc 2.2.x, only 2.1.(x|3) ? But there is little from php that can be done I think. For testing try to build a cgi module and see if that works. If so IMHO its not a php problem. I always took dsitributions with libc 2.1.3 for installing orackle (rh 6.2, debian potato) and they ran well. - Markus On Fri, Oct 05, 2001 at 10:09:09AM +0200, Jerome Ponsin wrote : For me this really a bug in php compilation with oracle 8.1.7 within apache 1.3.20 : The problem occurs with php 4.0.5, php4.0.6 but also with latest snapshot... For Php - ./configure --with-apache=/root/apache_1.3.20 --with-mysql --enable-ftp --en able-inline-optimization --disable-debug --with-zlib --with-oci8=/opt/oracle /product/8.1.7 make make install For php within apache : cd /root/apache_1.3.20;./configure --activate-module=src/modules/php4/libphp4.a I get at that command the message : usr/lib/gcc-lib/i386.libresolv.so: undefined reference to `[EMAIL PROTECTED]' Any idea ? Thanks for help, Jerome -Message d'origine- De : Markus Fischer [mailto:[EMAIL PROTECTED]] Envoyé : jeudi 4 octobre 2001 20:45 À : [EMAIL PROTECTED] Cc : [EMAIL PROTECTED] Objet : Re: [PHP-DEV] Bug #13545: oci8 compile problem Please ask on [EMAIL PROTECTED] or php-install@ Is this patch against the glibc 2.2x problem? - Markus On Thu, Oct 04, 2001 at 06:26:10PM -, [EMAIL PROTECTED] wrote : From: [EMAIL PROTECTED] Operating system: LINUX RH 7.1 PHP version: 4.0.6 PHP Bug Type: Oracle related Bug description: oci8 compile problem - oracle 8.1.7 install ok - oracle patch from technet ok, - php compiles fine (4.0.6) but on the oracle compile (./configure --activate-module=src/modules/php4/libphp4.a ) I get : usr/lib/gcc-lib/i386.libresolv.so: undefined reference to `[EMAIL PROTECTED]' ... even if I put -lpthread in the src/Configure file (is that the good place ?) Thaks for help, Jerome -- Edit bug report at: http://bugs.php.net/?id=13545edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Markus Fischer, http://guru.josefine.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -All your scripts are belong to Zend- -- Markus Fischer, http://guru.josefine.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -All your scripts are belong to Zend- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: [PHP-DEV] Bug #13545: oci8 compile problem
On Fri, Oct 05, 2001 at 01:10:17PM +0200, Jerome Ponsin wrote : Yes it is a patch for glibc greater 2.1.3 (for me it's 2.2). The problem doesn't appear with the cgi compilation... Does that mean I can't install php module with Redhat 7.1 for example, or is there something to do ? No it doesn't. It just means this is not a PHP bug so I'm off the thread. - Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: [PHP-DEV] Bug #13545: oci8 compile problem
Please ask on [EMAIL PROTECTED] or php-install@ Is this patch against the glibc 2.2x problem? - Markus On Thu, Oct 04, 2001 at 06:26:10PM -, [EMAIL PROTECTED] wrote : From: [EMAIL PROTECTED] Operating system: LINUX RH 7.1 PHP version: 4.0.6 PHP Bug Type: Oracle related Bug description: oci8 compile problem - oracle 8.1.7 install ok - oracle patch from technet ok, - php compiles fine (4.0.6) but on the oracle compile (./configure --activate-module=src/modules/php4/libphp4.a ) I get : usr/lib/gcc-lib/i386.libresolv.so: undefined reference to `[EMAIL PROTECTED]' ... even if I put -lpthread in the src/Configure file (is that the good place ?) Thaks for help, Jerome -- Edit bug report at: http://bugs.php.net/?id=13545edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Markus Fischer, http://guru.josefine.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -All your scripts are belong to Zend- -- PHP General Mailing List (http://www.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: [PEAR] problem with a global variable as class reference
My answer may be not well thought but ... from my knowledge, problems with php-gtk you can't assign references to global vars because this particaular declared global variable is a local reference to the global var. - Markus On Sat, Sep 15, 2001 at 03:38:54PM +0200, Wolfram Kriesing wrote : i am using a global variable (curClass), which is a reference to some class, inside another class i want to change the value of this global variable, to point or refer to another class. but that doesnt work. am i doing something wrong??? here my code -- class temp { function temp() { global $curClass; $curClass = ${$classNameY}; } } - $curClass = ${classNameX}; $tempi = new temp(); # at this point $curClass still points # to the class with the name classNameX # not to classNameY as i would suppose # if i used: $curClass = $classNameY; # inside the class temp # $curClass would have the expected value # but with the ${} around it doenst work thanks 4 your help Wolfram Kriesing -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Markus Fischer, http://guru.josefine.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -All your scripts are belong to Zend- -- PHP General Mailing List (http://www.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: [PEAR] Re: [PHP] Re: [PEAR] problem with a global variable as class reference
On Sat, Sep 15, 2001 at 04:11:47PM +0200, Wolfram Kriesing wrote : My answer may be not well thought but ... from my knowledge, problems with php-gtk you can't assign references to global vars because this particaular declared global variable is a local reference to the global var. as you say, i guess the local reference to the global var is the problem at least i also forgot to define the ${$classNameY} as global if i do so then the following happens (see comments in code) class temp { function temp() { global $curClass,${y}; $curClass = ${y}; # this doenst work $curClass = ${y}; # this works, but it's not a reference :-( } } - Good .. or bad. It's a Zend1 limitation. I'm sure Zend2 will remove this problem. $curClass = ${x}; $tempi = new temp(); Have you tried with creating a reference from the object upon instancing it? $foo = new Object; ? - Markus -- Markus Fischer, http://guru.josefine.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -All your scripts are belong to Zend- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: [PHP-GTK] autoconf bugs
What libtool version are you using ? libtool --version - Markus On Mon, Aug 13, 2001 at 12:57:42PM -0400, Daniel Adams wrote : Anyone know why I get this when I run buildconf for php or phpgtk on redhat 7.1? I have autoconf 2.13 autoconf: Undefined macros: ***BUG in Autoconf--please report*** AC_LANG_PUSH ***BUG in Autoconf--please report*** AC_LANG_POP ***BUG in Autoconf--please report*** AC_LANG_PUSH ***BUG in Autoconf--please report*** AC_MSG_NOTICE ***BUG in Autoconf--please report*** AC_LANG_POP ***BUG in Autoconf--please report*** AC_LANG_PUSH ***BUG in Autoconf--please report*** AC_LANG_POP - Dan -- -- PHP GTK Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Markus Fischer, http://guru.josefine.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -All your scripts are belong to Zend- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: [PHP-GTK] autoconf bugs
There it is. You need 1.4 . No trailing a or b or whatsoever. - Markus On Mon, Aug 13, 2001 at 01:20:50PM -0400, Daniel Adams wrote : 1.4b On Mon, 13 Aug 2001, Markus Fischer wrote: What libtool version are you using ? libtool --version - Markus On Mon, Aug 13, 2001 at 12:57:42PM -0400, Daniel Adams wrote : Anyone know why I get this when I run buildconf for php or phpgtk on redhat 7.1? I have autoconf 2.13 autoconf: Undefined macros: ***BUG in Autoconf--please report*** AC_LANG_PUSH ***BUG in Autoconf--please report*** AC_LANG_POP ***BUG in Autoconf--please report*** AC_LANG_PUSH ***BUG in Autoconf--please report*** AC_MSG_NOTICE ***BUG in Autoconf--please report*** AC_LANG_POP ***BUG in Autoconf--please report*** AC_LANG_PUSH ***BUG in Autoconf--please report*** AC_LANG_POP - Dan -- -- PHP GTK Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- -- Markus Fischer, http://guru.josefine.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -All your scripts are belong to Zend- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: [PHP-DEV] Passing JavaScript variables to PHP
On Fri, Jul 27, 2001 at 04:31:51PM -0500, Craig Gardner wrote : Is there any way to pass JavaScript variables to PHP? This doesn't belong in here; this list is for the development OF php and _not_ WITH. Ask at [EMAIL PROTECTED] - Markus -- Markus Fischer, http://guru.josefine.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -- PHP General Mailing List (http://www.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] Interfacing with Excel
You can use PHP4 under win32 (CGI Binary) and use the DCOM Interface to access excel. Search with google and some appropriate keywords. - Markus On Thu, Jun 28, 2001 at 11:00:19AM +0530, Sharat Hegde wrote : Hello, I have a web site on a Unix environment running PHP 3.0 and MySQL. I need to convert data in an Excel format to a MySQL database format periodically based on the input feed received in Excel format. the conversion to MySQL is not a problem at all. What I need help is to read data from an Excel 2000 format. How do I retrieve data from Excel 2000? The data is basically a 2 columnar data with currency names and conversion values. Thanks in advance. Regards, Sharat Hegde Phone: 6560360 Ext 4680 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Markus Fischer, http://guru.josefine.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -- PHP General Mailing List (http://www.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] Missing arguments for function in class? (object-oriented programming)
On Wed, Jun 27, 2001 at 07:26:53AM -0600, Thomas David Kehoe wrote : [...] $my_records = new Display_Records; [...] ?php class Display_Records { function display_records($row, $record_count) { The constructor of your class assumes two parameters; you're creating an instance without passing those values. $my_records = new Display_Records( $param1, $param2); is the proper syntax. - Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Can you help me with this: Bug #11055: segmentation fault core dump during make
Sorry no, never touch sybase yet. - Markus On Wed, May 23, 2001 at 04:58:53PM +0200, [EMAIL PROTECTED] wrote : From: [EMAIL PROTECTED] Operating system: linux 2.2.14 (RH 6.2) PHP version: 4.0.5 PHP Bug Type: Sybase-ct (ctlib) related Bug description: segmentation fauld core dump during make downloaded free sybase-ct libs from link in faq from php site. unpacked in /sybase-ct fixed /etc/ld.so.conf ran ldconfig then tried to compile php with sybase-ct support (in order to access MSSQL server) as a DSO module: [root@linux php-4.0.5]# ./configure --with-mysql --with-apxs --enable-sockets --with-oracle=/mnt/ora_syb/ora/app/oracle/product/8.0.5 --with-sybase-ct=/sybase-ct went fine then ran: [root@linux php-4.0.5]# make got the following error: make[1]: Entering directory `/mnt/ora_syb/php-4.0.5' /bin/sh /mnt/ora_syb/php-4.0.5/libtool --silent --mode=link gcc -I. -I/mnt/ora_syb/php-4.0.5/ -I/mnt/ora_syb/php-4.0.5/main -I/mnt/ora_syb/php-4.0.5 -I/usr/include/apache -I/mnt/ora_syb/php-4.0.5/Zend -I/mnt/ora_syb/php-4.0.5/ext/mysql/libmysql -I/mnt/ora_syb/ora/app/oracle/product/8.0.5/rdbms/demo -I/mnt/ora_syb/ora/app/oracle/product/8.0.5/network/public -I/mnt/ora_syb/ora/app/oracle/product/8.0.5/plsql/public -I/sybase-ct/include -I/mnt/ora_syb/php-4.0.5/ext/xml/expat/xmltok -I/mnt/ora_syb/php-4.0.5/ext/xml/expat/xmlparse -I/mnt/ora_syb/php-4.0.5/TSRM -DLINUX=2 -DEAPI -DUSE_EXPAT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2 -o libphp4.la -rpath /mnt/ora_syb/php-4.0.5/libs -avoid-version -L/mnt/ora_syb/ora/app/oracle/product/8.0.5/lib -L/sybase-ct/lib -R /mnt/ora_syb/ora/app/oracle/product/8.0.5/lib -R /sybase-ct/lib stub.lo Zend/libZend.la sapi/apache/libsapi.la main/libmain.la regex/libregex.la ext/mysql/libmysql.la ext/oracle/liboracle.la ext/pcre/libpcre.la ext/posix/libposix.la ext/session/libsession.la ext/sockets/libsockets.la ext/standard/libstandard.la ext/sybase_ct/libsybase_ct.la ext/xml/libxml.la TSRM/libtsrm.la -lpam -ldl -linsck -lsybtcl -lintl -lcomn -lct -lcs -lclntsh -lpsa -lcore4 -lnlsrtl3 -lm -lnsl -lresolv -lm -ldl -lcrypt -lnsl -lresolv collect2: ld terminated with signal 11 [Segmentation fault], core dumped /sybase-ct/lib/libct.a(ctconpr.o)(.text+0x5ac): undefined reference to `comn_loc_copy' make[1]: *** [libphp4.la] Error 1 make[1]: Leaving directory `/mnt/ora_syb/php-4.0.5' make: *** [all-recursive] Error 1 N.B. previous run witout sybase-ct support went fine! dont know if it will help but, try php 4.0.6rc1 from http://www.php.net/~andi/php-4.0.6RC1.tar.gz or try a 4.0.7-dev snapshot from http://snaps.php.net/php4-latest.tar.gz Cameron Since the error comes from : /sybase-ct/lib/libct.a(ctconpr.o)(.text+0x5ac): undefined reference to `comn_loc_copy' I feel that this will not solve the problem ... as in effect it did not. I see that some people solved similar problems by doungrading to version 4.0.3 ... could this be a solution for my problem ? where can I get these old sources (on php site oldest version avalible is 4.0.4) ? Can any body suggest any other solution ? By dave - Questo messaggio ? stato inviato utilizzando http://it.my.gsmbox.com -- Markus Fischer, http://josefine.ben.tuwien.ac.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -- PHP General Mailing List (http://www.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] array sort
On Mon, May 21, 2001 at 06:05:49PM -0700, Alex Black wrote : Use 'uasort()': function my_hash_sort( $a, $b) { $a = $a['num']; $b = $b['num']; if( $a == $b) return 0; return ( $a $b) ? -1 : 1; } uasort( $test, 'my_hash_sort'); hoping this wouldn't be the answer, thanks :) another for you: I've now coded my function, and the ordering works fine. except I'm inside a class and would really rather not include some strange little file with a single function in it. kludgemy code here/kludge on a whim, I tried uasort($this-modules[$group], '$this-_ary_sort()'); with no luck :) ideas? sure :) use uasort( $this-modules[ $group], array( $this, '_ary_sort'))' You could also write '$this' instead of '$this' and it would work but would unneccessarily create a new copy of the object. - Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] problem getting oracle to work with php4
On Tue, May 22, 2001 at 07:06:32PM +0200, [EMAIL PROTECTED] wrote : got php to work with mysql but when I try to compile in oracle support something goes bad. .configure, make make install semm to go fine but when I restart apache I get an error: Shutting down http: [OK] Starting httpd: Syntax error on line 872 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/lib/apache/libphp4.so into server: libclntsh.so.1.0: cannot open shared object file: No such file or directory [FAILED] libclntsh.so.1.0 is not in your library path /etc/ld.so.conf btw, make sure you linked both apache php against libpthread like libclntsh.so.1.0 is - Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] image upload - determining image resolution in pixels ?
On Tue, May 22, 2001 at 10:38:32AM -0700, Nicolas Mermet wrote : I was wondering if there is a way to analize an uploaded jpeg file in order to extract its resolution in pixels. GetImageSize() is a favourite one here. Would that be also possible with a quicktime movie ? Possibly, but no one has done a constribution yet to php. - Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] 3d array-number of elements in each dimension
On Tue, May 22, 2001 at 02:04:43PM -0700, Andrew V. Romero wrote : I should clarify that I need to determine the number of elements in $j for each row ($k). Thanks, To reply personally, remove all numbers from address. Just a note: to receive mail post your real address. - Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] select specified elements from an array
On Wed, May 23, 2001 at 12:06:42AM +0200, Gyozo Papp wrote : function array_part($fromarray, $keys) { foreach($fromarray as $key = $val) { if (in_array($key, $keys) $anotherarray[$key] = $val; } return $anotherarray; } foreach( $keys as $key) if( isset( $fromarray[ $key])) $anotherarray[ $key] = $fromarray[ $key]; - Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] select specified elements from an array
On Wed, May 23, 2001 at 12:27:04AM +0200, Gyozo Papp wrote : Thanks for your fast reply. One more question related to this topic. Would it be valueable to extend the existing array_values() function to support this feature? just to balance with array_keys() and its optional value argument. I agree with Zeev Co not to unnecessarily bloat/pollute PHP with functions when you can solve it with minimal hassle. - Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] function to complete strings with white spaces on the left
On Mon, May 21, 2001 at 10:04:21AM -0500, Tolga thorr Orhon wrote : One improvment: $strpad = HELLO; echo str_pad(substr($strpad,0,17),17); why ? - Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] ?=SID? is not translated...
Hallo Chris, On Mon, May 21, 2001 at 04:08:52AM +0200, Christian Marschalek wrote : My system does not tranlate ?=SID? into the PHP Session id... Don't have a clue why, though... SID gets only defined if the appropriate cookie is NOT set (which makes sense: you don't need to populate it anywhere in your code if the right cookie is set). If you just want the session ID use 'session_id()'. - Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] if $submit
On Mon, May 21, 2001 at 03:15:37PM +0100, Tarrant Costelloe wrote : Whenever I use the ? if ($submit) ? statement in a php page it always comes up with: Warning: Undefined variable Until the submit has been hit, and then it continue on with the rest of the script fine ( ifelse). How do you stop this warning message? 1) set new error level: error_reporting( E_ALL ^ E_NOTICE); 2) use isset() if( isset( $submit)) { ... 3) or use @ in front of the variable if( @$submit) { ... - Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Accesing Oracle
On Mon, May 21, 2001 at 03:21:30PM +0100, Kike wrote : Hi all, I've just installed Orcale 8.1.7 in a linux server in my lan. I'm trying to access to the server from another computer with apache and i get the next: Fatal error: Call to undefined function: ora_logon() in /usr/local/apache/htdocs. Where can i find docs to configure boths machines to access to the oracle server? Thanks a lot. Additionally to the other posts, make sure PHP _AND_ APACHE is at least linked against libpthread.so: LDFLAGS=-lpthread ./configure This is for both php and apache - Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] query question
On Mon, May 21, 2001 at 10:36:42AM -0500, Jacky wrote : What do I do if i want to move all values stored in one field to another field in the same table, from field A to field B? Has anyone ever done that? As simple as you think it should be UPDATE table SET column_a = column_b - Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] best way to flush stdout?
On Mon, May 21, 2001 at 10:03:33AM -0700, Phil Glatz wrote : I have a page that displays a few lines, then runs a database query that takes five or six seconds. I'd like to flush stdout and display the first text while the query is running, so the user doesn't think the site is down. What's the best way to accomplish this? thanks Make sure output is not buffered via ob_* functions and just call 'flush()'. But note there's no real world fix because browsers can refuse to display immdiatly (depending on its rendering engine, etc) and apache can cache the output, too. - Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP URL Question - omitting index.php
On Mon, May 21, 2001 at 04:01:14PM -0400, colin olkowski wrote : http://www.blahbalh.com/directory/?arg1=arg1arg2=arg2 Perfectly ok. - Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Class var not retaining values
On Mon, May 21, 2001 at 05:58:06PM -0400, Bob wrote : I have a class defined with a var $reasons that I will use as an array. The code to add to it is: function AddReason($score, $reason, $id) { static $index = 0; $this-reasons[$index] = $score|$reason|$id; for ($i = 0; $i $index; $i++) { $out = $this-reasons[$i]; echo $out...; } $index++; return $score; } Put in a var_dump( $this-reasons); to view yourself what it really contains. Or maybe you called your method static instead of a method ? - Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] array sort
On Mon, May 21, 2001 at 03:19:28PM -0700, Alex Black wrote : hi all, I'm trying to do an array sort that takes: $test = array( array( // this is $test[0]. string = this is the second, num = 2 ), array( // this is $test[1]. string= this is the first, num = 1 ), ); and sorts that array based on $test[$x][num], so I get: $test = array( array( // this was $test[1], now $test[0]. string= this is the first, num = 1 ), array( // this was $test[0], now $test[1]. string= this is the second, num = 2 ), ); Use 'uasort()': function my_hash_sort( $a, $b) { $a = $a['num']; $b = $b['num']; if( $a == $b) return 0; return ( $a $b) ? -1 : 1; } uasort( $test, 'my_hash_sort'); - Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: [PHP-DEV] Constructor Inheritance
Hello Tiago, this is not the PHP support forum. PHP-DEV is for developing PHP. You want to post such questions to PHP-GENERAL. On Mon, May 21, 2001 at 04:17:49PM +0100, Tiago Moitinho wrote : How do I inherit a class that inherits the constructor behaviour from the parent class, assuming the parent class cannot be changed? For instance, class A { // this class is already define, not changeable function A() // does something } } class B extends A { function B() // inherits A construction: how do I do this? // does something else } } class B extends A { function B() { // call parents constructor A::A(); } } - Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Recursively create directories
- Original Message - From: Philip Hallstrom [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, May 15, 2001 7:01 PM Subject: Re: [PHP] Recursively create directories foreach($dir_array as $current_dir) { if(! is_dir($DOCUMENT_ROOT./.$current_dir) ) { mkdir($DOCUMENT_ROOT./.$current_dir,0700); } } Here's my appraoch: if( ! @is_dir( $this-cachedir)) { $dirs = split( '/', $this-cachedir); $createdir = ''; foreach( $dirs as $dir) { $createdir .= '/' . $dir; @mkdir( $createdir, 0775);} } HTH - Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] can't get php working on redhat 7.1
- Original Message - From: Daniel Goldin (E-mail) [EMAIL PROTECTED] To: Php (E-mail) (E-mail) [EMAIL PROTECTED] Sent: Wednesday, May 09, 2001 9:47 PM Subject: [PHP] can't get php working on redhat 7.1 Got apache going. But no php. Anyone had any experience on this the latest redhat. Hoping to get some pointers to getting apache/php/mysql working nicely in redhat 7.1. I've been struggling with this for days now. What's the problem in detail ? - Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] ANN: Visual PHP Studio 1.0 Field Test 1 (Problem Fixed)
Isn't using *.zip a bit more common ? Luckily I downloaded the *.exe before. - Markus - Original Message - From: José León Serna [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 07, 2001 5:08 PM Subject: Re: [PHP] ANN: Visual PHP Studio 1.0 Field Test 1 (Problem Fixed) Hello: Sorry, but I didn't know that f2s.com deletes all the .exe files from their servers, now I have uploaded a .rar file and it's working. Sorry for any inconvenience. Best Regards Visual PHP Studio, RAD development with PHP http://www.visualphpstudio.f2s.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] URL redirection
header( 'Location: rediret_me_here.php'); - Markus - Original Message - From: Jamie Saunders [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 07, 2001 12:20 AM Subject: [PHP] URL redirection Hi, Is there a PHP function that will redirect the current page to another url? e.g. if ($varTwo == $varOne) { URL redirection code } else { echo You stay right where you are!; } Thanks. Jamie Saunders Mail: [EMAIL PROTECTED] Web: http://jamie-s.co.uk -- PHP General Mailing List (http://www.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] What is CVS?
On Fri, Apr 20, 2001 at 05:16:50PM -0700, Michael C wrote : What is CVS? Right at the top of http://cvs.php.net/viewcvs.cgi/ there're a bunch of links about CVS. HTH, Markus -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP without a webserver
On Sat, Apr 14, 2001 at 03:34:32PM -0500, Plutarck wrote : The final layer is the scripting engine. In the script if a move_elevator() [...] This would allow the vast majority of the real "content" of a game or application to be written in a scripting language, much like web apps are now. The script would run just as well on Linux as it would on windows. [...] This is not only true since now or since quake but also sicne the early days of Sierra On-Line games / Lucasmfilm Games. All their games were built on a particular Scripting Engine. For Lucasfilm, this was SCUMM[tm] and for Sierra it was SCI (Sierra Creative Interpreter). This is why those games also run nowadays on Linux (see http://freesci.linuxgames.com/ ). Ok now this is hell Offtopic ;-) But, yes, gtk+ rocks. And, for me, I removed perl and also use now PHP as my day to day scripting language. Its behaviour of hashes is much more intuitive for me than perl's way (every used nested hashes ? you're getting crazy doing so :). But, after all maybe i'm just too dump for perl then. But hey its ok :) I've much joy and fun working with PHP :-) cheers, Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Form submision probs with Javascript and PHP
How about telling us 'what' does not work ? m. -- Markus Fischer, http://josefine.ben.tuwien.ac.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -- PHP General Mailing List (http://www.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] Apache
On Sat, Jan 27, 2001 at 09:57:35PM -0500, [ rswfire ] wrote : 3. How can I turn on directory browsing? I am receiving a Forbidden error whenever there isn't a default document in a directory. htpd.conf: Directory foobar Options Indexes /Directory or in .htaccess Options Indexes You'll find all documentation at apaches website [1]. m. [1] http://httpd.apache.org/docs/mod/directives.html -- Markus Fischer, http://josefine.ben.tuwien.ac.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP and Oracle resources
On Sun, Jan 28, 2001 at 12:46:37AM -0500, Kristofer Widholm wrote : Well, I've been given the joyous task of implementing the DaveTV project at CBS via PHP, using Oracle as a database. I've never used Oracle before. Looking at the PHP functions for Oracle, and having heard about it in the past, it seems like quite a different approach than any SQL database I've ever used. I still don't get the whole point of cursor objects, etc. :-) It's ain't that hard. Just use OCILogon to connect, then OCIParse to parse the sql statement and finally OCIExecute it. Loop through your result data with OCIFetchInto. The Shitload of possible errors should be abstracted into a class. m. -- Markus Fischer, http://josefine.ben.tuwien.ac.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -- PHP General Mailing List (http://www.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] Thumbnails and PHP
On Sat, Jan 27, 2001 at 02:14:21PM -0800, Todd Cary wrote : What is the best way to display thumbnail photos and their titles with HTML/PHP? Table? The html way would be to just include the photos with a small WIDTH and HEIGHT attribute. The php would be to read the file and use ImageCopyResized on it. The most performant way would be to pre-generate the thumbmails and just include them as normal images in html. m. -- Markus Fischer, http://josefine.ben.tuwien.ac.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -- PHP General Mailing List (http://www.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] Transparent SID and forms (POST) ?
On Sat, Jan 27, 2001 at 06:29:05PM +0100, Alain Fontaine wrote : When I use a form that POST's information to another php page, do I have to manually include php's session name and the session id in HIDDEN form fields, or is this done automatically ? This applies, of course, when the user has cookies disabled... If you have enabled php4 with transparent sid's (compile-thime switch --trans-sid) it happens automatically. To all form actions and hrefs the sid is appended. m. -- Markus Fischer, http://josefine.ben.tuwien.ac.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -- PHP General Mailing List (http://www.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] Remote Directory listing
On Sat, Jan 27, 2001 at 04:03:34PM -, Kif wrote : I have tried $startdir = http://siteiwant.com/; with no joy :( There is no real, standard think like an index. What you see with webservers is just a component of the webserver which makes it easier for you to access sub-dirs and sub-files, if it is configured to do so. And thats the point, if the remote site is not configured to list the dir in the particular path you try to access, no way. And still even if it does, you can't use opendir; you have to parse the (most times it will be html) output you get. Its easier if the directory you need a listing of is also mapped 1:1 to ftp on the same site; then just use phps ftp functions. m. -- Markus Fischer, http://josefine.ben.tuwien.ac.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -- PHP General Mailing List (http://www.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] Invoke PHP script from onLoad handler?
On Sat, Jan 27, 2001 at 06:04:41PM -0600, Chuck Mayo wrote : Now I'm completely off-topic, but does anyone have any ideas regarding database access with Javascript, perhaps by having JS run a shell or perl script? How would JS get the values back? Something like function getdb () { var mylist = execute.some.remote.program(./getmysqldata.pl); } Unless you are running a *signed* JavaScript code you can't just call an external program (security, anyone ?). If its just for a intranet, just let your JS code get signed to gain higher client side access privileges and you are done; else bummer (at least, this way). What you could do with normal client side JS is just reload the opener window. As far I unterstood, you have a main window with some kind of listbox depending on database output. Under some circumstances, a window pops up where the use can alter some data. Just when you have the feeling, the user has entered/altered enough data to update the listbox in the window which spawned the popup, force to reload the page with syntax like opener.location.href='same_url_again'; and your php script is called again, the db-data is fetched again and you listbox is altered (hopefully). m. -- Markus Fischer, http://josefine.ben.tuwien.ac.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -- PHP General Mailing List (http://www.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] Conditional include based on virtual host ?
You could use $HTTP_HOST: if( stristr( $HTTP_POST, "fr.domain.com")) $lang = "fr"; Just put such in your settings.php file you allready include. Works for me. Any other ideas very welcome too :) m. -- Markus Fischer, http://josefine.ben.tuwien.ac.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -- PHP General Mailing List (http://www.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_fetch_array strangeness
Because, basically, in php an array is a hash with just numbers as keys. m. -- Markus Fischer, http://josefine.ben.tuwien.ac.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -- PHP General Mailing List (http://www.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] Build with Apache on Linux
Why not building apache with dso support and build a libphp4.so shared image ? Much less hassle. m. -- Markus Fischer, http://josefine.ben.tuwien.ac.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -- PHP General Mailing List (http://www.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] is it possible to communicate javascript and php?
On Sat, Jan 20, 2001 at 05:20:53PM -0800, Alex Black wrote : no without submitting information to the server with get or post. for example, if a bit of javascript you have comes up with some value, the only way you can get it to the server is to put it in a get and send the user to that url: http://www.mysite.com/index.php?your_js_var=your_value With 'post' methods its also possible this way (works NS and IE): script language="JavaScript"!-- function do_something( form) { form.jsvar.value = form.bla.selcetedIndex; form.submit(); return true; } //--/script form name="mainform", action="?echo$PHP_SELF?" methos="post" input type="hidden" name="jsvar" value="" selcet name="bla" option foo option bar /select input type="button" onclick="do_something( document.mainform)" value="click" /form You know have set the phpvar $jsvar from within javascript. m. -- Markus Fischer, http://josefine.ben.tuwien.ac.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -- PHP General Mailing List (http://www.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] Sending a mail in HTML format
On Sat, Jan 20, 2001 at 06:46:39PM -0700, Pascal Clerin wrote : I want to send a mail in HTML format with the mail() function. I have tried to send html stuff in the message parameter, but when I read it in my hotmail account, I just see the html code and not what the html is supposed to show. I suppose that it is necessary to send some additional headers to specify that the mail is in html format. Thanks for your help. How about sending yourself a HTML email and examing the headers ? I did that way, worked. To shorten this cycle for you, some hints: Content-Type: text/html; charset="us-ascii" (for example) To include test and html, use the following: Content-Type: multipart/alternative; boundary="=_NextPart_000_062D_01C079C0.9DFF9B70" Then, in the body This is a multi-part message in MIME format. --=_NextPart_000_062D_01C079C0.9DFF9B70 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit ene mene u --=_NextPart_000_062D_01C079C0.9DFF9B70 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable htmlbodyh1 ene mene mu /h1/body/html m. -- Markus Fischer, http://josefine.ben.tuwien.ac.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] mysql table dump problem
On Sat, Jan 20, 2001 at 05:57:25PM -0800, PHP List wrote : dump a table to a file on my server: $sql = "SELECT * INTO OUTFILE '/tmp/test.txt' FIELDS TERMINATED BY '\t' LINES TERMINATED BY '\n' FROM table_name"; Problem is that once I have created the dump file, it will not allow me to overwrite it and it gives me an error. Error = rm: cannot unlink `test.txt': Operation not permitted. It is owned by mysql:mysql. So it looks like it must be deleted by root or I need to change the ownership of the file so it can be deleted. So... As i first shot, if you need it quickly to work, add a random number to the text file. Sorry, no more ideas, just a dirty hack. m. -- Markus Fischer, http://josefine.ben.tuwien.ac.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -- PHP General Mailing List (http://www.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] Getting part of a string
On Sat, Jan 20, 2001 at 09:10:45PM -0500, [EMAIL PROTECTED] wrote : I have a form which users enter their email address, once submitted I need a way to chop it up and put it in lowercase. So that if a user submits [EMAIL PROTECTED] I want PHP to throw out Website4S and then make the rest lowercase so I would get @aol.com I know how to get the string to lowercase by using $Email1=strtolower($Email); My problem is how to get $Email and chop off anything up to the @ and because people may enter different email providors I have no idea how to get around it. Anyone have a suggestion I would really appreciate it. The key to your secret is called regular expression. ? $email = "[EMAIL PROTECTED]"; if( eregi( "^([^@]+)@([^@]+)$", $email, $match)) { $email_user = $match[1]; $email_domain = strtolower( $match[2]); echo "$email_user at $email_domain"; } else echo "bad email"; ? Note, this does not validate if the email is correct; if you need this, take a look at php.net, some of the manual comments talk about email validaten ( whereupon methinks Tom Christiansen email verifier [written in perl] is still the best validator). hope this helps m. -- Markus Fischer, http://josefine.ben.tuwien.ac.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -- PHP General Mailing List (http://www.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] my cookies arent working!
On Sun, Jan 21, 2001 at 04:24:09PM +1300, Lucas Young wrote : I think most of the problems I am having with PHP and sample code not working seems to be because cookies arent being generated I'm using php.ini in it's default config Windows 2000 Pro IIS PHP 4.0.4pl1 PHP seems to be working fine otherwise... I did the installshield install then unzipped the zip package over the top to get the extra modules... How can I check that cookies are working and et up? I am seeing cookies in c:\documents and settings\login\cookies on both the web machine and my workstation for normal www sites but not for any of my php sites... How have you done cookie activation ? One easy way is to use session_start(); as it tries to set a cookie and fallsback to urlmodifieng if not possible. m. -- Markus Fischer, http://josefine.ben.tuwien.ac.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]