Re: [PHP] [ENCODING QUEUE] - anyone think of a good way to setup a queuing system so everyone gets their turn

2010-08-13 Thread Tristan
I don't know what hardware we have to be honest. I'm sure they are multi core and I know they are XEON's 64bit Linux Graphics card i'm sure is just some integrated garbage. As for software I am using FFMPEG Thanks, T On Fri, Aug 13, 2010 at 3:41 PM, Ashley Sheridan wrote: > On Fri, 2010-08-13

Re: [PHP] [ENCODING QUEUE] - anyone think of a good way to setup a queuing system so everyone gets their turn

2010-08-13 Thread Ashley Sheridan
On Fri, 2010-08-13 at 15:24 -0600, Tristan wrote: > Here's a question for you about encoding on the server. If two videos are > encoding at the same time. Do they share the processing power. > > lets say we have 2 vids same size > > 1 encodes at 1 minute > > and then if 2 are going at the same

Re: [PHP] [ENCODING QUEUE] - anyone think of a good way to setup a queuing system so everyone gets their turn

2010-08-13 Thread Tristan
Here's a question for you about encoding on the server. If two videos are encoding at the same time. Do they share the processing power. lets say we have 2 vids same size 1 encodes at 1 minute and then if 2 are going at the same time does it encode them both in 2 minutes? Thanks, T On Fri, Aug

Re: [PHP] [ENCODING QUEUE] - anyone think of a good way to setup a queuing system so everyone gets their turn

2010-08-13 Thread Ashley Sheridan
On Fri, 2010-08-13 at 14:48 -0600, Tristan wrote: > i have a list of people that uploaded their videos waiting to be encoded. > > these are the line items for the db > > id | member_id | created | status > > I just want to make sure that everyone gets a turn processing. > > I was thinking WHER

Re: [PHP] Encoding for W3C Validation

2010-08-04 Thread Richard Quadling
On 4 August 2010 13:33, Carlton Whitehead wrote: > That is definitely calling out for a loop. > > When I scan down the lines of code, the only part I see changing is the x > after $pic_x. You could make an array with all of the picture details and > then replace all of that repeated code with a lo

Re: [PHP] Encoding for W3C Validation

2010-08-04 Thread Carlton Whitehead
That is definitely calling out for a loop. When I scan down the lines of code, the only part I see changing is the x after $pic_x. You could make an array with all of the picture details and then replace all of that repeated code with a loop like so: $pics = array('my_first_picture.jpg', 'my_seco

Re: [PHP] Encoding for W3C Validation

2010-08-03 Thread Rick Dwyer
On Aug 3, 2010, at 3:36 PM, Ashley Sheridan wrote: > On Tue, 2010-08-03 at 15:32 -0400, Rick Dwyer wrote: >> >> On Aug 3, 2010, at 3:15 PM, Sebastian Ewert wrote: >> >> > Ashley Sheridan wrote: >> >> On Tue, 2010-08-03 at 15:00 -0400, Rick Dwyer wrote: >> >> >> >>> On Aug 3, 2010, at 2:47 PM,

Re: [PHP] Encoding for W3C Validation

2010-08-03 Thread Ashley Sheridan
On Tue, 2010-08-03 at 15:32 -0400, Rick Dwyer wrote: > On Aug 3, 2010, at 3:15 PM, Sebastian Ewert wrote: > > > Ashley Sheridan wrote: > >> On Tue, 2010-08-03 at 15:00 -0400, Rick Dwyer wrote: > >> > >>> On Aug 3, 2010, at 2:47 PM, Sebastian Ewert wrote: > >>> > Rick Dwyer wrote: > > H

Re: [PHP] Encoding for W3C Validation

2010-08-03 Thread Rick Dwyer
On Aug 3, 2010, at 3:15 PM, Sebastian Ewert wrote: > Ashley Sheridan wrote: >> On Tue, 2010-08-03 at 15:00 -0400, Rick Dwyer wrote: >> >>> On Aug 3, 2010, at 2:47 PM, Sebastian Ewert wrote: >>> Rick Dwyer wrote: > Hello List. > > In the Alt section of the IMG tag below, the va

Re: [PHP] Encoding for W3C Validation

2010-08-03 Thread Sebastian Ewert
Ashley Sheridan wrote: > On Tue, 2010-08-03 at 15:00 -0400, Rick Dwyer wrote: > >> On Aug 3, 2010, at 2:47 PM, Sebastian Ewert wrote: >> >>> Rick Dwyer wrote: Hello List. In the Alt section of the IMG tag below, the variable $myitem has a value of "Who's There". echo

Re: [PHP] Encoding for W3C Validation

2010-08-03 Thread Rick Dwyer
Thanks Ash... this worked. --Rick On Aug 3, 2010, at 3:01 PM, Ashley Sheridan wrote: > On Tue, 2010-08-03 at 15:00 -0400, Rick Dwyer wrote: > >> On Aug 3, 2010, at 2:47 PM, Sebastian Ewert wrote: >> >>> Rick Dwyer wrote: Hello List. In the Alt section of the IMG tag below, the

Re: [PHP] Encoding for W3C Validation

2010-08-03 Thread Ashley Sheridan
On Tue, 2010-08-03 at 15:00 -0400, Rick Dwyer wrote: > On Aug 3, 2010, at 2:47 PM, Sebastian Ewert wrote: > > > Rick Dwyer wrote: > >> Hello List. > >> > >> In the Alt section of the IMG tag below, the variable $myitem has a value > >> of "Who's There". > >> > >> echo " >> src='/itemimages/$m

Re: [PHP] Encoding for W3C Validation

2010-08-03 Thread Rick Dwyer
On Aug 3, 2010, at 2:47 PM, Sebastian Ewert wrote: > Rick Dwyer wrote: >> Hello List. >> >> In the Alt section of the IMG tag below, the variable $myitem has a value of >> "Who's There". >> >> echo " > src='/itemimages/$mypic' alt='$myitem' width='60' >> >> When running through W3C valid

Re: [PHP] Encoding for W3C Validation

2010-08-03 Thread Shreyas Agasthya
Rick, Probably Sebastian's fix might work but *htmlspecialchars* can help you, too. Regards, Shreyas On Wed, Aug 4, 2010 at 12:17 AM, Sebastian Ewert wrote: > Rick Dwyer wrote: > > Hello List. > > > > In the Alt section of the IMG tag below, the variable $myitem has a value > of "Who's There"

Re: [PHP] Encoding for W3C Validation

2010-08-03 Thread Ashley Sheridan
On Tue, 2010-08-03 at 14:41 -0400, Rick Dwyer wrote: > Hello List. > > In the Alt section of the IMG tag below, the variable $myitem has a value of > "Who's There". > > echo " src='/itemimages/$mypic' alt='$myitem' width='60' > > When running through W3C validator, the line errors out be

Re: [PHP] Encoding for W3C Validation

2010-08-03 Thread Sebastian Ewert
Rick Dwyer wrote: > Hello List. > > In the Alt section of the IMG tag below, the variable $myitem has a value of > "Who's There". > > echo " src='/itemimages/$mypic' alt='$myitem' width='60' > > When running through W3C validator, the line errors out because of the " ' " > in "Who's". >

Re: [PHP] Encoding Ampersands

2010-07-29 Thread Shawn McKenzie
On 07/28/2010 11:29 PM, Rick Dwyer wrote: > So htmlentities() will work for "Green, Red & Blue"? > > Will it work for "htm?color=blue&number=2&letter="? > > --Rick For ampersands yes, for other things no. Use the correct tool for the job. To output HTML use htmlentities(). To pass in

Re: [PHP] Encoding Ampersands

2010-07-28 Thread Rick Dwyer
Exactly what I was looking for! Thanks Josh. --Rick On Jul 29, 2010, at 12:33 AM, Josh Kehn wrote: > Rick- > > Give it a try! > > $test_one = "Green, Red & Blue"; > $test_two = "htm?color=blue&number=2&letter=a"; > > echo htmlentities($test_one); // Green, Red & Blue > echo htmlentities($te

Re: [PHP] Encoding Ampersands

2010-07-28 Thread Rick Dwyer
So htmlentities() will work for "Green, Red & Blue"? Will it work for "htm?color=blue&number=2&letter="? --Rick On Jul 29, 2010, at 12:23 AM, Josh Kehn wrote: > Rick- > > Probably would use htmlentities() instead. You could also do str_replace("&", > "&"); > > Regards, > > -Josh

Re: [PHP] encoding to a file

2008-05-18 Thread Ólafur Waage
This should work as expected. 2008/5/16 J. Manuel Velasco - UBILIBET <[EMAIL PROTECTED]>: > Hello. > > When I create a file I need to specify the encoding to ISO-8859-1, how can i > do this please ? > > I have read about stream:default:encoding() but I am not sure how to use it. > > Thanks in ad

Re: [PHP] Encoding of PHP files

2007-06-22 Thread Richard Heyes
Jochem Maas wrote: Richard Heyes wrote: Guus Ellenkamp wrote: What encoding should a PHP file itself have (so not it's output setting). Plain ASCII AFAIK. huh? I generally save my files in the same encoding as the output encoding of the site, this is so that literal strings are output corre

Re: [PHP] Encoding of PHP files

2007-06-22 Thread Jochem Maas
Richard Heyes wrote: > Guus Ellenkamp wrote: >> What encoding should a PHP file itself have (so not it's output setting). > > Plain ASCII AFAIK. huh? I generally save my files in the same encoding as the output encoding of the site, this is so that literal strings are output correctly. > --

Re: [PHP] Encoding of PHP files

2007-06-22 Thread Richard Heyes
Guus Ellenkamp wrote: What encoding should a PHP file itself have (so not it's output setting). Plain ASCII AFAIK. -- Richard Heyes 0844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Encoding problem

2007-02-05 Thread Guus Ellenkamp
Found it. Have to use: mysql_query("SET CHARACTER SET 'utf8'", $link); ""Guus Ellenkamp"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The document IS UTF-8. The character does not seem to be. It comes from a > mySQL database. However, also the database settings are also UTF-8.

Re: [PHP] Encoding problem

2007-02-05 Thread Guus Ellenkamp
The document IS UTF-8. The character does not seem to be. It comes from a mySQL database. However, also the database settings are also UTF-8. The field was entered into the database with phpMyAdmin. I tried it now local on my test-system and remote, so the database itself does not seem to be the

Re: [PHP] Encoding problem

2007-02-05 Thread Jon Anderson
Guus Ellenkamp wrote: I have a string with an n with a tilde. mb_detect_encoding says it's UTF-8. I set the http encoding to UTF-8 and also the internal encoding. However, I cannot produce proper output with echo $varwithtilde. echo $returnArray[$i]->address1.' has '.mb_detect_encoding($retu

Re: [PHP] Encoding issue with ?

2007-01-24 Thread Dave Goodchild
Thanks guys. The issue is that users can specify text as well as currency in the input field ie '£2 students / £5 general admission'.

Re: [PHP] Encoding issue with ?

2007-01-24 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-24 16:58:51 +0100: > currency values should be stored in the DB as integers (i.e. as penny > based values). no floats (so that you avoid any rounding errors) and > definitely no currency symbols! What about DECIMAL? > if you need to store which currency the price/a

Re: [PHP] Encoding issue with £

2007-01-24 Thread Jochem Maas
Dave Goodchild wrote: > This may be more of a mysql issue, but I am using php for my app so here > goes... > > I have a fee field in the database, and when users post events they can > specify entrance fee in £. In some, not all, of the fields I am getting, > for > example, £7 rather than £. Is t

Re: [PHP] Encoding issue with £

2007-01-24 Thread Frank Arensmeier
23 jan 2007 kl. 18.55 skrev Dave Goodchild: This may be more of a mysql issue, but I am using php for my app so here goes... I have a fee field in the database, and when users post events they can specify entrance fee in £. In some, not all, of the fields I am getting, for example, £7 r

Re: [PHP] Encoding issue with £

2007-01-23 Thread Larry Garfield
On Tuesday 23 January 2007 11:55 am, Dave Goodchild wrote: > This may be more of a mysql issue, but I am using php for my app so here > goes... > > I have a fee field in the database, and when users post events they can > specify entrance fee in £. In some, not all, of the fields I am getting, > fo

Re: [PHP] Encoding issue with £

2007-01-23 Thread tedd
At 5:55 PM + 1/23/07, Dave Goodchild wrote: This may be more of a mysql issue, but I am using php for my app so here goes... I have a fee field in the database, and when users post events they can specify entrance fee in £. In some, not all, of the fields I am getting, for example, £7 rathe

Re: [PHP] Encoding

2006-11-22 Thread Richard Lynch
On Wed, November 22, 2006 9:15 am, João Cândido de Souza Neto wrote: > I am facing a trouble in my system in which i am not able to show > ISO-8859-1 > encoding data. When i tried to use the follow meta tag it works in > firefox > but still not working in IE. > > > > In firefox it shows: REMÉDIO P

Re: [PHP] Encoding

2006-11-22 Thread Ivo F.A.C. Fokkema
On Wed, 22 Nov 2006 16:19:54 +0100, Jens Meyer wrote: > Hi! > > Could you check the default encoding of your webserver (in httpd.conf)? > > I noticed that the charset-information in "meta-information" is ignored > and the default-charset of the webserver is used. > > Kind regards, > >J

Re: [PHP] Encoding

2006-11-22 Thread Jens Meyer
Hi! Could you check the default encoding of your webserver (in httpd.conf)? I noticed that the charset-information in "meta-information" is ignored and the default-charset of the webserver is used. Kind regards, Jens JoXo CXndido de Souza Neto schrieb: > I am facing a trouble in my syst

Re: [PHP] Encoding PC-850

2006-10-30 Thread Dotan Cohen
On 30/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi! I need to be able to encode text to PC-850 but I have big trouble finding out info about this encoding. Does it even exist? I get a few google hits, but nothing useful. Any idea of how I can convert for example an UTF-8 string or an

Re: [PHP] Encoding PC-850

2006-10-30 Thread Ed Lazor
Would this help? http://us3.php.net/manual/en/function.mb-convert-encoding.php On Oct 30, 2006, at 7:21 AM, [EMAIL PROTECTED] wrote: Hi! I need to be able to encode text to PC-850 but I have big trouble finding out info about this encoding. Does it even exist? I get a few google hits, but

Re: [PHP] Encoding or obfuscating tool

2005-09-18 Thread J B
On 9/18/05, Rory Browne <[EMAIL PROTECTED]> wrote: > Personally I would be more interested in hearing how you can justify > obfuscating code before delivering it to a client. For the same reasons that most commercial software houses that distribute compiled software in binary form don't include

Re: [PHP] Encoding or obfuscating tool

2005-09-18 Thread Rory Browne
On 9/17/05, Anas Mughal <[EMAIL PROTECTED]> wrote: > We need to protect our intellectual property. We wish to encode or obfuscate > our PHP code before delivering it to a client. Wishing to, and needing to are two different things. > Could someone recommend an free PHP encoder or obfuscating too

Re: [PHP] Encoding or obfuscating tool

2005-09-18 Thread Terence
ioncube or Turck MMCache (free) Anas Mughal wrote: We need to protect our intellectual property. We wish to encode or obfuscate our PHP code before delivering it to a client. Could someone recommend an free PHP encoder or obfuscating tool. (This is a very small project so we can NOT justify b

Re: [PHP] encoding a + sign

2005-08-01 Thread Rory Browne
--- Original Message - > From: "Rory Browne" <[EMAIL PROTECTED]> > To: "Diana Castillo" <[EMAIL PROTECTED]> > Cc: > Sent: Monday, August 01, 2005 6:43 PM > Subject: Re: [PHP] encoding a + sign > > > > use + > > > > chec

Re: [PHP] encoding a + sign

2005-08-01 Thread Rory Browne
use + check out www.asciitable.com On 8/1/05, Diana Castillo <[EMAIL PROTECTED]> wrote: > what type of encoding should I use to send a "+" sign via XML? > > > -- > Diana Castillo > Destinia.com > C/Granvia 22 dcdo 4-dcha > 28013 Madrid-Spain > Tel : 00-34-913604039 Ext 216 > Fax : 00-34-91522

Re: [PHP] Encoding help!

2005-04-20 Thread Jochem Maas
Petar Nedyalkov wrote: On Wednesday 20 April 2005 03:05, Brian Dunning wrote: I know this is a common question but I have RTFM and STFW until I'm blue in the face - I really need some help here. :) I've got some forms into which users are going to enter text that frequently contains funny charact

Re: [PHP] Encoding help!

2005-04-20 Thread Petar Nedyalkov
On Wednesday 20 April 2005 03:05, Brian Dunning wrote: > I know this is a common question but I have RTFM and STFW until I'm > blue in the face - I really need some help here. :) > > I've got some forms into which users are going to enter text that > frequently contains funny characters (pilcrows

Re: [PHP] Encoding problems using phpMyAdmin

2005-01-16 Thread Lars B. Jensen
I am just curious why you do not upgrade to the latest stable 2.6.0-pl3? Because, any version in any patch level since 2.5.7-pl1 doesnt display shift-jis (japanese) properly - or anyway on my system. They seem to have broken the support for it, since that specific version. / Lars -- PHP Genera

Re: [PHP] Encoding problems using phpMyAdmin

2005-01-16 Thread Randy Johnson
I am just curious why you do not upgrade to the latest stable 2.6.0-pl3? Randy - Original Message - From: "Lars B. Jensen" <[EMAIL PROTECTED]> To: Sent: Sunday, January 16, 2005 11:40 PM Subject: Re: [PHP] Encoding problems using phpMyAdmin Just a quick note, this seem

Re: [PHP] Encoding problems using phpMyAdmin

2005-01-16 Thread Lars B. Jensen
Just a quick note, this seems to be a bug in phpMyAdmin since 2.5.7-pl1 - I submitted a bug report on the sourceforge website and awaits them to handle it. / Lars -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Encoding Question [NOT RESOVED]

2004-10-11 Thread Nick Wilson
* and then Nick Wilson declared > > > that one is using rawurlencode() but it's just as bad with urlencode - > > > How *should* I be doing this? > > > > is this how you tried to do it? > > > > $userAgent = "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"; > > curl_setopt($ch, CURLOPT_US

Re: [PHP] Encoding Question for getting pages

2004-10-11 Thread Nick Wilson
* and then Matt M. declared > > Mozilla%2F4.0%20%28compatible%3B%20MSIE%206.0%3B%20Windows%20NT%205.1%0A > > > > that one is using rawurlencode() but it's just as bad with urlencode - > > How *should* I be doing this? > > is this how you tried to do it? > > $userAgent = "Mozilla/4.0 (compat

Re: [PHP] Encoding Question for getting pages

2004-10-11 Thread Matt M.
> Mozilla%2F4.0%20%28compatible%3B%20MSIE%206.0%3B%20Windows%20NT%205.1%0A > > that one is using rawurlencode() but it's just as bad with urlencode - > How *should* I be doing this? is this how you tried to do it? $userAgent = "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"; curl_setopt($c

Re: [PHP] Encoding

2004-08-11 Thread Jason Wong
On Wednesday 11 August 2004 22:19, Kevin wrote: > How can I encode my string using my own key? Is there any method to do > this? > > i.e. using base64_encode() and convert_uuencode() functions? What are you trying to do? Those functions are meant to convert 8-bit binary files into a something sui

RE: [PHP] Encoding for uploaded files

2004-01-29 Thread memoimyself
On 29 Jan 2004 at 10:47, craig wrote: > specifally, you want: $_FILES['userfile']['type'] = The mime type of > the file, if the browser provided this information. An example would > be "image/gif". That's basically it and will work for common file types. However, it's the user's browser, not P

RE: [PHP] Encoding for uploaded files

2004-01-29 Thread craig
> I don't know if you are right here, or maybe I don't understood > correctly... the file type is actually the encoding of the > file? If a > file type is text/plain, where is the encoding format? ISO-8859-1? > > Puzzled! sorry, I misunderstood the question. I have no idea of how to get the

Re: [PHP] Encoding for uploaded files

2004-01-29 Thread Cesar Cordovez
I don't know if you are right here, or maybe I don't understood correctly... the file type is actually the encoding of the file? If a file type is text/plain, where is the encoding format? ISO-8859-1? Puzzled! Cesar craig wrote: check out http://www.php.net/manual/en/features.file-upload.ph

RE: [PHP] Encoding for uploaded files

2004-01-29 Thread craig
check out http://www.php.net/manual/en/features.file-upload.php, it spells out the entire upload process specifally, you want: $_FILES['userfile']['type'] = The mime type of the file, if the browser provided this information. An example would be "image/gif". -Craig > -Original Message

Re: [PHP] Encoding

2003-06-24 Thread dorgon
plase ISO-8859-2 is the one you'll need. Denis 'Alpheus' Cahuk wrote: So you don't know what encoding I should use? At 19:39 24.6.2003 +0800, you wrote: On Tuesday 24 June 2003 19:07, Denis 'Alpheus' Cahuk wrote: > My surname (Èahuk, I write it Cahuk) is writen with a C and a \/ above it.

RE: [PHP] Encoding

2003-06-24 Thread Jay Blanchard
[snip] So you don't know what encoding I should use? At 19:39 24.6.2003 +0800, you wrote: >On Tuesday 24 June 2003 19:07, Denis 'Alpheus' Cahuk wrote: > > My surname (Èahuk, I write it Cahuk) is writen with a C and a \/ above it. > > What encoding do I need so that every1 will see it? > >Can we ju

Re: [PHP] Encoding

2003-06-24 Thread Denis 'Alpheus' Cahuk
So you don't know what encoding I should use? At 19:39 24.6.2003 +0800, you wrote: On Tuesday 24 June 2003 19:07, Denis 'Alpheus' Cahuk wrote: > My surname (Èahuk, I write it Cahuk) is writen with a C and a \/ above it. > What encoding do I need so that every1 will see it? Can we just call you Den

Re: [PHP] Encoding

2003-06-24 Thread Jason Wong
On Tuesday 24 June 2003 19:07, Denis 'Alpheus' Cahuk wrote: > My surname (Èahuk, I write it Cahuk) is writen with a C and a \/ above it. > What encoding do I need so that every1 will see it? Can we just call you Denis? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software

RE: [PHP] Encoding /'s

2003-03-15 Thread John W. Holmes
> When my PHP page sends text that is being passed in, it places an "/" in > front of the apostrophe. How do I encode or decode this when I am > outputing > the variable? www.php.net/stripslashes They are added to GET, POST, COOKIE data according to the magic_quotes_gpc setting in php.ini. ---J

Re: [PHP] encoding problems

2003-02-09 Thread Gurhan Ozen
Hi Adam, I am not sure if my solution will work for you, because i don't know anything about your language, so i couldn't be sure of the results of the test:) You can get around that program by encoding the html page.. Add this lines between your head tags on the html pages: And see if it wil

Re: [PHP] Encoding problem ONLY with _command line_ PHP.exe

2002-07-15 Thread Analysis & Solutions
On Fri, Jul 12, 2002 at 11:02:54PM +0100, Emile Axelrad wrote: > Hello - My problem is as follows (I am trying to migrate from a mssql > server to a mysql server) OH! > The data in the MSSQL table is: Æã > > IF I call this PHP code from my browser (IE6) it results in the > following output: Æ

Re: [PHP] Encoding problem with command line PHP.exe

2002-07-12 Thread Analysis & Solutions
Emile: On Fri, Jul 12, 2002 at 09:58:53PM +0100, Emile Axelrad wrote: > $data = mssql_result(mssql_query("SELECT Field FROM table WHERE > ID='1'"),0); > mysql_insert("INSERT INTO table2 VALUES('$data')"); Ouch. First, you're mixing and matching mssql and mysql functions. Seco

Re: [PHP] Encoding

2001-04-09 Thread Yasuo Ohgaki
Take a look at www.zend.com for Zend Encoder or http://apc.communityconnect.com/ and get 1.0.9 source. Look for file name like README.Compiler. Regards, -- Yasuo Ohgaki ""Kevin Pate"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am creating a PHP/Apache