Re: [PHP] Re: CLI in background on windows

2008-12-18 Thread Daniel Kolbo
Ondrej Kulaty wrote: What about to try run it as service? I don't know exactly how to do that but service programs run in background on my Win XP ""Fanda"" pí¹e v diskusním pøíspìvku news:7d.3d.09584.c2f7a...@pb1.pair.com... Hi, I am looking for some method, how to run php cli script on

[PHP] Re: CLI in background on windows

2008-12-18 Thread Ondrej Kulaty
What about to try run it as service? I don't know exactly how to do that but service programs run in background on my Win XP ""Fanda"" pí¹e v diskusním pøíspìvku news:7d.3d.09584.c2f7a...@pb1.pair.com... > Hi, > I am looking for some method, how to run php cli script on background in > windows

Re: [PHP] SimpleXML - issue with getting data out of the object returned

2008-12-18 Thread Dan Joseph
On Thu, Dec 18, 2008 at 10:01 PM, German Geek wrote: > $val = (string) $x->Package->PackageID; > or > $val = (int) $x->Package->PackageID; > > Ha... I would have never figured that out... Thank you to you both! That did the trick. -- -Dan Joseph www.canishosting.com - Plans start @ $1.99/mon

Re: [PHP] SimpleXML - issue with getting data out of the object returned

2008-12-18 Thread German Geek
Tim-Hinnerk Heuer http://www.ihostnz.com On Fri, Dec 19, 2008 at 3:50 PM, Dan Joseph wrote: > Hi, > > I have a basic XML document that I am grabbing with > simplexml_load_string(), > here is the print_r: > > SimpleXMLElement Object > ( >[Package] => SimpleXMLElement Object >( >

[PHP] SimpleXML - issue with getting data out of the object returned

2008-12-18 Thread Dan Joseph
Hi, I have a basic XML document that I am grabbing with simplexml_load_string(), here is the print_r: SimpleXMLElement Object ( [Package] => SimpleXMLElement Object ( [PackageID] => 804 [PackageName] => Silver [BandwidthGB] => 20 [WebSto

Re: [PHP] utf8 php howto?

2008-12-18 Thread Daniel Kolbo
Daniel Kolbo wrote: Hello, I have a text file encoded in utf-8. i am using fopen/fgets/echo etc.. how do i display these utf8 characters from the file on the web? I have tried different combinations of header("Content-Type: text/html; charset=iso-8859-1"); header("Content-Type: text/html; char

[PHP] utf8 php howto?

2008-12-18 Thread Daniel Kolbo
Hello, I have a text file encoded in utf-8. i am using fopen/fgets/echo etc.. how do i display these utf8 characters from the file on the web? I have tried different combinations of header("Content-Type: text/html; charset=iso-8859-1"); header("Content-Type: text/html; charset=utf-8") and utf8_

Re: [PHP] CLI in background on windows

2008-12-18 Thread Fanda
Yes, it should be "task scheduler". :-) My Windows is in czech, sorry. I was trying commands you suggested before, but black window always blinks on screen. My soulution is to create new windows user and run my tasks under this user. In such case tasks run is not visible... Thanks for your tip

[PHP] SOLVED Re: [PHP] Variable Scope problem passing function parameters

2008-12-18 Thread Jim McIntyre
Jim McIntyre wrote: metastable wrote: Jim McIntyre wrote: $phpMail = new PHPMailer(); $phpMail->From = $from; $phpMail->AddAddress($this->to); $phpMail->Subject = $subject; $phpMail->Body = $body; return $phpMail->Send(); Never mind - I found the problem. It was a lo

Re: [PHP] Variable Scope problem passing function parameters

2008-12-18 Thread Jim McIntyre
metastable wrote: Jim McIntyre wrote: $phpMail = new PHPMailer(); $phpMail->From = $from; $phpMail->AddAddress($this->to); $phpMail->Subject = $subject; $phpMail->Body = $body; return $phpMail->Send(); $this -> to it has no meaning in the scope of your class. Appare

Re: [PHP] Variable Scope problem passing function parameters

2008-12-18 Thread metastable
Jim McIntyre wrote: > I'm new to PHP 5 and classes, but I've done a lot of ActionScript. > > I'm trying to use PHPMailer inside my own class (a service for > AMFPHP). I'm having problems getting the data that'spassed into my > class's send() method to the instance of the PHPMailer. > > Basically, I

[PHP] Variable Scope problem passing function parameters

2008-12-18 Thread Jim McIntyre
I'm new to PHP 5 and classes, but I've done a lot of ActionScript. I'm trying to use PHPMailer inside my own class (a service for AMFPHP). I'm having problems getting the data that'spassed into my class's send() method to the instance of the PHPMailer. Basically, I have this: class EmailAMF

Re: [PHP] Good PHP book?

2008-12-18 Thread franzemmanuel
Robert Cummings a écrit : On Wed, 2008-12-17 at 10:47 +, Richard Heyes wrote: Floppies hold 1.4 megs now? Mine don't and they're even dual-sided. :( What are "Floppies"? Is it a reference to a particular male problem? If so, then I want to know what dual sided means? Cheers, Rob. and m

Re: [PHP] Phpmyadmin password

2008-12-18 Thread VamVan
Yeah true thanks for pointing out. Thats what I meant !!! :) Blowfish (http://en.wikipedia.org/wiki/Blowfish_(cipher)) On Thu, Dec 18, 2008 at 6:11 AM, Jochem Maas wrote: > VamVan schreef: > .. > > May be u can do a bowl > > fish encryption > > ... > > > Thanks, > > V > > LOL. 'bowl fish' ... '

RE: [PHP] CLI in background on windows

2008-12-18 Thread Boyd, Todd M.
> -Original Message- > From: Fanda [mailto:d...@sidak.net] > Sent: Thursday, December 18, 2008 10:50 AM > To: php-general@lists.php.net > Subject: [PHP] CLI in background on windows > > Hi, > I am looking for some method, how to run php cli script on background > in > windows. It should be

[PHP] CLI in background on windows

2008-12-18 Thread Fanda
Hi, I am looking for some method, how to run php cli script on background in windows. It should be started by windows task manager. Do you have any idea? Thans, Fanda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Regex Problem

2008-12-18 Thread MikeP
""Boyd, Todd M."" wrote in message news:33bde0b2c17eef46acbe00537cf2a190037b7...@exchcluster.ccis.edu... > -Original Message- > From: MikeP [mailto:mpel...@princeton.edu] > Sent: Thursday, December 18, 2008 8:43 AM > To: php-general@lists.php.net > Subject: [PHP] Regex Problem > > Hello,

[PHP] Re: Php question from Newsgroup

2008-12-18 Thread MikeP
""Boyd, Todd M."" wrote in message news:33bde0b2c17eef46acbe00537cf2a190037b7...@exchcluster.ccis.edu... Mike -- I've "bottom posted" my reply, as is the convention for this list (and most others). Scroll down. From: Mike Peloso [mailto:mpel...@princeton.edu] Sent: Thursday, December 18,

RE: [PHP] Read/decode barcodes from an image

2008-12-18 Thread ceo
Certainly if the quality of the input can be improved by using some digital transfer that is not a fax, go for it... I assumed the OP already knew that, but perhaps not. The fax is going to cost you a LOT of accuracy, probably too much to make OCR even viable, really, but it depends on the

RE: [PHP] Read/decode barcodes from an image

2008-12-18 Thread Boyd, Todd M.
> -Original Message- > From: c...@l-i-e.com [mailto:c...@l-i-e.com] > Sent: Thursday, December 18, 2008 10:06 AM > To: php-general@lists.php.net > Subject: Re: [PHP] Read/decode barcodes from an image > > The barcodes are on faxes and whatnot, with no predictable skew, > position, nor orie

Re: [PHP] fread question

2008-12-18 Thread MikeP
you have magic_quotes_runtime turned on LOCALLY. Use phpinfo() to see. NOmagic_quotes_runtime Off you actually managed to put the backslashes into your text file. NO . . . . ,/()%...@!',''); //fix special chars in name $_POST[$fname.'_fname'] = strtr($_POST[$fname.'

Re: [PHP] still can't get a login with session working ... is there another way to mask the url parameter?

2008-12-18 Thread Ólafur Waage
1st. Replace your $sql query with this $sql = sprintf("SELECT * FROM admin WHERE UserName = '%s' AND Password = '%s'", mysql_real_escape_string($UserName), mysql_real_escape_string($Password)); $result = mysql_query($sql) or die(mysql_error()); Ólafur Waage olaf...@gmail.com On Thu, Dec 18, 2008

Re: [PHP] Read/decode barcodes from an image

2008-12-18 Thread ceo
AIUI: The barcodes are on faxes and whatnot, with no predictable skew, position, nor orientation. You've tried JOCR/GOCR, and they don't do very well. Here are your options: 1) Shell out the money for that PaperPort OMNI or whatever it is commercial OCR product. It *is* better than JOC

[PHP] RE: Php question from Newsgroup

2008-12-18 Thread Boyd, Todd M.
Mike -- I've "bottom posted" my reply, as is the convention for this list (and most others). Scroll down. From: Mike Peloso [mailto:mpel...@princeton.edu] Sent: Thursday, December 18, 2008 9:56 AM To: Boyd, Todd M. Subject: Php question from Newsgroup Todd, I have attached a few jpgs to s

Re: [PHP] fread question

2008-12-18 Thread ceo
PHP does *not* do the addslashes on $_POST when you cram something into it in your PHP code. It does it during the process of auto-filling up $_POST. So either: A) you have magic_quotes_runtime turned on LOCALLY. Use phpinfo() to see. B) you actually managed to put the backslashes into yo

[PHP] still can't get a login with session working ... is there another way to mask the url parameter?

2008-12-18 Thread Terion Miller
Still this won't pass the session to the next page is there a way to pass parameters in the url but mask them? maybe that would be easier, since I do have code that works passing the adminID on the url ... can a parameter be hashed after the fact? I tried echo-ing the fields on the next page a

[PHP] Re: runtime access to static variable

2008-12-18 Thread ceo
> Unfortunately, in the inherited DeployTask::execute(), "self::$STEPS" > does not refer to UpdateTask::$STEPS, it refers to DeployTask::$STEPS Use parent::$STEPS and call it done? Yes, I know, if you add another layer of class in between, then it's not parent:: anymore, but it seems a bit

RE: [PHP] fread question

2008-12-18 Thread Boyd, Todd M.
Hah! Forgot to add the link: 1. http://php.net/ini_set How would you guys have ever figured out that was the page on PHP's website you need to visit in order to view information about the ini_set() function?! ;) // Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: Read/decode barcodes from an image

2008-12-18 Thread Al
Al wrote: If anything can do it, it'll be ImageMagick Adam Randall wrote: I'm amazed that this either doesn't exist, or is hard to find. I basically am looking for a way to read in an image into PHP, or shell out to something on the Linux side, and determine, and see if it has a barcode in it

RE: [PHP] fread question

2008-12-18 Thread Boyd, Todd M.
> -Original Message- > From: MikeP [mailto:mpel...@princeton.edu] > Sent: Thursday, December 18, 2008 7:33 AM > To: php-general@lists.php.net > Subject: Re: [PHP] fread question > > Still having problems: > magic_quotes_runtime is off > BUT > magic_quotes_gpc is on > I cant change them mys

RE: [PHP] Regex Problem

2008-12-18 Thread Boyd, Todd M.
> -Original Message- > From: MikeP [mailto:mpel...@princeton.edu] > Sent: Thursday, December 18, 2008 8:43 AM > To: php-general@lists.php.net > Subject: [PHP] Regex Problem > > Hello, > I have a quirky behavior I'm trying to resolve. > I have a REGEX that will find a function definition i

[PHP] php 5.2.8 error_log - relative paths

2008-12-18 Thread Andre Hübner
Hello, i use in .htaccess php_flag log_errors 1 php_value error_log folder/file seems to be a new behavior that folder/file must be a absolut value. relativ path/file raises an open_basedir error which is set up in httpd.conf but folder/file is not outside open_basedir and is writeable. Is thi

[PHP] Regex Problem

2008-12-18 Thread MikeP
Hello, I have a quirky behavior I'm trying to resolve. I have a REGEX that will find a function definition in a php file: .function InsertQuery($table,$fields,$values). the REGEX is: $regex='/function [a-z]* *([$a-zA-Z]*)/'; the problem is that: 1. a slash is automattically put in front of

Re: [PHP] Phpmyadmin password

2008-12-18 Thread Jochem Maas
VamVan schreef: .. May be u can do a bowl > fish encryption ... > Thanks, > V LOL. 'bowl fish' ... 'fish bowl' ... I guess you meant to write 'blow' :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] fread question

2008-12-18 Thread MikeP
Still having problems: magic_quotes_runtime is off BUT magic_quotes_gpc is on I cant change them myself so I tried stripslashes That doesnt work though: $_POST[$fname] = fread($fileHandle, $_POST[$fname.'_size']); $test=$_POST[$fname]; $test3=stripslashes($test); $test3 and $test are the

Re: [PHP] fread question

2008-12-18 Thread MikeP
But this one is ON magic_quotes_gpc "Robert Cummings" wrote in message news:1229567238.8302.35.ca...@localhost... > On Wed, 2008-12-17 at 19:54 -0500, MikeP wrote: >> Hello, >> I have been trying to use fread to open a file, but it always escapes >> special characters. >> How do I open afile wit

Re: [PHP] fread question

2008-12-18 Thread MikeP
>From my phpinfo: magic_quotes_runtime Off "Robert Cummings" wrote in message news:1229567238.8302.35.ca...@localhost... > On Wed, 2008-12-17 at 19:54 -0500, MikeP wrote: >> Hello, >> I have been trying to use fread to open a file, but it always escapes >> special characters. >> How do I o

Re: [PHP] Read/decode barcodes from an image

2008-12-18 Thread Per Jessen
Adam Randall wrote: > I'm amazed that this either doesn't exist, or is hard to find. I > basically am looking for a way to read in an image into PHP, or shell > out to something on the Linux side, and determine, and see if it has a > barcode in it or not. If it does, I need to decode the barcode s

Re: [PHP] PHP Form email w/attachment

2008-12-18 Thread Richard Heyes
> thank god that some guys make it > simple for us ;) You're welcome. :-) -- Richard Heyes HTML5 Graphing for FF, Chrome, Opera and Safari: http://www.rgraph.org (Updated December 5th) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Form email w/attachment

2008-12-18 Thread Per Jessen
jeffery harris wrote: > I need to create a php form and mail it to a recipient (that I can > do). My question is how do I create an area for a file (.doc, or .pdf) > to be attached emailed along with other form data as well? > Take a look at an email you've received with an attachment. That's ho

[PHP] Re: PHP Form email w/attachment

2008-12-18 Thread Carlos Medina
jeffery harris schrieb: I need to create a php form and mail it to a recipient (that I can do). My question is how do I create an area for a file (.doc, or .pdf) to be attached emailed along with other form data as well? -Jeff Hi Jeffery, you need to upload the File with the Form inputfie