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

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
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 something: http://www.php.net/manual/en/configuration.php Richard Davey wrote: Hello Ben, Mond

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

[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

[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: 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: 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
Nevermind. I don't know what I was thinking. You're using !=, so go back to using || instead of the &&. I goofed. See if that fixes the problem now. Continue using the $_SERVER globals, though. gohaku wrote: Hi Ben, I change the if statement to: if ( ($_SERVER['P

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

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

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

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

[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

Re: [PHP] Good php-news newsletter?

2007-08-24 Thread Ben Ramsey
activity within the PHP developer community. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Fatal error: Call to a member function web_order_change() on a non-object

2008-03-03 Thread Ben Edwards
change in OO handling, any idea what is going on and how to fix it? Regards, Ben -- Ben Edwards - Bristol, UK http://www.flickr.com/photos/funkytwig - have a look at my pics If you have a problem emailing me use http://www.gurtlush.org.uk/profiles.php?uid=4 (email address this email is sent fro

Re: [PHP] Fatal error: Call to a member function web_order_change() on a non-object

2008-03-03 Thread Ben Edwards
On 03/03/2008, Chris <[EMAIL PROTECTED]> wrote: > Ben Edwards wrote: > > Our server has just been upgraded to PHP 5.2.5 and suddenly I am > > getting the following error: > > > > Fatal error: Call to a member function web_order_change() on a > > non-ob

[PHP] newbie needs help

2007-04-30 Thread Ben Clapp
I am new to PHP programming and need some help. I have an image that i have show up each May for the month with $mymonth = date("m", mktime()), but i want to set up a date range for it to show up. Ex. 4-13 to 5-13 each year. How can I do that? Any help would be great. Thank you B

Re: [PHP] newbie needs help

2007-04-30 Thread Ben Clapp
Thank you both, I will try the code and go from there. Thank you again Daniel Brown wrote: Ben, make sure whatever method you use, you use the operator combinations >= and <= as Richard just showed you. I had forgotten to do that, which would mean (in my example) that the 13th of

Re: [PHP] newbie needs help

2007-05-01 Thread Ben Clapp
takes a few days to hear back or I never get the answer I need. I will only be asking questions about PHP here from now on. You have a loyal user forever. Ben Daniel Brown wrote: Good catch on the non-list reply, Richard. I didn't even notice that. On 4/30/07, *Richard Davey* <

Re: [PHP] newbie needs help

2007-05-02 Thread Ben Clapp
Thank you, someone had sent me some code that worked on Friday Ben Richard Lynch wrote: On Mon, April 30, 2007 3:37 pm, Ben Clapp wrote: I am new to PHP programming and need some help. I have an image that i have show up each May for the month with $mymonth = date("m", mktime

[PHP] Help with HttpRequest -- avoiding 417s from Lighttpd

2007-07-05 Thread Ben Blank
returns a "417 Expectation Failed" when such a request is made. -- Ben Blank <[EMAIL PROTECTED]> "Oregano, n. The ancient Italian art of pizza folding." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Reading sub-elements using XML Reader

2007-07-18 Thread Ben Schmidt
CC me personally if you want the example as I may not see a reply on the mailing list. Ben. Don Don wrote: I am reading the following xml data in a very large file using XML reader, the xml structure looks like the xample given below head tail head part head

Re: [PHP] regular expression and forbidden words

2007-07-18 Thread Ben Schmidt
Nicolas Quirin wrote: Hi, i'm french, i'm using regular expressions in php in order to rewrite hyperlink tags in a specific way before apache output is beeing sent to client. Purpose is to replace href attribute of any A html tag by a javascript function calling an ajax loader. Currently

Re: [PHP] regular expression and forbidden words

2007-07-18 Thread Ben Schmidt
skipallbutpage|skipservice~', $mm[2])) { $n='javascript:void(0);" '. 'OnClick="javascript:yui_fastLoader(\'./systeme/chargeur.php?'. $mm[2].'\')'; } } return $m[1].'href="'.$n.'"'.$m[3]; } } $pat='~()~i'; $html_mark=preg_replace_callback($pat,'make_replacement',$html_mark); Ben. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Setting group sticky bit on directory with chmod()

2007-08-02 Thread Ben Ramsey
27;/path/to/dir', 02775); We've tested the PHP code on files, and it works, but it doesn't work on directories. Our current umask is 0002. We're using PHP 5.2.2 on Linux 2.6.9-42.0.10.ELsmp #1 SMP Fri Feb 16 17:17:21 EST 2007 i686 i686 i386 GNU/Linux. -- Ben Ra

Re: [PHP] Setting group sticky bit on directory with chmod()

2007-08-02 Thread Ben Ramsey
On 8/2/07 10:57 AM, Daniel Brown wrote: > On 8/2/07, Ben Ramsey <[EMAIL PROTECTED]> wrote: >> PHP (doesn't work): >> chmod('/path/to/dir', 02775); >> >> We've tested the PHP code on files, and it works, but it doesn't work on >> dire

Re: [PHP] Setting group sticky bit on directory with chmod()

2007-08-02 Thread Ben Ramsey
On 8/2/07 10:57 AM, Daniel Brown wrote: > On 8/2/07, Ben Ramsey <[EMAIL PROTECTED]> wrote: >> PHP (doesn't work): >> chmod('/path/to/dir', 02775); >> >> We've tested the PHP code on files, and it works, but it doesn't work on >> dire

Re: [PHP] Setting group sticky bit on directory with chmod()

2007-08-02 Thread Ben Ramsey
On 8/2/07 11:45 AM, Tijnema wrote: > On 8/2/07, Ben Ramsey <[EMAIL PROTECTED]> wrote: >> So, what are we doing wrong with chmod() that is causing us to get the >> wrong results? Keep in mind that we are running the PHP script as the >> same user who owns the directory. &

Re: [PHP] Setting group sticky bit on directory with chmod()

2007-08-02 Thread Ben Ramsey
On 8/2/07 10:57 AM, Daniel Brown wrote: > On 8/2/07, Ben Ramsey <[EMAIL PROTECTED]> wrote: >> PHP (doesn't work): >> chmod('/path/to/dir', 02775); >> >> We've tested the PHP code on files, and it works, but it doesn't work on >> dire

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

2006-06-29 Thread Ben Liu
than comparing each array 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

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

2006-06-29 Thread Ben Liu
erparent field that stored the topmost parent so that you could do something 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
rying 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

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

2006-06-30 Thread Ben Liu
Seems pretty 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
hread or subject word) I would appreciate 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

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

2006-06-30 Thread Ben Liu
query (the very first post of the discussion) and the $workArr array. Use of unordered lists for design/layout is helpful here since browsers will by default indent lists within lists and list items within their respective list. This saves some PHP and CSS troubles if one were to use or struct

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 wh

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

2006-06-30 Thread Ben Liu
ine. Will take the hamsters running in my brain a little more time to fully understand it... :-) Thanks 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 c

[PHP] Re: Breaking lines

2006-10-03 Thread Ben Ramsey
ars in the file the string \n How can i make the line break ? 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

[PHP] Re: Really strange

2006-10-04 Thread Ben Ramsey
#x27;); If config.inc.php is the correct file you want to include and you're trying to include config.inc, then it obviously can't find it because it doesn't exist. :-) -- 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: Really strange / TYPO

2006-10-04 Thread Ben Ramsey
to include a file one directory above it. Ben Ramsey wrote: On 10/4/06 8:32 PM, Deckard wrote: Hi, I have this line of code: include_once('../config.inc.php'); I'm 100% sure that the file config.inc.php is a directory up. config.inc.php is in /var/www/html and the file tha

[PHP] open source zip code geographical drill down

2006-11-03 Thread Ben Liu
ertain zip codes, but the whole geographical distance thing is beyond me. Anybody do this before and have advice? Thanks for any guidance here. Regards, Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[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 > $Order_Total

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

2006-03-13 Thread Ben Litton
d it and used 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:5

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

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

[PHP] Session contamination?

2006-04-20 Thread Ben Liu
rvers, regardless 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: > > He

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 some

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: &g

Re: [PHP] Session contamination?

2006-04-21 Thread Ben Liu
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 Joch

Re: [PHP] Re: Session contamination?

2006-04-21 Thread Ben Liu
have sensitive 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

[PHP] Re: Pear DB and memcached

2006-06-06 Thread Ben Ramsey
db->setFetchMode(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

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

2006-06-07 Thread Ben Liu
ut to a text file. It seems that there has to be a better way of doing 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
ment throwing off the data output. Thanks for all suggestions... --Ben smime.p7s Description: S/MIME cryptographic signature

[PHP] order of elements in $_POST super global

2006-06-08 Thread Ben Liu
Is there a way 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.

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

[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],

[PHP] Re: running php method in the background

2006-06-08 Thread Ben Ramsey
background 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 va

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

2006-06-08 Thread Ben Liu
} Instead 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,

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

2006-06-08 Thread Ben Liu
recode this section to match. The solution I used to solve this was to remove the table, put all the checkboxes into 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 On

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 die(mysql_error(

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 one

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

2006-06-09 Thread Ben Liu
t be careful with associative arrays, I think before 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

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

2006-06-10 Thread Ben Liu
e items in a $_POST array without rearranging the elements on the original form, or post- 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

Re: [PHP] GET, POST, REQUEST

2006-06-17 Thread Ben Ramsey
2) always check that the input received is input expected (filter 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
) always filter (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
COOKIE because 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
good thing is that you 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

[PHP] shutting down a web app for maintenance

2006-06-20 Thread Ben Liu
hosting the web 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
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
ific reason for doing it, just wasn't sure what 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

[PHP] get current php locale

2008-07-26 Thread Ben Sagal
is there a way to get the current locale being used by php and the encoding it uses? Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Basics of OOP

2008-09-09 Thread Ben Stones
Hi, The following bit of code doesn't output anything: text = "Hello World"; echo $this->text; } } $class = new output(); $class->outputText; ?> As well as the following code: text; } } $class = new output(); $class->outputText; ?> Am I doi

[PHP] Installation doesn't complete, Windows Vista: error - "script required to complete"

2008-09-10 Thread Ben Stones
Hi, Others are facing the same problem and theres an official bug report here about it: http://bugs.php.net/bug.php?id=43639&thanks=3 PHP hasn't fixed it since December 2007, wondering if anyone has a workaround as I cannot even uninstall it now as the same problem arises. Is there any workaround

[PHP] Anything like XAMPP?

2008-09-10 Thread Ben Stones
There's a bug, I believe with XAMPP where from XAMPP CP you click 'admin' under MySQL, when WinMySQLadmin comes up, the icon in the right (traffic light) is always red, and there's no option to start the service anymore... at the moment there's a "Stop the Service" option but it's unselectable. Are

[PHP] Setting up a password for WAMP

2008-09-10 Thread Ben Stones
Hi, just installed WAMP and wondering how do I setup a root password for accessing phpMyAdmin, MySQL, etc. Couldn't find anything on the WAMP's Website how to do this. I realise this has got nothing to do with PHP specifically but any help will be appreciated!

[PHP] Readdir() question

2008-09-11 Thread Ben Stones
Hi, I'm going to make a small browser based file system for ease of small updates that I make frequently on my Website. First of all I want to loop all the files on the same directory and to tell PHP read the same directory, I think I'd need to use the magic constant I think its called, __DIR__ su

[PHP] Public in Classes

2008-09-21 Thread Ben Stones
Hi, Just started with object oriented programming and glad I have come across it, just need a few things clearing up. When I make a variable or method public, does this mean that it can be used outside of classes, for instance in other classes or as well as instantiating classes? So if I made it

Re: [PHP] Public in Classes

2008-09-21 Thread Ben Stones
he variables and there are no variables called numberUsers. Cheers! 2008/9/21 Jochem Maas <[EMAIL PROTECTED]> > Ben Stones schreef: > > Hi, >> >> Just started with object oriented programming and glad I have come across >> it, just need a few things clearing u

[PHP] Calling methods from others classes

2008-09-21 Thread Ben Stones
Hi, I have this piece of code that I have created: class userQueries { public function numberUsers() { $get_users=mysql_query("SELECT * FROM `users` WHERE `online` < NOW()") or exit("../includes/error.php"); } } class usersOnline extends userQueries { public function usersOnl

[PHP] OOP - Calling methods from classes that are inheriting?

2008-09-21 Thread Ben Stones
Hi, How do I call methods from classes that are inherited? I want to add a mysql_num_rows() function to a second class that is an addon to a MySQL query in the first class. The first class will be used in several different classes for different parts of the site so I don't want to directly add the

Re: [PHP] Re: OOP - Calling methods from classes that are inheriting?

2008-09-21 Thread Ben Stones
ho parent::func(); } } $class=new otherClass(); echo $class->otherFunc(); Nothing outputs. Sorry I am slightly new to OOP so there may be a simple fix for this? 2008/9/21 Lupus Michaelis <[EMAIL PROTECTED]<[EMAIL PROTECTED]> > > Ben Stones a écrit : > >> Hope I have m

[PHP] Setcookie()

2008-10-11 Thread Ben Stones
Hi, I'm using cookies for my website script and upon users logging in a cookie is set. Problem for me is that the cookie doesn't work due to headers already sent. Is there anyway of fixing this because, there is no possible way of adding setcookie() to the top of the PHP file when the cookie is ho

Re: [PHP] Setcookie()

2008-10-11 Thread Ben Stones
as I want to display a message saying that they have successfully logged in in the correct area of my template. 2008/10/11 Per Jessen <[EMAIL PROTECTED]> > Ben Stones wrote: > > > I'm using cookies for my website script and upon users logging in a > > cookie is set.

[PHP] Alternative to HTTP_REFERER?

2008-10-11 Thread Ben Stones
are there any alternatives to HTTP_REFERER as that only works for "clicking" but it won't work for referrals from redirects? Cheers

Re: [PHP] Setcookie()

2008-10-13 Thread Ben Stones
y aren't you using a session variable instead of >> cookies? That's one of the greatest features of PHP. >> > > If you're able to use cookies instead of sessions, and the size of the data > you're storing is fairly small, it's always better to us

Re: [PHP] New to PHP

2008-10-14 Thread Ben Stones
There are many places to get help when you need it, but a good place is the unofficial PHP IRC channel. Search on Google for XChat, download it, and connect to ##PHP in irc.freenode.net. Great place and it seriously has helped me once or twice. If you don't know about how to use IRC, search on Goog

[PHP] Can't use copy() to copy files

2008-10-14 Thread Ben Stones
Ok, here is my code (mind it is a bit messy I was just testing to see if it works first of without success): if($_GET['act'] == "update") { $check_exists=file_exists($_GET['file']); if($check_exists==1) { if(copy($_GET['file'],$_GET['file'])) { echo 5; } else { echo $_GET['fil

Re: [PHP] Information on Cookies

2008-10-15 Thread Ben Stones
Can you explain to me the benefits of hashing/encrypting/md5'ing cookie values? I don't see how it'd stop hackers from changing cookie values? 2008/10/15 Stut <[EMAIL PROTECTED]> > On 15 Oct 2008, at 15:23, Ben Stones wrote: > >> I've read a few videos on c

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