Re: [PHP] Re: convert files utf8

2010-06-04 Thread Tanel Tammik
"Ashley Sheridan" wrote in message news:1275607105.2217.31.ca...@localhost... > On Fri, 2010-06-04 at 00:38 +0300, Tanel Tammik wrote: > >> OP win xp pro >> >> >> ""Tanel Tammik"" wrote in message >> news:91.07.07323.be028...@pb1.pair.com... >> > Hi, >> > >> > does anyone know how to convert al

Re: [PHP] convert files utf8

2010-06-04 Thread Richard Quadling
On 3 June 2010 22:35, Tanel Tammik wrote: > Hi, > > does anyone know how to convert all files in a directory and in it's > subdirectories into utf8 encoding? i am using komodo edit as text-editor. > may it has a feature which i cannot find... > > Br > Tanel > > > > -- > PHP General Mailing List (h

[PHP] Script to add domain users to local groups on remote machines

2010-06-04 Thread Mayer, Jonathan
Hello, Has anyone got any ideas how I might add a user to a local group on a remote networked Windows machine via a PHP script? The idea is to make an automated tool where users can request access to a shared folder via our intranet, and after suitable approval the system add them to a group wh

[PHP] PHP Udate MySQL command

2010-06-04 Thread Gary
Untitled Document test __ Information from ESET Smart Security, version of virus signature database 5171 (20100604) __ The message was checked by ESET Smart Security. http://www.eset.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] convert files utf8

2010-06-04 Thread Shreyas
I bank on Notepad++ (open source editor) to do such a thing. It can convert an ASCI file to UTF -8. Give it a shot. On Fri, Jun 4, 2010 at 2:02 PM, Richard Quadling wrote: > On 3 June 2010 22:35, Tanel Tammik wrote: > > Hi, > > > > does anyone know how to convert all files in a directory and in

[PHP] Re: PHP Udate MySQL command

2010-06-04 Thread Gary
ed by phpmyadmin > > $sql = "INSERT INTO contact comments, VALUES = $test WHERE contact_id = > 33"; > > mysql_query($sql,$batchconnetion); > > $result = mysql_query($sql,$batchconnetion); > > if($result == true) { > echo "Successfully Inserte

Re: [PHP] PHP Udate MySQL command

2010-06-04 Thread Ashley Sheridan
"INSERT INTO contact comments, VALUES = $test WHERE contact_id = > 33"; > > mysql_query($sql,$batchconnetion); > > $result = mysql_query($sql,$batchconnetion); > > if($result == true) { >echo "Successfully Inserted Records"; >} else { >

Re: [PHP] CakePHP, alternatives?

2010-06-04 Thread Shreyas
Trying again. --Shreyas On Fri, Jun 4, 2010 at 3:10 AM, Shreyas wrote: > Larry, > > That's a very nice way to learn stuff. That's what I am doing but probably > in a very crude way. > > I am just reading a PHP book and doing those examples. Would you recommend > any other innovative way of lear

[PHP] Mysql search html tags excluded

2010-06-04 Thread Tanel Tammik
Hello, if there is some webpage content with html tags in database is it possible to search it without tags? data : 'you need some styling!' when i now search for 'you style' i don't want to get any rows! is it possible? when i search 'you styling' i get the row! Br Tanel -- PHP General

[PHP] xml_set_element_handler and equivalents

2010-06-04 Thread Gary .
I need to do essentially do what can be found in the "XML Tag Mapping example" (http://www.php.net/manual/en/example.xml-map-tags.php) - transform the names of some XML elements. Normally I'd use XSLT for this kind of thing, but due to environmental considerations I can't. I would prefer to do this

Re: [PHP] PHP Udate MySQL command

2010-06-04 Thread Gary
test WHERE contact_id = >> 33"; >> >> mysql_query($sql,$batchconnetion); >> >> $result = mysql_query($sql,$batchconnetion); >> >> if($result == true) { >>echo "Successfully Inserted Records"; >>} else { >>

Re: [PHP] CakePHP, alternatives?

2010-06-04 Thread Hans Åhlin
The thing I did beside the stuff already mentioned is, I took stuff from real life and I tried to define them and then write a program that handled/simulated it. ** Hans Åhlin Tel: +46761488019 icq: 275232967 http://www.kronan-net.com/ irc:/

Re: [PHP] Mysql search html tags excluded

2010-06-04 Thread Ashley Sheridan
On Fri, 2010-06-04 at 14:12 +0300, Tanel Tammik wrote: > Hello, > > if there is some webpage content with html tags in database is it possible > to search it without tags? > > data : 'you need some styling!' > > when i now search for 'you style' i don't want to get any rows! is it > possible?

Re: [PHP] Mysql search html tags excluded

2010-06-04 Thread Tanel Tammik
"Ashley Sheridan" wrote in message news:1275651371.2217.46.ca...@localhost... > On Fri, 2010-06-04 at 14:12 +0300, Tanel Tammik wrote: > >> Hello, >> >> if there is some webpage content with html tags in database is it >> possible >> to search it without tags? >> >> data : 'you need some stylin

Re: [PHP] Mysql search html tags excluded

2010-06-04 Thread Ashley Sheridan
On Fri, 2010-06-04 at 14:44 +0300, Tanel Tammik wrote: > "Ashley Sheridan" wrote in message > news:1275651371.2217.46.ca...@localhost... > > On Fri, 2010-06-04 at 14:12 +0300, Tanel Tammik wrote: > > > >> Hello, > >> > >> if there is some webpage content with html tags in database is it > >> po

Re: [PHP] Mysql search html tags excluded

2010-06-04 Thread Tanel Tammik
"Ashley Sheridan" wrote in message news:1275652342.2217.51.ca...@localhost... > On Fri, 2010-06-04 at 14:44 +0300, Tanel Tammik wrote: > >> "Ashley Sheridan" wrote in message >> news:1275651371.2217.46.ca...@localhost... >> > On Fri, 2010-06-04 at 14:12 +0300, Tanel Tammik wrote: >> > >> >> Hel

Re: [PHP] PHP Udate MySQL command Success

2010-06-04 Thread Gary
;> $test=$_POST['test']; >>> >>> //$sql="update contact set type = \'$test\' where item_id = \'164\'"; >>> //this >>> is the code created by phpmyadmin >>> >>> $sql = "INSERT INTO contact comments, VALU

Re: [PHP] Mysql search html tags excluded

2010-06-04 Thread Ashley Sheridan
On Fri, 2010-06-04 at 14:54 +0300, Tanel Tammik wrote: > "Ashley Sheridan" wrote in message > news:1275652342.2217.51.ca...@localhost... > > On Fri, 2010-06-04 at 14:44 +0300, Tanel Tammik wrote: > > > >> "Ashley Sheridan" wrote in message > >> news:1275651371.2217.46.ca...@localhost... > >> >

Re: [PHP] Mysql search html tags excluded

2010-06-04 Thread Tanel Tammik
"Ashley Sheridan" wrote in message news:1275652880.2217.54.ca...@localhost... > On Fri, 2010-06-04 at 14:54 +0300, Tanel Tammik wrote: > >> "Ashley Sheridan" wrote in message >> news:1275652342.2217.51.ca...@localhost... >> > On Fri, 2010-06-04 at 14:44 +0300, Tanel Tammik wrote: >> > >> >> "As

Re: [PHP] Mysql search html tags excluded

2010-06-04 Thread Ashley Sheridan
On Fri, 2010-06-04 at 15:00 +0300, Tanel Tammik wrote: > "Ashley Sheridan" wrote in message > news:1275652880.2217.54.ca...@localhost... > > On Fri, 2010-06-04 at 14:54 +0300, Tanel Tammik wrote: > > > >> "Ashley Sheridan" wrote in message > >> news:1275652342.2217.51.ca...@localhost... > >> >

Re: [PHP] CakePHP, alternatives?

2010-06-04 Thread tedd
At 11:21 PM +0530 6/3/10, Shreyas wrote: Folks, Just quite could not stop taking your inputs before I start my learning curve to shape up. Should I use one of these frameworks or just *K*eep *I*t *S*imple and *S*tupid and learn it the traditional way? Thoughts? -- Regards, Shreyas Shreyas:

[PHP] Re: xml_set_element_handler and equivalents

2010-06-04 Thread Gary .
On 6/4/10, Gary wrote: > I need to do essentially do what can be found in the "XML Tag Mapping > example" (http://www.php.net/manual/en/example.xml-map-tags.php) ... > I would prefer to do this in a somewhat OO manner so I can hide this > nastiness from the rest of the code. > > Obviously I can't p

Re: [PHP] convert files utf8

2010-06-04 Thread tedd
At 12:35 AM +0300 6/4/10, Tanel Tammik wrote: Hi, does anyone know how to convert all files in a directory and in it's subdirectories into utf8 encoding? i am using komodo edit as text-editor. may it has a feature which i cannot find... Br Tanel Hi Tanel: Check out: http://www.w3.org/Intern

Re: [PHP] Mysql search html tags excluded

2010-06-04 Thread tedd
At 2:12 PM +0300 6/4/10, Tanel Tammik wrote: Hello, if there is some webpage content with html tags in database is it possible to search it without tags? data : 'you need some styling!' when i now search for 'you style' i don't want to get any rows! is it possible? when i search 'you styling'

Re: [PHP] Parse info from 1,000 files to file

2010-06-04 Thread tedd
At 5:03 PM -0700 6/3/10, Jim Lucas wrote: Sam Smith wrote: > Can someone briefly point me to the functions I'll need to parse some > information from thousands of files in a single directory and then > prepare the extracted info into a single file for SQL import? > > Like file() or readfile(

php-general@lists.php.net

2010-06-04 Thread Michael Calkins
I would google this but I have no idea what this method is or how it works. app.php?ph=cus&id=4 Can some tell me what this either called or how it works?Can I get a tutorial for it please? Thank you! From,Michael Calkins elementFontfont-familyfont-sizefont-stylefont-variantfont-weightletter-spa

php-general@lists.php.net

2010-06-04 Thread Ashley Sheridan
On Fri, 2010-06-04 at 06:54 -0700, Michael Calkins wrote: > I would google this but I have no idea what this method is or how it works. > app.php?ph=cus&id=4 > Can some tell me what this either called or how it works?Can I get a tutorial > for it please? > Thank you! > > From,Michael Calkins >

php-general@lists.php.net

2010-06-04 Thread Michael Calkins
How is it used for a website then? From,Michael Calkins > From: a...@ashleysheridan.co.uk > To: michaelcalk...@live.com > CC: php-general@lists.php.net > Date: Fri, 4 Jun 2010 14:59:15 +0100 > Subject: Re: [PHP] What is "app.php?ph=cus&id=4"? > > On Fri, 2010-06-04 at 06:54 -0700, Michael Cal

php-general@lists.php.net

2010-06-04 Thread Midhun Girish
Depends on the server side language u intend to use... In php u can get those data via the super global array $_GET.. And u can use it anyway u want... Midhun Girish Development Lead MobAlive Technologies On Fri, Jun 4, 2010 at 7:45 PM, Michael Calkins wrote: > > How is it used for a websi

php-general@lists.php.net

2010-06-04 Thread Ken Kixmoeller
Michael Calkins wrote: How is it used for a website then? Some program is using the ID 4 and the value of "cus" to bring up information you requested on a prior page. Probably to query a database for those values. As Ashley said: it is GET ($_GET) data in a URL -- a way to pass values from

Re: [PHP] Script to add domain users to local groups on remote machines

2010-06-04 Thread tedd
At 11:16 AM +0100 6/4/10, Mayer, Jonathan wrote: Hello, Has anyone got any ideas how I might add a user to a local group on a remote networked Windows machine via a PHP script? The idea is to make an automated tool where users can request access to a shared folder via our intranet, and after sui

php-general@lists.php.net

2010-06-04 Thread tedd
At 7:15 AM -0700 6/4/10, Michael Calkins wrote: How is it used for a website then? It's just data received by a $_GET[] (data in the url) such as: Then you can use that data (after scrubbing) to obtain data from a database, such as: SELECT cost FROM items WHERE whatever='$whatever' AND id =

Re: [PHP] CakePHP, alternatives?

2010-06-04 Thread Shreyas
Tedd, That was very very very helpful. I so agree with you on the A,B and C example that you have quoted. It not only boosts my confidence with the answers but so will the employer's. I am reading this PHP for Dummies and then I plan to read Head First with PHP, MySQL, and Apache. Do you know any

php-general@lists.php.net

2010-06-04 Thread Daniel Brown
On Fri, Jun 4, 2010 at 09:54, Michael Calkins wrote: > > I would google this but I have no idea what this method is or how it works. > app.php?ph=cus&id=4 > Can some tell me what this either called or how it works?Can I get a tutorial > for it please? Split up, it is: app.php

php-general@lists.php.net

2010-06-04 Thread Paul M Foster
On Fri, Jun 04, 2010 at 06:54:34AM -0700, Michael Calkins wrote: > > I would google this but I have no idea what this method is or how it works. > app.php?ph=cus&id=4 > Can some tell me what this either called or how it works?Can I get a tutorial > for it please? This is standard HTTP/HTML term

RE: [PHP] Script to add domain users to local groups on remote machines

2010-06-04 Thread Mayer, Jonathan
-Original Message- From: tedd [mailto:tedd.sperl...@gmail.com] Sent: 04 June 2010 15:34 To: Mayer, Jonathan; php-general@lists.php.net Subject: Re: [PHP] Script to add domain users to local groups on remote machines At 11:16 AM +0100 6/4/10, Mayer, Jonathan wrote: >Hello, > >Has anyone go

[PHP] constant from variable

2010-06-04 Thread Tanel Tammik
Hi, define('MYCONST', 'something'); $my = 'my'; $const = 'const'; is it possible to get the value of MYCONST using variables $my and $const_ Br Tanel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] CakePHP, alternatives?

2010-06-04 Thread tedd
Tedd, That was very very very helpful. I so agree with you on the A,B and C example that you have quoted. It not only boosts my confidence with the answers but so will the employer's. I am reading this PHP for Dummies and then I plan to read Head First with PHP, MySQL, and Apache. Do you kno

RE: [PHP] constant from variable

2010-06-04 Thread Adam Petrone
Use the constant() function: echo constant( $my . $const ); http://www.php.net/manual/en/function.constant.php -Original Message- From: Tanel Tammik [mailto:keevit...@gmail.com] Sent: Friday, June 04, 2010 3:08 PM To: php-general@lists.php.net Subject: [PHP] constant from variable Hi,

Re: [PHP] constant from variable

2010-06-04 Thread Ashley Sheridan
On Fri, 2010-06-04 at 22:07 +0300, Tanel Tammik wrote: > Hi, > > define('MYCONST', 'something'); > > $my = 'my'; > $const = 'const'; > > > is it possible to get the value of MYCONST using variables $my and $const_ > > Br > Tanel > > > I don't really see how you can? The only correlation

RE: [PHP] CakePHP, alternatives?

2010-06-04 Thread Bob McConnell
From: tedd >>That was very very very helpful. I so agree with you on the A,B and >>C example that you have quoted. It not only boosts my confidence >>with the answers but so will the employer's. >> >>I am reading this PHP for Dummies and then I plan to read Head First >>with PHP, MySQL, and Apa

Re: [PHP] CakePHP, alternatives?

2010-06-04 Thread Adam Richardson
> > I am reading this PHP for Dummies and then I plan to read Head First with > PHP, MySQL, and Apache. Do you know any books that I can read online or I > can buy? I would be happy to do that. > Hi Shreyas, I think you've received some excellent advice. I like the Head First Books quite a bit.

Re: [PHP] constant from variable

2010-06-04 Thread Tanel Tammik
"Ashley Sheridan" wrote in message news:1275678975.2217.83.ca...@localhost... > On Fri, 2010-06-04 at 22:07 +0300, Tanel Tammik wrote: > >> Hi, >> >> define('MYCONST', 'something'); >> >> $my = 'my'; >> $const = 'const'; >> >> >> is it possible to get the value of MYCONST using variables $my and

Re: [PHP] constant from variable

2010-06-04 Thread Tanel Tammik
""Tanel Tammik"" wrote in message news:31.a3.00596.0d759...@pb1.pair.com... > > "Ashley Sheridan" wrote in message > news:1275678975.2217.83.ca...@localhost... >> On Fri, 2010-06-04 at 22:07 +0300, Tanel Tammik wrote: >> >>> Hi, >>> >>> define('MYCONST', 'something'); >>> >>> $my = 'my'; >>> $

Re: [PHP] constant from variable

2010-06-04 Thread Nathan Rixham
Tanel Tammik wrote: ""Tanel Tammik"" wrote in message news:31.a3.00596.0d759...@pb1.pair.com... "Ashley Sheridan" wrote in message news:1275678975.2217.83.ca...@localhost... On Fri, 2010-06-04 at 22:07 +0300, Tanel Tammik wrote: Hi, define('MYCONST', 'something'); $my = 'my'; $const = 'co

[PHP] Re: Script to add domain users to local groups on remote machines

2010-06-04 Thread Nathan Rixham
Mayer, Jonathan wrote: Hello, Has anyone got any ideas how I might add a user to a local group on a remote networked Windows machine via a PHP script? The idea is to make an automated tool where users can request access to a shared folder via our intranet, and after suitable approval the system

Re: [PHP] constant from variable

2010-06-04 Thread Tanel Tammik
"Nathan Rixham" wrote in message news:4c097083.3080...@gmail.com... > Tanel Tammik wrote: >> ""Tanel Tammik"" wrote in message >> news:31.a3.00596.0d759...@pb1.pair.com... >>> "Ashley Sheridan" wrote in message >>> news:1275678975.2217.83.ca...@localhost... On Fri, 2010-06-04 at 22:07 +

Re: [PHP] constant from variable

2010-06-04 Thread Nathan Rixham
Tanel Tammik wrote: "Nathan Rixham" wrote in message news:4c097083.3080...@gmail.com... Tanel Tammik wrote: ""Tanel Tammik"" wrote in message news:31.a3.00596.0d759...@pb1.pair.com... "Ashley Sheridan" wrote in message news:1275678975.2217.83.ca...@localhost... On Fri, 2010-06-04 at 22:07

[PHP] session variables in tmp

2010-06-04 Thread Stephen Sunderlin
trying out a CentOS release 5.2 (Final) V4_1_0 on AWS. Was working fine and now it seems that php has stopped writing any session variable to /tmp. I was cleaning up the user table in mysql and limiting permissions. Not sure that this would have anything to do with it. Restarted apache/my

Re: [PHP] CakePHP, alternatives?

2010-06-04 Thread Shreyas
@ All - Points duly noted. Thanks for all the mighty advice. As the owner of the thread, I consider the thread closed for now unless anyone has anything to add. --Shreyas On Sat, Jun 5, 2010 at 1:02 AM, Adam Richardson wrote: > > > > I am reading this PHP for Dummies and then I plan to read Hea