[PHP] Re: Breaking lines

2006-10-03 Thread Ben Ramsey
? Use double quotation marks instead of single quotation marks: \n See here for why: http://us3.php.net/manual/en/language.types.string.php#language.types.string.syntax.double -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] creating a threaded message system--sorting messages

2006-06-30 Thread Ben Liu
identical to what I'm trying to do. Thanks and disregard my previous post if this is so. - Ben smime.p7s Description: S/MIME cryptographic signature

Re: [PHP] creating a threaded message system--sorting messages

2006-06-30 Thread Ben Liu
it, but only if it is not too much trouble. I can take a go at it now that the basic approach is carved out: query once, recurse the data in PHP. Thanks, Ben On Jun 30, 2006, at 12:05 AM, Larry Garfield wrote: I've written such a system before more than once. You do the sorting in SQL

Re: Re: [PHP] Re: creating a threaded message system--sorting messages

2006-06-30 Thread Ben Liu
lists within lists and list items within their respective list. This saves some PHP and CSS troubles if one were to use div or p structure instead, as I found out. Apologies for any formatting issues and vagaries about the data structure and variable naming in this post. - Ben -- PHP General

Re: Re: [PHP] Re: creating a threaded message system--sorting messages

2006-06-30 Thread Ben Liu
On 6/30/06, Adam Zey [EMAIL PROTECTED] wrote: I think that will work, but there is one huge improvement you can make. You are making millions of copies of your work array! Not only do you pass the entire array by value recursively, but foreach makes copies of the arrays it loops through! So who

Re: [PHP] Re: creating a threaded message system--sorting messages

2006-06-30 Thread Ben Liu
again for all your help. - Ben Both let you do the same thing, you just reference data differently, and the first example involves working with the original array, so foreach has no chance to copy it. HOWEVER, if my above supposition about foreach not copying a reference is correct, you

[PHP] creating a threaded message system--sorting messages

2006-06-29 Thread Ben Liu
element to the next array element (ie: sorting one item at a time)? Should this be done with a recursive algorithm? Anyone with experience writing code for this type of message board, or implementing existing code? Thanks for any help in advance. - Ben -- PHP General Mailing List (http://www.php.net

[PHP] Re: Re: creating a threaded message system--sorting messages

2006-06-29 Thread Ben Liu
simple like selecting ten superparents and all their children. Regards, Adam. Thanks for the help Adam, I'll try to wrap my head around your response... - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Re: creating a threaded message system--sorting messages

2006-06-29 Thread Ben Liu
to figure out how to make sure the indenting looks right in the browser. - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] shutting down a web app for maintenance

2006-06-20 Thread Ben Liu
app? Thanks for any advice, - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] shutting down a web app for maintenance

2006-06-20 Thread Ben Liu
to complete whatever they are doing and then kick them off while preventing new users from logging in. I was thinking for example, what if someone is in the process of uploading a file to the web app host or filling out step 2 of a 4 part membership form or something that requires multiple steps. - Ben On 6

[PHP] Re: shutting down a web app for maintenance

2006-06-20 Thread Ben Liu
Thanks Adam, What you say makes good sense to me. Is there some method to run a script that kills all active sessions on a host? It could become part of the maintenance script I suppose: 1) Kill all active sessions 2) Put up generic maintenance screen 3) Deny further login attempts - Ben On 6

[PHP] Re: shutting down a web app for maintenance

2006-06-20 Thread Ben Liu
the ramifications of having open sessions alive through the maintenance period and afterward might be so I thought it best to just kill them. It doesn't sound like anything horrible can happen except some inconvenience maybe. Regards, Adam Ben Liu wrote: Thanks Adam, What you say makes good sense to me

Re: [PHP] GET, POST, REQUEST

2006-06-17 Thread Ben Ramsey
the form with other values in POST than you intend. So, there are two things you must do here: 1) always check the origin of your data (don't use $_REQUEST, even if it seems convenient), and 2) always check that the input received is input expected (filter the input). -- Ben Ramsey http

Re: [PHP] GET, POST, REQUEST

2006-06-17 Thread Ben Ramsey
(validate) the input. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] GET, POST, REQUEST

2006-06-17 Thread Ben Ramsey
you can't tell the scope of the data. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] GET, POST, REQUEST

2006-06-17 Thread Ben Ramsey
at least know it comes from an HTTP request, so you know not to trust anything from it. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: order of elements in $_POST super global

2006-06-10 Thread Ben Liu
- processing them item by item. Thanks for any insights... - Ben The script that processes the form looks like: On Jun 9, 2006, at 7:12 PM, Richard Lynch wrote: name=bool[0][careers] might do what you want... it's really quite difficult to say without a concrete example... On Thu

Re: [PHP] Re: order of elements in $_POST super global

2006-06-09 Thread Ben Liu
Hi Mike, Thanks for pointing that out. I hadn't thought of it but you are right. But I still don't think this addresses the issue of ordering. The basic problem is that the way a $_POST variable gets processed is in the order it is in on the original form. If you want to present the fields in

[PHP] Re: order of elements in $_POST super global

2006-06-09 Thread Ben Liu
version 5.12.there was a bug, if you want that PHP makes an associative array of form elements. http://bugs.php.net/bug.php?id=37276 Enjoy Mindaugas On 6/9/06, Ben Liu [EMAIL PROTECTED] wrote: Hi Mike, Thanks for pointing that out. I hadn't thought of it but you are right. But I still don't think

[PHP] order of elements in $_POST super global

2006-06-08 Thread Ben Liu
to present the checkboxes in a certain order, yet have the data transmitted into the $_POST super global in a different order? 2) Does it make more sense to process the $_POST super global array and reorder the items within the array? 3) Some other method? Thanks for any advice. - Ben -- PHP

Re: [PHP] order of elements in $_POST super global

2006-06-08 Thread Ben Liu
also, so having the loop allows for some future-proofing. - Ben On 6/8/06, Dave Goodchild [EMAIL PROTECTED] wrote: On 08/06/06, Ben Liu [EMAIL PROTECTED] wrote: You can access the values in the $_POST array in any order, so if you know the checkbox names why not output them in the order you

[PHP] Re: order of elements in $_POST super global

2006-06-08 Thread Ben Liu
, checking each for true/false state. If the checkbox is checked, I add the associative key name to the query. Eliminating the checkbox names in favor of a numerical key only would make this more complicated. - Ben On 6/8/06, Barry [EMAIL PROTECTED] wrote: 1. Use Keys in your form like a[1],a[2] 2

[PHP] Re: running php method in the background

2006-06-08 Thread Ben Ramsey
so that i can process user input while not interrupting the protocol. Have you looked at pcntl_fork()? http://www.php.net/pcntl-fork -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: order of elements in $_POST super global

2006-06-08 Thread Ben Liu
Also, I need to re-order the elements in a custom manner, not simply alphabetical or reverse alphabetical or some logical way like that, more like how the original form is presented, by related fields. More specifically, the form is for a membership system, the system collects typical demographic

Re: [PHP] order of elements in $_POST super global

2006-06-08 Thread Ben Liu
Der...of course. Thanks Ron! I knew the answer was simple. :-) -Ben On 6/8/06, Ron Clark [EMAIL PROTECTED] wrote: why not create an array with the keys in the order you want ( $array= array(value1,value2,). Then loop through the array and use the values as keys to the $_POST variable

Re: [PHP] Re: order of elements in $_POST super global

2006-06-08 Thread Ben Liu
of this: foreach ($_POST as $key = $data) { if ($data) $query.=$key, ; } Thanks, Ben On 6/8/06, João Cândido de Souza Neto [EMAIL PROTECTED] wrote: Since i remember, when a for POST is sent and a checkbox is not checked, php not receive this $_POST variable

Re: [PHP] Re: order of elements in $_POST super global

2006-06-08 Thread Ben Liu
to recode this section to match. The solution I used to solve this was to remove the table, put all the checkboxes into div elements, float them into columns and now they appear in the same order as before when they were in a table, but they write to the $_POST variable in the order that I want. - Ben

Re: [PHP] reset a resource?

2006-06-08 Thread Ben Liu
sorry, mysql_data_seek() On 6/8/06, sam [EMAIL PROTECTED] wrote: After I've looped through a resource do I have to run the query again to load up 'mysql_fetch_assoc' or is there some kind of reset function I can't find? $q = SELECT * FROM table; $s = mysql_query($q, $pe) or

[PHP] better way to create custom text file from query results?

2006-06-07 Thread Ben Liu
this. Can the $_POST superglobal be manipulated in this way: foreach ($_POST as $fieldname) ? Thanks for any help and guidance. - Ben smime.p7s Description: S/MIME cryptographic signature

Re: [PHP] better way to create custom text file from query results?

2006-06-07 Thread Ben Liu
I guess I was just talking the problem out. :-) Writing that post helped me think of iterating through $_POST. Now I've come to this problem: Before I did this and it works: while ([EMAIL PROTECTED]($result)) { if ($fieldname1) $output.=$row[fieldname1]\t; if ($fieldname2)

Re: [PHP] better way to create custom text file from query results?

2006-06-07 Thread Ben Liu
off the data output. Thanks for all suggestions... --Ben smime.p7s Description: S/MIME cryptographic signature

[PHP] Re: Pear DB and memcached

2006-06-06 Thread Ben Ramsey
(DB_FETCHMODE_ASSOC); $data = $db-getAll($sSQL); memcache_set($MEMCACHE_STR, MD5($sSQL), $data, 0, 10); Now, your result set is stored properly on the memcache server. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session contamination?

2006-04-21 Thread Ben Liu
it may make them more difficult to find, but it does not guarantee security as Chuck points out. This is discussed at [http://php.net/manual/en/ ref.session.php] as pointed out by Jochem. - Ben On Apr 20, 2006, at 7:22 PM, Richard Lynch wrote: On Thu, April 20, 2006 1:46 pm, Ben Liu wrote

Re: [PHP] Session contamination?

2006-04-21 Thread Ben Liu
Ach, correction: Chuck is correct here. = *Richard* is correct here. No morning coffee yet, sorry. - Ben On Apr 20, 2006, at 7:22 PM, Richard Lynch wrote: On Thu, April 20, 2006 1:46 pm, Ben Liu wrote: After a bit more research, I think I understand why Jochem recommends use

Re: [PHP] Re: Session contamination?

2006-04-21 Thread Ben Liu
data, changing the session name should be enough to prevent cross-contamination of session variables. I'm still reading/learning so if I'm wrong, someone else please jump in. - Ben On Apr 21, 2006, at 12:05 AM, Chuck Anderson wrote: This has been a very interesting discussion, as I have had

[PHP] Session contamination?

2006-04-20 Thread Ben Liu
of directory/sub directory? What is the best way to avoid/prevent this problem? Should I be using specific Session ID's or Session names? Thanks for any help, - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session contamination?

2006-04-20 Thread Ben Liu
Thanks for the response Robin, I'm reading up on session.cookie_path now. It seems that this would require creating separate php.ini files for each application. On 4/20/06, Robin Vickery [EMAIL PROTECTED] wrote: On 20/04/06, Ben Liu [EMAIL PROTECTED] wrote: Hello All, I'm using a single

Re: [PHP] Session contamination?

2006-04-20 Thread Ben Liu
Hi Dave, Thanks, I think the method recommended by Robin using the function ini_set() would work, but somehow I think this could be done in simpler fashion by setting separate session names for each app, unless I am misunderstanding the use of session_name(). Trying this out now... - Ben On 4

Re: [PHP] Session contamination?

2006-04-20 Thread Ben Liu
Thanks Jochem, this should give me all I need to solve this problem. -Ben On 4/20/06, Jochem Maas [EMAIL PROTECTED] wrote: Ben Liu wrote: Hi Dave, Thanks, I think the method recommended by Robin using the function ini_set() would work, but somehow I think this could be done in simpler

Re: [PHP] Session contamination?

2006-04-20 Thread Ben Liu
from gaining access to session information and then using it to gain inappropriate access to the application the session was created for or even other applications running on the same shared server. Anyway, I think that's why. - Ben On 4/20/06, Dave Goodchild [EMAIL PROTECTED] wrote: Let me know how

[PHP] Failed MySQL queries

2006-04-05 Thread Ben Miller
Rather than using the following, which simply displays a white screen with the die message, is there a way to add the die message to the body of the original form page, such as in a variable, so that I can display the message on the original form page with all the values already filled out, so

[PHP] Letters in Loops

2006-03-23 Thread Ben Miller
In trying to make an alpha list, using the following: for($i=A;$i=Z;$i++) { echo $i; } Produces: A B C... X Y Z AA AB AC... AX AY AZ... all the way to YZ. What am I doing wrong that it's not stopping at just plain old Z, without moving on to AA and continuing? -- PHP General Mailing

Re: [PHP] what would a c extension buy me

2006-03-13 Thread Ben Litton
a more sensible algorithm and it now runs in less than a second. Obviously it wasn't the language. In the end maybe an extension will be the way to go for you, depending on your needs, but do everything else you can first. Just my opinion, Ben On Mon, 13 Mar 2006 08:04:53 -0500, Jochem Maas

[PHP] Floored!

2006-02-23 Thread Ben Miller
If anyone has an answer for this, I would be greatly appreciative. I was trying to compare two values, the first is the total cost of products to be refunded, and the second is the original order total. To the naked eye, they both were coming out as 102.85, yet an if($Refund_Amount

Re: [PHP] Google using PHP @ http://www.google-store.com

2006-01-26 Thread ben johnson
the other year for spendng so much on adwords though. ;) On 1/25/06, tedd [EMAIL PROTECTED] wrote: They are using oscommerce specifically. An open source PHP shopping cart. ben: Not that you said or implied otherwise. soapbox PHP or not, there's no reason I know of for not complying

Re: [PHP] Google using PHP @ http://www.google-store.com

2006-01-25 Thread ben johnson
They are using oscommerce specifically. An open source PHP shopping cart. I have also come accross php errrors when accessing googles suggest feature, some strange reaction with greesemonkey. On 1/25/06, tedd [EMAIL PROTECTED] wrote: Looks like google are using PHP and oscommerce for their web

[PHP] Determining number of days in a selected month

2006-01-19 Thread Ben Miller
Is there a way to easily tell PHP how many days there are in a selected month without writing the following out for each month: if($Month == January) { $NumberOfDays = 31; } elseif($Month == February) { if($Year == A Leap Year) { $NumberOfDays = 29; }

[PHP] Help for ISPs rolling out PHP

2006-01-12 Thread Ben Rockwood
I'm working with a medium sized ISP to start rolling out PHP and MySQL services to customers. I've been looking around for best practices or help with such a roll out but not found anything. I'm confident I can roll out the services but with so many other ISPs currently running PHP it seems like

[PHP] Pages Expiring

2006-01-05 Thread Ben Miller
When using forms with PHP sessions, hitting the back button results in WARNING: Page has Expired I am wondering if there is a work around for this so that it (IE, in this case) resubmits the form information and displays the previous page. Any ideas? -- PHP General Mailing List

[PHP] Counting in Hex

2006-01-04 Thread Ben Miller
Is there a way in PHP to count using hex instead of numerals so that the following statement $var = 237F; $var++; echo $var; would result in 2380 Thanks a bunch. Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Counting in Hex

2006-01-04 Thread Ben Miller
Never mind - wasn't adding properly. Found it after all on php.net, anyway. Thanks anyway. -Original Message- From: Ben Miller [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 04, 2006 5:01 PM To: php-general@lists.php.net Subject: [PHP] Counting in Hex Is there a way in PHP to count

Re: [PHP] broken code....

2005-12-09 Thread Ben Blay
I believe the difference between using = and = is that the former passes the value by reference, though I've never been clear about the benefits of using one over the other when it comes to PEAR:DB (the PEAR:DB documentation uses = extensively, so presumably it is the better method). Ben On 12

Re: [PHP] broken code....

2005-12-08 Thread Ben Blay
$results-query('select * from eternityrecords.journal'); Should this not be: $results = $db-query('select * from eternityrecords.journal'); See: http://pear.php.net/manual/en/package.database.db.db-result.fetchinto.php Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] What software do you use for writing PHP?

2005-12-07 Thread Ben
drawn, What, can't you use punch cards? - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Arrays

2005-12-06 Thread Ben Miller
If I have an array, such as $Var[0] = Dog; $Var[1] = Cat; $Var[2] = Horse; Is there a way to quickly check to see if $Var contains Lion without walking through each value? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Ben
) so that you can resize your shell window horizontally as well as vertically. - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Ben
Jay Blanchard said the following on 12/06/2005 11:24 AM: [snip] FlameBateAnd for those interested in using a real computer/FlameBate, it's GUI also runs under MacOSX. [/snip] If they are real why aren't there more of them? 'cause it's real expensive ;-). - Ben -- PHP General Mailing List

Re: [PHP] PDF Generator

2005-12-02 Thread Ben
would of course have to provide your code to your client, but then you have to do that with PHP anyway. - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: problem in installing php5

2005-12-01 Thread Ben
development package installed?... Please provide more information about what you have done and what error messages you are receiving so that other readers are able to help you. - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: page duration tracking

2005-11-30 Thread Ben
page. There is no reliable way to record if they leave your stie for another site or close their browser. - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Two version of PHP in single server

2005-11-29 Thread Ben Litton
You can do this if you register a different add-type. Say php5 for the php 5.1 pages and just php for the regular ones. You may (I can't recall) have to install one as mod_php and the other as a cgi. There are surely guides on the internet to help you get both running simultaneously. On

Re: [PHP] Is there an alternative for $_FILES['guildimage']['type'] == image/jpeg

2005-11-23 Thread Ben
It seems to work well for me and there's no need to trust whatever the browser claims a file is or having to worry about different browsers inconsistently describing a mime type. - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Can't execute external program

2005-11-21 Thread Ben
into whether you are running in safe mode or not, and if you are whether you have your program in the safe_mode_exec_dir or not. Also check disable_functions to see if any of the ones you are having trouble with are listed. - Ben -- PHP General Mailing List (http://www.php.net

[PHP] Re: Variables in Variables?

2005-11-18 Thread Ben
.;; eval($eval); echo $temp; } - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Cookies

2005-11-17 Thread Ben Miller
Is there a way to test if a user has cookies turned on or not so that I can use cookies if the user allows them and use the URL if the user does not allow them? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Cookies

2005-11-17 Thread Ben Miller
Hi Ben, Thursday, November 17, 2005, 3:26:04 PM, you wrote: Is there a way to test if a user has cookies turned on or not so that I can use cookies if the user allows them and use the URL if the user does not allow them? Set one? :) Then check if it exists or not. This of course

[PHP] Re: checkng if string is a number

2005-11-17 Thread Ben
work, intval converts ten to a number so that doesn't work is_numeric http://ca.php.net/is_numeric - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php error message

2005-11-17 Thread Ben
and only output it to the browser after any header() function use. - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP Framework

2005-11-16 Thread Yonatan Ben-Nes
Aaron Greenspan wrote: Yonatan, And since I'm the Lampshade guy, I'll throw Lampshade out there, as well: http://www.thinkcomputer.com/software/lampshade/index.html Unlike a lot of frameworks, Lampshade is entirely procedural, and it's designed specifically for use with MySQL. I suppose that

[PHP] PHP PDO functions

2005-11-16 Thread Yonatan Ben-Nes
PEAR::DB got their disadvantages, does PDO got disadvantages also compared for using specific pg_ functions? Thanks in advance, Yonatan Ben-Nes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP Framework

2005-11-15 Thread Yonatan Ben-Nes
. FUSEBOX - http://www.fusebox.org/ 5. InterJinn - http://www.interjinn.com/about/index.phtml 6. PHP2GO - http://php2go.sourceforge.net/ 7. P4A - http://p4a.sourceforge.net/ Thanks in advance, Yonatan Ben-Nes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] PHP Framework

2005-11-15 Thread Yonatan Ben-Nes
Richard Davey wrote: Hi Yonatan, Tuesday, November 15, 2005, 2:54:27 PM, you wrote: I want to start using a framework to my future sites and I saw that there are quite alot of options out there at the net, if anyone got any experience with frameworks I would really like to receive some

[PHP] Sending arrays from page to page

2005-11-15 Thread Ben Miller
I am trying to learn how to work with arrays, and have the basic concept down for working within a single page, but I am having trouble sending an array from one page to another. For example, I can send a variable from page to page using either the URL, such as www.domain.com/?foo=bar, or using a

Re: [PHP] PHP Framework

2005-11-15 Thread Yonatan Ben-Nes
Robert Cummings wrote: On Tue, 2005-11-15 at 09:54, Yonatan Ben-Nes wrote: Hi All, I want to start using a framework to my future sites and I saw that there are quite alot of options out there at the net, if anyone got any experience with frameworks I would really like to receive some

Re: [PHP] PHP Install problem

2005-11-14 Thread Ben
--r-- which will give your web server's user (and ever other user account on the machine - which may not be what you want) permission to read the file. - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Filtering and Escaping (Was: Select and $_POST)

2005-11-14 Thread Ben Ramsey
is going, so $url, $sql, $html, etc. But, with that in mind, it wouldn't be too hard to use $_OCLEAN['url'], $_OCLEAN['sql'], and $_OCLEAN['html'] as arrays within the $_OCLEAN array. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] a code question..??

2005-11-10 Thread Ben
explained. - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] a code question..??

2005-11-10 Thread Ben
.. As Richard suggested, curl ought to work or what ever web services flavour you prefer. - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Select and $_POST

2005-11-10 Thread Ben Ramsey
is that the developer should be able to trust the data in $clean. If PHP had a taint mode and didn't have register_globals, then we'd be making some progress. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] a code question..??

2005-11-10 Thread Ben
server'. Request the file with curl and voila, you're done. - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Session's across Domains...

2005-11-09 Thread Ben Ramsey
in because it will have already expired. This alleviates the exposure issues I was discussing. Hope this helps. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Using the echo tag...

2005-11-09 Thread Ben Ramsey
On 11/9/05 9:45 AM, Paul Williams wrote: ?php print EOF HTML $_SERVER['PHP_SELF'] /HTML EOF; ? Try it with curly braces: ?php print EOF HTML {$_SERVER['PHP_SELF']} /HTML EOF; ? -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Using the echo tag...

2005-11-09 Thread Ben Ramsey
it this way: ?php print EOF HTML $_SERVER[PHP_SELF] /HTML EOF; ? Personally, I put curly braces around all interpolated variables because it makes it easier for me to read and see the variables, but this is really up to user preference. -- Ben Ramsey http://benramsey.com/ -- PHP General

Re: [PHP] Using the echo tag...

2005-11-09 Thread Ben Ramsey
On 11/9/05 10:03 AM, Paul Williams wrote: So would it be acceptable if I used curly braces on all variables (whether superglobals or not) in a here document? Yes. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Re: Session's across Domains...

2005-11-09 Thread Ben Ramsey
probably not very sensitive). Does this answer your question? And, yeah, denying used order numbers would be a good idea. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Session's across Domains...

2005-11-09 Thread Ben Ramsey
, and if this is a route you want to take, I would suggest looking at PEAR::HTTP_Request, since it provides an easy to use API for this. I, however, don't think you'll need to do this (at least it doesn't sound like something that's necessary given what I know about your form). -- Ben Ramsey http://benramsey.com

Re: [PHP] java .vs php

2005-11-09 Thread Ben Ramsey
://public.yahoo.com/~radwin/talks/php-at-yahoo-zend2005.pdf -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Unable to send variables to MySQL table

2005-11-09 Thread Ben Ramsey
$add_to_db. Then take the echoed line and try to run it against the database. Does it still work, then? -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Select and $_POST

2005-11-09 Thread Ben Ramsey
something it shouldn't. This, of course, assumes you're using MySQL, but there are other escaping functions for other databases. Just look in the PHP manual. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Richard Lynch's Email Address ...

2005-11-09 Thread Ben Ramsey
of work into it to help out with this. In the meantime, check out PEAR::Mail, which includes Mail_RFC822 that can be used to validate e-mail addresses. Also, if your PHP is compiled --with-imap, then you can use imap_rfc822_parse_adrlist() to validate e-mail addresses. -- Ben Ramsey http

[PHP] Re: Session's across Domains...

2005-11-08 Thread Ben Ramsey
individual host and access the same profile. So, you'll need to authenticate the user when they visit a new host. This may be a decrease in usability, but it's an increase in security. For more information about sessions, read the manual: http://www.php.net/session -- Ben Ramsey http

Re: [PHP] Re: Session's across Domains...

2005-11-08 Thread Ben Ramsey
increases the risk of exposure. [Hi Ben!] -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Register Globals

2005-11-08 Thread Ben Ramsey
-- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Session's across Domains...

2005-11-08 Thread Ben Ramsey
to share sessions across two different domains. If you must share profile information, then (in my opinion) require authentication and a separate session on the second domain. Otherwise, use a subdomain to share sessions. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http

Re: [PHP] Type of form element

2005-11-08 Thread Ben Ramsey
a NULL value? You should filter your variables before you use them--even variables coming from $_SERVER. Remember, $_SERVER variables can be overwritten: $_SERVER['SERVER_NAME'] = 'Howdy Doody'; echo $_SERVER['SERVER_NAME']; So, make sure they're what you expect them to be. -- Ben Ramsey http

Re: [PHP] Type of form element

2005-11-08 Thread Ben Ramsey
On 11/8/05 11:52 PM, Ben Ramsey wrote: I know this is off-topic for this thread, but just as I see isset() misused (as in this case), I often see empty() misused. For example, when using empty(), the following all return TRUE: On second thought, misused is the wrong word. I mean misunderstood

[PHP] Re: protect password?

2005-11-04 Thread Ben Litton
and to only allow connections from localhost. Now I know this isn't exactly what you asked, but someone will probably come along shortly and offer something more in line. Ben On Fri, 04 Nov 2005 15:36:47 -0500, Bing Du [EMAIL PROTECTED] wrote: Hello, Some functions need you to provide

Re: [PHP] PHP and MSSQL on Linux

2005-11-02 Thread Ben
to start looking. - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: getting rid of bad characters

2005-10-31 Thread Ben Litton
Check in the comments section of ths page: http://us3.php.net/htmlentities . You're not the first person to have this problem. Ben On Mon, 31 Oct 2005 10:30:49 -0500, Dan McCullough [EMAIL PROTECTED] wrote: I having been looking for some snippet to help me with changing MS Word double

<    1   2   3   4   5   6   7   8   9   10   >