[PHP] imap

2002-11-25 Thread Greg
Can I user php to create IMAP mailboxes? I'm using Cyrus and php and apache are running on the same computer as Cyrus. Thanks! -Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: imap

2002-11-25 Thread Greg
When trying to imap_connect to my local imap server, I get this error: Warning: Couldn't open stream {localhost:143} in /var/www/html/user/mail.php on line 2 can't connect: Any ideas? Thanks "Greg" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news

[PHP] LDAP, check if exists before enter

2002-12-17 Thread Greg
Hi- Does anyone have any PHP code to check if a uid exists in a LDAP directory before it is entered? I can't quite get ldap_search to work. Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php / unix functions

2002-12-17 Thread Greg
Hi- Is there a built in way, besides using exec and system, to get the output from commands like 'uptime' and 'df' on a linux system? Thanks! -Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php / unix functions

2002-12-17 Thread Greg
I just want to display the output of 'uptime' and 'df' on a php page /Greg "Andy Turegano" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Well, what do you want them to do? > > > On Wed, 18 Dec 2002, Ma

Re: [PHP] php / unix functions

2002-12-17 Thread Greg
OK, I lied :) I don't want the raw output, I want to be able to pick the parts of the output that I want and display that. Thanks -Greg "Martin Towell" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > in that case, try pass

[PHP] Parsing a string

2003-01-03 Thread Greg
er", the third "0.09", the fourth "0.02", and the fifth "0.00". Any easy way to do this? Thanks very much in advance! -Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] checkboxes & php

2003-01-24 Thread Greg
If I have 3 checkboxes labeled "user", but each one has a seperate value, how do I get the values of each checkbox? For example, how would I tell if the following checkboxes are checked? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] checkboxes & php

2003-01-24 Thread Greg
l the checkboxes are called "Mid". Any ideas? /Greg "Edward Peloke" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > why would you give them all the same name? I can see this for radio buttons > but not checkboxes. > &

Re: [PHP] checkboxes & php

2003-01-24 Thread Greg
Ah, that's exactly what I was looking for. Thanks! I had the right PHP code, just didn't have the right html :) /Greg "1lt John W. Holmes" <[EMAIL PROTECTED]> wrote in message 00a201c2c3e8$6e2431d0$a629089b@TBHHCCDR">news:00a201c2c3e8$6e2431d0$a629089b@TBHH

[PHP] Re: NEWBIE: request querystring

2003-01-24 Thread Greg
$var = $_GET["varName"]; "Tim Haskins" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am crossing over from ASP to PHP and was wondering how to get the same > affect as request.questring ? Thanks! > > -- PHP General Mailing List (http://www.php.net/) To

[PHP] IFRAMES & PHP

2003-01-27 Thread Greg
Hi, I have a form with an IFRAME nested in it. When the form is submitted, I can't get the values of the checkboxes in the IFRAME, is there any way to do this? Thanks! -Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] IFRAMES & PHP

2003-01-27 Thread Greg
t; wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > --- Greg <[EMAIL PROTECTED]> wrote: > > Hi, I have a form with an IFRAME nested in it. When > > the form is submitted, I can't get the values of the > > checkboxes in the IFRAME, is there a

Re: [PHP] IFRAMES & PHP

2003-01-27 Thread Greg
Unfortunatly, that gets rid of the reason I have the iframe in there to begin with. I need a scrollable iframe with a set of buttons that perform certain actions at the top, that have to always be at the top. -Greg "Sean Burlington" <[EMAIL PROTECTED]> wrote in message [EMAIL

Re: [PHP] IFRAMES & PHP

2003-01-27 Thread Greg
But the buttons are outside of the iframe, so that no matter how large the frame gets, the buttons are always in the same place :/ -Greg "John W. Holmes" <[EMAIL PROTECTED]> wrote in message 000501c2c629$f98c8590$7c02a8c0@coconut">news:000501c2c629$f98c8590$7c02a8c0@coc

Re: [PHP] IFRAMES & PHP

2003-01-27 Thread Greg
Thank you guys for all the help, I'll try a few of these things, if not I'll just redesign the page. -Greg "Adrian [EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote in message 00e001c2c631$b402e160$1a8f43d9@ADE2">news:00e001c2c631$b402e160$1a8f43d9@ADE2... > hmm.

[PHP] PHP can create, but not delete

2003-02-11 Thread Greg
Hi- I'm having a problem with deleting a Cyrus IMAP mailbox. I can create the mailbox just fine. Any ideas on why I can't delete the mailbox? Here is some code that I got off this newgroup a few months ago: function deleteMailbox ($mailbox) { $existing_boxes = imap_listmailbox($this->

[PHP] PHP & JavaScript

2003-02-12 Thread Greg
code that performs operations on it. Is there any way around this? I'm looking for either a PHP or a JavaScript solution. Thanks, Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP & JavaScript

2003-02-12 Thread Greg
Thank you so much, that worked perfectly...I know it's off topic, but do you know how to automatically select all elements of a select multiple box and then submit the form using a submit button? Thanks! -Greg "John Nichel" <[EMAIL PROTECTED]> wrote in message [EMAIL PR

[PHP] Re: undefined function - crypt()

2003-02-12 Thread Greg
I believe you need to have mcrypt installed. -Greg "Anthony Ritter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Using MS Win98 / PHP /Apache > > I'm getting a undefined function error - crypt() > > The following

[PHP] check if a file has already be included

2003-02-17 Thread Greg
Is there any way to check if a file has been included / required already, and if not include / require it? Thanks! -Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] check if a file has already be included

2003-02-17 Thread Greg
Thanks, forgot about that :) I'm a converted ASP programmer...ASP has no such ability. -Greg "Rick Emery" <[EMAIL PROTECTED]> wrote in message 013b01c2d6a1$2a599d70$0500a8c0@honeybee">news:013b01c2d6a1$2a599d70$0500a8c0@honeybee... > can you use: include_once(

[PHP] PHP, LDAP - Can't delete from more than 1 group

2003-02-19 Thread Greg
I'm using PHP to add users to my ldap directory. When I create a user they can be added to 1 or more groups. When that user is deleted, I want to remove them from all groups. The code I wrote only removes them from the first group, then gives an error for any other group. Here is the code, foll

[PHP] Submit buttons

2003-02-25 Thread Greg
Is there any way that I can have a form submit to different pages depending on the submit button that is pressed? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Submit buttons

2003-02-25 Thread Greg
I'm horrible at javascript, does anyone have a script that will do this? Thanks again!! "Oliver Witt" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Greg schrieb: > > > Is there any way that I can have a form submit to different pages depending

[PHP] Authenticate against LDAP database

2003-03-13 Thread Greg
rably ntpassword. Thanks! -Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Hashing in PHP

2002-10-31 Thread Greg
Hi, is there an easy way to get the lanman and md4 hash of a string in PHP? I know there's a md5() function, but can't find anything else. Thanks!! -Greg -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] _POST & _GET

2002-11-11 Thread Greg
Thanks everyone :) -Greg "John W. Holmes" <[EMAIL PROTECTED]> wrote in message news:001f01c289b9$bebdf3b0$7c02a8c0@;coconut... > > Hi- > > Can I use both _GET and _POST in the same php file? Thanks!! > > -Greg > > Yes, you can use both in your code, bu

[PHP] MD4 and lanman hash

2002-11-11 Thread Greg
Hi- Does anyone know how I can craete md4 and lanman hashes with php? Thanks!! -Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] cyrus / php

2002-11-11 Thread Greg
Does anyone know of a way to add cyrus users through php? I've looked at web-cyradm but that relies on mysql...Thanks again! -Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] get the output from a program

2002-11-12 Thread Greg
Hi- Is there a way in PHP to execute a program and then have it pass its output back to PHP? Say I wanted to return the value that running "df" produced and put it in a web page? Thanks!! -Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

Re: [PHP] get the output from a program

2002-11-12 Thread Greg
exec() worked jsut fine. Is there any drawback to using this? -Greg "Adam Williams" <[EMAIL PROTECTED]> wrote in message news:Pine.LNX.4.33L2.0211121138370.5968-10@;roark.mdah.state.ms.us... > actually, look up system() I think it would be better in your case. > >

[PHP] trim strings

2002-11-13 Thread Greg
Hi- Is there return a string with it's first 10 characters stripped? Thanks. _Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] parse comma delimited file

2002-11-14 Thread Greg
Hi-\ Is there an easy way in PHP to parse a comma delimited text file that could be uploaded in a form? Thanks! -Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] parse comma delimited file

2002-11-14 Thread Greg
Great, thanks...didn't see that one :) -Greg "Kevin Stone" <[EMAIL PROTECTED]> wrote in message news:176401c28c32$11cf7fe0$6601a8c0@;kevin... > You bet there is.. > > fgetcsv(); > http://www.php.net/manual/en/function.fgetcsv.php > > -Kevin > &g

[PHP] Newbie Question

2002-03-13 Thread Greg
I have an app that worked with mySQL, but now I'm trying to make it use SQL Server. The function that connected to to the mySQL was: mysql_pconnect($db_host, $db_user, $db_pass) or die("Unable to connect to SQL server"); I tried to change it to "sql_pconnect($db_host, $db_user, $db_pass) or di

[PHP] spaces vs   in form fields

2001-10-29 Thread Greg
I have a function which takes an integer (the id field for a record) and returns the corresponding full name of the person whose id matches the integer. The function constructs the full name by querying a table for the row which matches the id and then concatenating firstname, middlename, and las

[PHP] testing

2005-03-07 Thread Greg
Just testing guys :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] [ignore] testing connection

2005-03-07 Thread Greg
ignore please, just testing connection :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: readdir and opendir

2004-05-10 Thread greg
Vincent Dupont wrote: Simple question : do readdir and opendir support opening HTTP urls ?? RTFM ! No it doesn't. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: $myobject->$$varname doens't work ??

2004-05-09 Thread greg
Good luck, welcome to oop :) PHP 5 is great ! :D My favorites are __get() and __set() It allows a very flexible programmation and a very simple programmation when using huge objects correctly implemented. Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Strange mails...

2004-05-09 Thread greg
Each time I post a message on p.general, i receive two strange mails from ADVANCE CREDIT SUISSE BANK. What's this spam ? It looks like an auto-responder is subscribed on the newsgroup. Spammers really s*x ! Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] $myobject->$$varname doens't work ??

2004-05-09 Thread greg
uot; as expected ?> Is it a bug or is it normal ? I didn't find anything about it in documentation (php4 / php5). Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PEAR::DB is great but is sooooo SLOW !

2004-05-16 Thread greg
ss in that case ! Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PEAR::DB is great but is sooooo SLOW !

2004-05-16 Thread greg
Greg wrote: Hello, I've just performed a few tests when using PEAR::DB and the results weren't good at all. If I compare a script using PEAR::DB with a script using standard functions (and which supports mysql, pgsql and sqlite databases), the script using PEAR::DB is 10 times slowe

[PHP] Re: PEAR::DB is great but is sooooo SLOW !

2004-05-16 Thread greg
uest often. Am I the only one annoyed by this loss of performance ? Because this is a huge loss in that case ! Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] can I mail unlimited in one click?

2002-12-16 Thread Greg Donald
seems to be 30 seconds, pretty low for 300 emails: >cat `locate php.ini`|grep max_execution_time max_execution_time = 30 ; Maximum execution time of each script, in seconds -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Announcing open CVS for phpDocumentor project

2003-01-02 Thread Greg Beaver
:/opt/cvsroot co phpdoc Take care, Greg Beaver -- phpDocumentor 1.2.0beta due out this week! http://www.phpdoc.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: parse error

2003-01-03 Thread Greg Beaver
In addition to the other errors pointed out... I assume you want a loop. change while($row = mysql_fetch_array($response)); to while($row = mysql_fetch_array($response)) { Take care, Greg -- phpDocumentor http://www.phpdoc.org > while($row = mysql_fetch_array($response)); > >

[PHP] Re: [PEAR-DEV] Announcing open CVS for phpDocumentor project

2003-01-04 Thread Greg Beaver
Hi all, open cvs has been fixed. Use at will Take care, Greg "Jesus M. Castagnetto" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > It does not seem to be working at the moment. > > --- Greg Beaver <[EMAIL PROTECTED]

[PHP] Re: undocumented OOP feature/bug?

2003-01-05 Thread Greg Beaver
essential for the new version of a complex data-access project I'm working on constantly (http://calendar.chiaraquartet.net) Take care, Greg -- phpDocumentor http://www.phpdoc.org "Sean Malloy" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Con

[PHP] Re: Pass Variables

2003-01-05 Thread Greg Beaver
Use sessions, you can save the result of the previous form in a server-side variable, and it will still be there even if the user has a modem disconnect. http://php.net/session Take care, Greg -- phpDocumentor http://www.phpdoc.org "Stephen" <[EMAIL PROTECTED]> wrote in mess

[PHP] re> Save Image?

2003-01-06 Thread greg R
If it were possible, it would likely be a javascript function, rather than PHP, because it would be controlled by the browser. Check the JavaScript navigator or window objects. # # # Hi all, I have a PHP page that returns products. My client wants to have a button beside each product that says

[PHP] Re: Parse source for braces

2003-01-06 Thread Greg Beaver
urned by the phpDocumentorTParser is an array of tokens from the tokenizer, so the code will already be split up, if that is useful. If not, you can easily join the code back into a string using: $total = ''; foreach($source as $item) { if (is_array($item)) $item = $item[1]; // $it

[PHP] Re: htmlspecialchars() or htmlentities without destroying tags?

2003-01-07 Thread Greg Beaver
Hi Justin, You have to specify the list of tags you want preserved in an array, but this function from phpDocumentor will do it: /** * smart htmlentities, doesn't entity the allowed tags list * Since version 1.1, this function uses htmlspecialchars instead of htmlentities, for international sup

Re: [PHP] How to detect a PHP script time-out?

2003-01-07 Thread Greg Beaver
Hi Jean-Christian, see: http://www.php.net/manual/en/features.connection-handling.php Take care, Greg -- phpDocumentor http://www.phpdoc.org "Jean-Christian Imbeault" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Timothy Hitch

Re: [PHP] How to detect a PHP script time-out?

2003-01-07 Thread Greg Beaver
connection_aborted, there appear to be issues to take into account. Take care, Greg -- phpDocumentor http://www.phpdoc.org "Jean-Christian Imbeault" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Greg Beaver wrote: > >

[PHP] Re: Dynamic Regex

2003-01-08 Thread Greg Beaver
Hi Gerard, all the preg_* functions require delimiters surrounding regular expressions. $foo = '\[this\](.*?)that'; should be by default: $foo = '/\[this\](.*?)that/'; the code you tried uses # as the delimiter instead of /, an option preg_* allows Take care, Greg -

Re: [PHP] Re: Dynamic Regex

2003-01-08 Thread Greg Beaver
s closing information, and probably giving an odd error about "u" not being appropriate that's why # worked, because there were no other # in the string. Hope that answers the question (properly this time!) Take care, Greg - Original Message - From: "Gerard Sam

[PHP] aggregation users?

2003-01-08 Thread Greg Beaver
Is anyone out there using the new aggregation functions on objects? Greg -- phpDocumentor http://www.phpdoc.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: HEEELP...please

2003-01-09 Thread Greg Beaver
$DOCUMENT_ROOT is now $_SERVER['DOCUMENT_ROOT'] unless register_globals is on. You need include $_SERVER['DOCUMENT_ROOT'].'/../lib/somefile.conf'; take care, Greg -- phpDocumentor http://www.phpdoc.org <[EMAIL PROTECTED]> wrote in message [EMAIL PROTE

Re: [PHP] global to superglobal

2003-01-11 Thread Greg Beaver
of genius... :)) It will be best to start from the code and do search and replace (one by one, dont' try anything fancy or you might waste time undoing your "fixes"). Then finding things from error reports will be easier. Take care, Greg -- phpDocumentor http://www.phpdoc.org

Re: [PHP] OOP

2003-01-15 Thread Greg Beaver
would benefit from examining how other authors have solved the same problems even if you are simply trying to learn php Take care, Greg -- phpDocumentor http://www.phpdoc.org "Jordan Elver" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > >

[PHP] Get command line output

2003-01-22 Thread Greg Chagnon
PCPU WHAT root pts/0brpt-sh6-port214 11:01am 0.00s 0.27s 0.06s w Now what if I just want the infor on the 3rd line, and info about anyone else who is logged in, such as the username, the host, and the time without getting all the uptime and the header info? Thanks! -Greg -- PHP Ge

[PHP] Re: $object->function($parameter)->function();

2003-01-22 Thread Greg Beaver
Hi Chris, Zend Engine 2.0 supports this syntax, and will be included with PHP 5. You can read all about zend 2 and its other improvements at http://www.zend.com Greg -- phpDocumentor http://www.phpdoc.org "Chris McCluskey" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECT

[PHP] Re: Rather complex regular expression for the preg_match_all function

2003-01-23 Thread Greg Beaver
Hi, it would be MUCH faster and easier to debug if you wrote a parser. See the example parsers in phpDocumentor, download available at http://www.phpdoc.org Greg "Andreas Sheriff" <[EMAIL PROTECTED]> wrote in message 000701c2c272$6b13b870$[EMAIL PROTECTED]">news:0007

Re: [PHP] Select value for driopdown box

2003-01-25 Thread Greg Beaver
This line: $selected = $state == $sel_state ? "selected=\"selected\"" : ""; should probably be: $selected = (($state == $sel_state) ? "selected=\"selected\"" : ""); I haven't tested this correction, but have had to use the paren

Re: [PHP] Good way to organize code using classes???

2003-01-28 Thread Greg Beaver
Be careful with aggregation, it is REALLY unstable in PHP 4.3.0. I get crashes of PHP left and right, when changing the most random things (like adding a comment in another part of the code separate from aggregation!!) Greg -- phpDocumentor http://www.phpdoc.org "Jeff Warrington&quo

[PHP] Re: Calling other php scripts from inside a php script.

2003-02-01 Thread Greg Beaver
EQUEST/$_GET/$_POST Take care, Greg -- phpDocumentor http://www.phpdoc.org "Jason Howlett" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I am new to PHP and I am writing a script that evaluates input from a form > then c

Re: [PHP] PHP Sessions Not Saving

2003-02-03 Thread Greg Donald
mpile, why? How about a link? ln -s /sbin/sendmail /usr/sbin/sendmail -- Greg Donald http://destiney.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Sessions Not Saving

2003-02-03 Thread Greg Donald
ink this way then: ln -s /usr/sbin/sendmail /sbin/sendmail -- Greg Donald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Documentation Help

2003-02-05 Thread Greg Beaver
Hi Hardik, You will find phpDocumentor useful in this endeavor. Check out http://www.phpdoc.org Greg -- phpDocumentor 1.2.0beta3 is out http://www.phpdoc.org "Hardik Doshi" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > >

[PHP] Re: How can I link to all BUT $PHP_SELF

2003-02-05 Thread Greg Beaver
Try this out (untested) (basename ($file) == basename ($_SERVER['PATH_TRANSLATED']))) Greg -- phpDocumentor 1.2.0beta3 is out http://www.phpdoc.org "ØYstein HåLand" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I use t

[PHP] Learning PHP

2003-02-12 Thread Greg Luce
Could anyone recommend a fast track for learning php for an experienced ColdFusion developer? I'm working my way through the tutorials on php.net and free2code.net, but they seem pretty kindergarten. Any advice?

Re: [PHP] calculating kilobytes

2003-02-14 Thread Greg Donald
ly not be possible in safe mode, but there's no way to tell since you posted no code. -- Greg Donald http://destiney.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] redirect

2003-02-14 Thread Greg Donald
> What is the syntax to have php redirect to another web site? http://domain.com/";); ?> -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MD5 Passwords (How it works?)

2003-02-17 Thread Greg Donald
at happens when I user has lost there password and needs to >retrieve it, there is no way to reverse the process is there? md5 is one-way encryption. I use a password 'hint' field in conjunction with md5. -- Greg Donald http://destiney.com -- PHP General Mailing List (http://

Re: [PHP] PHP 5

2003-02-17 Thread Greg Donald
is the expected release date? Or is still too soon to tell still? Thanks, -- Greg Donald http://destiney.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Data from DB

2003-02-17 Thread Greg Donald
ries. Then the data that is returned you will want to place into an array. Then finally you will want to iterate over the array creating some html from each row for display. -- Greg Donald http://destiney.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

Re: [PHP] Protecting files

2003-02-17 Thread Greg Donald
that is not the case, I'd move. What kind of system is it? If it's unix you can make use of chown and chmod to protect your stuff. If it's windows, I don't know. -- Greg Donald http://destiney.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] IRR Function in PHP

2003-02-17 Thread Greg Donald
On Mon, 17 Feb 2003, Jonathan Pitcher wrote: >This process involves an IRR Calculation. Or Internal Rate of Return. Sorry, I don't think there are any accountants lurking on the list, so please explain what the actual calculation for an IRR should be. -- Greg Donald http://dest

[PHP] Re: function getting redeclared

2003-02-18 Thread Greg Beaver
for php 5 when you can declare a method to be private/protected. Having said that, if you are still into nested functions, try using if (!method_exists($this,'isValidPhoneNumber')) { .. } Greg "Erik Price" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]"

Re: [PHP] Threading

2003-02-18 Thread Greg Donald
On Tue, 18 Feb 2003, Bruce Miller wrote: >Will PHP allow multiple-thread execution? PHP4 does not have thread support. -- Greg Donald http://destiney.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] simple ereg question

2003-02-20 Thread Greg Donald
if (ereg('[0-9]+','$_POST["gamt_$i"]')) > { > continue; > } > else >{ > die("Non-numeric data entered in grass entry field(s)."); >} >} Try changing '$_POST["gamt_$i"]' to $_POST['gamt_$i'] --

Re: [PHP] upgrade to 4.3.0 nearly doubled execution time

2003-02-24 Thread Greg Beaver
Hi, phpDocumentor is fully 30% faster (version 1.0.0, 1.1.0, 1.2.0beta2, cvs head) in PHP 4.3.0 than in PHP 4.2.3 on both linux and windows. The backend for my website is not noticeably faster or slower in PHP 4.3.0/4.2.3 and contains a good deal of database access to mysql. Greg

[PHP] Newbie Question

2003-02-25 Thread Greg Luce
Can someone explain why this code works on the hosting company's server, but won't run on my local server? I'm not sure what version is on the host server, but I'm running 4.0.5 locally on winXP Pro. The error says: Fatal error: Cannot redeclare dbfield() in c:\inetpub\wwwroot\livinginnaples\databa

[PHP] solution to bad phpDocumentor tarball in windows

2003-02-28 Thread Greg Beaver
). I downloaded a trial version of: WinZip 8.1 which I unzipped things, and it works! Thanks! So, if you are a windows user, downloaded the tarball directly and tried to unzip it using pkzip, you need to use winzip Regards, Greg -- phpDocumentor http://www.phpdoc.org -- PHP General Mailing

[PHP] Re: 2 questions !

2003-03-01 Thread Greg Beaver
TED']) > - Know under which user work apache, to know when I create a file whose > file it is... in unix, a safe installation will run apache as nobody. Greg -- phpDocumentor http://www.phpdoc.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Keeping existing data in textarea's

2003-03-03 Thread Greg Donald
they receive the alert message, but then have to start all >over again. How do I keep the existing data in the textareas from >dissapearing after the alert message? $fill = isset($_GET['textareafield']) ? $_GET['textareafield'] : ""; $html = <<$fill EOF;

Re: [PHP] deciperhing oop

2003-03-04 Thread Greg Beaver
http://pear.php.net/package-info.php?pacid=46 and http://pear.php.net/package-info.php?pacid=54 Greg -- phpDocumentor http://www.phpdoc.org "Larry Brown" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thank you everyone for helping. I didn't know you have

[PHP] Re:

2003-03-04 Thread Greg Beaver
Hi, You will benefit from enclosing all of the attributes in quotes, as in In addition, make sure your a name tag has a closing tag like Regards, Greg -- phpDocumentor http://www.phpdoc.org "Beauford.2002" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > No

[PHP] Re: Getting error REG_EMPTY

2003-03-04 Thread Greg Beaver
Hi If $line is == '', you will get an error. Try @split('|', $line), or add a test for empty lines like if (empty($line)) continue; if you var_dump($line);, you'll probably see that there is an empty line in members.txt Regards, Greg -- phpDocumentor http://www.p

Re: [PHP] Need help with ?> vs. php?>

2003-03-05 Thread Greg Donald
On Wed, 5 Mar 2003, LeTortorec, Jean-Louis wrote: >My pages starting and ending with "" don't work anymore. I would >have to change them to "". > >Do you know if there is a way for keeping "http://destiney.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

Re: [PHP] Making a true statement false.

2003-03-07 Thread Greg Beaver
($row = mysql_fetch_array($result)) { do something else } else { do something } You would be well advised to use this syntax: if (!($row = mysql_fetch_array($result))) to ensure operator precedence is clear. (the equals followed by not) Regards, Greg -- phpDocumentor http://www.phpdoc.org -

php-general@lists.php.net

2003-03-07 Thread Greg Beaver
Hi James, & is a bit-wise AND. && is a logical AND. The bitwise AND will return a number, the logical AND will return true or false boolean values. It's a subtle distinction, but important. 4 & 4 == 4 4 && 4 == true == 1 Regards, Greg -- phpDocumentor http:

Re: [PHP] php trouble

2003-03-08 Thread Greg Beaver
If register_globals is off echo $_GET['sort']; echo $_GET['var2']; Greg -- phpDocumentor http://www.phpdoc.org Ashley M. Kirchner wrote: Benny Pedersen wrote: how do i get var from a url like this one http://localhost/index.php?sort=name&var2=login In index.php:

Re: [PHP] More array syntax

2003-03-08 Thread Greg Beaver
Hi John, foreach ($var as $key => $value) { if (!$key) { $$key = filter_string($key.': ',$line); } } Regards, Greg -- phpDocumentor http://www.phpdoc.org John Taylor-Johnston wrote: I have an array $var (see structure below), which contains AN, AU, TI, PY ... etc.

Re: [PHP] Re: Form 2 PDF 2 Form

2003-07-01 Thread Greg Beaver
words, the final review should also be multi-page, matching the original form. The user will understand this. Paper forms have more than one page, and you have to flip them back and forth, so if you model it that way, no one will have a real problem, even really computer-illit

Re: [PHP] Forms & PHP

2003-07-02 Thread Greg Wiley
d in the second form you have: ... Cheers, Greg. -- Greg Wiley www.wileysworld.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] phpDocumentor 1.2.1 release is imminent

2003-07-02 Thread Greg Beaver
at http://www.phpdoc.org Regards, Greg -- phpDocumentor http://www.phpdoc.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   3   4   5   6   7   8   9   10   >