Re: [PHP] syntax woes

2009-04-02 Thread aurfalien
Hi all, For any one following this thread, here is how I worked around the apache/php/chown limitation. script snippet (and if any one has a more elegant style, please share as I am an amateur script kiddie). $path = "/homes".$username; $chowncmd = "/usr/bin/sudo /bin/chown "; mkdir($path

Re: [PHP] syntax woes

2009-04-02 Thread Michael A. Peters
Chris wrote: Shawn McKenzie wrote: Chris wrote: Wow, it does chown and chmod as well, thats friggen cool. chown will only work if the script is running as root which I doubt your drupal site will be. Or if the script is running as a user/group that has write permissions to the dir/file that

Re: [PHP] syntax woes

2009-04-02 Thread Chris
Shawn McKenzie wrote: Chris wrote: Wow, it does chown and chmod as well, thats friggen cool. chown will only work if the script is running as root which I doubt your drupal site will be. Or if the script is running as a user/group that has write permissions to the dir/file that your trying t

Re: [PHP] syntax woes

2009-04-02 Thread Shawn McKenzie
Chris wrote: > >> Wow, it does chown and chmod as well, thats friggen cool. > > chown will only work if the script is running as root which I doubt your > drupal site will be. > Or if the script is running as a user/group that has write permissions to the dir/file that your trying to chown. --

Re: [PHP] [php] scheduled task in php

2009-04-02 Thread Chris
Andrew Williams wrote: I want to created a window schedule a task that will run every 2 minutes and run my php script(www.domain.com/script.php). But I need to know how to create a php.exe that I can select as a window schedule a task so that the php.exe file can execute www.domain.com/script.ph

Re: [PHP] [php] scheduled task in php

2009-04-02 Thread George Larson
On Thu, Apr 2, 2009 at 10:12 AM, Kyle Smith wrote: > There's no need for third party software, windows has a scheduled task > system. > > Make a scheduled task and for the application select the php executable > (Maybe C:\PHP\bin\php.exe, or some such.). Once the wizard is complete > select the c

Re: [PHP] syntax woes

2009-04-02 Thread Chris
Wow, it does chown and chmod as well, thats friggen cool. chown will only work if the script is running as root which I doubt your drupal site will be. -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

Re: [PHP] syntax woes

2009-04-02 Thread aurfalien
On Thu, 2009-04-02 at 15:58 -0700, aurfal...@gmail.com wrote: On Thu, 2009-04-02 at 15:47 -0700, aurfal...@gmail.com wrote: aurfal...@gmail.com wrote: Hi all, I'm unsure how to describe this but I'll try. The following code works fine in its own PHP script; $mkdircmd = '/bin/mkdir /homes/'.$uid

Re: [PHP] syntax woes

2009-04-02 Thread Ashley Sheridan
On Thu, 2009-04-02 at 15:58 -0700, aurfal...@gmail.com wrote: > > On Thu, 2009-04-02 at 15:47 -0700, aurfal...@gmail.com wrote: > >>> aurfal...@gmail.com wrote: > Hi all, > I'm unsure how to describe this but I'll try. > The following code works fine in its own PHP script; > $mk

Re: [PHP] syntax woes

2009-04-02 Thread aurfalien
On Thu, 2009-04-02 at 15:47 -0700, aurfal...@gmail.com wrote: aurfal...@gmail.com wrote: Hi all, I'm unsure how to describe this but I'll try. The following code works fine in its own PHP script; $mkdircmd = '/bin/mkdir /homes/'.$uid; exec($mkdircmd); But when placed in a larger PHP script being

Re: [PHP] syntax woes

2009-04-02 Thread Ashley Sheridan
On Thu, 2009-04-02 at 15:47 -0700, aurfal...@gmail.com wrote: > > aurfal...@gmail.com wrote: > >> Hi all, > >> I'm unsure how to describe this but I'll try. > >> The following code works fine in its own PHP script; > >> $mkdircmd = '/bin/mkdir /homes/'.$uid; > >> exec($mkdircmd); > >> But when plac

Re: [PHP] syntax woes

2009-04-02 Thread aurfalien
aurfal...@gmail.com wrote: Hi all, I'm unsure how to describe this but I'll try. The following code works fine in its own PHP script; $mkdircmd = '/bin/mkdir /homes/'.$uid; exec($mkdircmd); But when placed in a larger PHP script being part of the ldap_provisioning module in Drupal, the Drupal G

Re: [PHP] W3C Validator and Post Arrays

2009-04-02 Thread tedd
At 2:34 PM -0700 4/2/09, Michael A. Peters wrote: tedd wrote: At 4:03 AM -0700 4/2/09, Michael A. Peters wrote: Shaun Thornburgh wrote: Hi, We are getting errors when trying to vaildate our HTML due to the [ character when using Post Arrays: Line 173, Column 65: character "[" is no

Re: [PHP] syntax woes

2009-04-02 Thread Chris
aurfal...@gmail.com wrote: Hi all, I'm unsure how to describe this but I'll try. The following code works fine in its own PHP script; $mkdircmd = '/bin/mkdir /homes/'.$uid; exec($mkdircmd); But when placed in a larger PHP script being part of the ldap_provisioning module in Drupal, the Drupa

[PHP] syntax woes

2009-04-02 Thread aurfalien
Hi all, I'm unsure how to describe this but I'll try. The following code works fine in its own PHP script; $mkdircmd = '/bin/mkdir /homes/'.$uid; exec($mkdircmd); But when placed in a larger PHP script being part of the ldap_provisioning module in Drupal, the Drupal GUI is blank until I do;

Re: [PHP] php5-mhash disabled...

2009-04-02 Thread Chris
Anders Norrbring wrote: I just saw that mhash is disabled in the spec file for php5 if SUSE version is 11.0 or higher. Simple question, does it do any harm? If they decided to do that it's best to ask suse (or on the opensuse lists if you're using that flavour). It may just be because it's d

Re: [PHP] PHP LDAP over SSL problems

2009-04-02 Thread Chris
Keith Lawson wrote: Hello, I have been working on this problem for some time now and I can't seem to resolve it. Everything I have found on google and php.net says I can connect to an LDAP server with SSL by setting "TLS_REQCERT never" in ldap.conf. I want to eliminate certs from the picture for

Re: [PHP] Oracle's dump to MySQL

2009-04-02 Thread Chris
9el wrote: I found this command from one guy for importing Oracle's dump to MySQL Shell> mysql -uroot db_name -vvf < oracle_dump.dmp But, v is for verbose and f is for force continuation. Anyone worked with Oracle and MySQL? Yep, and there's no way that will ever work except for the very sim

Re: [PHP] [php] scheduled task in php

2009-04-02 Thread Andrew Williams
I want to created a window schedule a task that will run every 2 minutes and run my php script(www.domain.com/script.php). But I need to know how to create a php.exe that I can select as a window schedule a task so that the php.exe file can execute www.domain.com/script.php at a time interval. Sol

Re: [PHP] W3C Validator and Post Arrays

2009-04-02 Thread Michael A. Peters
tedd wrote: At 4:03 AM -0700 4/2/09, Michael A. Peters wrote: Shaun Thornburgh wrote: Hi, We are getting errors when trying to vaildate our HTML due to the [ character when using Post Arrays: Line 173, Column 65: character "[" is not allowed in the value of attribute "id" Še="filte

Re: [PHP] W3C Validator and Post Arrays

2009-04-02 Thread Paul M Foster
On Thu, Apr 02, 2009 at 02:25:55PM -0400, tedd wrote: > At 4:03 AM -0700 4/2/09, Michael A. Peters wrote: >> Shaun Thornburgh wrote: >>> Hi, >>> >>> We are getting errors when trying to vaildate our HTML due to the [ >>> character when using Post Arrays: >>> >>> Line 173, Column 65: >>> c

Re: [PHP] Java applet clearing session variables?

2009-04-02 Thread Bastien Koert
On Thu, Apr 2, 2009 at 3:26 PM, Dan King wrote: > It seems that our java applet is clearing our php session variables. > > I have an html form that saves user information as session variables. These > session variables are used to create folders, where uploaded files can be > saved. I've tested m

Re: [PHP] W3C Validator and Post Arrays

2009-04-02 Thread Ashley Sheridan
On Thu, 2009-04-02 at 14:23 -0400, tedd wrote: > At 4:03 AM -0700 4/2/09, Michael A. Peters wrote: > >Shaun Thornburgh wrote: > >>Hi, > >> > >>We are getting errors when trying to vaildate > >>our HTML due to the [ character when using Post > >>Arrays: > >> > >>Line 173, Column 65: > >> c

Re: [PHP] Button id's - firefox and IE different ?

2009-04-02 Thread Ashley Sheridan
On Thu, 2009-04-02 at 11:43 -0300, Igor Escobar wrote: > ps 3: Why javascript is bad? you don't know develop a good interface > with > that? shame on you. You don't know how to develop a good interface *without* Javascript? ;) Essentially, relying on script for something as fundamental as form h

[PHP] Java applet clearing session variables?

2009-04-02 Thread Dan King
It seems that our java applet is clearing our php session variables. I have an html form that saves user information as session variables. These session variables are used to create folders, where uploaded files can be saved. I've tested my php script that uses the session variables to create a

Re: [PHP] W3C Validator and Post Arrays

2009-04-02 Thread tedd
At 4:03 AM -0700 4/2/09, Michael A. Peters wrote: Shaun Thornburgh wrote: Hi, We are getting errors when trying to vaildate our HTML due to the [ character when using Post Arrays: Line 173, Column 65: character "[" is not allowed in the value of attribute "id" Še="filters[calling_u

[PHP] PHP LDAP over SSL problems

2009-04-02 Thread Keith Lawson
Hello, I have been working on this problem for some time now and I can't seem to resolve it. Everything I have found on google and php.net says I can connect to an LDAP server with SSL by setting "TLS_REQCERT never" in ldap.conf. I want to eliminate certs from the picture for now just to confi

Re: [PHP] W3C Validator and Post Arrays

2009-04-02 Thread tedd
At 4:03 AM -0700 4/2/09, Michael A. Peters wrote: Shaun Thornburgh wrote: Hi, We are getting errors when trying to vaildate our HTML due to the [ character when using Post Arrays: Line 173, Column 65: character "[" is not allowed in the value of attribute "id" Še="filters[calling_u

Re: [PHP] Button id's - firefox and IE different ?

2009-04-02 Thread Igor Escobar
I'm sorry, you is the master o/ ps: I dont ask for them to install the jQuery, i just give an exemplo how he can do something like that. ps 2: I know the difference betwenn XHMTL and HTML i put the "/" there becouse it's the force of the habit ps 3: Why javascript is bad? you don't know develop a

Re: [PHP] [php] scheduled task in php

2009-04-02 Thread Kyle Smith
There's no need for third party software, windows has a scheduled task system. Make a scheduled task and for the application select the php executable (Maybe C:\PHP\bin\php.exe, or some such.). Once the wizard is complete select the checkbox that says "Open the task when I click Finish". Now

Re: [PHP] [php] scheduled task in php

2009-04-02 Thread Jan G.B.
Or even with CRONw if "via window" is an indicator for the evil OS. http://cronw.sourceforge.net/ (I personally didn't test this software) bye 2009/4/2 Michel OLIVIER : > hi, > with a cron and wget? > > 2009/4/2 Andrew Williams : >> All, >> >> Please how can you run a timed php script file via win

Re: [PHP] Button id's - firefox and IE different ?

2009-04-02 Thread Jan G.B.
2009/4/2 Igor Escobar : > If you don't want change your form, do some function in Javascript witch > control the last button you clicked. > Javascript is bad and you don't need it. >> Delete >> Delete >> Delete > > > > I wanna make a advice to you learn more about HTML and Web Standards... I wa

Re: [PHP] XML data extraction

2009-04-02 Thread Per Jessen
Igor Escobar wrote: > @Jessen I read your answer and... You have any article speaking about > that you are saying? > Hi Igor I don't have anything handy, but there's plenty of good material on the internet about XSLT. The main point is - XSLT is just reformatting the data from XML format to a

Re: [PHP] [php] scheduled task in php

2009-04-02 Thread Virgilio Quilario
> Please how can you run a timed php script file via window scheduled task. or > how can u execute a php script on a a time interval for instance every > 4minutes hi Andrew, first schedule a task, locate and select your php.exe, and schedule it to run daily for the moment. after creating it, you

Re: [PHP] Button id's - firefox and IE different ?

2009-04-02 Thread Igor Escobar
If you don't want change your form, do some function in Javascript witch control the last button you clicked. Delete Delete Delete I wanna make a advice to you learn more about HTML and Web Standards... Don't use button type... use "input" type... Your javascript (using jQuery) sems like this

Re: [PHP] [php] scheduled task in php

2009-04-02 Thread Michel OLIVIER
hi, with a cron and wget? 2009/4/2 Andrew Williams : > All, > > Please how can you run a timed php script file via window scheduled task. or > how can u execute a php script on a a time interval for instance every > 4minutes > > -- > Best Wishes > Andrew Williams > -- PHP General Mailing List (h

Re: [PHP] XML data extraction

2009-04-02 Thread Igor Escobar
@Jessen I read your answer and... You have any article speaking about that you are saying? Regards, Igor Escobar systems analyst & interface designer www . igorescobar . com On Thu, Apr 2, 2009 at 8:38 AM, Per Jessen wrote: > Andrew Williams wrote: > > > Best All, > > > > How can you best and

Re: [PHP] Oracle's dump to MySQL

2009-04-02 Thread Igor Escobar
I'm in the Oracle/MySQL E-mail List ? Regards, Igor Escobar systems analyst & interface designer www . igorescobar . com On Thu, Apr 2, 2009 at 6:26 AM, 9el wrote: > I found this command from one guy for importing Oracle's dump to MySQL > > Shell> mysql -uroot db_name -vvf < oracle_dump.dmp >

Re: [PHP] W3C Validator and Post Arrays

2009-04-02 Thread Igor Escobar
Put [] in the name attribute, but in ID must be unique. Regards, Igor Escobar systems analyst & interface designer www . igorescobar . com On Thu, Apr 2, 2009 at 8:11 AM, Peter Ford wrote: > Peter Ford wrote: > > Michael A. Peters wrote: > >> Shaun Thornburgh wrote: > >>> Hi, > >>> > >>> We a

[PHP] [php] scheduled task in php

2009-04-02 Thread Andrew Williams
All, Please how can you run a timed php script file via window scheduled task. or how can u execute a php script on a a time interval for instance every 4minutes -- Best Wishes Andrew Williams

Re: [PHP] XML data extraction

2009-04-02 Thread Per Jessen
Andrew Williams wrote: > Best All, > > How can you best and accurately extract XLM data to DB table. e.g.: > Use XSLT to generate SQL INSERT statements. /Per -- Per Jessen, Zürich (11.3°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

Re: [PHP] Button id's - firefox and IE different ?

2009-04-02 Thread Phpster
What about styling a link to look like a button with css? It won't be an exact match style wise but you can get close. I have done this succesfully Bastien Sent from my iPod On Apr 2, 2009, at 6:04, "Angus Mann" wrote: Hi all. I want to have several delete buttons with just one form, an

RE: [PHP] Button id's - firefox and IE different ?

2009-04-02 Thread Leon du Plessis
Another suggestion would be to use the tag as suggested by Richard, but rename the "name" value ie: You can then use your PHP variable $_POST["btid1"], $_POST["btid2"] or $_POST["btid3"], etc, to determine relevant actions. -Original Message- From: Angus Mann [mailto:angusm...@po

Re: [PHP] W3C Validator and Post Arrays

2009-04-02 Thread Peter Ford
Peter Ford wrote: > Michael A. Peters wrote: >> Shaun Thornburgh wrote: >>> Hi, >>> >>> We are getting errors when trying to vaildate our HTML due to the [ >>> character when using Post Arrays: >>> >>> Line 173, Column 65: >>> character "[" is not allowed in the value of attribute "id" >>>

Re: [PHP] W3C Validator and Post Arrays

2009-04-02 Thread Peter Ford
Michael A. Peters wrote: > Shaun Thornburgh wrote: >> Hi, >> >> We are getting errors when trying to vaildate our HTML due to the [ >> character when using Post Arrays: >> >> Line 173, Column 65: >> character "[" is not allowed in the value of attribute "id" >> >> …e="filters[calling_url]"

[PHP] Re: Button id's - firefox and IE different ?

2009-04-02 Thread Peter Ford
Peter Ford wrote: > Angus Mann wrote: >> Hi all. >> >> I want to have several delete buttons with just one form, and depending on >> which button is pressed, one of several items is deleted. >> >> So I need multiple submit buttons for 1 form, each displaying the same text >> "Delete" to the user,

Re: [PHP] W3C Validator and Post Arrays

2009-04-02 Thread Michael A. Peters
Shaun Thornburgh wrote: Hi, We are getting errors when trying to vaildate our HTML due to the [ character when using Post Arrays: Line 173, Column 65: character "[" is not allowed in the value of attribute "id" …e="filters[calling_url]" id="filters[calling_url]" value="categories-bulk

[PHP] Re: Button id's - firefox and IE different ?

2009-04-02 Thread Peter Ford
Angus Mann wrote: > Hi all. > > I want to have several delete buttons with just one form, and depending on > which button is pressed, one of several items is deleted. > > So I need multiple submit buttons for 1 form, each displaying the same text > "Delete" to the user, but each with a differen

[PHP] W3C Validator and Post Arrays

2009-04-02 Thread Shaun Thornburgh
Hi, We are getting errors when trying to vaildate our HTML due to the [ character when using Post Arrays: Line 173, Column 65: character "[" is not allowed in the value of attribute "id" …e="filters[calling_url]" id="filters[calling_url]" value="categories-bulk-ear Does anyone know of

Re: [PHP] Button id's - firefox and IE different ?

2009-04-02 Thread Angus Mann
I can do as you suggest below, but then the buttons are labelled "Delete" "Cancel" and "Save" to the user. The essential point is that they all need to say "Delete". I know I can accomplish this by making multiple forms, each with its own button but for my purpose that's a pain is the ***. I

Re: [PHP] Button id's - firefox and IE different ?

2009-04-02 Thread Richard Heyes
> Any suggestions ? Try this: And then you can check the value of $_POST['btid']. Oh and btw... ... seriously? That's so 9 years ago. ;-) -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.net (Updated March 28th) -- PHP General Mailing List

[PHP] Button id's - firefox and IE different ?

2009-04-02 Thread Angus Mann
Hi all. I want to have several delete buttons with just one form, and depending on which button is pressed, one of several items is deleted. So I need multiple submit buttons for 1 form, each displaying the same text "Delete" to the user, but each with a different "value" so the PHP script can

Re: [PHP] Upload large < 100MB of PDFS to MySQL using PHP, Is my settings ok?

2009-04-02 Thread Ian
On 2 Apr 2009 at 15:33, Louie Miranda wrote: > Guys, > > I need help on the php and mysql configurations. > > I want to be able to upload < 100MB to MySQL using PHP. > > > max_allowed_packet = 5M Hi, This may be the one that's stopping it. max_allowed_packet: http://dev.mysql.com/doc/ref

Re: [PHP] formulate nested select

2009-04-02 Thread Ian
On 31 Mar 2009 at 18:15, PJ wrote: > >> But I see that I may be trying to do too much - I thought of showing how > >> many books were listed under each letter of the alphabet but I don't see > >> how it can be done in any simiple way as it would mean that I would have > >> to do the select once

[PHP] Oracle's dump to MySQL

2009-04-02 Thread 9el
I found this command from one guy for importing Oracle's dump to MySQL Shell> mysql -uroot db_name -vvf < oracle_dump.dmp But, v is for verbose and f is for force continuation. Anyone worked with Oracle and MySQL?

Re: [PHP] XML data extraction

2009-04-02 Thread Peter Ford
Andrew Williams wrote: > Best All, > > How can you best and accurately extract XLM data to DB table. e.g.: > > > - > > 20 > FRA > Frankfurt > > - > > 28 > LSE > London Stock Exchange > > - > > 226 > GER > Xetra > > > > www.willandy.co.uk > Oh, I thought of another one: Write some XSL

Re: [PHP] XML data extraction

2009-04-02 Thread Peter Ford
Andrew Williams wrote: > Best All, > > How can you best and accurately extract XLM data to DB table. e.g.: > > > - > > 20 > FRA > Frankfurt > > - > > 28 > LSE > London Stock Exchange > > - > > 226 > GER > Xetra > > > > www.willandy.co.uk > Write some code to read the XML file. (you c

[PHP] XML data extraction

2009-04-02 Thread Andrew Williams
Best All, How can you best and accurately extract XLM data to DB table. e.g.: - 20 FRA Frankfurt - 28 LSE London Stock Exchange - 226 GER Xetra www.willandy.co.uk

[PHP] php5-mhash disabled...

2009-04-02 Thread Anders Norrbring
I just saw that mhash is disabled in the spec file for php5 if SUSE version is 11.0 or higher. Simple question, does it do any harm? I know it's been deprecated in favor for hash, but I have quite a few apps using mhash still, so if it doesn't do any harm I thought I'd continue using it until all

[PHP] Upload large < 100MB of PDFS to MySQL using PHP, Is my settings ok?

2009-04-02 Thread Louie Miranda
Guys, I need help on the php and mysql configurations. I want to be able to upload < 100MB to MySQL using PHP. On PHP, php.ini is as follows: > max_execution_time = 100; Maximum execution time of each script, in > seconds > max_input_time = 100; Maximum amount of time each s