Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Torgny Bjers
Quoting Michael Crute [EMAIL PROTECTED]: On 12/6/05, Jeff McKeon [EMAIL PROTECTED] wrote: Hey all, Forever now I've been using Frontpage for all my web work including php. I'm sure there's better software out there that is more suited to writing and editing PHP pages. What do you all use?

Re: [PHP] SOAP and PHP

2005-11-16 Thread Torgny Bjers
Angelo Zanetti wrote: Hi guys. I've googled but found so many pages that I'm not sure what to use. I want to use PHP to make use of SOAP. I've found: -nuSoap -libxml(2) -php-soap -and others which seemed less important. Can you recommend which one to use? and which one is the most

Re: [PHP] Re: Template style question

2005-11-06 Thread Torgny Bjers
Petr Smith wrote: Smarty sucks. Mixing presentation and logic is never good idea. I know Smarty is very popular, but big popularity doesn't always mean quality. Back to original question: If you decided to reinvent the wheel, please don't reinvent square wheel without tire. Mixing

Re: [PHP] Simple CopyOf XSLT translation

2005-11-02 Thread Torgny Bjers
Quoting Andy Pieters [EMAIL PROTECTED]: Hi list I made an entire site in xhtml for a client but now complaints are comming from the m$ explorer front. Broken layouts, long loading times etc. Would it be possible for php to do the xslt translation? All that is currently in my xslt is

Re: [PHP] XML-RPC Error:-32300:transport error - could not open socket

2005-10-22 Thread Torgny Bjers
Dan McCullough wrote: I'm having any issue finding out why this is happening and how to fix it. Is it a permissions problem between php and the server or something else? Help Without looking up this specific error code thoroughly through Google or elsewhere, I would have to ask you to submit

Re: [PHP] fckeditor and PDF and pesky users

2005-10-19 Thread Torgny Bjers
Jochem Maas wrote: and the next site that displays a PDF when I wasn't expecting it and I have to spend the next five minutes waiting for the b'std to load (with the alternative being to KILL the browser - losing all open pages in the process) ... might just make me snap ;-) I agree, those

Re: [PHP] fckeditor and PDF and pesky users

2005-10-17 Thread Torgny Bjers
Richard Lynch wrote: On Sat, October 15, 2005 7:26 am, Edward Vermillion wrote: Do they want the PDF to display in the page, or is a link to a PDF ok for them? I've already warned them that a PDF embedded into a page is impossible. That may not be true, technically, for all I know,

Re: [PHP] fckeditor and PDF and pesky users

2005-10-17 Thread Torgny Bjers
Jasper Bryant-Greene wrote: Richard Lynch wrote: On Sat, October 15, 2005 7:26 am, Edward Vermillion wrote: Do they want the PDF to display in the page, or is a link to a PDF ok for them? I've already warned them that a PDF embedded into a page is impossible. That may not be

Re: [PHP] fckeditor and PDF and pesky users

2005-10-17 Thread Torgny Bjers
Richard Lynch wrote: On Mon, October 17, 2005 3:56 pm, Torgny Bjers wrote: Also, when using iframe/ you are weeding out those old browsers that If somebody else wants to weed out old browsers, that's all fine and good, but that's not me... Didn't say I wanted

Re: [PHP] Send postcard link

2005-10-09 Thread Torgny Bjers
Roger Thomas wrote: On server-1 I have my photogallery working. On another box, server-2, I have my postcard script also working great. Users can send postcards using ready inhouse designs or upload their own (max 100K). Both have been serving our community for the past 2 years or so.

Re: [PHP] ICQ

2005-10-08 Thread Torgny Bjers
Al Hafoudh wrote: is it possible to connect to icq, send messages and etc? thanx It should be possible, since PHP has full socket support. I googled a bit and then checked the PHP Resource Index, and found the following: http://php.resourceindex.com/Complete_Scripts/Instant_Messaging/ which

Re: [PHP] domit and XML

2005-10-04 Thread Torgny Bjers
Erik Barba wrote: hi im new in the list i dont know where to write the email so i did it here, i am having a problem I have a xml file and im parsing with domit 1.0 but im from mexico, and we use é í ó ú á ñ the xml acept it but when the php show the code in html, i cant see the letters

Re: [PHP] PHP5 Webhost

2005-10-04 Thread Torgny Bjers
Michael Crute wrote: Hi All, I am in the process of looking for a webhost for the company I work for. I must have PHP5 support as the CMS I am using only supports PHP5. Does anyone know of any good quality hosts that also support PHP5 and MySQL for less than $40/mo? Dedicated hosting is right

Re: [PHP] PHP 5 Hosting

2005-10-02 Thread Torgny Bjers
Oliver Grätz wrote: Sheesh! No week passing by without people complaining about hosters missiong out on PHP5. This is one point where we in Germany seem to be lucky. The two biggest german hosters 11 (about 4 million domains) and Strato (about 2.5 million domains) both offer SSH and the

Re: [PHP] mail function-new line-security

2005-09-29 Thread Torgny Bjers
Peppy wrote: AJ, So what your reply means is that I should not have a new line character in any variable on my page??? Of course you can have newlines in your email message, just make sure that any user input is received through POST, and that you run a regular expression to validate that

Re: [PHP] PHP CLI - possible for mass mailing?

2005-09-27 Thread Torgny Bjers
Denis Gerasimov wrote: We are working on a PHP project that implements mass mailing to a large number of its subscribers (expected 100,000-200,000 users; not spam mailing BTW). So I am wondering if it is possible to use PHP CLI binary for this purpose and if there are any problems with PHP in

Re: [PHP] passing a variable with php_self

2005-09-27 Thread Torgny Bjers
Ross wrote: can someone show me the right way to do the following... a href=?=$PHP_SELF?action=bigger; ? I want to pass a variable to a self submitting link. Easiest way to do that is to use sprintf() or printf(): ?php $link_title = click my self-referring link; printf('a

Re: [PHP] best way to save program prefs to a file?

2005-09-27 Thread Torgny Bjers
Chris wrote: I'd like to save some program preferences to a txt file where they can be recalled and updated at a later time. Basically this will be a variable name and a value. Can someone suggest a reference or method to best perform this task? Thanks Chris BTW: I do not want to use

Re: [PHP] cache xml objects in php5

2005-09-26 Thread Torgny Bjers
Kevin Wang wrote: Hi All, My php5 web application needs to parse/marshall a bunch of large xml files into php5 objects at the beginning of handling each request. These xml files are static across all the requests and it is really time consuming to parse/marshall them into php5 objects. I am

Re: [PHP] php 4 script with php 5.

2005-09-24 Thread Torgny Bjers
. Warm Regards, Torgny Bjers -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php 4 script with php 5.

2005-09-24 Thread Torgny Bjers
that. This is in a db.php which defines how another script should utilize the database. I could copy the db.php into an email for someone to look over. thanks, ddh Quoting Torgny Bjers [EMAIL PROTECTED]: Dwayne Hottinger wrote: I am trying to transfer some databases and php scripts that populate them

Re: [PHP] php Slow with Mac OS X 10.4

2005-09-14 Thread Torgny Bjers
Quoting Nicolas Ross [EMAIL PROTECTED]: [snip] Now, in a different server room, we have a set of 3 xserves cluster node dual g5 with 4 gigs of ram each. One of them was upgraded to Mac OS X 10.4 (server) and the other 2 are still with 10.3. If I take the same setup (same compile options, same

Re: [PHP] installing php5 on apache2 as a module (on win xp)

2005-09-09 Thread Torgny Bjers
Cristian Ionitoiu wrote: Hi, I have a strange behaviour. After following all the suggested installation procedures for php5 and apache2, when I restart apache I get a warning window saying PHP Startup: Unable to load dynamic library 'C:\php\ext\php_mcrypt.dll' - The specified module could

Re: [PHP] Help: Get the value of pi up to 200+ digits?

2005-09-01 Thread Torgny Bjers
Wong HoWang wrote: Dear all, I'm trying to do like this but failed: ?php ini_set('precision',16); echo pi(); ? How can I get more digits after . ? I am fairly sure that you have to use BCMath for this: http://www.php.net/manual/en/ref.bc.php Give it a go and see what happens! :)

Re: [PHP] Re: upload file - clients path to file?

2005-08-30 Thread Torgny Bjers
IMHO this is just a design issue, why not just hide the upload field, display a message that they need not re-upload, and just add a hidden field with the name of the uploaded file and once they've corrected their fields, they re-post, and viola, you've got your file still. [EMAIL PROTECTED]

Re: [PHP] php vulnerability

2005-08-22 Thread Torgny Bjers
Shafiq Rehman wrote: My server was hacked last week and the message displayed on home page was spy kidz owns your server. I researched on internet and found that this is some kind of trojan which infects the *.index files. It penetrate from HTTP. Some paople were saying that there is

Re: [PHP] Upgrading PHP 4.2.3 to PHP 4.3.2

2005-08-16 Thread Torgny Bjers
T.N.Prasad wrote: HI All, Our company servers are being upgraded from 4.2.3 to 4.3.2. Is there any special care that I should take (as far as my scripts are concerned)? Plz help me. I'm new to PHP. Hello, You don't have to worry at all. Nothing have changed between those versions that

Re: [PHP] counting nested array

2005-08-16 Thread Torgny Bjers
Ing. Josué Aranda wrote: Hi to everyone.. now i have a little problem counting an nested array. Im using it to fill a Java TreeView... it looks like this: [snip] The number of the branches is not always the same.. (it depends on the query).. when i use count($array, COUNT_RECURSIVE) for nested

Re: [PHP] Problem with php.ini

2005-08-16 Thread Torgny Bjers
Tim Boring wrote: I'm having a problem with php-cli and php_mod reading my php.ini file. I've compiled php from source, during which process I set --with-config-file=/etc. Once the compile completed, I then copied php.ini-recommened to /etc/php.ini. After restarting Apache, I run phpinfo() and

Re: [PHP] ? PHP in XML document

2005-08-15 Thread Torgny Bjers
Labunski wrote: Hello, Is it possible to write some PHP code lines in the XML document? e.g. I want to add ?php require_once(read_database.php); ? to the xml document, but I don't know the right syntax to do this. Btw, I need this, cause I'm trying to make CMS system for Flash page. The

Re: [PHP] which operating system?

2005-08-15 Thread Torgny Bjers
Sebastian wrote: I will be building a new server and wondering what would be a good choice for php/mysql/apache other than redhat. I was thinking either Debian or CentOS. can anyone share their thoughts on them for php environment? does anyone use them on high traffic php sites? or is

Re: [PHP] Re: ? PHP in XML document

2005-08-15 Thread Torgny Bjers
Well, in this case, XML would care, since you'd be using a or inside a tag, so, in order for that to work, if what he meant was that he wanted to store PHP code directly inside the XML document, and not actually EXECUTE code INSIDE the XML file, he would have to use ![CDATA[bla]] syntax around

Re: [PHP] one more mysql question

2005-08-15 Thread Torgny Bjers
Shaw, Chris - Accenture wrote: I agree with Sebastian, there is no excuse for being arrogant and rude. I understand the frustration, but is there any need for some of the replies people get? If I can, I will try to help anyone, even if the thread is OT. C. On that note I think we can agree to

[PHP] Migrating PHP4 to PHP5 (WAS: 'God' has spoken... :-))

2005-08-15 Thread Torgny Bjers
Miles Thompson wrote: The problem with PHP 5 is that the ISP's have to be so conservative. There's no tagging mechanism which says process these files with PHP5, use PHP 4 for everything else. That would be so wonderful. Just to be able to set what PHP .so to use based on VirtualHost/ or

Re: [PHP] 'God' has spoken... :-)

2005-08-14 Thread Torgny Bjers
Sebastian wrote: Greg Donald wrote: On 8/14/05, Sebastian [EMAIL PROTECTED] wrote: now if they say php5 is 20% faster than php4 than i would upgrade overnight ;) Who is 'they' ? Go write a benchmark and see for yourself. obviously coming from the developers.. i guess im

Re: [PHP] curl?

2005-08-13 Thread Torgny Bjers
Wong HoWang wrote: Hi, Everybody! I got this when I execute the script: Fatal error: Call to undefined function: curl_init() in msnp9.class.php on line 259 is there anyway to solve it? Yes, by installing the curl libraries. If you are using Windows and PHP 5.0, you can get the curl library

Re: [PHP] Sort multi array.

2005-08-13 Thread Torgny Bjers
João Cândido de Souza Neto wrote: I´ve in a array the coluns: date , weekday , hour , etc... I need to sort him by coluns 0 and 2 but not found the correctly function to do it. Take a look at this manual page: http://www.php.net/manual/en/function.array-multisort.php Regards, Torgny -- PHP

Re: [PHP] 'God' has spoken... :-)

2005-08-13 Thread Torgny Bjers
Jochem Maas wrote: if you haven't seen it yet and are interested in the future of php you might be interested in the _big_ thread on php-internals that starts with the message: http://www.manucorp.com/archives/internals/200508/msg00398.php IMHO every halfbaked php coder should read it ;-)

[PHP] XSL namespaces and callbacks

2005-08-12 Thread Torgny Bjers
Hello, A while back I posted a question in relation to XSL namespaces and callbacks, but never got a response, not even a flame, which I found a bit odd for this list. :P I know this is pretty cutting-edge for PHP since the XSL library has only been used in PHP 5, well, except for the

Re: [PHP] logs problem

2005-08-12 Thread Torgny Bjers
FSA wrote: hi, i have a big php script with alot of db inserts and updates, what i want to do it's to log all this db commands into a table. I was wonderig if there is a better way to do this than the insert into logs_table the actual queryes. ty Depending the amount of queries and the

Re: [PHP] getting ip of server

2005-08-12 Thread Torgny Bjers
Tom Cruickshank wrote: Hello, I'm curious to know if there is a php command that can get the IP of the server it's running on. I could always do this... $results = exec(/sbin/ifconfig ethernet device | grep broadcast | awk '{print $2}', $value); but I would prefer to not have to use

Re: [PHP] optional rule quick_form

2005-08-11 Thread Torgny Bjers
I am assuming that this is after a post operation. If it's JavaScript, I think the question should be directed to another list. So, if you group the elements that should be validated after the checkbox has been checked, you can activate/deactivate the group validation rules based on the state of

Re: [PHP] Redisplaying information from a HTML form

2005-08-11 Thread Torgny Bjers
Ravi Gogna wrote: [snip] I've managed to write the checking program in such a way that clicking submit launches an 'error' page which displays at the top of the page which field is wrong, and then redisplays the form. (The form redisplay is done using a function which uses the variables I

Re: [PHP] optional rule quick_form

2005-08-11 Thread Torgny Bjers
Uroš Gruber wrote: Torgny Bjers said the following on 11.8.2005 14:44: I am assuming that this is after a post operation. If it's JavaScript, I think the question should be directed to another list. So, if you group the elements that should be validated after the checkbox has been checked

Re: [PHP] possible bug (string equality to zero)?

2005-08-11 Thread Torgny Bjers
No, Christopher, that is not a bug. As long as the var is empty, and if you try to compare with 0, or false, it will report true in the comparison because the variable does not contain anything, which will mean false for a boolean and 0 for a variable. If you are attempting to discover if a string

Re: [PHP] Exceptions: function x throws Exception

2005-08-05 Thread Torgny Bjers
Norbert Wenzel wrote: If there is a class with a function, that might throw exceptions and does NOT catch them, may I write that like in Java? class FooClass { public function foo() throws Exception { } } Or is there another possibility to tell a function throws an

Re: [PHP] Timing out a remote call

2005-08-04 Thread Torgny Bjers
Brian Dunning wrote: For one project, I'm required to access a web service for every page. Basically it returns a little bit of random text. I have no control over the web service, and there is no possibility of cacheing or bringing it locally: the requirements are that it be accessed live

[PHP] XSL custom xmlns/urn in PHP5 for callbacks

2005-08-02 Thread Torgny Bjers
Hello, I recently started working with PHP5 after having spent quite some time with C#.NET (at work), and I was wondering if there's a way to create a custom callback namespace for XSL in PHP5? The example below should illustrate what I need: ?xml version=1.0 encoding=UTF-8? xsl:stylesheet

Re: [PHP] Error Suppression with '@'

2005-08-02 Thread Torgny Bjers
Hello Justin, I would guess that this is mostly performance and memory related. When, for instance, trying to iterate an array, or a directory with files, using @ on all function calls, it will attempt to go through the array, attempting to allocate memory for each item, but when finding it

Re: [PHP] Converting integer type to long

2005-08-02 Thread Torgny Bjers
Wee Keat wrote: The problem is, I have not been able to convert PHP's integer/float type to long because there is no function that does it. Or is there? The reason why is because there's no real long support in PHP. But, since you mention a value such as 0.01, you are not looking for a long,