Re: [PHP] Re: array_slice and for loop problem

2005-10-13 Thread Rodney Green
$output[] = array_slice ($textArray, $int_range[start][$i], $int_range[end][$i]); is creating a multi-dimensional array as $output. In my foreach loop I was treating $output as a single-dimensional array. That's why it wasn't working. print_r() is my friend. :-) On 10/13/05, Ro

Re: [PHP] Re: array_slice and for loop problem

2005-10-13 Thread Rodney Green
not just echo an array (even of characters). It must be a > string, or else echo will only produce the output 'Array'. > > Hope this helps, > -Connor McKay > > Rodney Green wrote: > > Hello, > > > > I'm using a for loop to iterate through an array and sl

[PHP] array_slice and for loop problem

2005-10-12 Thread Rodney Green
Hello, I'm using a for loop to iterate through an array and slice parts of the array and add into another array. When array_slice is called the variable $i is not being substituted with the current value of $i and the $output array is empty after running the script. Can someone look at the code b

[PHP] document changes

2004-07-28 Thread Rodney Green
Hello, I'm looking for an application that would allow easy documentation of changes to a system, device or application. This would be used to record changes made for future reference. It would simply have categories that would contain a particular device or system and under that device or system

Re: [PHP] CLI question

2003-12-18 Thread Rodney Green
Ford, Mike [LSS] wrote: Shouldn't that be *don't* use output buffering and...? The flush() function has nothing to do with output buffering, and if output buffering is on you will need ob_flush() as well. Another (and probably better) solution is to create a php-cli.ini file, which will be picke

[PHP] CLI question

2003-12-17 Thread Rodney Green
I'm using the CLI version 4.3.4 on Windows XP Pro. The script I'm writing has only a couple of functions, a couple of "if" conditionals and a "while" loop. At the very top of the script I have an echo statement with a message I want printed to the console window. The problem is that it's not ec

Re: [PHP] Re: post an array into another site

2003-12-08 Thread Rodney Green
- Original Message - From: "Manuel Lemos" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 08, 2003 8:30 PM Subject: Re: [PHP] Re: post an array into another site > Hello, > > On 12/08/2003 11:04 PM, Chris Shiflett wrote: > http://www.phpclasses.org/httpclient > >

Re: [PHP] Windows Environment Variables

2003-11-26 Thread Rodney Green
Jason Wong wrote: On Wednesday 26 November 2003 00:24, Rodney Green wrote: Is PHP able to access and use Windows Environment Variables? If so, is there a function or a reference you can point me to? If any are available they would most likely be in: print_r($_SERVER) Thanks Jason

[PHP] Windows Environment Variables

2003-11-25 Thread Rodney Green
Hello, Is PHP able to access and use Windows Environment Variables? If so, is there a function or a reference you can point me to? Thanks, Rod -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] line breaks

2003-11-25 Thread Rodney Green
John Nichel wrote: Rodney Green wrote: Actually, I'm not having problems with that. The whitespace is still there in between the commands and arguments, etc. I'm using fgets , not fread. Not sure what the difference between the two is but I'll check it out. The problem I am ha

Re: [PHP] line breaks

2003-11-25 Thread Rodney Green
John Nichel wrote: Rodney Green wrote: John Nichel wrote: Chances are, $buffer has the line break on it when you read it in from the text file. Try striping off whitespace before you write... while (!feof ($handle)) { $buffer = rtrim ( fgets($handle, 1000) ); fwrite ($fhandle

Re: [PHP] line breaks

2003-11-25 Thread Rodney Green
John Nichel wrote: Chances are, $buffer has the line break on it when you read it in from the text file. Try striping off whitespace before you write... while (!feof ($handle)) { $buffer = rtrim ( fgets($handle, 1000) ); fwrite ($fhandle, "chown $buffer:html http://www.php.net/manual/

[PHP] line breaks

2003-11-25 Thread Rodney Green
Greetings! I'm writing a script that will take the contents of a text file that has several lines of user accounts and creates a shell script with chown commands for each user in that text file. My problem is that when it writes the shell script file it puts a line break after the colon in bet

Re: [PHP] tar and ownership

2003-11-21 Thread Rodney Green
Marek Kilimajer wrote: Rodney Green wrote: Greetings! I'm writing a script that downloads a tarball from an FTP server and unpacks it into a directory. Here's the line of code that does this. exec("tar -C /scripts/ -zxv --preserve-permissions -f " . "/scripts/mailf

[PHP] tar and ownership

2003-11-21 Thread Rodney Green
Greetings! I'm writing a script that downloads a tarball from an FTP server and unpacks it into a directory. Here's the line of code that does this. exec("tar -C /scripts/ -zxv --preserve-permissions -f " . "/scripts/mailfiles.tar.gz") or die('Tar failed!'); My problem is that the files' owner

Re: [PHP] Remove HTML TAGS

2003-11-13 Thread Rodney Green
D. Jame wrote: HI, Is ther any way to remove HTML tags from Source File with PHP jame Maybe this will do what you want it to do: http://www.php.net/strip-tags -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Verisign DNS Abuse Petition

2003-09-18 Thread Rodney Green
PHP Users - While this is not really on topic it is relevant for all PHP users. Sign the petition at the link below which will be presented to ICANN regarding the Verisign abuse of DNS. http://www.PetitionOnline.com/icanndns/ Rod -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Single Quotes vs Double Quotes

2003-09-08 Thread Rodney Green
Try this: http://www.faqts.com/knowledge_base/view.phtml/aid/208 - Original Message - From: "micro brew" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 09, 2003 12:03 AM Subject: [PHP] Single Quotes vs Double Quotes > Hi everyone, > > Could somebody please explai

[PHP] execute command line script from browser

2003-08-30 Thread Rodney Green
Is there a way to execute a command line php script from a browser by, say clicking a button and then having the browser let go and let the script run independet of the browser? Hope I explained that correctly. Thanks, Rod CinchHost.com - Web Hosting

[PHP] php.net is broke

2003-08-14 Thread Rodney Green
php.net is broke. There's an undefined function error. CinchHost.com - Web Hosting Made Easier ASP, PHP, CGI, WEBMAIL, And More Packages as Low as $9.99 - No Set Up fees http://www.cinchhost.com/ **

[PHP] delete line

2003-08-14 Thread Rodney Green
I've been looking and haven't found anything on this. How do you open a file then select a line and delete that line? Thanks, Rod -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] shell_exec

2003-08-14 Thread Rodney Green
Hello. I've been attempting to write a script that will run a shell script using the shell_exec function and haven't had any success with getting it to run in the browser. My web server runs as the user 'apache.' I'm able to run the script successfully from the command line as root but when I run i

[PHP] & before function name

2003-08-14 Thread Rodney Green
In the code below what does the & (ampersand) at the beginning of the function name do? Code from ADODB library-- function &ADONewConnection($db='') { GLOBAL $ADODB_Database; $rez = true; if ($db) { if ($ADODB_Database != $db) ADOLoadCode($db); } el

[PHP] BerkeleyDB and PHP

2003-08-14 Thread Rodney Green
Greetings! I'm looking at using BerkeleyDB along with PHP. This is a bit off topic but is there a WIN32 binary distribution of BerkeleyDB somewhere out there? I've looked but haven't had any luck in finding it. I don't have Visual C++ to compile the source. If someone knows of a precompiled source

Re: [PHP] shell_exec

2003-08-08 Thread Rodney Green
> Shell side: > - must be readable and executable by user (apache or perhaps everyone) > - suid bit work only for programs, not scripts I think > - shell can only execute cmds for which it's effective user has > sufficient permissions > > Try this (as root on webserver), if you can login as apac

Re: [PHP] Installer Software

2003-08-06 Thread Rodney Green
> I am making an application in PHP, but I want it to run on a user's > local computer... but I need to find someway to bundle this so that when > it is distributed, the installer installs PHP for windows... then copys > the PHP files to the correct directory, then puts a short cut on the > deskto

Re: [PHP] file upload script

2003-06-08 Thread Rodney Green
7;]['type'].""; echo "Copy Done"; } else { echo ""; echo "Could Not Copy, Wrong Filetype (".$_FILES['imagefile']['name'].")"; } } ?> - Original Message - From: "Philip Olson"

Re: [PHP] file upload script

2003-06-08 Thread Rodney Green
anks again, Rod - Original Message - From: "Philip Olson" <[EMAIL PROTECTED]> To: "Rodney Green" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, June 08, 2003 1:21 AM Subject: Re: [PHP] file upload script > > By no errors, do you mean

[PHP] file upload script

2003-06-07 Thread Rodney Green
Hello. I'm attempting to upload a file using the script below and I'm not having any success. The temp directory I'm using does exist and is writeable. When I browse for the file then hit the send button it appears to be working then displays the form again with no errors. I look for the file on th

[PHP] Re: [php] Re: [PHP] SSL

2003-03-22 Thread Rodney Green
> You can use Curl to send post requests, take a look at > http://www.php.net/curl > > If you have compiled PHP --with-openssl you can also access https > locations with functions such as file_get_contents. > > If Curl is not an option and you have PHP compiled with streams and > --with-openssl yo

[PHP] SSL

2003-03-22 Thread Rodney Green
Greetings! Is there a PHP function that will allow a script to connect to a web server using SSL? I would need to post data from a script to a remote server securely. The remote server has SSL enabled. Thanks, Rod CinchHost.com - Web Hosting Made Ea

Re: [PHP] x12 837

2003-01-16 Thread Rodney Green
: Ok, I know this is a longshot but does anyone on this list work in the : healthcare industry and have created an 837 with php? I am thinking of : attempting to create one in php and didn't want to reinvent the wheel. Just curious. What is an 837? -- PHP General Mailing List (http://www.php

Re: [PHP] Class Function Problem

2002-12-10 Thread Rodney Green
$toolsneeded instead? - Original Message - From: "Sean Mayhew" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 10, 2002 3:59 PM Subject: Re: [PHP] Class Function Problem : while(list($name,$url) = each($tools)) : : : >From: "R

[PHP] Class Function Problem

2002-12-10 Thread Rodney Green
What is on line 251? >Warning: Variable passed to each() is not an array or object in >/home/www/website/admin/include/adminclass.php on line 251 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Help please: Unable to get $_POST["variable"]; to work in a form.

2002-12-10 Thread Rodney Green
the word METHOD is incorrectly spelled. This is the exact code in the HTML file: PHP Form Example Your name: Your age: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Pls Help: Moving script from Win to Linux

2002-12-10 Thread Rodney Green
Needs to be changed to the following if your forms are using the GET HTTP method: if(!isset($_GET["var"])){ // do nothing }else{ // VAR IS SET.. DO SOMETHING } If your forms use the POST HTTP method then it needs to be changed to: if(!isset($_POST["var"])){ // do nothing }else{ // VAR IS SET..

Re: [PHP] Pls Help: Moving script from Win to Linux

2002-12-10 Thread Rodney Green
Register_Globals is off by default in version 4.2.3. See the following manual page for more information. http://www.php.net/manual/en/language.variables.predefined.php - Original Message - From: "Shane" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 10, 2002 11:08

Re: [PHP] Need email solution

2002-11-26 Thread Rodney Green
You could try Mercury, which is free. Mercury Information: http://www.pmail.com/overviews/ovw_mercwin.htm Mercury Download: http://www.pmail.com/downloads_maine_t.htm You'll want the Mercury Mail Transport System for Win32 and Netware Systems v.3.32. Don't worry, Netware is not required. -Rod