RE: [PHP] PHP needs better funtion organization, naming and parameter specifications. WAS: Form Validation Issues

2007-05-23 Thread Jay Blanchard
[snip] ...several valid points... [/snip] Send this all to the developer's list -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Cannot access file on Network Drive (Windows 2003)

2007-05-23 Thread Tijnema
On 5/23/07, Jared Farrish <[EMAIL PROTECTED]> wrote: Oh yeah, and tijnema has a good point: \\compname-x\\offsite\\db\\test.dbf For the escaping issue, you should use compname-x\\offsite\\db\\test.dbf Btw, what does top post mean? Means you are replying at top of the old post, and not,

Re: [PHP] Include file questions

2007-05-23 Thread Stephen
Kevin Murphy <[EMAIL PROTECTED]> wrote: .inc files have a disadvantage in that if you view the file: http://www.yoursite.com/file.inc you can see the php code. I prefer not to use those just on the off chance that someone can see my code and use that as the basis for figuring out a wa

[PHP] Manipulate ODS (to openoffice calc)

2007-05-23 Thread Uzed
Hi all, I'm try to use ODS files in PHP. I managed insert tables, elements row, cell, text and contents. When i open a file in openoffice, The rows don't they count as inserted. The problem is when I insert the lines (tags table:row), they who don't appear. When clone some object its appears.

Re: [PHP] PHP needs better funtion organization, naming and parameter specifications. WAS: Form Validation Issues

2007-05-23 Thread Crayon Shin Chan
On Thursday 24 May 2007 04:57, Jay Blanchard wrote: > Send this all to the developer's list Too late now. The damage has been done. Fixing all the inconsistencies would either break backward compatibility or introduce a whole raft of yet more aliases. Rasmus should have applied strict controls

[PHP] Re: format date field

2007-05-23 Thread itoctopus
SELECT DATE_FORMAT('open', '%m-%d-%Y') FROM your_table_name; -- itoctopus - http://www.itoctopus.com ""Mike Ryan"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I am reading in a date field from a mysql database the field on the screen > shows up as 2007-05-01 on the screen I wou

RE: [PHP] PHP needs better funtion organization, naming and parameter specifications. WAS: Form Validation Issues

2007-05-23 Thread Daevid Vincent
> > Send this all to the developer's list > > Too late now. The damage has been done. Fixing all the > inconsistencies > would either break backward compatibility or introduce a > whole raft of yet more aliases. That's what I suggest: We rename th functions to proper names. Then we make ali

[PHP] Re: Include file questions

2007-05-23 Thread itoctopus
1- No 2- Yes -- itoctopus - http://www.itoctopus.com "Stephen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 1) Does the filename extension matter? I prefer *.inc? It seems to work > fine, but I only see others using *.php > > 2) Does the include file need an opening ? > > Not

[PHP] PHP Text-To-Speech Function txt2wav()

2007-05-23 Thread Daniel Brown
I'm cross-posting this on the PHP-VOX and PHP General lists for those of you who were on my old php-vox list on isawit.com and may not have been migrated over. The PHP-VOX project has advanced from alpha to beta status as of today's release of version 0.6.4-18. If anyone on here wants to h

[PHP] Help with php server and sockets

2007-05-23 Thread Adz07
i want to set up a php server that can communicate with a client (CLI PHP Script). I can setup the server socket fine. What i need to know is whether it is possible for the client to call a function in the servers php code and the server return the data ready for the client to process?? To start,

Re: [PHP] Swinging Hammers (was Re: Form Validation Issues)

2007-05-23 Thread Edward Vermillion
On May 23, 2007, at 12:24 PM, Robert Cummings wrote: More interesting will be if it still has the greater market share over PHP5 when they declare it dead *lol*. Yeah, I'm wondering about that also. Especially since my webhost, a *very* large company that employs several PHP bigwigs (start

Re: [PHP] Help with php server and sockets

2007-05-23 Thread Robert Cummings
On Wed, 2007-05-23 at 16:24 -0700, Adz07 wrote: > i want to set up a php server that can communicate with a client (CLI PHP > Script). I can setup the server socket fine. What i need to know is whether > it is possible for the client to call a function in the servers php code and > the server retur

[PHP] ftp_put() problem??

2007-05-23 Thread Al
Can anyone help with this. On a Linux/Apache server. I want to simply copy a file with ftp_put() from one dir to another. To make certain I'm pointing to the correct dirs, I'm using this: print_r(ftp_nlist($conn_id, FTP_EP_DIR)); //It is the correct dir print_r(ftp_nlist($conn_id, $rpdir)); /

[PHP] help with multi dimensional arrays

2007-05-23 Thread James Lockie
I get a syntax error on strlen. $newTypes = array(); $newTypes[0] = array(); $newTypes[0][0] = "Starting with" $newTypes[0][1] = strlen( $newTypes[0][0] ); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] help with multi dimensional arrays

2007-05-23 Thread Micky Hulse
Looks like you are missing a comma on line 3. James Lockie wrote: I get a syntax error on strlen. $newTypes = array(); $newTypes[0] = array(); $newTypes[0][0] = "Starting with" $newTypes[0][1] = strlen( $newTypes[0][0] ); -- Wishlists: Switch:

Re: [PHP] help with multi dimensional arrays

2007-05-23 Thread Paul Novitski
Looks like you are missing a comma on line 3. James Lockie wrote: I get a syntax error on strlen. $newTypes = array(); $newTypes[0] = array(); $newTypes[0][0] = "Starting with" $newTypes[0][1] = strlen( $newTypes[0][0] ); Missing semicolon; Paul -- PHP General Mailing List

Re: [PHP] Cannot access file on Network Drive (Windows 2003)

2007-05-23 Thread Jim Lucas
Rahul Sitaram Johari wrote: Didn't help. Tried X:\\Transfer\\test.dbf Still can't access the file. On 5/23/07 3:11 PM, "Tijnema" <[EMAIL PROTECTED]> wrote: The \ is an escape token, and you should use \\ instead. Try X:\\Transfer\\test.dbf instead. Tijnema ps. Please don't top post. Try

Re: [PHP] help with multi dimensional arrays

2007-05-23 Thread James Lockie
Paul Novitski wrote: Looks like you are missing a comma on line 3. James Lockie wrote: I get a syntax error on strlen. $newTypes = array(); $newTypes[0] = array(); $newTypes[0][0] = "Starting with" $newTypes[0][1] = strlen( $newTypes[0][0] ); Missing semicolon; Paul Argh, th

Re: [PHP] Cannot access file on Network Drive (Windows 2003)

2007-05-23 Thread Jim Lucas
Rahul Sitaram Johari wrote: Ave, Apache 2.2, PHP5 & mySQL 5 on Windows 2003. I have some files sitting on a Network Drive accessible on the Windows 2003 Server. But my php script is not able to open the files. Let¹s say there¹s a database on X:\Transfer\test.dbf If I use: $db = dbase_open(³X:\

Re: [PHP] help with multi dimensional arrays

2007-05-23 Thread Greg Donald
On 5/23/07, James Lockie <[EMAIL PROTECTED]> wrote: Argh, that is the worst error. :-( The error messages in PHP suck. When I run your code it says: Parse error: syntax error, unexpected T_VARIABLE in /opt/local/apache2/htdocs/missing.php on line 5 If you did not get a similar error you may n

[PHP] Database error: Invalid SQL:

2007-05-23 Thread wisuttorn
I have a problem please help me when i loged in to egroup this show " Database error: Invalid SQL: SELECT DISTINCT egw_cal_repeats.*,egw_cal.*,cal_start,cal_end,cal_recur_date FROM egw_cal JOIN egw_cal_dates ON egw_cal.cal_id=egw_cal_dates.cal_id JOIN egw_cal_user ON egw_cal.cal_id=egw_cal_user.c

Re: [PHP] help with multi dimensional arrays

2007-05-23 Thread Steve Finkelstein
Might I suggest using an IDE to develop your code in. It would be able to spot simple oversights such as syntax errors. I personally use Zend Studio, however if you aren't looking to invest in a license, there are plenty of open source solutions out there. Cheers, - sf James Lockie wrote: > Paul

Re: [PHP] Database error: Invalid SQL:

2007-05-23 Thread Chris
wisuttorn wrote: I have a problem please help me when i loged in to egroup this show " Database error: Invalid SQL: SELECT DISTINCT egw_cal_repeats.*,egw_cal.*,cal_start,cal_end,cal_recur_date FROM egw_cal JOIN egw_cal_dates ON egw_cal.cal_id=egw_cal_dates.cal_id JOIN egw_cal_user ON egw_cal.cal

Re: [PHP] ftp_put() problem??

2007-05-23 Thread Tom Chubb
On 24/05/07, Al <[EMAIL PROTECTED]> wrote: Can anyone help with this. On a Linux/Apache server. I want to simply copy a file with ftp_put() from one dir to another. To make certain I'm pointing to the correct dirs, I'm using this: print_r(ftp_nlist($conn_id, FTP_EP_DIR)); //It is the correct

Re: [PHP] Database error: Invalid SQL:

2007-05-23 Thread Christian Haensel
Usually you need to specify the type: inner join, left join, right join, straight join etc. That sounds like the good old times when we did air-to-air refueling :oP Sorry, had to :P - Original Message - From: "Chris" <[EMAIL PROTECTED]> To: "wisuttorn" <[EMAIL PROTECTED]> Cc:

[PHP] Re: Help with php server and sockets

2007-05-23 Thread Darren Whitlen
Adz07 wrote: i want to set up a php server that can communicate with a client (CLI PHP Script). I can setup the server socket fine. What i need to know is whether it is possible for the client to call a function in the servers php code and the server return the data ready for the client to proces

<    1   2