Re: [PHP] mutliple select form not passing multiple values

2004-02-11 Thread Ben Ramsey
: Hello Ben, Wednesday, February 11, 2004, 9:22:33 PM, you wrote: BR Am I doing something wrong? Yup :) It needs to be: select name=modules[] ... Note the change in name from modules to modules[] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] PHP License question

2004-02-12 Thread Ben Ramsey
I currently developing a project that I wish to release under a, preferably, open-source and copy-left license. So, I'm taking a close look at the GNU GPL for this, and it seems to serve this purpose, well. However, I am aware that the PHP license conflicts with the GNU GPL, and, thus,

[PHP] Re: sql query question

2004-02-12 Thread Ben Ramsey
This is a SQL question, rather than a PHP question, so I would suggest doing a google search on SQL tutorials, but I think what you are trying to do would work like this: SELECT * FROM table WHERE descript LIKE '%new%' OR descript LIKE '%car%' Tony wrote: hi if i have new car and i want

[PHP] Re: PHP License question

2004-02-13 Thread Ben Ramsey
, in this case, I chose to use the following wording, and the folks at FSF told me this was fine: snip In addition, as a special exception, Ben Ramsey gives permission to link the code of this program with those files in the PEAR library that are licensed under the PHP License (or with modified

Re: [PHP] Re: PHP License question

2004-02-13 Thread Ben Ramsey
Yup. I believe that's what you have to do in order to satisfy the restrictions in the GPL. Gerard Samuel wrote: So to clarify. If I have a piece of code that utilises PEAR's Tar class (which uses a PHP License). In order for me to distribute my piece of code (under the GPL) along with the Tar

[PHP] Re: regular expressions

2004-02-17 Thread Ben Ramsey
I've always found the PHP manual to be very helpful: http://www.php.net/manual/en/pcre.pattern.syntax.php Pete M wrote: Getting completely confused how this stuff works !!! Anyone recommend a book for a regex newbie ? pete -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: regular expressions

2004-02-17 Thread Ben Ramsey
Ben Ramsey wrote: I've always found the PHP manual to be very helpful: http://www.php.net/manual/en/pcre.pattern.syntax.php Pete M wrote: Getting completely confused how this stuff works !!! Anyone recommend a book for a regex newbie ? pete -- PHP General Mailing List (http://www.php.net

[PHP] Re: destroy session

2004-02-17 Thread Ben Ramsey
Take a look at the manual. There is a session_destroy() function: http://www.php.net/session Natalia Sensini wrote: I want to destroy a session when you click in a sing out link, something like this a href= link onClick=session_destroy() Is ti possible? how? -- PHP General Mailing List

[PHP] Re: Ideas on modifying array keys

2004-02-18 Thread Ben Ramsey
You might be able to create some function that uses a combination of array_keys(), array_values(), and array_combine() to do what you want. Check the manual at http://www.php.net/array for more information on these functions. Gerard Samuel wrote: Im looking for the fastest way to modify array

Re: [PHP] Re: Ideas on modifying array keys

2004-02-18 Thread Ben Ramsey
you want them to have? Gerard Samuel wrote: On Wednesday 18 February 2004 12:03 pm, Ben Ramsey wrote: You might be able to create some function that uses a combination of array_keys(), array_values(), and array_combine() to do what you want. Check the manual at http://www.php.net/array for more

[PHP] Re: sign not posted to next page

2004-02-20 Thread Ben Ramsey
Use the urlencode() function. http://www.php.net/manual/en/function.urlencode.php Piet From South Africa wrote: i have the following problem. when i href like this a href=nextpage.php?name=$name and the name contains a sign, it does not post it to the next page. if the name is bedbreakfast

[PHP] Re: sign not posted to next page

2004-02-20 Thread Ben Ramsey
Use the urlencode() function. http://www.php.net/manual/en/function.urlencode.php Piet From South Africa wrote: i have the following problem. when i href like this a href=nextpage.php?name=$name and the name contains a sign, it does not post it to the next page. if the name is bedbreakfast

[PHP] Re: sign not posted to next page

2004-02-20 Thread Ben Ramsey
Use the urlencode() function. http://www.php.net/manual/en/function.urlencode.php Piet From South Africa wrote: i have the following problem. when i href like this a href=nextpage.php?name=$name and the name contains a sign, it does not post it to the next page. if the name is bedbreakfast

[PHP] Re: Delayed mail()... ?

2004-02-20 Thread Ben Ramsey
Probably the best way to do this is the use cron to schedule a script to run at a specified time. The way I'd do it is to create a PHP script that compares the current date with the date they registered (you'd save that date to the database, of course). If the current date is greater than 3

Re: [PHP] Re: Delayed mail()... ?

2004-02-20 Thread Ben Ramsey
... i've never heard ofit ;-) (I'll come out from under my rock now) Cheers everyone Ben Ramsey [EMAIL PROTECTED] 20/02/2004 13:36 To [EMAIL PROTECTED], Tristan Pretty [EMAIL PROTECTED] cc Subject [PHP] Re: Delayed mail()... ? Probably the best way to do this is the use cron to schedule

[PHP] Re: hello

2004-02-23 Thread Ben Ramsey
I would advise against sending attachments to the list with the message read it immediately. Chances are, it won't be opened or looked at. Please include a description of the problem you are facing, as well as the code you are using in your message body--not in an attachment. [EMAIL

Re: [PHP] Working with MS-SQL

2004-02-24 Thread Ben Ramsey
web site the m$ sql server web site and your local bookstore on online resource. -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PEAR file??

2004-02-25 Thread Ben Ramsey
/buildingbymatt/public_html/clients/security.php on line 4 -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PEAR file??

2004-02-25 Thread Ben Ramsey
. If I use it in this way, there would be files in my application that would need to include it using .. :) -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Re: PHP5: Directory DirectoryIterator

2004-02-25 Thread Ben Ramsey
using PHP5 Beta 4 I saw some new classes like DirectoryIterator with nice methods like: Where did you see these classes? Is it a PEAR package? I haven't seen these in the PHP manual. -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General

[PHP] Re: PHP5: Directory DirectoryIterator

2004-02-25 Thread Ben Ramsey
That's some pretty helpful information there. I didn't know about that. Thanks! -Ben Vivian Steller wrote: Ben Ramsey wrote: using PHP5 Beta 4 I saw some new classes like DirectoryIterator with nice methods like: Where did you see these classes? Is it a PEAR package? I haven't seen

[PHP] Re: PHP5: Directory DirectoryIterator

2004-02-25 Thread Ben Ramsey
on directoryIterator, and I didn't see it when I used your function on beta 3 (which is what I'm running at present). So, it must be brand new. -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Re: values from string query

2004-02-26 Thread Ben Ramsey
haven't already done so. If the values aren't showing up in the variable, then you definitely need to include the curly braces. If they are showing up, then perhaps MySQL needs the single quotation marks. -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People

[PHP] Re: Obtaing the URL of current page

2004-02-26 Thread Ben Ramsey
Take a look here, you may find this documentation useful: http://www.php.net/manual/en/language.variables.predefined.php Shaun wrote: Hi, How can i obtain the URL of the current page including any $_GET variables? Thanks for your help -- Regards, Ben Ramsey http://benramsey.com http

[PHP] Re: values from string query

2004-02-26 Thread Ben Ramsey
thanx yes i was echoing them and it worked!! Angelo Please remember to include the list on messages. Does this mean that your code now works? Or it still doesn't work but the values are being properly echoed? -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki

[PHP] Re: strstr

2004-02-27 Thread Ben Ramsey
(/^(.*)\@(.*)$/, $email, $matches)) { // $matches[0] contains the original $email $user = $matches[1]; $domain = $matches[2]; } echo $user . br / . $domain; Check out the manual for more info on preg_match(): http://www.php.net/manual/en/function.preg-match.php -- Regards, Ben Ramsey http

[PHP] Re: numeric characters

2004-03-02 Thread Ben Ramsey
Anokre wrote: Is there a way with php to force the user to put only numeric character in a text field ? thanks -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Re: Testing Pear install

2004-03-03 Thread Ben Ramsey
PEAR without having to install it. -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HELP! printing Arrays

2004-03-03 Thread Ben Ramsey
I know that others have already helped you learn out to print out an array, but you can also use print_r($array); to print out the array. It's not useful for the end-user of your application, but it can help you out as you're programming. -- Regards, Ben Ramsey http://benramsey.com http

[PHP] Re: server side redirects

2004-03-03 Thread Ben Ramsey
things on the server-side is always best and more secure; end-users are less likely to be able to screw things up. -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] php/mssql character limit?

2004-03-05 Thread Ben Ramsey
Anyone know of any kind of character limit in php or mssql (yes, Microsoft SQL Server) for entering long text into a text column (of around 4,055 characters in length--that's where it's cutting off)? -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People

Re: [PHP] UK Bank Holidays 2

2004-03-05 Thread Ben Ramsey
and test the array to see if today's day is in there. If it is, then today is a banking holiday. Hope that helps. -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: extra breaks in sent out emails

2004-03-06 Thread Ben Ramsey
but the server is a unix server. Best Regards, Scott -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] UK Bank Holidays 2

2004-03-06 Thread Ben Ramsey
to the list about the same topic only a matter of a few hours apart), I just felt it was uncalled for on the list. However, I didn't mean to start a war or to act as a sort of police. So, I'm sorry. -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey

[PHP] Re: extra breaks in sent out emails

2004-03-07 Thread Ben Ramsey
the message is sent so that you can see exactly what is being sent to the mail() function? -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: extra breaks in sent out emails

2004-03-07 Thread Ben Ramsey
application, I could not determine what was causing the double line break. Scott Taylor wrote: Thank you Ben. Using either str_replace(\n, , $string); or str_replace(\r, , $string); solves the problem. My guess is that when I submit the data there is both the \r and the \n

[PHP] Re: RFC: Job listings

2004-03-07 Thread Ben Ramsey
in the southeastern US. I think that local user groups worldwide will need to take part in promoting such a thing to the local business owners. -Ben Anders Hellström wrote: Hi, I'm one of the volunteers working on PHPCommunity.org. There's been some talk about having a Job Listings section

[PHP] Re: php/mssql character limit?

2004-03-08 Thread Ben Ramsey
appreciative. Ben Ramsey wrote: Anyone know of any kind of character limit in php or mssql (yes, Microsoft SQL Server) for entering long text into a text column (of around 4,055 characters in length--that's where it's cutting off)? -- Regards, Ben Ramsey http://benramsey.com http

Re: [PHP] Re: php/mssql character limit?

2004-03-08 Thread Ben Ramsey
I am using a text column type. I had always though that the max size for varchars was 255. Vincent DUPONT wrote: are you using a 'Text' or a 'varchar' column type? I guess the max size for varchars is 4000; text should be larger -- Regards, Ben Ramsey http://benramsey.com http

[PHP] Re: varchar size mssql

2004-03-08 Thread Ben Ramsey
Davidson wrote: I read that the varchar size for ms sql is 8000 limit. i also read that someone having a problem with it getting truncated fixed his problem by using convert(text, $value) in the sql statement.. Jason -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki

Re: [PHP] Re: varchar size mssql

2004-03-08 Thread Ben Ramsey
this is not a PHP issue may I refer you to http://msdn.microsoft.com ? You will find a truckload of information there as well as tons by searching Google for 'Microsoft SQL Server column types' -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP

Re: [PHP] Re: php/mssql character limit?

2004-03-08 Thread Ben Ramsey
That's precisely what I was looking for, Alex! I must have overlooked it when skimming through php.ini. Thanks! Alex Hogan wrote: Hi Ben, The setting in the php.ini is; mssql.textlimit = 4096 Reset that value to what you want. I have mine set to 400. Valid range 0 - 2147483647 alex

[PHP] Re: Why is this happening

2004-03-08 Thread Ben Ramsey
)); This does: require('languages/' . $language . '/' . basename($_SERVER['PHP_SELF']); Why -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: date() before 1 Jan 1970...

2004-03-08 Thread Ben Ramsey
) (and why it only support date after 1 Jan 1970) ? thanks -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: date() before 1 Jan 1970...

2004-03-08 Thread Ben Ramsey
Ben Ramsey wrote: $old_date = mktime(0, 11, 18, 1, 1, 1903); echo date(Y-m-d H:i:s, $old_date); Argh! I had the numbers reversed. It should be: $old_date = mktime(18, 11, 0, 1, 1, 1903); But you get the idea... -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki

[PHP] use of @ operator to suppress errors

2004-03-15 Thread Ben Joyce
['this'] but it makes no difference. Is this normal? Thanks in advance. Ben p.s. PHP 4.3.4 on Windows 2003 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] use of @ operator to suppress errors

2004-03-15 Thread Ben Joyce
Richard, Tom, and Stuart... thanks for your responses much appreciated. I shall now go and fiddle. Cheers, Ben - Original Message - From: Tom Meinlschmidt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 15, 2004 12:01 PM Subject: Re: [PHP] use of @ operator to suppress

Re: [PHP] use of @ operator to suppress errors

2004-03-15 Thread Ben Joyce
not sure if I'm making much sense. Any help appreciated! Cheers, Ben - Original Message - From: Stuart [EMAIL PROTECTED] To: Ben Joyce [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, March 15, 2004 12:11 PM Subject: Re: [PHP] use of @ operator to suppress errors

Re: [PHP] use of @ operator to suppress errors

2004-03-15 Thread Ben Joyce
Many Thanks Nikolay. It seems then that if I'm to avoid the NOTICE errors then isset() should be used as suggested earlier. Not the greatest solution but a working one. Thanks to all. Ben - Original Message - From: Nikolay Bachiyski [EMAIL PROTECTED] To: Ben Joyce [EMAIL PROTECTED

Re: [PHP] Switching First Last Names in List

2004-03-16 Thread Ben Ramsey
'); print_r($names); echo /pre; ? The echo and print_r lines are to show you what it has done. The $raw_names should be your list of names. -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Switching First Last Names in List

2004-03-16 Thread Ben Ramsey
; //index of last element echo option . $person[$lastname_element] . , ; echo $person[0] . /option\n; //zero (0) is the first name } Ben Ramsey wrote: This works rather nicely, too: ?php $list = Firstname1 LastName1 Firstname2 Lastname2; $name_array = array(); $temp_array = explode(\n, $list

[PHP] Re: js date picker

2004-03-17 Thread Ben Ramsey
browsers thx, luis. -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Replace space from form field using preg_replace

2004-03-17 Thread Ben Ramsey
If you're doing this to pass it through a URL, then use urlencode() http://www.php.net/urlencode Vernon wrote: I want to be able to replace a space that comes from a form field (such as in 123 My Street) with a + sign. Can anyone help me with this? Thanks -- Regards, Ben Ramsey http

Re: [PHP] Stupid question

2004-03-17 Thread Ben Ramsey
, you would need to access those methods or variables using the name of the object. Don't be afraid to contribute! It will even help you grow as a programmer to try to help others solve their coding problems. -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People

[PHP] Re: js date picker

2004-03-17 Thread Ben Ramsey
was not clear enough... but thanx, i found some at phpclasses.org -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Stupid question

2004-03-17 Thread Ben Ramsey
With PHP 5 looming on the horizon (and even many already using it), it'd be a good idea to go ahead and learn OOP now. ;-) Jeff McKeon wrote: Ewe... OOP Ok, I guess I'll have to learn OOP. Thanks for the info! Jeff -- Regards, Ben Ramsey http://benramsey.com http

Re: [PHP] The convension

2004-03-17 Thread Ben Ramsey
with text when it's displayed. chris. -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP encounters Access Violation

2004-03-19 Thread Ben Ramsey
with PHP 5RC1. -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP encounters Access Violation

2004-03-20 Thread Ben Ramsey
Ben Ramsey wrote: What does this error mean? PHP has encountered an Access Violation at 0177A8B4 I get it intermittently from pages in phpOpenTracker that call the jpgraph functions. It's just a blank white page with that error, and that doesn't help me out at all. I'm running Windows Server

[PHP] Scheduling PHP on Windows

2004-03-20 Thread Ben Ramsey
I know how to run a PHP script as a cron job on a *nix machine. So, does anyone know how to use the Task Scheduler on Windows to do the same? Or is it even possible? -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List

[PHP] Re: Function to check a valid date

2004-03-20 Thread Ben Ramsey
and its contents are privileged, confidential and subject to copyright. If you are not the intended recipient, please delete this e-mail immediately. Any unauthorized use or disclosure of the information herein is prohibited. -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org

[PHP] Re: CMS Templating with Standards Based HTML Delima...

2004-03-20 Thread Ben Ramsey
of notable ones that may fit your requirements (e.g. phpWebSite boasts compliant XHTML 1.0 output--though I've never tried it). -Ben Adam Reiswig wrote: I have just been to hotscripts.com looking under their php area for good cms software. The sheer number of choices is staggering to say

[PHP] Re: Comparing values / Regex ?

2004-03-20 Thread Ben Ramsey
Please reply to the list so that everyone may benefit from your questions. --- Ben Ramsey [EMAIL PROTECTED] wrote: Here's my take on it. Pull all your values into one long string: (cut) if (($timestamp = strtotime($date_string)) === -1) { // Not a valid date; do some error reporting

[PHP] Re: php and CSS level 2

2004-03-20 Thread Ben Ramsey
html code... -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Upload file field not working as a form element

2004-03-20 Thread Ben Ramsey
inserted into a MySQL record. I've even tried to get it to echo to the page when the page is submitted to itself and it's not reading the field. What am I missing here? -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http

Re: [PHP] Re: php and CSS level 2

2004-03-20 Thread Ben Ramsey
first every time. I don't know the logic behind it, but, if it's IE, does there have to be any logic? ;-) -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Decoding a URL without decoding values

2004-03-21 Thread Ben Ramsey
() on this string, I get nothing because of the ampersand and spaces in the URL. Is there a way to urldecode() $_GET[url] and still retain its original encoded entities so that I can use it again as a valid URL? -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki

Re: [PHP] 9 Months Ago

2004-03-21 Thread Ben Ramsey
: $nine_months_ago = mktime(0, 0, 0, date(m)-9, date(d), date(Y)); echo date(m/d/Y, $nine_months_ago); If today is March 21, 2004, then this outputs 06/21/2003. That's exactly nine months ago. See http://www.php.net/date -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org

Re: [PHP] Decoding a URL without decoding values

2004-03-21 Thread Ben Ramsey
JW You can base64_encode() it. Hadn't thought of that. Works perfect! Thanks! -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RE: Randomly expired session cookies

2004-03-22 Thread Ben Ford
I have noticed behavior like yours with our server setup. It is not a locally run (or owned) server so I cannot poke around to much. The session is timing out Randomly, causing our users to have to login again. It doesn't happen all the time either. In a rare case, less than a minute after

Re: [PHP] how can I get the id of the last record I inserted into a table with an insert query?

2004-03-29 Thread Ben Joyce
hello. mysql_insert_id() should do what you need. lovely function, that one. hth, ben Diana Castillo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] how can I get the id of the last record I inserted into a table with an insert query? (into Mysql database) -- Diana Castillo

[PHP] Problem accessing an array inside if/switch

2004-03-29 Thread Ben Ramsey
how with two varibles that are pulled from the database. However, it should not make a difference as they are both correctly set before AND after the if statement. Any ideas on this i'm lost. Jesse /quote -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People

[PHP] Re: Simple one I think

2004-03-29 Thread Ben Ramsey
DC I get and output of [0][0][0][1][1][1][2][2][2] why ? Try putting curly braces around your variables. Like this: {$val[name][$i]} -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] find string position using reg exp

2004-03-29 Thread Ben Ramsey
. -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: why won't mssql work?

2004-03-29 Thread Ben Ramsey
on your platform) on the machine that is running PHP. Then, restart IIS. -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: why won't mssql work?

2004-03-29 Thread Ben Ramsey
EP And as far as IIS, I am running apache. Heh. Well, then I guess I can't help you there, as I've never run Apache on a Windows machine. :-) Sorry. I hope someone else can help. -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General

[PHP] Re: STOP to send me mails !!!! Re: [PHP] Re: list to array help

2004-03-29 Thread Ben Ramsey
to receive every message. -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Problem accessing an array inside if/switch

2004-03-29 Thread Ben Ramsey
be one or the other, but both pass. What the heck is going on. I've looked in the database, and the value for that column is of type int and the value is exactly 6. See below for the earlier details of the problem. Is this a bug in PHP 5? Ben Ramsey wrote: One of my co-workers posted

[PHP] Re: Simple one I think

2004-03-30 Thread Ben Ramsey
; } $rows .= /table; echo $rows; However, I feel that it is more logical and easier to use to store the array in the way I suggested above. -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] running php in sequence

2004-03-30 Thread Ben Joyce
()) { zipStuff(); } By all means stick those functions in a file and include them at the beginnign of your script. Make any sense? hth, Ben - Original Message - From: Edward Peloke [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 31, 2004 5:11 PM Subject: [PHP] running

Re: [PHP] web statistics

2004-03-31 Thread Ben Joyce
I use AWStats for my web stats stuff. Pretty easy once the minimal configuration is done. http://awstats.sourceforge.net/ - Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: Elliot J. Balanza [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, March 30, 2004 7:00 PM Subject:

Re: [PHP] hello

2004-04-01 Thread Ben Joyce
Hello. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 01, 2004 3:14 PM Subject: [PHP] hello Try this, or nothing! -- PHP General Mailing List

[PHP] PHP Access Violation using PEAR::Mail_smtp

2004-04-05 Thread Ben Ramsey
be greatly appreciated. I am on a tight deadline, so any help ASAP would be even more greatly appreciated. ;-) -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Re: Weird variable issue encountered... help needed!

2004-04-05 Thread Ben Ramsey
, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP Access Violation using PEAR::Mail_smtp

2004-04-06 Thread Ben Ramsey
? Please forgive me for refreshing my own post to the list, but this is an important question, and it is time-sensitive. Any help or pointers would be greatly appreciated, as I cannot get around this issue at all. Thanks, Ben Ben Ramsey wrote: I'm getting the following error when using the Mail_smtp

[PHP] Re: PHP Access Violation using PEAR::Mail_smtp

2004-04-06 Thread Ben Ramsey
response: 550 Relaying is prohibited in E:\path\to\test.php on line 6 This is why I've gone with using the PEAR class Mail_smtp. It seems the easiest thing to use without having to write a whole lot of socket connection code. -- Regards, Ben Ramsey http://benramsey.com http

[PHP] PHP security in a hosting environment

2004-04-07 Thread Ben Joyce
, and might have any advice on what else to watch out for? Any help appreciated. Thanks. Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Hiding email address from Robots ??

2004-04-08 Thread Ben Ramsey
. The e-mail address would never need to be visible to the browser, and so, the harvesters would never get your address. -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: PHP Access Violation using PEAR::Mail_smtp

2004-04-08 Thread Ben Ramsey
), PHP tried to access a space that it either no longer had permission to access or it never had permission to access. Make sense? I'm sharing this here because several people expressed an interest in knowing how it got resolved. -- Regards, Ben Ramsey http://benramsey.com http

[PHP] What does MAX_FILE_SIZE do?

2004-04-08 Thread Ben Ramsey
input type=hidden name=MAX_FILE_SIZE value=3 / to my form. It didn't seem to do anything. Is the browser supposed to use this to throw a browser-genrated error to me, or something? -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General

Re: [PHP] What does MAX_FILE_SIZE do?

2004-04-08 Thread Ben Ramsey
to the user that the file is over the limit--other than just some error being thrown? I can't find anything in the manual or in the user notes... or maybe I'm just not looking hard enough. -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General

Re: [PHP] What does MAX_FILE_SIZE do?

2004-04-08 Thread Ben Ramsey
? -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What does MAX_FILE_SIZE do?

2004-04-08 Thread Ben Ramsey
to throw a nice error to the user if the file goes over the max file size setting in php.ini? -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Passing Parameters to PHP Script

2004-04-20 Thread Ben Ramsey
, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] dynamically building insert/update forms from db

2004-05-14 Thread Ben Ramsey
what columns and datatypes a table has (which is what I think you are most interested in). These are really easy-to-use classes, too. Then, I would also suggest checking out the PEAR::HTML_QuickForm class, as it has functions you can use to generate HTML forms. -- Regards, Ben Ramsey http

[PHP] How to use pcntl_fork()?

2004-05-18 Thread Ben Ramsey
all calls to receive() from my main program and let the listener take control of that, but I can't even tell if the above code is working, or if I'm even grasping how to make it work. Any help or pointers is greatly appreciated. -- Regards, Ben Ramsey http://benramsey.com

[PHP] Re: How to use pcntl_fork()?

2004-05-19 Thread Ben Ramsey
Does no one know how to use pcntl_fork(), then? ;-) Ben Ramsey wrote: I'm working with PHP-GTK to create a GUI application. This GUI application opens a socket to a gaming server to send/receive data to display to the user. So far, this is working well, but the problem is that it can only

[PHP] RE:php and java applets

2004-05-25 Thread Ben Ford
This is straight from the http://java.sun.com/applets/ web page: When you use a Java technology-enabled browser to view a page that contains an applet, the applet's code is transferred to your system and executed by the browser's Java Virtual Machine (JVM). Java Applets cannot connect to the

[PHP] Re: mail() problem

2004-06-03 Thread Ben Ramsey
member creates an account, this ive done but my email gets binned straight away? must be the headers? Regards Rick -- Regards, Ben Ramsey http://benramsey.com --- http://www.phpcommunity.org/ Open Source, Open Community Visit for more information

Re: [PHP] php installation verification

2004-06-03 Thread Ben Ramsey
thoughts? thank you. -- Regards, Ben Ramsey http://benramsey.com --- http://www.phpcommunity.org/ Open Source, Open Community Visit for more information or to join the movement. --- -- PHP General Mailing

<    4   5   6   7   8   9   10   11   12   13   >