Re: [PHP] MSSQL, PHP and Linux

2004-09-01 Thread Ben Ramsey
hp.net/manual/en/ref.dbx.php ---John Holmes... -- Regards, Ben Ramsey http://benramsey.com --- http://www.phpcommunity.org/ Open Source, Open Community Visit for more information or to join the movement. -

[PHP] Re: register global off

2004-09-01 Thread Ben Ramsey
Actually, I think I read your message wrong... it should be: php_flag register_globals Off Ben Ramsey wrote: The Master value will remain On since it's On in php.ini and the Local value (the value for the directory in which phpinfo() is run) will be Off since that directory has an .hta

[PHP] Re: register global off

2004-09-01 Thread Ben Ramsey
egister_globals", FALSE); > but it still doesn't work. > On php.net manual I can find WHAT I have to do and reasons but not HOW. Make an .htaccess file: php_flag register_globals off -- Regards, Ben Ramsey http://benramsey.com --- ht

Re: [PHP] Problem making on RHEL v3

2004-09-01 Thread Ben Ramsey
local after installing pcre 4.5 and everything worked just fine. Ben Ramsey wrote: Still having the same problem with PCRE. Here's the error I get now: -c /usr/src/php/php_4_3_8/ext/pcre/php_pcre.c -o ext/pcre/php_pcre.lo /usr/src/php/php_4_3_8/ext/pcre/php_pcre.c: In function `php_pcre_match'

[PHP] Re: MSSQL, PHP and Linux

2004-09-01 Thread Ben Ramsey
like most things where uncommented. here is the info page... http://mwvre.ht-tech.net/info.php This is something we have to get fixed today. Thanks!! -- Regards, Ben Ramsey http://benramsey.com --- http://www.phpcommunity.org/ Open Source, Open Community

Re: [PHP] Problem making on RHEL v3

2004-09-01 Thread Ben Ramsey
ndeclared (first use in this function) /usr/src/php/php_4_3_8/ext/pcre/php_pcre.c:416: `PCRE_INFO_NAMEENTRYSIZE' undeclared (first use in this function) make: *** [ext/pcre/php_pcre.lo] Error 1 Curt Zirzow wrote: * Thus wrote Ben Ramsey: I'm having a problem with PHP 4.3.8 failing to

[PHP] Re: PHP with Access DB without ODBC

2004-09-01 Thread Ben Ramsey
Juan Torres wrote: how can i connect php with an access db. I need to do it without use ODBC. Try using COM: http://us4.php.net/com It works similar to the way it does in ASP. -- Regards, Ben Ramsey http://benramsey.com --- http

[PHP] Problem making on RHEL v3

2004-09-01 Thread Ben Ramsey
what to try next (plus I need each of these options). Any help would be appreciated. -- Regards, Ben Ramsey http://benramsey.com --- http://www.phpcommunity.org/ Open Source, Open Community Visit for more information or to join the movement.

[PHP] Re: New object model

2004-07-14 Thread Ben Ramsey
with PHP4 (meaning that the objects are passed by value instead of by reference... the old way). -- Regards, Ben Ramsey http://benramsey.com --- http://www.phpcommunity.org/ Open Source, Open Community Visit for more information or to join the mov

[PHP] Re: [mysql]Problem with PHP5

2004-07-14 Thread Ben Ramsey
Depending on your platform, you will either need to build PHP 5 with support for MySQL, or you will need to modify php.ini to load in the MySQL extension. -- Regards, Ben Ramsey http://benramsey.com --- http://www.phpcommunity.org/ Open So

Re: [PHP] Sending email without an email server

2004-07-13 Thread Ben Ramsey
server. I was wondering how could I send emails either connecting directly to the mx or sending through a relay. mail() on Windows system does (only) use SMTP. Just configure your php.ini correctly and it should work. -- Regards, Ben Ramsey http://benramsey.com

[PHP] Re: Anyone knows when PHP5 is released?

2004-07-13 Thread Ben Ramsey
ot; Keep your fingers crossed. Refer to: http://www.phpdeveloper.org/index/2279 -- Regards, Ben Ramsey http://benramsey.com --- http://www.phpcommunity.org/ Open Source, Open Community Visit for more infor

Re: [PHP] Re: Passing args to a PHP script from the command line

2004-06-10 Thread Ben Ramsey
Aaron Wormus wrote: Ben Ramsey wrote: > You may also want to check out PEAR::Console_Getopt > > http://pear.php.net/package/Console_Getopt or better yet PEAR::Console_GetArgs http://pear.php.net/package/Console_Getargs Did I say the wrong package? Oops. Both are for the command

Re: [PHP] Webyog releases SQLyog 3.71 & SJA 2.0

2004-06-10 Thread Ben Ramsey
lopers here is one thing. Solicited product announcements are just spam, and you all know what we'd like to do to people who send us spam. ;-P -- Regards, Ben Ramsey http://benramsey.com --- http://www.phpcommunity.org/ Open Source,

Re: [PHP] Re: Free news feeds

2004-06-10 Thread Ben Ramsey
about people using the feeds. The link: http://w.moreover.com/categories/category_list_rss.html -- Regards, Ben Ramsey http://benramsey.com --- http://www.phpcommunity.org/ Open Source, Open Community Visit for more

[PHP] Re: Passing args to a PHP script from the command line

2004-06-10 Thread Ben Ramsey
... /usr/bin/php myscript.php -args key=value but this does not work, the script executes but key is not available as $_GET["key"] in my script. Any pointers will be much appreciated. -- Regards, Ben Ramsey http://benramsey.com --

[PHP] Re: Running a PHP script on an automated regular schedule

2004-06-10 Thread Ben Ramsey
-- 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 List (http://www.ph

[PHP] Re: Realm Based Authentication Problem with webhost ( Yahoo domain )

2004-06-09 Thread Ben Ramsey
HP_AUTH_USER'] != "user") && ($_SERVER['PHP_AUTH_PW'] != "pass") ) still nothing with Yahoo. The script runs fine on my server but not with Yahoo. On Jun 9, 2004, at 10:55 PM, Ben Ramsey wrote: Yahoo probably has register_globals turned off, and rightly so.

[PHP] Re: Free news feeds

2004-06-09 Thread Ben Ramsey
o our companies website. Specifically I'm looking for feeds related to the pharmaceutical and medical industries. Thanks, Tim -- Regards, Ben Ramsey http://benramsey.com --- http://www.phpcommunity.org/ Open Source, Open Community Visi

[PHP] Re: Realm Based Authentication Problem with webhost ( Yahoo domain )

2004-06-09 Thread Ben Ramsey
iness Webhosting and not Geocities Webhosting. Yahoo does provide Authentication but only for directories and not individual files. just wondering if there's another way. Thanks in advance. -gohaku -- Regards, Ben Ramsey http://benramsey.com -

[PHP] Re: PHP5 RC3 Runnay Processes

2004-06-09 Thread Ben Ramsey
to go about debugging such an issue, and would appreciate any pointers. Thanks, Michael BTW, I am running a Dual Xeon processor, 1 Gig ram, Red Hat 9, Apache 1.31 (I think that's right). -- Regards, Ben Ramsey http://benramsey.com --

[PHP] Re: PHP 4.3.5 on Red Hat Linux 9

2004-06-09 Thread Ben Ramsey
) ; return 0; } Can anyone help me to get PHP compiled without any errors. I have read messages on the mailing lists with no luck. Thanks Jerry _ Want to block unwanted pop-ups? Download the free MSN Toolbar n

Re: [PHP] Re: ini_get

2004-06-07 Thread Ben Ramsey
Disregard my incompetence... Chapter 4 does mention it on subsequent pages. Ben Ramsey wrote: That's pretty interesting there, and I'll definitely have to try it out. However, Chapter 4 mentions nothing about being able to set runtime values in an .htaccess file... unless I missed

Re: [PHP] Re: ini_get

2004-06-07 Thread Ben Ramsey
. Note this only works if PHP is an Apache module. Best regards, Richard Davey -- Regards, Ben Ramsey http://benramsey.com --- http://www.phpcommunity.org/ Open Source, Open Community Visit for more information or to join the movement. -

Re: [PHP] Re: ini_get

2004-06-07 Thread Ben Ramsey
JN> ini_get() will return the current value for the ini_setting... JN> doesn't matter if it's from the php.ini, ini_set() or a JN> .htaccess file. All right. Clue me in here. How can an .htaccess file set/modify the values of php.ini? I wasn't aware that you could do

Re: [PHP] Re: ini_get

2004-06-07 Thread Ben Ramsey
MK> I'm pretty sure this is what OP meant. He did not mention php.ini MK> being modified. Huh? Who's OP? And what is it that you're pretty sure he meant? -- Regards, Ben Ramsey http://benramsey.com --- http://www.phpcommu

[PHP] Re: ini_get

2004-06-07 Thread Ben Ramsey
p.ini). Please see http://www.php.net/ini_get and http://www.php.net/ini_set for more information. -- Regards, Ben Ramsey http://benramsey.com --- http://www.phpcommunity.org/ Open Source, Open Community Visit for more information or t

Re: [PHP] source code display

2004-06-07 Thread Ben Ramsey
pplication/x-httpd-php php3 AddType application/x-httpd-php php4 And so on... Ben Ramsey wrote: JN> Don't know if it matters or not, but all the 'examples' I've seen JN> have the dot before the extension, ie JN> JN> AddType application/x-httpd-php .php .php3 I've

Re: [PHP] source code display

2004-06-07 Thread Ben Ramsey
JN> Don't know if it matters or not, but all the 'examples' I've seen JN> have the dot before the extension, ie JN> JN> AddType application/x-httpd-php .php .php3 I've never used the dot (.) before the extension in Apache, and all works well. -- Regar

Re: [PHP] other browsers

2004-06-07 Thread Ben Ramsey
Fatal error: Call to undefined function: is_set() The value of "edit_ip_x" will not be set unless the image is clicked on, so you can be sure that this is reliable, as Oliver mentioned. -- Regards, Ben Ramsey http://benramsey.com ---

Re: [PHP] Re: shedule a php script/ plz help

2004-06-05 Thread Ben Ramsey
1 * * root run-parts /etc/cron.monthly * * * * * root run-parts /etc/cron.d/abc.php am i correct , plz help me ..but it is still not running ? thank u - Original Message - From: "Ben Ramsey" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, June 05,

[PHP] Re: shedule a php script

2004-06-05 Thread Ben Ramsey
die($add_member->getMessage()); } $db_object->disconnect(); ?> thanx in advance curlys -- Regards, Ben Ramsey http://benramsey.com --- http://www.phpcommunity.org/ Open Source, Open Community Visit for more

Re: [PHP] script location

2004-06-04 Thread Ben Ramsey
wing the functions is half the battle. :-) GI JOE!!! ---John Holmes http://www.ebaumsworld.com/gijoe.html -- Regards, Ben Ramsey http://benramsey.com --- http://www.phpcommunity.org/ Open Source, Open Community Visit for more informati

Re: [PHP] php installation verification

2004-06-03 Thread Ben Ramsey
est.php" file on the browser address as: http://localhost/test.php right??? What I was doing before was just going to the browser's File --> Open --> and specified the path to /tmp/php/test.php Please let me know, thank you. -- Regard

[PHP] Re: weird error

2004-06-03 Thread Ben Ramsey
R in . I have register globals on. (was off so i turned them on thinking that might be the problem..didnt work either way) Big thanks. -- Regards, Ben Ramsey http://benramsey.com --- http://www.phpcommunity.org/ Open Source, Open

Re: [PHP] php installation verification

2004-06-03 Thread Ben Ramsey
I also noticed that you're using .php and .phps in your AddType statement. Take out the dot (.) so that it's just php and phps. That may be the cause of the problem. Ben Ramsey wrote: Please reply to the list so that everyone can benefit from the conversation. I am running Apache

Re: [PHP] php installation verification

2004-06-03 Thread Ben Ramsey
he browser were the source code. LoadModule php4_module modules/libphp4.so Do you have apache v2.0.48 running with php v4.3.6? Any thoughts? -Original Message- From: Ben Ramsey [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 9:31 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] p

Re: [PHP] php installation verification

2004-06-03 Thread Ben Ramsey
o Any 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 Ma

[PHP] Re: mail() problem

2004-06-03 Thread Ben Ramsey
and email from my sever when a new 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 Commu

[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 t

[PHP] How to use pcntl_fork()?

2004-05-18 Thread Ben Ramsey
to be receiving from the socket unless I send. Ultimately, I want to remove 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.

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

2004-05-14 Thread Ben Ramsey
mation about 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

[PHP] Passing Parameters to PHP Script

2004-04-20 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
exactly what I was asking about. So, there's no way 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

Re: [PHP] What does MAX_FILE_SIZE do?

2004-04-08 Thread Ben Ramsey
about the file being too big? -- 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
message 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/

[PHP] What does MAX_FILE_SIZE do?

2004-04-08 Thread Ben Ramsey
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 Mailing List (http://www.php.net/) To unsubscribe, visit:

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

2004-04-08 Thread Ben Ramsey
(I'm guessing that's what happened), 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. -

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

2004-04-08 Thread Ben Ramsey
ds a message to a processing script that then e-mails the message to the intended recipient. 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/BenR

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

2004-04-06 Thread Ben Ramsey
the correct mail server with ini_set(), I get: Warning: mail() [function.mail]: SMTP server 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 l

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

2004-04-06 Thread Ben Ramsey
smell bad? 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 usin

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

2004-04-05 Thread Ben Ramsey
post'), just forgot to add method="post".. :p -- 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 Access Violation using PEAR::Mail_smtp

2004-04-05 Thread Ben Ramsey
when the class tries to send mail, but sometime earlier than that. However, I do not know much more about these Access Violoations, other than PHP is trying to access memory that it doesn't have permission to access. I couldn't find anything at bugs.php.net or through Google that

[PHP] Re: Simple one I think

2004-03-30 Thread Ben Ramsey
ho $rows; Another way, using the same array you had, would be to print it out like this: $rows = ""; for ($i = 0; $i < count($vocals['name']); $i++) { $rows .= " {$vocals[name][$i]}{$vocals[skill][$i]}{$vocals[fee][$i]} "; } $rows .= ""; echo $rows

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

2004-03-29 Thread Ben Ramsey
Both statements pass. It should 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 Rams

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

2004-03-29 Thread Ben Ramsey
sgroup instead of selecting 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

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] Re: why won't mssql work?

2004-03-29 Thread Ben Ramsey
tion could differ depending 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] find string position using reg exp

2004-03-29 Thread Ben Ramsey
APTURE. -- 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: 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/)

[PHP] Problem accessing an array inside if/switch

2004-03-29 Thread Ben Ramsey
see it appears that the problem lies some 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 -- Regards, Ben Ramsey http://benramsey.com h

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

Re: [PHP] 9 Months Ago

2004-03-21 Thread Ben Ramsey
x27;) instead. This code works just fine for me: $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 nin

[PHP] Decoding a URL without decoding values

2004-03-21 Thread Ben Ramsey
ks" when it needs to be "Recreation+%26+Parks". When I try to use file_get_contents() 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

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

2004-03-20 Thread Ben Ramsey
rk just fine and load in the CSS 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/unsub.php

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

2004-03-20 Thread Ben Ramsey
in a form 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 Genera

[PHP] Re: php and CSS level 2

2004-03-20 Thread Ben Ramsey
gt;/*rest of style sheet */ if this will work i was wondering 2 things: 1. how would i have to set it up to work right with the style sheet with php in it to work as a seperate file from the html file and 2. how would i set the style sheet up to work inside the original html/php file that contained

[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)) =

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

2004-03-20 Thread Ben Ramsey
g as it didn't insert font tags and tables all over. Is there a good open source php based cms system out there that can do the above? I'd sure like to know about it. Thanks for any pointers! -Adam R. -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/Peo

[PHP] Re: Function to check a valid date

2004-03-20 Thread Ben Ramsey
rchitects http://www.idextrus.com 3282 Wilmar Cres. Mississauga, ON L5L4B2 CA 905.828.9189 This e-mail 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

[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: 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

[PHP] PHP encounters Access Violation

2004-03-19 Thread Ben Ramsey
003/IIS 6 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

Re: [PHP] The <<< convension

2004-03-17 Thread Ben Ramsey
bably work fine. of course it interpolates variables so it will replace $variable 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

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

[PHP] Re: js date picker

2004-03-17 Thread Ben Ramsey
i 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
class. Outside of the class, 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

[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

[PHP] Re: js date picker

2004-03-17 Thread Ben Ramsey
major 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

Re: [PHP] Switching First & Last Names in List

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

Re: [PHP] Switching First & Last Names in List

2004-03-16 Thread Ben Ramsey
$names = explode("\n", $raw_names); echo ""; print_r($names); array_walk($names, 'swap'); print_r($names); echo ""; ?> 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 ht

[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.phpcommunit

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

2004-03-08 Thread Ben Ramsey
display date before 1970) (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: Why is this happening

2004-03-08 Thread Ben Ramsey
asename($PHP_SELF)); 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

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

2004-03-08 Thread Ben Ramsey
alex hogan -- 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: varchar size mssql

2004-03-08 Thread Ben Ramsey
Since 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/Peo

[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: 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 Rams

[PHP] Re: php/mssql character limit?

2004-03-08 Thread Ben Ramsey
ld be much 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:/

[PHP] Re: RFC: Job listings

2004-03-07 Thread Ben Ramsey
etc. Anything you feel is relevant. All comments are welcome, both positive and negative. I can be reached at [EMAIL PROTECTED] Looking forward to reading your comments! Thanks in advance, -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamse

[PHP] Re: extra breaks in sent out emails

2004-03-07 Thread Ben Ramsey
ubmit the data there is both the \r and the \n in there (for there showed 2 white space characters in between the broken text lines). My guess is that the server converts all \r's into \n's, and for this reason when a piece of mail goes out it has two breaks instead of one. Best

[PHP] Re: extra breaks in sent out emails

2004-03-07 Thread Ben Ramsey
tr-replace Finally, have you tried echoing $body just before 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

Re: [PHP] UK Bank Holidays 2

2004-03-06 Thread Ben Ramsey
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

[PHP] Re: extra breaks in sent out emails

2004-03-06 Thread Ben Ramsey
n a windows computer 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-05 Thread Ben Ramsey
nd just plug all the dates into an array 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://w

[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/w

[PHP] Re: server side redirects

2004-03-03 Thread Ben Ramsey
er() instead. Doing 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

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

[PHP] Re: Testing Pear install

2004-03-03 Thread Ben Ramsey
reside. Then you can use 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

[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

<    1   2   3   >