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

[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 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 WHERE DISTINCT(member_id) and created (oldest) but i see some flaw in th

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". >

[PHP] Encoding for W3C Validation

2010-08-03 Thread Rick Dwyer
Hello List. In the Alt section of the IMG tag below, the variable $myitem has a value of "Who's There". echo " http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

[PHP] Encoding Ampersands

2010-07-28 Thread Rick Dwyer
Hello List. I have variables displaying content from mysql fields. The contents contains & like "Dogs & Cats"... so naturally the W3C validator chokes on them. Is there a way to encode so they display properly on the page but the validator is OK with them? Is the answer as simple as: urlenc

[PHP] Encoding problems on IIS7 + FastCGI on windows server 2008

2009-07-02 Thread Jon Lau
Hi, The php scripts works OK on windows 2000 server ( it supports chinese, english & japanese - UTF-8 encoding) but it shows ??? ( non-english chars ) when copied to IIS7 + Fastcgi on windows 2008. Is there some settings to change in php.ini ? Regards, Jon Lau -- PHP General Mailing List

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

[PHP] encoding to a file

2008-05-16 Thread J. Manuel Velasco - UBILIBET
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 advance. --

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:

[PHP] Encoding of PHP files

2007-06-22 Thread Guus Ellenkamp
What encoding should a PHP file itself have (so not it's output setting). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Encoding of PHP files

2007-06-22 Thread Guus Ellenkamp
What encoding should a PHP file itself have (so not it's output setting). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] encoding php codes

2007-02-25 Thread Danial Rahmanzadeh
Zend Guard is a good software for encoding php applications. but that's too expensive. I searched for a free encoder software and found PHP Encoder: http://www.freedownloadscenter.com/Web_Authoring/Scripting_Tools/PHP_Encoder.html but i don't know if PHP Encoder is powerful. please tell me if you

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

[PHP] Encoding problem

2007-02-05 Thread Guus Ellenkamp
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($returnArray[$i]->address1) d

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

[PHP] Encoding issue with £

2007-01-23 Thread 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 rather than £. Is this an encoding issue? Many thanks

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

[PHP] Encoding

2006-11-22 Thread Jo�o C�ndido de Souza Neto
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 PARA O GADO In IE it shows: REM?IOS PARA O GADO Could someone help me? Thanks in

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

[PHP] Encoding PC-850

2006-10-30 Thread emil
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 ISO-8859-1 to this PC-850 format? Thanks for any input.

[PHP] encoding problem when inserting into database

2006-04-28 Thread Zouari Fourat
Hello, Am having days trying to solve my problem : Using PostgreSQL database with server and client encoding set to utf8. I can enter any accentuated data on PHPPgAdmin interface and can see it stored like i entered it. The problem that when using a php script, it throw an error when trying to ins

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

[PHP] Encoding or obfuscating tool

2005-09-16 Thread Anas Mughal
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 buying the Zend encoder. However, if there is any othe

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

[PHP] encoding a + sign

2005-08-01 Thread Diana Castillo
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-915228673 email: [EMAIL PROTECTED] Web : http://www.hotelkey.com http://www.destinia.com -- PHP General Mail

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

[PHP] Encoding help!

2005-04-19 Thread Brian Dunning
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, foreign text, etc). So I need to encode it before writing i

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

[PHP] Encoding problems using phpMyAdmin

2005-01-16 Thread Lars B. Jensen
I seem to have problems getting phpMyAdmin showing shift_jis properly, after upgrading to PHP5 on my FreeBSD box. mySQL is running version 4.1.8. My application works excellent, the problem only exist in phpmyadmin. Anyone ran into this problem before ? I've tried to google for it, but didnt re

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

[PHP] Encoding Question for getting pages

2004-10-11 Thread Nick Wilson
Hello, If im using cURL to grab pages, i like to set a $referer and $userAgent string. Easy enough right? If I do not encode the referer and ua strings my cURL functions do not seem to work, BUT, if I *do* encode them, they come out looking like this in the server logs.. Mozilla%2F4.0%20%28comp

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

[PHP] Encoding

2004-08-11 Thread Kevin
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? -- Kevin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Encoding

2004-08-11 Thread Jason Wong
On Wednesday 11 August 2004 19:11, Kevin wrote: > I have heard about PHP Encoding technique. What exactly it does and how is > it useful? > > Any more help will really be appreciated. google > PHP Encoding > Thanks a lot for giving your time. Thank google. -- Jaso

[PHP] PHP Encoding

2004-08-11 Thread Kevin
Greetings, I have heard about PHP Encoding technique. What exactly it does and how is it useful? Any more help will really be appreciated. Thanks a lot for giving your time. -- Kevin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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
rfile']['type'] = The mime type of the file, if > > the browser provided this information. An example would > > be "image/gif". > > > > -Craig > > > > > >>-Original Message- > >>From: Cesar Cordovez

Re: [PHP] Encoding for uploaded files

2004-01-29 Thread Cesar Cordovez
[mailto:[EMAIL PROTECTED] Sent: January 29, 2004 10:35 AM To: [EMAIL PROTECTED] Subject: [PHP] Encoding for uploaded files Hi list! How can I know the encoding for an uploaded file? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

RE: [PHP] Encoding for uploaded files

2004-01-29 Thread craig
Craig > -Original Message- > From: Cesar Cordovez [mailto:[EMAIL PROTECTED] > Sent: January 29, 2004 10:35 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Encoding for uploaded files > > > Hi list! > > How can I know the encoding for an uploaded file? > &g

[PHP] Encoding for uploaded files

2004-01-29 Thread Cesar Cordovez
Hi list! How can I know the encoding for an uploaded file? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] encoding problem

2004-01-03 Thread Pedro Salgueiro
Hi. I have made a script in php that calls a java program. This java program will make a connection to a PostgreSQL db and do some operations. That java program works just fine if I run it on a console, but when it is php to runing it, it gives some errors related to the charset encoding. The erro

[PHP] encoding problem

2003-12-27 Thread Pedro Salgueiro
Hi. I have made a script in php that calls a java program. This java program will make a connection to a PostgreSQL db and do some operations. That java program works just fine if I run it on a console, but when it is php to runing it, it gives some errors related to the charset encoding. The erro

[PHP] Encoding problem (french character) in txt file on Mac OS X

2003-09-10 Thread Thierry Santacana
Hi, I've tried several things but I can't get out of this issue ! I have this meta-tag in my header : When I write some strings with french accentuated characters in a .txt file with fwrite(), then when I open the file with SimpleText or TextEdit (Mac OS X 10.2) or even with pico and emacs, I

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

[PHP] Encoding

2003-06-24 Thread Denis 'Alpheus' Cahuk
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? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

[PHP] Encoding /'s

2003-03-15 Thread Doug Coning
Hi All, 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? Thanks, Doug Coning -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

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

[PHP] encoding problems

2003-02-09 Thread adam muller
Hello everybody. I need some help. Please, look at www.vba.sk, you can see a little encoding problems. It is because the server/php is working in win1250 charset and mysql database in 8859-2. Is there any possibility, how to convert php to 8859-2 or mysql to win1250. thanx. -- PHP General Maili

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: Æ

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

2002-07-12 Thread Emile Axelrad
Hello - My problem is as follows (I am trying to migrate from a mssql server to a mysql server) The data in the MSSQL table is: Æã IF I call this PHP code from my browser (IE6) it results in the following output: Æã and it also places into the MySQL database the value: Æã However, if I

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

[PHP] Encoding problem with command line PHP.exe

2002-07-12 Thread Emile Axelrad
Hello - My problem is as follows: The data in the MSSQL table is: Æã IF I call this PHP code from my browser (IE6) it results in the following output: Æã and it also places into the MySQL database the value: Æã However, if I call this PHP code from the command line, using "php.exe tes

[PHP] Encoding problem with command line PHP.exe

2002-07-12 Thread Emile Axelrad
Hello - My problem is as follows: The data in the MSSQL table is: Æã IF I call this PHP code from my browser (IE6) it results in the following output: Æã and it also places into the MySQL database the value: Æã However, if I call this PHP code from the command line, using "php.exe tes

[PHP] Encoding/Decoding

2002-01-29 Thread Devin Atencio
Dear PHP Users, I was wanting some input on your ideas. I want to be able to encrypt data and then store it into a database and then decrypt the information and display it when I need the data. I have played around with a few things from the PHP website but have problems with a few things. Does

[PHP] Encoding Code

2002-01-04 Thread Devin Atencio
I have mcrypt installed and I would like to encrypt Like say a block of code then insert it into a database. It looks like when I encrypt more than 1 word it seems To get weird on me and doesn't encrypt or decrypt Correctly. Does anyone know how I can encrypt like a paragraph And then beable to

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

[PHP] Encoding

2001-04-09 Thread Kevin Pate
I am creating a PHP/Apache/PostgreSQL project for a client and I want to keep them from "prying" at my source code. How can I encode or compile the PHP source code into a binary format? Kevin Pate RHCE / MCSE / CCNA Pate Consulting [EMAIL PROTECTED] www.pateconsulting.com main 832.237.5920 fax 8