Re: [PHP] Parsing entities in XML attributes

2004-06-24 Thread Decapode Azur
Hi, The problem I had has not exactly the same, but quite close, it was to make a pure xml template system both data and template, anyway it was due to the same expat design problem, which is the entities that are located in attribute values inside tags. The solution I have used was just to prese

Re: [PHP] ImageMagick

2004-06-17 Thread Decapode Azur
> Does anyone knows if PHP library for ImageMagick has multilanguage support? > I am planning to use it but I have not found anything related to this on > their site Do you mean for the error messages ? IMHO the error messages are for the programer, so there is not a real need to be multi-languag

Re: [PHP] Problem with Imagick

2004-06-14 Thread Decapode Azur
Install the devel package of imageMagick in addition to the binary one. Or install ImageMagick from sources. Magick-config gives the c and ld flags to gcc, of all the libs that the lib-magick uses : gcc `Magick-config --cflags` app.c `Magick-config --ldflags --libs` http://www.imagemagick.org/www/

[PHP] parsing entities

2004-03-30 Thread Decapode Azur
hello, I am parsing an xhtml template throught the php xml expat parser. But the problem is that it removes all entities from the xhtml template such as   or & (in href anchors attributes) The entities can't be handle with xml_set_default_handler because some entities are inside an attribute (ti

[PHP] no highlighted sourcecode in my doc

2004-03-29 Thread Decapode Azur
hello, I have put the flag --sourcecode on on the phpdoc command line and the tag @filesource in my page-level docblock phpDocumentor claims that 'ERROR in my.php on line 12: "filesource" tag is not available in PHP versions less than 4.3.0, tag ignored' But it does lie: my phpinfo() says my #!/

[PHP] file management system

2004-03-11 Thread Decapode Azur
hi all, I am looking for a file management system. Does anyone know if such a thing exists? The goal is to make a web site with computer graphics resources. The features we would like to find in it would be these if possible: - the possibility to upload files - the possibility to check the uploa

[PHP] colisions writing in a file?

2004-02-01 Thread Decapode Azur
Hello, Are Problems of colisions with a script writing in a file possible? For exemple for a PHP script reading a file, and rewriting it with modifications, when it is called a lot of times simultaneously, are conflicts possible? (over-writing the modifications) or does each session of this scri

Re: [PHP] modify an XML file

2004-02-01 Thread Decapode Azur
> >What is the best one for large files? (something about 8Mo) > > Parse with SAX, use printf to produce output. Ok, it seems this method is defenitly a good one. I was wondering if it was a good one too, to read the XML file with fgets, and using ereg fonctions to make the modifications? -- Th

[PHP] modify an XML file

2004-02-01 Thread Decapode Azur
hello! What is the best solution to modify an XML file? (Modification such as change the content of a tag or of an attribute) I think there would be several methods. What is the best one for small files? (something about 20Ko) What is the best one for large files? (something about 8Mo) What shoul

[PHP] stdin from a pipe

2004-01-17 Thread Decapode Azur
hello, What is the better way to read from a pipe from a php cli script? #! /usr/bin/php -q or I have tryed these ways, but the problem is that if there is no pipe input, the script is waiting for ^D from the user (so this is a problem if the php filter is used in a bash script, because it wil

Re: [PHP] Re: deamon / server

2004-01-11 Thread Decapode Azur
> > Is it possible to make php scripts working like deamons > > and build something like a server? > > What you trying to achieve... Well nothing particular, just wondering howto... For exemple, the script make some calculations, but niced 19 in background and/or when the computer is idl. And if

[PHP] deamon / server

2004-01-09 Thread Decapode Azur
hello, Is it possible to make php scripts working like deamons and build something like a server? -- thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problems with imagick's imagick_readimage

2003-12-09 Thread Decapode Azur
> I was wondering if you any advice as to why the imagick function > imagick_readimage can not read a url on my php installation. > > Problem: I am trying to get imagick to load an image from a URL. I can > read from a file on the a file system no problem. > > $url = "http://static.php.net/www.

[PHP] install php-cli script

2003-11-20 Thread Decapode Azur
hello, Where should php-cli scripts be installed? I have put the main file in /usr/local/bin/script.php but I wonder where requires should be installed? /usr/local/bin/script_inc/ ? the problem is that it have to be exec from a boot shell after a cd to find the requisites :-/ I also would like to

[PHP] diff

2003-11-18 Thread Decapode Azur
hello Is there a php function close to the *nix diff comand? (in order to compare 2 multi-lines strings) thanx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] where to set session.bug_compat_warn ?

2003-10-26 Thread Decapode Azur
hi, I have the warning message below. In which conf file can I set session.bug_compat_42 or session.bug_compat_warn to off? And where can I find this conf file? (annexe question: Is it possible to get the warnings in a variable so I could print it in html comment, or write it in a log file?) th

[PHP] uncompressing gz string

2003-10-24 Thread Decapode Azur
I don't understand why gzinflate and gzuncompress don't work? but if I make it from bash the content is there : cat hello.txt.gz | gunzip Hello! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [cli] ^D

2003-10-21 Thread Decapode Azur
> > Is there a way, for a cli script, to detect Ctrl_D or Ctrl_Z ? [...] > Take a look at pcntl functions, namely pcntl_signal. > But this extension is not enabled by default. Ok thanks a lot. Will those functions be integrated in the next main release? This question is just to know if I distribu

[PHP] [cli] ^D

2003-10-20 Thread Decapode Azur
hi all, Is there a way, for a cli script, to detect Ctrl_D or Ctrl_Z ? My cli php script runs a loop while(1) and I would like to find a way to stop it from a user action. (Waiting a better solution I've made: if(file_exists('./stop')) and type the command >stop to stop the script. I can not use

[PHP] [xml] character data

2003-10-10 Thread Decapode Azur
I do not understand why this line does not work : $info[$element] = $content; but yet this works: echo $content; why? what is the trick? -- $xml_comment_file = basename($svg_file, '.svg.xml') .'.info.xml'; if (file_exists($xml_comment_file)) { $file = $xml_comment_file; $info = array

[PHP] [resource] memory size

2003-09-27 Thread Decapode Azur
Hi, is it possible to get, from a php script, the memory size it takes ? Is there documentations explaining how to manage resources in php ? thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Resource Limits

2003-09-27 Thread Decapode Azur
hi the list, How can I get the values of 'max_execution_time', 'max_input_time' and 'memory_limit' from my php script ? thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] present php code with css

2003-09-23 Thread Decapode Azur
For people interested in presenting php code on their web site and integrate it with their css, here is a small sed script I have made. Just change the colors in it, or move it to your css. === # Put php sources in SRC dir, or change FROM definition. FROM=SRC DEST=listing if [

[PHP] XHTML / CSS

2003-09-22 Thread Decapode Azur
First, excuse-me for this out of topic message. I am searching a good mailling-list for people trying to write standard XHTML and CSS. thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [imagick] converting to variable instead of file

2003-09-07 Thread Decapode Azur
finaly I did it this way : (pasted at the end of the mail) But the problem is the result is very dirty, considering the result with other way to do this. top-left is the image in XPM-format top-right is the image in PNG-format bottom-left is a classic php-gtk-script displaying an XPM image bottom

Re: [PHP] [imagick] converting to variable instead of file

2003-09-06 Thread Decapode Azur
I had thought too that it is possible to write a temp file for this image, but it would be much better i think if there was another way... Is it really impossible to prevent from this hard disk access ? -- > Write it to a tem file then use file_get_contents() on the file name. > [...] > >With i

Re: [PHP] Question regarding OOP and interitance

2003-09-04 Thread Decapode Azur
> FYI ... anything below PHP5 has a pseudo constructor. And how will it be in PHP5 ? > Since you are inheriting the class the 'constructor' for the parent class > should work. If it doesn't (I have not tested it, and neither have > you)then the class extension can contain a 'contstructor' that

Re: [PHP] in the middle of shift and pop

2003-08-20 Thread Decapode Azur
> If you unset an array that isn't associative, will that mean there will > be a gap in the numbers? Yes the items are grabed by their index. I'm using those arrays to manipulate 3D geometric shapes, (either vrml/x3d, OpenGL, POV and other ones**) so cartesian coordinates are first referenced in a

Re: [PHP] in the middle of shift and pop

2003-08-19 Thread Decapode Azur
> unset($A[2]); No this function does not exactly what I want. unset() makes empty hole with $A[2] = Null I would like to have this result : Array ( [0] => a [1] => b [2] => d [3] => e [4] => f ) and not this one : Array ( [0] => a [1] => b [3] => d [4] => e

Re: [PHP] in the middle of shift and pop

2003-08-19 Thread Decapode Azur
> is it possible to remove an element of an indexed array such as this > exemple $A = array('a', 'b', 'c', 'd', 'e', 'f'); > in a way that we can optain this result : > $A = array('a', 'b', 'd', 'e', 'f'); > > something like that perhaps ? > array_remove($A, 2); > > If such a function does no

[PHP] in the middle of shift and pop

2003-08-19 Thread Decapode Azur
is it possible to remove an element of an indexed array such as this exemple $A = array('a', 'b', 'c', 'd', 'e', 'f'); in a way that we can optain this result : $A = array('a', 'b', 'd', 'e', 'f'); something like that perhaps ? array_remove($A, 2); If such a function does not exis

Re: [PHP] Code formatting issue

2003-08-19 Thread Decapode Azur
this way may be what you'd like : $thing = new whatever (); $with = array (doStuff', anotherThing', doThis', doThat', doThis', doThat', anotherThing', doThis', /* etc. etc. */ ); foreach($with as $w) $thing->$w(); -- > Is there a way I can make this type

Re: [PHP] gzip to max 9

2003-08-10 Thread Decapode Azur
> try setting zlib.output_compression_level in your php.ini won't it turn 'zlib.output_compression' to On ? (because I prefere to keep it Off) -- > > > function wrl2wrz($buffer) { return gzencode ($buffer, 9); } > > ob_start("wrl2wrz"); > > /* here the file */ > > ob_end_flush(); # end of t

[PHP] gzip to max 9

2003-08-09 Thread Decapode Azur
Dear All, In this exemple with output beffering it is possible to select the maximum compression level, is it possible to select the maximum compression level too when writing in a file like below ?? $gzp = fopen($output_file, 'w'); gzwrite($gzp, $content); gzclose($gzp); I think that the

[PHP] eval

2003-07-31 Thread Decapode Azur
Is it possible to put PHP code in eval ? Or just vars ? '; eval ($string); ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP or CGI in C/C++

2003-07-31 Thread Decapode Azur
> I would expect compiled C/C++ to be faster as there is no need for > the code to be interperated and compiled on each request. Is it possible to compile PHP to improve the speed execution ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] install php-gtk on mdk9.1

2003-07-30 Thread Decapode Azur
I am trying to install PHP-GTK here is below the error : [EMAIL PROTECTED] php-gtk-0.5.2]$ ./buildconf [EMAIL PROTECTED] php-gtk-0.5.2]$ ./configure [EMAIL PROTECTED] php-gtk-0.5.2]$ make [] /PHP_GTK/php-gtk-0.5.2/main/php_gtk_object.c:889: `gtk_object_ce