[PHP] SharePoint

2010-04-30 Thread Robbert van Andel
I've been trying to connect to our SharePoint server's webservices with PHP. I downloaded the nusoap library and have been trying to make a connection using sample code from various websites. I keep getting the following error: You are not authorized to view this page You do not have permission to

Re: [PHP] Any One See where this is going wrong?

2010-04-30 Thread kranthi
may be it is not the error with the code. The problem may be with some ' in the input. Print out the mysql error and/or the sql query to see what is going wrong. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Any One See where this is going wrong?

2010-04-30 Thread Gary
;300)) { >> if ($_FILES['image_file']['error'] == 0) { >> // Move the file to the target upload folder >> $target = 'images/' . $image_file; >> if (move_uploaded_file($_FILES['image_file']['tmp_n

Re: [PHP] Any One See where this is going wrong?

2010-04-30 Thread Ashley Sheridan
turer, type, model, > caliber, condition, price, description, image_file_name,submitted > ,available) VALUES ('','$manufacturer', '$type', '$model', '$caliber', > '$condition', '$price', '$description','$image_file_n

[PHP] Any One See where this is going wrong?

2010-04-30 Thread Gary
#x27;, '$description','$image_file_name', ' ', '$available'); INSERT INTO images (id, image_file) VALUES('','$image_file')"; $sqlResult = $batchconnection->multi_query($sqlStatements); if($sqlResult == true) { echo "Succ

Re: [PHP] multi dimensional array question

2010-04-30 Thread Nick Balestra
thanks Piero! i was trying to solve an excercise on "learning php5" (O'reilyl) book. I am happy abotut his solution with the array_sum funtion you suggested, and my multidimensional array make much more sense to mee then they suggested solution that also much more line of code comapred... loo

Re: [PHP] multi dimensional array question

2010-04-30 Thread Piero Steinger
Am 01.05.2010 00:57, schrieb Nick Balestra: > hello everybody here is my array(s) > > > $us_census = array('NY' => array('New York' => 8008278), > 'CA' => array('Los Angeles' => 3694820, >'San Diego' =>

Re: [PHP] Two color rows in table inside while iteration -- just say no to mod

2010-04-30 Thread Jason Pruim
On Apr 30, 2010, at 4:20 PM, Daevid Vincent wrote: -Original Message- From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Modulus is the most elegant solution I reckon. Imagine if you only needed to highlight every 3rd row, or 4th? Easy to change the modulus for it, not so easy to

[PHP] multi dimensional array question

2010-04-30 Thread Nick Balestra
hello everybody here is my array(s) $us_census = array('NY' => array('New York' => 8008278), 'CA' => array('Los Angeles' => 3694820, 'San Diego' => 1223400), 'IL

Re: [PHP] Two color rows in table inside while iteration

2010-04-30 Thread Ashley Sheridan
On Fri, 2010-04-30 at 15:59 -0400, tedd wrote: > At 7:26 PM +0100 4/30/10, Ashley Sheridan wrote: > >>On Fri, 2010-04-30 at 13:59 -0400, tedd wrote: > >>At 4:37 PM +0200 4/30/10, Jay Ess wrote: > >>>Paul M Foster wrote: > +1 > > This thread came up before, and tedd's solution was the

RE: [PHP] Two color rows in table inside while iteration -- just say no to mod

2010-04-30 Thread Daevid Vincent
> -Original Message- > From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] > > Modulus is the most elegant solution I reckon. Imagine if you only > needed to highlight every 3rd row, or 4th? Easy to change the modulus > for it, not so easy to re-work a binary switch. > > -Origin

Re: [PHP] Two color rows in table inside while iteration

2010-04-30 Thread tedd
At 7:26 PM +0100 4/30/10, Ashley Sheridan wrote: On Fri, 2010-04-30 at 13:59 -0400, tedd wrote: At 4:37 PM +0200 4/30/10, Jay Ess wrote: Paul M Foster wrote: +1 This thread came up before, and tedd's solution was the least complex, as far as I could tell. I shamelessly stole his code and regul

Re: [PHP] Two color rows in table inside while iteration

2010-04-30 Thread Ashley Sheridan
On Fri, 2010-04-30 at 13:59 -0400, tedd wrote: > At 4:37 PM +0200 4/30/10, Jay Ess wrote: > >Paul M Foster wrote: > >>+1 > >> > >>This thread came up before, and tedd's solution was the least complex, > >>as far as I could tell. I shamelessly stole his code and regularly use > >>it in my own proje

Re: [PHP] Two color rows in table inside while iteration

2010-04-30 Thread tedd
At 4:37 PM +0200 4/30/10, Jay Ess wrote: Paul M Foster wrote: +1 This thread came up before, and tedd's solution was the least complex, as far as I could tell. I shamelessly stole his code and regularly use it in my own projects. ;-} Or if one choose to use Smarty template. http://www.smart

Re: [PHP] Two color rows in table inside while iteration

2010-04-30 Thread tedd
At 10:34 AM -0400 4/30/10, Paul M Foster wrote: On Thu, Apr 29, 2010 at 05:34:38PM -0400, tedd wrote: > Please critically review my example. +1 This thread came up before, and tedd's solution was the least complex, as far as I could tell. I shamelessly stole his code and regularly use it in m

Re: [PHP] How to Force IE to download text file?

2010-04-30 Thread Michael Shadle
On Fri, Apr 30, 2010 at 9:19 AM, Ali Asghar Toraby Parizy wrote: > I have written this code to export data to a text file and asks user > to save generated file. It works with Firefox perfectly, but IE shows > content of file instead of prompting the download window. > How can I force IE to show t

Re: [PHP] How to Force IE to download text file?

2010-04-30 Thread Andre Polykanine
Hello Ali, It's attachment, not attachement. Maybe here's the reason? Just a thought. -- With best regards from Ukraine, Andre Skype: Francophile; Wlm&MSN: arthaelon @ yandex.ru; Jabber: arthaelon @ jabber.org Yahoo! messenger: andre.polykanine; ICQ: 191749952 Twitter: m_elensule - Original

[PHP] How to Force IE to download text file?

2010-04-30 Thread Ali Asghar Toraby Parizy
I have written this code to export data to a text file and asks user to save generated file. It works with Firefox perfectly, but IE shows content of file instead of prompting the download window. How can I force IE to show the download dialog? -- Ali Asghar Torabi -- PHP General Mailing List

[PHP] How to simplify the management of 250+ nodes and 1000+ users , in Drupal

2010-04-30 Thread ebhakt
Hi, I have written this tool : < Portal Manager :: Drupal Management Assembly > which is to remotely manage a drupal based website You can manage and edit user properties You can manage and edit posts you can sort posts on the bases of taxonomies and then manage and edit posts The tool is writte

Re: [PHP] Getting root privs

2010-04-30 Thread Ashley Sheridan
On Fri, 2010-04-30 at 20:23 +0530, Nilesh Govindarajan wrote: > On 04/30/2010 08:12 PM, Ashley Sheridan wrote: > > On Fri, 2010-04-30 at 10:40 -0400, Paul M Foster wrote: > > > >> On Fri, Apr 30, 2010 at 12:11:17PM +0530, Nilesh Govindarajan wrote: > >> > >>> On 04/30/2010 11:26 AM, Jim Lucas wrot

Re: [PHP] Getting root privs

2010-04-30 Thread Nilesh Govindarajan
On 04/30/2010 08:12 PM, Ashley Sheridan wrote: On Fri, 2010-04-30 at 10:40 -0400, Paul M Foster wrote: On Fri, Apr 30, 2010 at 12:11:17PM +0530, Nilesh Govindarajan wrote: On 04/30/2010 11:26 AM, Jim Lucas wrote: Nilesh Govindarajan wrote: Hi, As you know there are lot of control panels ly

Re: [PHP] Getting root privs

2010-04-30 Thread Nilesh Govindarajan
On 04/30/2010 08:10 PM, Paul M Foster wrote: On Fri, Apr 30, 2010 at 12:11:17PM +0530, Nilesh Govindarajan wrote: On 04/30/2010 11:26 AM, Jim Lucas wrote: Nilesh Govindarajan wrote: Hi, As you know there are lot of control panels lying around like Cpanel, Lxadmin, most of them based on PHP.

Re: [PHP] Getting root privs

2010-04-30 Thread Ashley Sheridan
On Fri, 2010-04-30 at 10:40 -0400, Paul M Foster wrote: > On Fri, Apr 30, 2010 at 12:11:17PM +0530, Nilesh Govindarajan wrote: > > > On 04/30/2010 11:26 AM, Jim Lucas wrote: > >> Nilesh Govindarajan wrote: > >>> Hi, > >>> > >>> As you know there are lot of control panels lying around like Cpanel,

Re: [PHP] Getting root privs

2010-04-30 Thread Paul M Foster
On Fri, Apr 30, 2010 at 12:11:17PM +0530, Nilesh Govindarajan wrote: > On 04/30/2010 11:26 AM, Jim Lucas wrote: >> Nilesh Govindarajan wrote: >>> Hi, >>> >>> As you know there are lot of control panels lying around like Cpanel, >>> Lxadmin, most of them based on PHP. The control panels allow editi

Re: [PHP] Two color rows in table inside while iteration

2010-04-30 Thread Jay Ess
Paul M Foster wrote: +1 This thread came up before, and tedd's solution was the least complex, as far as I could tell. I shamelessly stole his code and regularly use it in my own projects. ;-} Or if one choose to use Smarty template. http://www.smarty.net/manual/en/language.function.cycle.

RE: [PHP] Two color rows in table inside while iteration

2010-04-30 Thread Ashley Sheridan
On Fri, 2010-04-30 at 06:14 -0500, Jay Blanchard wrote: > [snip] > Don't do this modulus (%) math Just toggle a boolean!! > > "> > [/snip] > > What is wrong with modulus math > Modulus is the most elegant solution I reckon. Imagine if you only needed to highlight every 3rd row, or 4th

Re: [PHP] Two color rows in table inside while iteration

2010-04-30 Thread Paul M Foster
On Thu, Apr 29, 2010 at 05:34:38PM -0400, tedd wrote: > At 11:01 AM -0300 4/29/10, Juan Rodriguez Monti wrote: >> >> Tedd, >> Thanks. I'm gonna check it. I finally solved it using: >> >> if ( CONDITIONS )) { >> >> $results = query( QUERY ); >> $colors = array('#97b7cd','#96bf8c'); >>

Re: [PHP] ldap add Invalid DN syntax

2010-04-30 Thread Manolis Vlachakis
on the array and on the server side i can see the names are added normally and with the correct encode(despite what i show you ) and the only thing is tha i get that DN not valid... i used the \r cause i use it on my csv file at least one... but i am sure (i used a counter for the letters + i compe

Re: [PHP] ldap add Invalid DN syntax

2010-04-30 Thread Ashley Sheridan
On Fri, 2010-04-30 at 14:34 +0300, Manolis Vlachakis wrote: > Hallo there everyone > although i have built my code correctly according to the examples i found on > the net.. > i get Invalid DN syntax error when i try to insert some attributes with ldap > add.. > > i get and read a csv file where

[PHP] ldap add Invalid DN syntax

2010-04-30 Thread Manolis Vlachakis
Hallo there everyone although i have built my code correctly according to the examples i found on the net.. i get Invalid DN syntax error when i try to insert some attributes with ldap add.. i get and read a csv file where i get the data correctly as i can see on the echos that follow:

RE: [PHP] Two color rows in table inside while iteration

2010-04-30 Thread Jay Blanchard
[snip] Don't do this modulus (%) math Just toggle a boolean!! "> [/snip] What is wrong with modulus math -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Two color rows in table inside while iteration

2010-04-30 Thread Richard Quadling
On 30 April 2010 08:40, Daevid Vincent wrote: >> -Original Message- >> while(foo){ >> $tr = (0 == $trColor % 2)? "#E8E8E8" : "#FF"; >> echo ""; >> ... > > Don't do this modulus (%) math Just toggle a boolean!! > > "> > The modulus is a good option when there are more than 2 states

Re: [PHP] In need of CVS/SVN checkout script for Production servers

2010-04-30 Thread David Otton
On 29 April 2010 20:32, Daevid Vincent wrote: > I'm looking for a script (bash or php) that I would run on my production > web server that would do this or close to it: > >        1. do a CVS/SVN checkout to a new timestamped directory >        2. change the symlink from the old directory >      

Re: [PHP] Re: CURL cannot connect to URL - IP address - after successful connection

2010-04-30 Thread ioan...@btinternet.com
On 2010/04/30 17:02, Pete Ford wrote: On 25/04/10 14:17, ioan...@btinternet.com wrote: I can return a target page - once, but then on refresh within a few hours the script curl_error is that it cannot connect to the host and return is empty. The target URL is an ip address, not a named url, so

[PHP] Re: CURL cannot connect to URL - IP address - after successful connection

2010-04-30 Thread Pete Ford
On 25/04/10 14:17, ioan...@btinternet.com wrote: I can return a target page - once, but then on refresh within a few hours the script curl_error is that it cannot connect to the host and return is empty. The target URL is an ip address, not a named url, so maybe it has something to do with DNS. I

RE: [PHP] Two color rows in table inside while iteration

2010-04-30 Thread Daevid Vincent
> -Original Message- > while(foo){ > $tr = (0 == $trColor % 2)? "#E8E8E8" : "#FF"; > echo ""; > ... Don't do this modulus (%) math Just toggle a boolean!! "> smime.p7s Description: S/MIME cryptographic signature