[PHP] Doubt on why some syntaxis is not used for PHP

2009-06-12 Thread Manuel Aude
I'm gonna guess that there might be some syntaxis problems or something, since I would guess the following make sense to the PHP language. Arrays: Since the + operator already gives the union of two arrays, why isn't the - operator for differences and | for intersections? I would find those to be

Re: [PHP] opendir() Question

2009-06-12 Thread Parham Doustdar
Hello there Andrew, Thank you very much for your help. I didn't know such an extention existed. :) -- --- Contact info: Skype: parham-d MSN: fire_lizard16 at hotmail dot com email: parham90 at GMail dot com "Andrew Ballard" wrote in message news:b6023aa40906121312m47034863k9c502e07d66c4...@mai

Re: [PHP] Re: Dynamic Titles

2009-06-12 Thread Austin Caudill
Yes, I corrected this problem. Now, the URL of each page is being displayed as the title. We are making progress! Now I just need to figure out why the URLs are shown as the title, and not whaty I want to be shown. Austin Caudill --- On Fri, 6/12/09, David Robley wrote: From: David Robley

Re: [PHP] Re: Dynamic Titles

2009-06-12 Thread David Robley
On Sat, 13 Jun 2009, you wrote: > Well, im no longer getting any errors now, but its still not working. > You can see it here: http://www.newtuts.com. When you go there, it > should say "Photoshop tutorials, Flash tutorials . . .". This should be > the default page. When you click on "Support", the

RE: [PHP] Re: Form handling

2009-06-12 Thread Dajve Green
> -Original Message- > From: Manuel Lemos [mailto:mle...@acm.org] > Sent: 11 June 2009 07:21 > To: Eddie Drapkin > Cc: PHP General Mailing List > Subject: [PHP] Re: Form handling > > Hello, > > on 06/10/2009 03:10 PM Eddie Drapkin said the following: > > I've been charged with writing a

Re: [PHP] opendir() Question

2009-06-12 Thread Andrew Ballard
2009/6/12 Parham Doustdar : > Hi there, > I need to create a PHP script that will connect to an  FTP, get a listing of > files/directories from it, and displays them in a table. Now, there is only > one problem here. > I tried connecting with opendir(), like this: > opendir("ftp://...";); > but i

[PHP] opendir() Question

2009-06-12 Thread Parham Doustdar
Hi there, I need to create a PHP script that will connect to an FTP, get a listing of files/directories from it, and displays them in a table. Now, there is only one problem here. I tried connecting with opendir(), like this: opendir("ftp://...";); but it seems it doesn't work with FTP. Now, is

Re: [PHP] phpMyAdmin, localhost, mysql overhead

2009-06-12 Thread Eddie Drapkin
Some important differences: InnoDB: -row level locking -transactional support -foreign key support MyISAM: -table-level locking -no transactions -no foreign keys If that doesn't sell you, definitely head to google :) On Fri, Jun 12, 2009 at 2:12 PM, Jônatas Zechim wrote: > I really don’t know

RES: [PHP] phpMyAdmin, localhost, mysql overhead

2009-06-12 Thread Jônatas Zechim
I really don’t know the differences betwen MyISAM and InnoDB yet but I’ll google for it right now. Thank u. Zechim De: Eddie Drapkin [mailto:oorza...@gmail.com] Enviada em: sexta-feira, 12 de junho de 2009 15:05 Para: Nitsan Bin-Nun Cc: Jônatas Zechim; php-general@lists.php.net Assunto

RES: [PHP] phpMyAdmin, localhost, mysql overhead

2009-06-12 Thread Jônatas Zechim
Thank u Nitsan. I’ll proceed with my app now. Zechim De: nit...@binnun.co.il [mailto:nit...@binnun.co.il] Em nome de Nitsan Bin-Nun Enviada em: sexta-feira, 12 de junho de 2009 15:01 Para: Jônatas Zechim Cc: php-general@lists.php.net Assunto: Re: [PHP] phpMyAdmin, localhost, mysql overhead

Re: [PHP] phpMyAdmin, localhost, mysql overhead

2009-06-12 Thread Eddie Drapkin
The better question is why are you using MyISAM tables? Unless there's a legitimate reason to prefer MyISAM over InnoDB, you should be using InnoDB. On Fri, Jun 12, 2009 at 2:01 PM, Nitsan Bin-Nun wrote: > There is no way to avoid it since whenever you delete a row in a myisam > table you creat

Re: [PHP] phpMyAdmin, localhost, mysql overhead

2009-06-12 Thread Nitsan Bin-Nun
There is no way to avoid it since whenever you delete a row in a myisam table you create a space in the order of the rows, this space is expressed by a little bit of extra file size of the database. This extra file size is called in phpmyadmin as "overhead", you can kill this over head either by ru

RES: [PHP] phpMyAdmin, localhost, mysql overhead

2009-06-12 Thread Jônatas Zechim
I have other tables running but only this give me ‘overhead’. I’d know why this table does this and if is bad for my MySQL Server? Is there anyway to avoid it? Zechim De: nit...@binnun.co.il [mailto:nit...@binnun.co.il] Em nome de Nitsan Bin-Nun Enviada em: sexta-feira, 12 de junho de

[PHP] Re: truncate a mb-string to a given octet length?

2009-06-12 Thread Tom Worster
On 6/12/09 11:50 AM, "Tom Worster" wrote: > say a table in the db has a varchar(255) column, 255 being the max number of > octets of strings that can go in the column. now say the php script very > occasionally has to deal with utf8 input strings with octet length > 255 -- it > needs to select ro

Re: [PHP] phpMyAdmin, localhost, mysql overhead

2009-06-12 Thread Nitsan Bin-Nun
I haven't read all your mail, I'm sorry for it in advance, but I think that you should know that "overheard" is just a blasting phrase for something which was made up by phpmyadmin. Basically, when you run a lot of DELETE or UPDATE queries on a table an "overhead" is created, generally speaking th

Re: [PHP] truncate a mb-string to a given octet length?

2009-06-12 Thread Tom Worster
On 6/12/09 11:52 AM, "Eddie Drapkin" wrote: > Correct me if I'm wrong, but should varchar 255 with a utf8 character set mean > 255 unicode characters, not octets? in mysql, the length refers to the storage space of the string, not the decoded character count. i don't know about other dbms. > O

[PHP] phpMyAdmin, localhost, mysql overhead

2009-06-12 Thread Jônatas Zechim
Hi there, i have this table running on my localhost: CREATE TABLE `caffecheckout_compra_itens` ( `compra_key` varchar(23) NOT NULL, `item_id` int(5) NOT NULL, `item_valor` decimal(10,2) NOT NULL, `item_peso` decimal(5,3) NOT NULL, `item_qtd` int(3) NOT NULL, `item_data` int(10) NOT NUL

Re: [PHP] [php] read/write error

2009-06-12 Thread HELP!
ALSO TRYING 0X0A or A still no respond. its realy frustrating becuase written or readiing is a simple straight foward On Wed, Jun 10, 2009 at 3:51 PM, Robin Vickery wrote: > 2009/6/8 HELP! > >> opening of the sorket is ok and writting LOGIN packet to the sorket is >> also >> ok but reading the

Re: [PHP] [php] read/write error

2009-06-12 Thread Robin Vickery
Hello Mr HELP! 2009/6/12 HELP! > > I can not get the stream_get_contents() to work.  it's returning empty. Is that simply because there's nothing to read from the socket? > If you have a login details "ALOGINPASS 1A" cant you just fwrite($ft, > "ALOGINPASS 1A"); or do you need to add other thi

Re: [PHP] truncate a mb-string to a given octet length?

2009-06-12 Thread Eddie Drapkin
Correct me if I'm wrong, but should varchar 255 with a utf8 character set mean 255 unicode characters, not octets? On Fri, Jun 12, 2009 at 11:50 AM, Tom Worster wrote: > say a table in the db has a varchar(255) column, 255 being the max number > of > octets of strings that can go in the column.

Re: [PHP] socket communication programming

2009-06-12 Thread Shawn McKenzie
HELP! wrote: > hi > I can not get the stream_get_contents() to work. it's returning empty. > If you have a login details "ALOGINPASS 1A" cant you just fwrite($ft, > "ALOGINPASS 1A"); or do you need to add other things > Depends upon what the server is expecting. > > what is the meaning of this s

[PHP] truncate a mb-string to a given octet length?

2009-06-12 Thread Tom Worster
say a table in the db has a varchar(255) column, 255 being the max number of octets of strings that can go in the column. now say the php script very occasionally has to deal with utf8 input strings with octet length > 255 -- it needs to select rows matching the input string or insert the input str

[PHP] socket communication programming

2009-06-12 Thread HELP!
hi I can not get the stream_get_contents() to work. it's returning empty. If you have a login details "ALOGINPASS 1A" cant you just fwrite($ft, "ALOGINPASS 1A"); or do you need to add other things what is the meaning of this string" GET / HTTP/1.0\r\nHost: www.example.com\r\nAccept

Re: [PHP] [php] read/write error

2009-06-12 Thread HELP!
I can not get the stream_get_contents() to work. it's returning empty. If you have a login details "ALOGINPASS 1A" cant you just fwrite($ft, "ALOGINPASS 1A"); or do you need to add other things what is the meaning of this string" GET / HTTP/1.0\r\nHost: www.example.com\r\nAccept

Re: [PHP] Re: Dynamic Titles

2009-06-12 Thread Martin Scotta
PHP complains (usually) after the error. 1. 2. for( $i=0; $i<10; ++$i ) 3. echo $i, "\n" # missing ; 4. 5. unset( $i ); PHP will complain about unexpected T_UNSET at line 5 Why? Because PHP is expecting a anything different to unset. So, when PHP says that an error was found at line x tak

[PHP] How do I Upload XML file using cUrl?

2009-06-12 Thread Rahul S. Johari
Ave, I have a client who used Lead360.Com to manage their Leads. We have a Leads Management application in place that creates an XML file of the lead which give the client manually to download. What are client is requesting is to POST the XML File directly to their Leads360.Com account. W

Re: [PHP] Field type for american money

2009-06-12 Thread Andrew Ballard
On Thu, Jun 11, 2009 at 4:08 PM, revDAVE wrote: > Php - MySQL - newbie question > > - Field type for american money - int(11) seems to work fine > > - but also I tried decimal(10,2) > > Is one a better choice than another for american money usage? > > > -- > Thanks - RevDave > Cool @ hosting4days .

[PHP] Re: Dynamic Titles

2009-06-12 Thread Peter Ford
David Robley wrote: > Austin Caudill wrote: > >> Hello, im trying to make the CMS system im using more SEO friendly by >> giving each page it's own title. Right now, the system assigns all pages >> the same general title. I would like to use PHP to discertain which page >> is being viewed and in t

[PHP] 3d image rotating

2009-06-12 Thread דניאל דנון
Hello. I'm looking for way to rotate normal images, but not x/y, but with Z also. I get a source image (png, jpg, gif...) and I want to rotate it. assuming the "depth" of the image is 1 pixel for example... I'm looking for a way to do it without using imagemagick - only GD. I know it might be slo

[PHP] Re: Dynamic Titles

2009-06-12 Thread David Robley
Austin Caudill wrote: > Hello, im trying to make the CMS system im using more SEO friendly by > giving each page it's own title. Right now, the system assigns all pages > the same general title. I would like to use PHP to discertain which page > is being viewed and in turn, which title should be u