Re: [PHP] taking a one off payment

2006-11-16 Thread Google Kreme
On 16 Nov 2006, at 05:20 , Ross wrote: What is the best way to take a one off payent Paypal. (non-paypal) Well then, when you eliminate the obvious choice... I have used oscommece Speaking of oscommerce, has that package ever been fixed to run without register_globals? -- I don't

Re: [PHP] Tour Guide around Jordan (Middle East) OFFER

2006-11-14 Thread Google Kreme
On 14 Nov 2006, at 02:17 , Raven.Hawk wrote: Please note if you dont need it now you may will need it later so please save it for the future :) [CHOMP] -- This email is send by Demo Software /me wonders if Demo Software is at

Re: [PHP] Scrolling text

2006-11-14 Thread Google Kreme
On 13 Nov 2006, at 12:22 , Alain Roger wrote: I would like to have a scrolling text (as banner) on our website. er. eww. But OK. so, i would like to know if there is another way how to do a scrolling text without using flash, shockwave or other tool...only in php or HTML (in worse

Re: [PHP] Staff log-in

2006-11-11 Thread Google Kreme
On 10 Nov 2006, at 19:25 , Daevid Vincent wrote: -Original Message- From: Google Kreme [mailto:[EMAIL PROTECTED] Is that *really* your name?! :) Well, I TRIED to change it, but two guys in birks, tie-dyed t-shirts, and macramé briefcases showed up with an injunction

Re: [PHP] PHP Source File Encoding

2006-11-11 Thread Google Kreme
On 11 Nov 2006, at 08:45 , C Drozdowski wrote: Gotta a question whose answer should be really obvious to me but, for some reason, is just eluding me. Which encodings can PHP handle for source files? I've been using iso-8859-1 but what about utf-8? Try it? 5.0.6 seems to work fine with

Re: [PHP] activation through email

2006-11-11 Thread Google Kreme
On 11 Nov 2006, at 12:38 , Ahmad Al-Twaijiry wrote: I know that hotmail is filtering me as a possibly a spammer (because I use a shared mail server) and there is nothing I can do about this. Sure there is, move to a better neighborhood. And hotmail will not block you for being on a shared

Re: [PHP] gethostbyname failing?

2006-11-09 Thread Google Kreme
On 09 Nov 2006, at 15:09 , Henrik Hudson wrote: On Thursday 09 November 2006 15:56, Jürgen Wind [EMAIL PROTECTED] sent a missive stating: ?php echo 'pre'; print_r( gethostbynamel('www.google.com') ); ? Yes, I get nothing when running inside Apache. http://akane.covisp.net/~kreme/test.php

Re: [PHP] Staff log-in

2006-11-09 Thread Google Kreme
On 09 Nov 2006, at 12:51 , Robert Cummings wrote: On Thu, 2006-11-09 at 14:28 -0500, John Nichel wrote: Brynjar Guðnason wrote: can anyone of you do this for me? It's for a small non-profit orginisation. $80.00 an hour. 8 hour minimum. I am a *for-profit* individual. Didn't you charge

Re: [PHP] Pulling Data From a Page

2006-11-06 Thread Google Kreme
On 06 Nov 2006, at 12:59 , Phillip Baker wrote: So basically I want to hit a page from another site. If you are going to be polling another site and parsing it for data you'd better have permission to do so. -- I find Windows of absolutely no technical interest... Mac OS X is a

Re: [PHP] image commands (again)

2006-11-05 Thread Google Kreme
On 05 Nov 2006, at 15:31 , Ron Piggott (PHP) wrote: Content-type: image/ the browser expects only the image to output to the screen and no HTML As if should. Save the image in a temporary location and then send html that include and img ... / tag -- Though it's cold and lonely in the

[PHP] preg_split

2006-11-03 Thread Google Kreme
OK, I have this file: web stuff ?php $CID_FILE= 'vonage.callers'; $lines=file($CID_FILE); foreach ($lines as $line) { $cid=preg_split('^([^,]+),\s?(.*)', $line, -1, PREG_SPLIT_DELIM_CAPTURE); } ? web stuff the trouble is, $cid is empty. The actual file has

Re: [PHP] Re: preg_split

2006-11-03 Thread Google Kreme
On 03 Nov 2006, at 12:32 , Myron Turner wrote: 1. A preg_ expression has to have the delimeters '/^([^,]+),\s?(.*)/'. Ah, well, that would make a difference. http://akane.covisp.net/~kreme/vonage.phps http://akane.covisp.net/~kreme/vonage.php $cid[$i]=preg_split('/^([^,]+),\s?(.*)/',

Re: [PHP] Re: preg_split

2006-11-03 Thread Google Kreme
On 03 Nov 2006, at 15:56 , Stut wrote: Google Kreme wrote: On 03 Nov 2006, at 12:32 , Myron Turner wrote: 2. Why do you need this complex expression to split at a comma? This '/,/' would do the trick. And even simpler explode(',', $line); Because I need to split only at the FIRST

Re: [PHP] Stupid question of the day (Editing text file in $HOME via web)

2006-10-31 Thread Google Kreme
On 31 Oct 2006, at 09:20 , Ed Lazor wrote: On Oct 30, 2006, at 11:34 PM, Google Kreme wrote: So, do I whack up something where I just load the file into a HTML Textarea and then write it back (simple enough, though possibly rather dangerous), or is there something straightforward I should

[PHP] Stupid question of the day (Editing text file in $HOME via web)

2006-10-30 Thread Google Kreme
I have a text file on a server that I want someone to be able to edit via the web. I need it to have some modicum of security, but it's nothing particularly important and security is not the main concern. I am perfectly willing to simply http-auth it, if need be. But it need to be easily

Re: [PHP] strtotime

2006-10-25 Thread Google Kreme
On 24 Oct 2006, at 19:07 , Brad Chow wrote: $date=(2006-10-26); $date=strtotime($date); $date=date('Y-m-1',$date); $now=strtotime(+3 month, strtotime($date)); $lastday=strtotime(-1 day, $now); echo date('Y-m-d',$lastday); //2006-12-31 Yep, that's pretty much exactly what I do. I suspect there

Re: [PHP] Comment management

2006-10-23 Thread Google Kreme
On 23 Oct 2006, at 09:12 , tedd wrote: Does anyone have any recommendations or can point me to a simple content manager for such a purpose? Do you need a content manager? Sounds like you want a blog like setup where you post a entry (code) and people can comment. Wordpress is nice. Or

Re: [PHP] Screen Shots

2006-10-23 Thread Google Kreme
On 23 Oct 2006, at 08:32 , Dotan Cohen wrote: I give this information to spread awareness, not to spread malicious code, FUD, exploits, or anything else. On he other hand, IE related malicious code and exploits should be distributed as widely as possible as it is the only way MSFT will fix

Re: [PHP] Ensuring all links go to index.php

2006-10-20 Thread Google Kreme
On 20 Oct 2006, at 02:00 , Dave M G wrote: So... my question is, why is the /user portion of my URL being retained as a directory? You need RewriteEngine On and RewriteBase and RewriteCond and RewriteRule, it sounds like. Not really a php issue per se. -- I wrote this song two hours

Re: [PHP] PHP 5.16 and Sihuson

2006-10-19 Thread Google Kreme
On 19 Oct 2006, at 02:30 , Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2006-10-18 10:57:52 -0600: php -v PHP 5.1.6 with Suhosin-Patch 0.9.5 (cli) (built: Oct 18 2006 08:36:59) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies The

Re: [PHP] What is the smallest, fastest web server to run PHP and SSL (on a soekris box)

2006-10-19 Thread Google Kreme
On 18 Oct 2006, at 17:25 , Daevid Vincent wrote: I need to run a httpd server that can serve up PHP, SQL Lite, and SSL on a little Soekris box (ie. a 486 with 32MB RAM and 32MB CF storage). There's thttp which is really really small. However, keep in mind, Apache has been around for long

Re: [PHP] regex

2006-10-19 Thread Google Kreme
On 19 Oct 2006, at 07:49 , Bagus Nugroho wrote: Hi All, If we have variable like : $var1 = 'abcde 12'; $var2 = 'abcdefghi 34'; $var3 = 'abc 20 def'; Then we want output like : $var1 = 'abcde'; $var2 = 'abcdefghi'; $var3 = 'abc def'; How regex can help us?. Well, stripping the digits is

Re: [PHP] regex

2006-10-19 Thread Google Kreme
On 19 Oct 2006, at 07:56 , John Nichel wrote: $var3 = 'abc 20 def'; Then we want output like : $var3 = 'abc def'; How regex can help us?. Use preg_replace to replace all numbers with nothing. $var = preg_replace ( /\d+/, , $var ); Nope, that will leave $var3 = 'abc def'; (note the double

Re: [PHP] corrupt image when viewed using PHP

2006-10-18 Thread Google Kreme
On 18 Oct 2006, at 05:44 , Angelo Zanetti wrote: We also found another possible solution being that we use ImageMagick to convert the jpeg to a jpeg, then it will load properly. But now we would have to convert each image that comes in and maybe only 10% of the images come from a Nokia

[PHP] PHP 5.16 and Sihuson

2006-10-18 Thread Google Kreme
php -v PHP 5.1.6 with Suhosin-Patch 0.9.5 (cli) (built: Oct 18 2006 08:36:59) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies This configuration cause no end of problems, and I finally compiled php without the Suhosin-Patch. Everything is

Re: [PHP] corrupt image when viewed using PHP

2006-10-18 Thread Google Kreme
On 18 Oct 2006, at 09:56 , Richard Lynch wrote: Kind of a hack, but think of it as an import filter and maybe even program it generically enough that you *CAN* do more import filters and then you open up a world of possbilities for other image formats to be supported some day in the future.

Re: [PHP] Re: Understanding persistent connections...

2006-10-13 Thread Google Kreme
On 13 Oct 2006, at 06:35 , [EMAIL PROTECTED] wrote: ATTENTION! A message you recently sent to a 0Spam.com user with the subject Re: [PHP] Re: Understanding persistent connections... was not delivered because they are using the 0Spam.com anti-spam service. Please click the link below to

Re: [PHP] Re: Understanding persistent connections with oci8

2006-10-12 Thread Google Kreme
On 12 Oct 2006, at 11:10 , Bauer, Jay W wrote: Again if someone is using this oci8.persistent_timeout they are using it because they want a way of controlling how long these connections stay around. Well, are they really? I would think they are using it to free up idle connections for use

Re: [PHP] PHP Mailer and SMTP = SPAM?

2006-10-11 Thread Google Kreme
On 10 Oct 2006, at 12:37 , Richard Lynch wrote: Very simple to code/implement/maintain. Oh? How simple is it? (yes, this is an oblique request for code :) -- Nothing like grilling a kosher dog over human hair to bring out the subtle flavors. -- PHP General Mailing List

Re: [PHP] Working with overly aggressive anti-spam measures [SOLVED]

2006-10-11 Thread Google Kreme
On 10 Oct 2006, at 19:57 , Dave M G wrote: It took me a little while to realize that the Spamassassin always says that an email is possible scam if it has any score above zero, but it takes a score of 5.0 to actually be deleted as spam. No no no, this is not at all true. First off,

Re: [PHP] Re: Miserable escape string problem

2006-10-05 Thread Google Kreme
On 05 Oct 2006, at 10:50 , [EMAIL PROTECTED] wrote: So, yes, there is no escaping for { in PHP and that would be it. So what is {{$var1} : {$var2}} ?? -- MEGAHAL: within my penguin lies a torrid story of hate and love. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: Miserable escape string problem

2006-10-05 Thread Google Kreme
On 05 Oct 2006, at 11:37 , Chris Shiflett wrote: Google Kreme wrote: So what is {{$var1} : {$var2}} Within a quoted string, you can surround variable names with braces for clarity. This is especially helpful for situations like this, where the rest of the string interferes with syntax

Re: [PHP] WebMail client

2006-10-04 Thread Google Kreme
On 04 Oct 2006, at 19:28 , Glenn Richmond wrote: http://www.roundcube.net/ I can't say enough good things about the roundcube project. Ajax- based, like a desktop email client in a browser. Still got some minor bugs, but works pretty well. Note that it's still a Beta at this point.

Re: [PHP] Breaking lines

2006-10-03 Thread Google Kreme
On 03 Oct 2006, at 12:40 , Deckard wrote: Richard Lynch wrote: First, you're scaring the [bleep] out of me from a security standpoint writing mysql passwords into files... It's not that unusual. It might not be unusual, but it's not that bright. It's a matter of securing the web server.

Re: [PHP] Breaking lines

2006-10-03 Thread Google Kreme
On 03 Oct 2006, at 14:16 , Richard Lynch wrote: On Tue, October 3, 2006 1:51 pm, Google Kreme wrote: And yeah, a key is better, but I've not gotten that far. See, whatever you do in that general vein of thought, your PHP script ends up needing to get the file. Well, yes, but at least

Re: [PHP] WebMail client

2006-10-02 Thread Google Kreme
On 02 Oct 2006, at 02:57 , Jyrki Laurila wrote: http://www.roundcube.net/ That's pretty nice. Is there a mailing list for it? -- You know, in a world in which Bush and Blair can be nominated for the Nobel Peace Prize, for having dared to take the necessary decision to launch a war on

Re: [PHP] how do I get this line to work inside double quotes

2006-10-02 Thread Google Kreme
On 02 Oct 2006, at 14:56 , Richard Lynch wrote: $mail_body .= font size=\2\ face=\Verdana, Arial, Helvetica, sans-serif\ . stripslashes($mail_text) . /font; Can we also comment on the horror that is the font tag? I thought I was gonna puke... No? OK, moving along, nothing to see. -- The

Re: [PHP] Client Computer Registration

2006-10-02 Thread Google Kreme
On 02 Oct 2006, at 15:11 , Richard Lynch wrote: And they'd have to be complete and total idiots to use the IP address for authentication/identification. This is Key Bank. Morons goes without saying. Though, honestly, if this is your BANK, they've really got no business allowing you to

Re: [PHP] how do I get this line to work inside double quotes

2006-10-02 Thread Google Kreme
On 02 Oct 2006, at 17:13 , tedd wrote: At 4:59 PM -0600 10/2/06, Google Kreme wrote: On 02 Oct 2006, at 14:56 , Richard Lynch wrote: $mail_body .= font size=\2\ face=\Verdana, Arial, Helvetica, sans-serif\ . stripslashes($mail_text) . /font; Can we also comment on the horror

Re: [PHP] moving file from one server to another

2006-09-30 Thread Google Kreme
On 30 Sep 2006, at 03:29 , Nick Wilson wrote: I need to let users upload to the regular LAMP box, but then copy the image over to the custom image server (which does not have php or any kind of cgi capability). I was considering using exec() and scp to do this, but thought i'd ask and see if

Re: [PHP] Changing values in .htaccess

2006-09-29 Thread Google Kreme
On 28 Sep 2006, at 22:23 , Curt Zirzow wrote: As i mentioned using .htaccess should be your last resort; there is a big performance hit big? You're joking. It's a miniscule hit in all but the most contrived of circumstances. Even the most complex websites are rarely more than 4 or 5

Re: [PHP] Changing values in .htaccess

2006-09-29 Thread Google Kreme
On 29 Sep 2006, at 08:24 , tedd wrote: At 2:53 AM -0600 9/29/06, Google Kreme wrote: I also prefer to put custom php directives into htaccess, but that's probably just my personal preference. I agree, I just found several uses for .htaccess that I can not live without -- it's great. What

Re: [PHP] Changing values in .htaccess

2006-09-28 Thread Google Kreme
On 28 Sep 2006, at 14:30 , Curt Zirzow wrote: If you can, set this on a per directory setting in your virtualhost setting within a Directory or Location, instead of turning on .htaccess. Er... why? So you have to get root privs to edit your virtual conf? there's nothing wrong with .htaccess,

Re: [PHP] Print or Echo takes lots of time

2006-09-25 Thread Google Kreme
On 25 Sep 2006, at 06:11 , Sancar Saran wrote: $strPage = html yada dayda; ... $strPage.= another html tags; ... $strPage.= getSqlDataAndCreateSomeHtmlCOde(); If this is generating hundred of K of HTML, use ' instead of (yes, it's faster). -- I'm sitting here with 4 Megs of RAM trying to

Re: [PHP] array_sum($result)=100

2006-09-24 Thread Google Kreme
On 24 Sep 2006, at 10:41 , Penthexquadium wrote: On Sun, 24 Sep 2006 19:06:11 +0300, Ahmad Al-Twaijiry [EMAIL PROTECTED] wrote: I have array of numbers and I want to get out of it a list of numbers that if I sum them it will be 100, here is my list (for example ) : I think you can try to

Re: [PHP] [OFF] PHP/MySQL contractor needed

2006-09-22 Thread Google Kreme
On 22 Sep 2006, at 11:14 , Robert Cummings wrote: Geee, way to fight back against the shrinking distance of the global community brought to you by the Internet. I'm just curious why so many posters for jobs feel the need to force a local boundary. Is the quality of work somehow better

[PHP] Grrrrr... Re: Returned mail: User unknown

2006-09-21 Thread Google Kreme
On 20 Sep 2006, at 22:47 , [EMAIL PROTECTED] wrote: - The following addresses had permanent fatal errors - [EMAIL PROTECTED] -Transcript of session follows - ... while talking to postoffice.local.: RCPT To:[EMAIL PROTECTED] 550 5.1.1 unknown or illegal alias: [EMAIL

Re: [PHP] Resource problem affecting Curl functions

2006-09-20 Thread Google Kreme
On 19 Sep 2006, at 12:12 , Mark Krenz wrote: I run a shared webserver with a few hundred vhost containers in Apache's config. Are these vhosts all contained in httpd.conf, or are they separate files? Does it make a difference? -- ...when you're no longer searching for beauty or love,

Re: [PHP] Resource problem affecting Curl functions

2006-09-20 Thread Google Kreme
On 20 Sep 2006, at 06:09 , Mark Krenz wrote: On Wed, Sep 20, 2006 at 06:34:32AM GMT, Google Kreme [EMAIL PROTECTED] said the following: On 19 Sep 2006, at 12:12 , Mark Krenz wrote: I run a shared webserver with a few hundred vhost containers in Apache's config. Are these vhosts all

Re: [PHP] Is there a list of all Timezones as an array or someting?

2006-09-20 Thread Google Kreme
On 20 Sep 2006, at 06:15 , Chris Boget wrote: $timeZonesArray = array( 'GMT'= array( 'GMT' = +0 // GMT Er... ok, but that seems to be missing quite a lot. For example, I notice that India Standard Time (IST; UTC +5:30) is missing from your array. Granted, it's only 1.1

Re: [PHP] php/css and .htaccess

2006-09-20 Thread Google Kreme
On 20 Sep 2006, at 16:18 , tedd wrote: However, FireFox / Mozillia won't accept a css file if a .htaccess file reads as indicated above. Any ideas as to how to get FireFox to play nice? Yep, you need to specify header('Content-Type: text/css') This is because Mozilla/Firefox is, as far as

Re: [PHP] getting base domain and sub domains from url?

2006-09-16 Thread Google Kreme
On 16 Sep 2006, at 16:26 , Kenneth Andresen wrote: It gives the top level ones, but I can't seem to find the lower specifications covering such as .co.uk .com.mx etc. There is no lower 'specification' because each one is unique. .mx is administered, for example, by www.nic.mx (I believe),

Re: [PHP] Pre-printed forms

2006-09-15 Thread Google Kreme
On 14 Sep 2006, at 05:35 , Man-wai Chang wrote: How do you guys and gals use PHP+HTML+CSS to print a report to preprinted forms with precision? PDF. Printing support in HTML, even with CSS2 and 3, is primitive (and not well supported). Generating a PDF is pretty straight forward though.

Re: [PHP] Question on explode and join.

2006-09-15 Thread Google Kreme
On 13 Sep 2006, at 11:02 , Dave Goodchild wrote: $_SESSION['profane'] = false; foreach ($_POST as $value) { foreach ($swearbox as $profanity) { if (preg_match(/$profanity/i, $value)) { $errors = true; $_SESSION['profane'] = true;