Re: [PHP] php generated javascript

2006-08-31 Thread Curt Zirzow
On 8/30/06, Shu Hung (Koala) [EMAIL PROTECTED] wrote: On 8/31/06, Peter Lauri [EMAIL PROTECTED] wrote: Koala, There is no difference with the php generated javascript and javascript on a static html page. Take a look at the source code of the page that has been generated in the browser,

Re: [PHP] Free Shopping Carts

2006-08-31 Thread Curt Zirzow
On 8/30/06, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] Are there free shopping carts that would work with PHP 5.0.X + and MySQL 4.1.X + and /or PostgresQL 8.1+ ? [/snip] Yes. Just in case: Try google: 'php mysql shopping' cart or 'php pgsql shopping cart' -- PHP General Mailing List

[PHP] RSS Creator

2006-08-31 Thread John Taylor-Johnston
Has anyone created an RSS feed creator in PHP? I could make one fast enough, but ... John -- John Taylor-Johnston - If it's not Open Source, it's Murphy's Law. '''Cégep de Sherbrooke: ô¿ô

Re: [PHP] Strange situation when saving a file

2006-08-31 Thread Curt Zirzow
Please remove your 'this message is for the sole use of the person...' thing or simply use a different account to ask questions.. On 8/29/06, Miguel Guirao [EMAIL PROTECTED] wrote: Hi all, I'm using ob_start() in order to save the content of a web page into a variable string and then save it

Re: [PHP] send a file or stream

2006-08-31 Thread Curt Zirzow
On 8/29/06, Rafael Mora [EMAIL PROTECTED] wrote: Hi! i want to send a file or output stream in a .php, but first compress it, I tryed the example to compress files but how do i do to send as answer to the http request?? Unlike my recent posts, this could be a candidate for using ob_* There

Re: [PHP] Not using cached version

2006-08-31 Thread Curt Zirzow
On 8/30/06, Stut [EMAIL PROTECTED] wrote: Peter Lauri wrote: I have some images stored in a database (only file name and other relevant information, rest stored in file system). I use the following html to access them: img src='image.php?imageid=123' / At some pages I have the same

Re: [PHP] image manipulation with php

2006-08-31 Thread Curt Zirzow
On 8/29/06, Ross [EMAIL PROTECTED] wrote: I have an saved images I output with this... img src=includes/viewphoto.php?id=?=$photo? I want to use getimagesize() to get the height and width of the image and if it is above a certain size then scale/ reduce it. The problems are (i) using

Re: [PHP] file type and recode

2006-08-31 Thread Curt Zirzow
On 8/29/06, Martin Marques martin@bugs.unl.edu.ar wrote: Simple question: Is there a built-in function in PHP to get the charset of a file, so that I can pass the right parameters to recode_file()? It depends. If it is a .txt file (nope) a .doc file (mabey, pending the .doc format) a .xml

Re: [PHP] help - outputting a jpeg

2006-08-31 Thread Curt Zirzow
On 8/29/06, Ross [EMAIL PROTECTED] wrote: I just get all the binary data output ? include(includes/config.php); $link = mysql_connect($host, $user, $password) or die ('somethng went wrong:' .mysql_error() ); mysql_select_db($dbname, $link) or die ('somethng went wrong, DB error:'

Re: [PHP] Problems with UTF

2006-08-31 Thread Curt Zirzow
:: top posted to be consistant:: I would go as far as configuring your default php.ini to send utf-8 as the default charset. Curt. On 8/28/06, Peter Lauri [EMAIL PROTECTED] wrote: Hi, Have you set header('Content-Type: text/html; charset=utf-8'); in your php script that you call via AJAX?

Re: [PHP] Re: image manipulation with php

2006-08-31 Thread Curt Zirzow
On 8/29/06, zerof [EMAIL PROTECTED] wrote: http://www.educar.pro.br/abc/gdlib/index.php?pageNum_rsNVER=22totalRows_rsNVER=67 zerof speako englisho, solo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Email with pregmatch

2006-08-31 Thread Curt Zirzow
On 8/27/06, Dave Goodchild [EMAIL PROTECTED] wrote: Try this: preg_match(/^([a-zA-Z0-9.])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-]+)+/, $_POST['email']); So: [EMAIL PROTECTED] is valid? Curt. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Email with pregmatch

2006-08-31 Thread Curt Zirzow
On 8/27/06, Peter Lauri [EMAIL PROTECTED] wrote: I found this on google, does this LONG function do anything more then your preg_match? i think a combo of what the function does and a few regex's will work. The issue is more on how idoes it pass all the rfc's on each part of the address, for a

[PHP] strip slashes from beginning and end of string in one expression

2006-08-31 Thread Dave M G
PHP list. This is another regular expression type of question. The very handy PHP function trim() takes excess white space off the beginning and end of a string. I'd like to be able to do the same thing, except instead of white spaces, trim excess slashes: / So for example, all of these:

Re: [PHP] strip slashes from beginning and end of string in one expression

2006-08-31 Thread Stut
Dave M G wrote: This is another regular expression type of question. The very handy PHP function trim() takes excess white space off the beginning and end of a string. I'd like to be able to do the same thing, except instead of white spaces, trim excess slashes: / So for example, all of

Re: [PHP] file type and recode

2006-08-31 Thread Martin Marques
On Wed, 30 Aug 2006, Curt Zirzow wrote: On 8/29/06, Martin Marques martin@bugs.unl.edu.ar wrote: Simple question: Is there a built-in function in PHP to get the charset of a file, so that I can pass the right parameters to recode_file()? It depends. If it is a .txt file (nope) a .doc file

[PHP] Re: strip slashes from beginning and end of string in one expression

2006-08-31 Thread M. Sokolewicz
Dave M G wrote: PHP list. This is another regular expression type of question. The very handy PHP function trim() takes excess white space off the beginning and end of a string. I'd like to be able to do the same thing, except instead of white spaces, trim excess slashes: / So for

Re: [PHP] send a file or stream

2006-08-31 Thread Rafael Mora
Thank you very much Curt!, I'm tests right now with this. The client is not a web browser, it is an application that calls the .php file with $_GET params, and the app waits to receive the file compressed, this is the way I want it to work! I'll let u know about this. But anyway thank you Rafa

Re: [PHP] Free Shopping Carts

2006-08-31 Thread The Doctor
On Thu, Aug 31, 2006 at 09:56:44AM +0200, Jose Leon wrote: Hello, On 8/31/06, The Doctor [EMAIL PROTECTED] wrote: Are there free shopping carts that would work with PHP 5.0.X + and MySQL 4.1.X + and /or PostgresQL 8.1+ ? I think it's not so hard to tell you an url, right? ;-)

RE: [PHP] Free Shopping Carts

2006-08-31 Thread Jay Blanchard
[snip] Actually we , customer and myself as admin, ran into: New Installation Please customize the new installation with the following options: Import Catalog Database: Fatal error: Call to undefined function osc_draw_checkbox_field() in /path/to/shop/install/templates/pages/install.php

[PHP] remove SimpleXML nodes

2006-08-31 Thread Javier Ruiz
Hi all, Is there any way to remove a non-unique* *node using SimpleXML? For example, let's say I have: $myXML = ENDXML database ... table name='one' ... /table table name='two' ... /table table name='three' ... /table /database ENDXML; So I want to do... $xmlDatabase =

[PHP] Re: strip slashes from beginning and end of string in one expression

2006-08-31 Thread Dave M G
M. Sokolewiczz, Stut, Thank you for your answers. Both are very helpful. I will use the trim() method, although it's helpful to know the regular expression for learning purposes. Unless I can find a way to make things much more complicated. Your time and advice is much appreciated. --

Re: [PHP] remove SimpleXML nodes

2006-08-31 Thread Paul Scott
On Thu, 2006-08-31 at 14:38 +0200, Javier Ruiz wrote: So I want to do... $xmlDatabase = new SimpleXMLElement($myXML); foreach ($xmlDatabase as $oneTable) { if ($oneTable['name'] == 'two') { /// HERE I WANT TO DELETE THE $oneTable NODE unset($oneTable); // --

[PHP] Texture and wrap

2006-08-31 Thread Emil Edeholt
Hi I would like to output an image from php where an input image is textured and wrapped around a frame. Like when you assemble a canvas on a frame (on, not under). So I get a sort of canvas looking texture on the image and that the edges of the image are wrapped around the sides of the

[PHP] Php and Cygwin SVN

2006-08-31 Thread Mariano Guadagnini
Hello list, I'm developing an application that fetches some files from a local svn repository, and shows them on request (using svn cat, svn list and such). Originally, it was deployed in Linux (Apache, PHP5.0) and worked perfectly well. I tried to port it to Windows (specifically, WinXP Pro

Re: [PHP] Texture and wrap

2006-08-31 Thread Emil Edeholt
Hi Thanks, but what I meant with wrapping around a frame was this: http://www.proformat.se/gfx/pic_006_kilram.jpg Not just a normal frame around the image. Emil Emil: Yes, that can be done by simply merging images (i.e., watermark). For example: http://xn--ovg.com/watermark The texture

Re: [PHP] Texture and wrap

2006-08-31 Thread tedd
At 4:08 PM +0200 8/31/06, Emil Edeholt wrote: Hi I would like to output an image from php where an input image is textured and wrapped around a frame. Like when you assemble a canvas on a frame (on, not under). So I get a sort of canvas looking texture on the image and that the edges of the

Re: [PHP] Email with pregmatch

2006-08-31 Thread tedd
At 1:11 AM -0700 8/31/06, Curt Zirzow wrote: so the question is does it pass local tests, which should be rather simple, the domain part gets rather complcated since you cant predict at what domain level we are talking about: [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL

[PHP] Re: Php and Cygwin SVN

2006-08-31 Thread Adam Zey
Mariano Guadagnini wrote: Hello list, I'm developing an application that fetches some files from a local svn repository, and shows them on request (using svn cat, svn list and such). Originally, it was deployed in Linux (Apache, PHP5.0) and worked perfectly well. I tried to port it to Windows

[PHP] Error Handling Library?

2006-08-31 Thread Jay Paulson
I've been doing some research and was wondering if anyone out there has written a library for error handling? I haven't found anything as of yet but would love to hear suggestions! Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Error Handling Library?

2006-08-31 Thread Rafael Mora
Hi!, u can extend the exception class and handle ur own errors, If u need help let me know! Rafa On 8/31/06, Jay Paulson [EMAIL PROTECTED] wrote: I've been doing some research and was wondering if anyone out there has written a library for error handling? I haven't found anything as of yet

Re: [PHP] Error Handling Library?

2006-08-31 Thread Robert Cummings
On Thu, 2006-08-31 at 11:12 -0500, Jay Paulson wrote: I've been doing some research and was wondering if anyone out there has written a library for error handling? I haven't found anything as of yet but would love to hear suggestions! PEAR Cheers, Rob. --

Re: [PHP] Texture and wrap

2006-08-31 Thread tedd
Emil: To continue top posting. Dude, an image is an image. You're not wrapping anything -- you're just producing an image that looks a certain way. My first example did not just put a frame around an image, it merged two images. If I had wanted to put a frame around your image, I would

Re: [PHP] remove SimpleXML nodes

2006-08-31 Thread Jay Paulson
So I want to do... $xmlDatabase = new SimpleXMLElement($myXML); foreach ($xmlDatabase as $oneTable) { if ($oneTable['name'] == 'two') { /// HERE I WANT TO DELETE THE $oneTable NODE unset($oneTable); // -- and this doesn't work... } } I tried to do the

Re: [PHP] remove SimpleXML nodes

2006-08-31 Thread Anas Mughal
Yes, I agree. SimpleXML is limited. Do not expect to find advanced features in SimpleXML. Regards. On 8/31/06, Jay Paulson [EMAIL PROTECTED] wrote: So I want to do... $xmlDatabase = new SimpleXMLElement($myXML); foreach ($xmlDatabase as $oneTable) { if ($oneTable['name'] ==

[PHP] Eaccelerator

2006-08-31 Thread Alex Turner
All, I have just had some very pleasing success with Eaccelerator on windows. Has anyone else been trying this on windows. Has anyone had production experience with this? Thanks for any feedback. I have written up the work I have done so far at

Re: [PHP] remove SimpleXML nodes

2006-08-31 Thread Anas Mughal
I found sample code. Hope this helps. $doc = new DOMDocument; if (!is_dir($source_dir)) { $logger-fatal(Source directory IN is not found. Terminating...); die(Source directory IN is not found. Terminating...); } $doc-Load($source_dir . / .

Re: [PHP] Texture and wrap

2006-08-31 Thread Jon Anderson
Emil Edeholt wrote: I would like to output an image from php where an input image is textured and wrapped around a frame. Like when you assemble a canvas on a frame (on, not under). So I get a sort of canvas looking texture on the image and that the edges of the image are wrapped around the

Re: [PHP] Texture and wrap

2006-08-31 Thread Emil Edeholt
Hi again Sorry if I was unclear what I wanted was of course what Jon Anderson said. I wanted what was pictured in the image I posted (the look of wrapping a canvas over a frame) with some kind of fake or simple 3d rendering. The pear libs for doing it seems like what I was looking for, I

Re: [PHP] Re: Php and Cygwin SVN

2006-08-31 Thread Mariano Guadagnini
Thanks for your reply. I checked those ports and seem nice. Actually, i use cygwin mainly because it was already installed on the Windows server. But the same problem arises with any command I execute trough shell_exec, no matter if it's a cygwin executable or a windows native app, the command

Re: [PHP] Re: Php and Cygwin SVN

2006-08-31 Thread Adam Zey
Look into the syntax of the Windows command start (open a console and type start /?). It's purpose is to start other processes, and it provides some flexibility as to how they're launched. One of the options is to hide the console windows. Regards, Adam Zey. Mariano Guadagnini wrote: Thanks

Re: [PHP] Re: character set when sending emails with PHP

2006-08-31 Thread Manuel Lemos
Hello, on 08/30/2006 06:48 AM Angelo Zanetti said the following: I have various PHP CRONTAB scripts that run and send automated emails to people, the subject often contains the TM character: ™, in most of the email clients the character shows correctly but in some webmail applications the

Re: [PHP] Free Shopping Carts

2006-08-31 Thread John Nichel
Curt Zirzow wrote: On 8/30/06, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] Are there free shopping carts that would work with PHP 5.0.X + and MySQL 4.1.X + and /or PostgresQL 8.1+ ? [/snip] Yes. Just in case: Try google: 'php mysql shopping' cart or 'php pgsql shopping cart' Freaking

Re: [PHP] Free Shopping Carts

2006-08-31 Thread John Nichel
Jay Blanchard wrote: Can we do anything else for you today? I'm a php programmer and I have a valve knocking in the engine of my car. Can you fix it? -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing

[PHP] Re: remove SimpleXML nodes

2006-08-31 Thread Adam Zey
Javier Ruiz wrote: Hi all, So I want to do... $xmlDatabase = new SimpleXMLElement($myXML); foreach ($xmlDatabase as $oneTable) { if ($oneTable['name'] == 'two') { /// HERE I WANT TO DELETE THE $oneTable NODE unset($oneTable); // -- and this doesn't work... } } any

Re: [PHP] Re: remove SimpleXML nodes

2006-08-31 Thread Curt Zirzow
On 8/31/06, Adam Zey [EMAIL PROTECTED] wrote: Javier Ruiz wrote: Hi all, So I want to do... $xmlDatabase = new SimpleXMLElement($myXML); foreach ($xmlDatabase as $oneTable) { if ($oneTable['name'] == 'two') { /// HERE I WANT TO DELETE THE $oneTable NODE

Re: [PHP] Texture and wrap

2006-08-31 Thread Micky Hulse
tedd wrote: http://xn--ovg.com/pframes Whoa, nice work Tedd! :) Very cool. Gives me some fun ideas... thanks for sharing. Cheers, Micky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Texture and wrap

2006-08-31 Thread Robert Cummings
On Thu, 2006-08-31 at 16:23 -0700, Micky Hulse wrote: tedd wrote: http://xn--ovg.com/pframes Whoa, nice work Tedd! :) Very cool. Gives me some fun ideas... thanks for sharing. Tedd, I'm very disappointed that it doesn't render properly in Opera 9. What is with the lockout Opera users

Re: [PHP] Texture and wrap

2006-08-31 Thread tedd
At 7:31 PM -0400 8/31/06, Robert Cummings wrote: On Thu, 2006-08-31 at 16:23 -0700, Micky Hulse wrote: tedd wrote: http://xn--ovg.com/pframes Whoa, nice work Tedd! :) Very cool. Gives me some fun ideas... thanks for sharing. Tedd, I'm very disappointed that it doesn't render properly

[PHP] Working with an existing PDF doc

2006-08-31 Thread tedd
Hi gang: I can create a pdf document on-the-fly pretty easily, as shown here: http://xn--ovg.com/pdf However, what I need is to find out how to open an existing pdf document and insert data into it -- does anyone have any experience in doing this, or references they can point me to? As

Re: [PHP] Free Shopping Carts

2006-08-31 Thread tedd
At 5:12 PM -0400 8/31/06, John Nichel wrote: Jay Blanchard wrote: Can we do anything else for you today? I'm a php programmer and I have a valve knocking in the engine of my car. Can you fix it? RTFOM O= Owner's :-) Valves don't knock -- they click. What commonly knocks are the

[PHP] Extream OT

2006-08-31 Thread Peter Lauri
HI, This is very Off Topic, but I have no clue where to go to find out this information fast enough. I have a client that just changed their mind and want me to host their web services. However, they have their current hosting setup on a Windows NT server. Now the question comes: How the

Re: [PHP] Error Handling Library?

2006-08-31 Thread Martin Alterisio
I'm curious, what features are you looking for in an error handling library? 2006/8/31, Jay Paulson [EMAIL PROTECTED]: I've been doing some research and was wondering if anyone out there has written a library for error handling? I haven't found anything as of yet but would love to hear

Re: [PHP] Extream OT

2006-08-31 Thread Chris
Peter Lauri wrote: HI, This is very Off Topic, but I have no clue where to go to find out this information fast enough. I have a client that just changed their mind and want me to host their web services. However, they have their current hosting setup on a Windows NT server. Now the

Re: [PHP] Extream OT

2006-08-31 Thread Paul Scott
On Fri, 2006-09-01 at 13:05 +1000, Chris wrote: Of course it's possible. Linux mail servers allow mailboxes, depending on which mta you are using it's different. No idea what plesk uses. A pretty safe bet is to export your mail as MBOX, this can be done via a PHP or perl script, and then