Re: [PHP] pick a card, any card...

2011-04-08 Thread Scotty Logan
On Apr 8, 2011, at 8:20 PM, Kirk Bailey wrote: > in otherwords, the entire idea of picking one of N objects, whatever they > are- strings, numbers, gummybears, lined up in a listing, and return the one > item selected. This seems a common enough function there should be a simple > way to do it a

RE: [PHP] Run a script apart from request

2007-04-30 Thread Buesching, Logan J
test it by: $pid = pcntl_fork(); if($pid == -1) { // Something went wrong (handle errors here) } elseif($pid == 0) { // This part is only executed in the child usleep(500); //wait 5 seconds... see if the request hangs here } else { die(); } Then wait and see what happens. Maybe there

RE: [PHP] FW: I really need help

2007-04-29 Thread Buesching, Logan J
.___domainname___.com, so since you have "spanishbyproz.com", you can probably try mysql.spanishbyproz.com. -Logan > -Original Message- > From: Stephen Hernandez [mailto:[EMAIL PROTECTED] > Sent: Sunday, April 29, 2007 7:29 PM > To: php-general@lists.php.net > Subject: [PH

RE: [PHP] single signon Solution php and .net

2007-04-29 Thread Buesching, Logan J
things for .Net, but I as I am not a .Net web developer, I can't help you out in that area. -Logan > -Original Message- > From: Murtaza Chang [mailto:[EMAIL PROTECTED] > Sent: Sunday, April 29, 2007 3:13 PM > To: php-general@lists.php.net > Subject: [PHP] single sig

RE: [PHP] Object-oriented $_REQUEST?

2007-04-28 Thread Buesching, Logan J
t *could* be more useful. IMO an entire class just to handle retrieving data an array (or 4 if you include GPC and request) would become unnecessary overhead. But then again, maybe I am missing the point of this 'request' class. -Logan > -Original Message- > From: js [ma

FW: [PHP] Need to POST multiple values with single name

2007-04-27 Thread Buesching, Logan J
Just make sure you use []'s in your name, such as: Then it will fill $bob as an array, instead of a string. http://us2.php.net/manual/en/faq.html.php#faq.html.arrays -Logan > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Friday, April 27

RE: [PHP] explode in mysql query

2007-04-27 Thread Buesching, Logan J
> -Original Message- > From: Paul Novitski [mailto:[EMAIL PROTECTED] > Sent: Friday, April 27, 2007 3:01 AM > To: php-general@lists.php.net > Subject: Re: [PHP] explode in mysql query > > At 4/26/2007 11:33 PM, Sebe wrote: > >i have a mysql column that looks like this: > > > >groups > >--

RE: [PHP] ${}

2007-04-25 Thread Buesching, Logan J
Heh, lucky me I was just looking into that earlier today. http://us.php.net/manual/en/language.types.string.php Around the "Simple Syntax" area. -Logan -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 25, 2007 9:42 AM To: Man-wai Cha

RE: [PHP] List

2007-04-24 Thread Buesching, Logan J
I use Outlook 2003 on Vista, no problem at all, non-digest mode. -Original Message- From: Wolf [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 24, 2007 3:18 PM To: Tijnema ! Cc: Beauford; PHP Subject: Re: [PHP] List Welcome to Windows Tijnema ! wrote: > On 4/24/07, Beauford <[EMAIL PROTE

RE: [PHP] filetype() and exec() issues

2007-04-23 Thread Buesching, Logan J
You may also want to check and make sure that your ISO isn't more than 4GB. IIRC, I had some troubles with extremely large files and using filetype() on them. But then again, it may have just been something on my own end. -Logan -Original Message- From: Tijnema ! [mailto:[

RE: [PHP] What determines the relative directory, and can I control it?

2007-04-23 Thread Buesching, Logan J
$path.'a.css' Then YOUR php files can determine whatever $path needs to be before it includes the file. So when they request http://site.com/index.php, it will spit out: @import styles/site1/a.css I hope this makes sense. -Logan -- PHP General Mailing List (http://www.php.net/) To uns

RE: [PHP] Preventing SQL Injection/ Cross Site Scripting

2007-04-23 Thread Buesching, Logan J
No. That is a common mistake amongst the uninformed. Addslashes doesn't take into effect character encodings, while mysql_real_escape_string does. Please take a look at this article: http://shiflett.org/blog/2006/jan/addslashes-versus-mysql-real-escape-st ring -Logan -Original Me

RE: [PHP] should I be looking to eliminate all notices?

2007-04-22 Thread Buesching, Logan J
[snip] I don't really want to do a isset check for every index I have. [/snip] Premature optimization is the root of all evil. Checks like this will take nanoseconds to check. Find another way to optimize, like writing better SQL queries. -- PHP General Mailing List (http://www.php.net/) To un

RE: [PHP] echo date('Y-m-d', $mydata->timestamp);

2007-04-22 Thread Buesching, Logan J
/wiki/Year_2038_problem Y2K38 problem. If you want the UNIX timestamp of 4/19/2007 16:21:23, you can do mktime(16,21,23,4,19,2007); (http://us.php.net/manual/en/function.mktime.php). -Logan -Original Message- From: John Taylor-Johnston [mailto:[EMAIL PROTECTED] Sent: Sunday, April 22, 2007

RE: [PHP] Preventing SQL Injection/ Cross Site Scripting

2007-04-22 Thread Buesching, Logan J
There are many good resources out there, and one of my favorites for this type of information is from Chris Shiflett. http://shiflett.org/articles/sql-injection http://shiflett.org/articles/foiling-cross-site-attacks http://shiflett.org/blog/2007/mar/allowing-html-and-preventing-xss Those are a

RE: [PHP] Why do i get this error message?

2007-04-22 Thread Buesching, Logan J
Could you also send the code? Maybe 5 lines before and 5 lines after the line it is pointing to? It also means it tried to allocate 2KB of memory, which put you over your 8MB in whatever script you are running. You can set the maximum amount of memory a PHP script can use in your PHP.ini file. -

RE: [PHP] PhpMyAdmin slow on windows but fast on linux

2007-04-22 Thread Buesching, Logan J
You say they both have the same config, so do you mean that they both have the same version of PHP, same computer setup (Memory, CPU speed, HDD speed), both running the same version of Apache, and that both are running as either CGI or an apache module? -Logan -Original Message- From

RE: [PHP] serialize an object

2007-04-19 Thread Buesching, Logan J
Sorry for that ctrl+enter sends, when I wanted ctrl+V to paste :( All registered variables are serialized after the request finishes. Registered variables which are undefined are marked as being not defined. On subsequent accesses, these are not defined by the session module unless the user

RE: [PHP] serialize an object

2007-04-19 Thread Buesching, Logan J
>From the PHP manual: -Original Message- From: Zoltán Németh [mailto:[EMAIL PROTECTED] Sent: Thursday, April 19, 2007 8:40 AM To: Tobias Wurst Cc: php-general@lists.php.net Subject: Re: [PHP] serialize an object as far as I know serialize() saves all the properties of the object... and

RE: [PHP] Problems when trying to use ibm_db2 extension

2007-04-16 Thread Buesching, Logan J
. -Logan -Original Message- From: Leo Jokinen [mailto:[EMAIL PROTECTED] Sent: Monday, April 16, 2007 10:22 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; php-general@lists.php.net Subject: [PHP] Problems when trying to use ibm_db2 extension Hi all, I've been banging my head into the

RE: [PHP] isset

2007-04-15 Thread Buesching, Logan J
']) to return true if the value exists, but may be null, you can always use if (isset($_GET['var']) || is_null($_GET['var])) Albeit, I'm unsure if this will generate a warning if $_GET['var'] doesn't exist for the is_null() call. And in this case, I belie

RE: [PHP] preg_replace and regular expressions.

2007-04-15 Thread Buesching, Logan J
In your regex, you have a greedy matcher, i.e. ".*" will match as much as it can to satisfy its condition. I believe you can do ".*?" and it will work, as ".*?" will match as little as it can to be satisfied. -Logan -Original Message- From: Travis Moore [

RE: [PHP] Dreamhost! PHP as CGI!???

2007-04-13 Thread Buesching, Logan J
hp 5 first before `php -v` -Logan -Original Message- From: Sebe [mailto:[EMAIL PROTECTED] Sent: Friday, April 13, 2007 6:27 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; php php Subject: Re: [PHP] Dreamhost! PHP as CGI!??? Richard Lynch wrote: > On Fri, April 13, 2007 3:46 am, Mick

RE: [PHP] PHP editor

2007-04-13 Thread Buesching, Logan J
Komodo, written in python and XUL (yes, the firefox extention engine). -Original Message- From: Jarrel Cobb [mailto:[EMAIL PROTECTED] Sent: Friday, April 13, 2007 12:08 PM To: Tijnema ! Cc: M. Sokolewicz; Philip Thompson; php General List Subject: Re: [PHP] PHP editor No, C is not a scri

RE: [PHP] PHP Eclipse on Linux

2007-04-12 Thread Buesching, Logan J
I haven't used Eclipse on Linux in awhile, but I believe that they have some executable script (like, go to the eclipse directory and type ./eclipse) that you can just run and it will start up eclipse and everything. -Original Message- From: Bagus Nugroho [mailto:[EMAIL PROTECTED] Sent:

RE: [PHP] location of the PHP executable

2007-04-11 Thread Buesching, Logan J
IF db not exists THEN locate -u END-IF I'd hate to see the time it'd take to create a first-time database... this could take awhile to run. -Original Message- From: Davi [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 11, 2007 6:10 PM To: php-general@lists.php.net S

RE: [PHP] DOM and XSLTProcessor

2007-04-10 Thread Buesching, Logan J
Thanks everyone, I was able to get it to work by using CDATA and disable-output-escaping. I guess I was not doing one or the other when I was testing. Thanks for all the help it replace a really... _really_ nasty regex, decode, output. -Logan -Original Message- From: Richard Lynch

RE: [PHP] Copying PHP array into a Javascript array

2007-04-10 Thread Buesching, Logan J
Something along the lines of the following: var myArray=new Array(); $val) { ?> myArray[]=""; Although it lo

RE: [PHP] PHP Directory List Script Files over 2 GB

2007-04-10 Thread Buesching, Logan J
I didn't take too much time to look at this, but I believe that where you see: --- sprintf("_f('%s',%d, . --- Try and change that to: --- sprintf("_f('%s',%u, . --- >From what information you provided, it seems that this is what would work. -L

RE: [PHP] Array remove function?

2007-04-10 Thread Buesching, Logan J
Something along these lines? $flipped=array_flip($arr); unset($flipped[$val]) return array_flip($flipped); >From the manual of array_flip: If a value has several occurrences, the latest key will be used as its values, and all others will be lost. -Logan -Original Message- F

RE: [PHP] Curious Problem with $_POST

2007-04-09 Thread Buesching, Logan J
You may also want to take a look at http://us.php.net/features.file-upload. That is a good resource for starting in file uploads. -Logan -Original Message- From: Stephen [mailto:[EMAIL PROTECTED] Sent: Monday, April 09, 2007 8:54 PM To: PHP-General Subject: [PHP] Curious Problem with

RE: [PHP] DOM and XSLTProcessor

2007-04-09 Thread Buesching, Logan J
for the idea though. -Logan -Original Message- From: Tijnema ! [mailto:[EMAIL PROTECTED] Sent: Monday, April 09, 2007 4:40 AM To: Buesching, Logan J Cc: php-general@lists.php.net Subject: Re: [PHP] DOM and XSLTProcessor On 4/9/07, Buesching, Logan J <[EMAIL PROTECTED]> wrote: &g

[PHP] DOM and XSLTProcessor

2007-04-09 Thread Buesching, Logan J
test.xslt")); echo $proc->transformToXML($doc); ?> But this was of no success; it just had the same output. Is there anyone that is able to help me out here? Thanks, Logan

[PHP] RE: HTDIGEST FILE FORMAT

2007-04-01 Thread Buesching, Logan J
The password is the hash of the entire thing, not just the password. So it would be the following: echo "admin:trac:".md5('admin:trac:admin'); -Logan -Original Message- From: Manolet Gmail [mailto:[EMAIL PROTECTED] Sent: Sunday, April 01, 2007 5:28 PM To: php-g

[PHP] Submitting info from a form to a db

2004-09-15 Thread Logan Moore
heres the code, but im getting an error This time I dont have a clue whats happening -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Simple Problem about forms and sending info to db

2004-09-14 Thread Logan Moore
f all speechmarks which are not part of the echo statement. I could still do with an example of how to put the information from the form into the db though. As I have never done this before. "Logan Moore" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am currentl

[PHP] Simple Problem about forms and sending info to db

2004-09-14 Thread Logan Moore
goto the page. I want it to display the form, then when you click submit, goto the same page except run the command to add the information from the form to the database. Also how do I put the information in the database. Regards Logan -- PHP General Mailing List (http://www.php.net/) To unsubscrib

[PHP] mySQL SQL Conversion

2004-02-16 Thread Logan McKinley
Avg(survey_responses.Response))<>-1) AND ((survey_questions.survey_num)=0)); Thanks in advance, ~Logan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] compile php

2004-01-12 Thread Logan McKinley
problem is that it can only execute .exe or .dll files and i don't know if a php file can be compiled. Thanks in advance, ~Logan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Date problem

2003-06-23 Thread Logan McKinley
base as "6/19/2003 1:44:00 PM" but being displayed on the page as "1056044640" Thanks in advance, ~Logan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Berkeley db

2003-06-23 Thread Logan McKinley
I have absolutely no experience with Berkeley db but have been told by my ISP that it is what I need to use. How do I connect to it? Do I use SQL to set up the structure? does it accept standard SQL? If anyone knows of a good resource that would be wonderful as well. Thanks in advance, ~Logan

[PHP] open_basedir restriction in effect

2003-06-23 Thread Logan McKinley
re.php on line 4 <-> I created this whole site on my machine and have just attempted to move it to my ISP who has phpinfo(); disabled Thanks in advance, ~Logan

[PHP] Cannot modify header information - headers already sent

2003-06-20 Thread Logan McKinley
} else $out = "login.php?err=error"; header("Location: ".$out); ?> <=== include open($strConn); ?> <=== include Thanks in advance, ~Logan begin 666 db_conn.inc M(" \/PT*(" D8V]N;B ](&YE=R!#3TTH(D%$3T1"+D-O;FYE8

Re: [PHP] Strange roblems with sessions

2003-06-18 Thread Logan McKinley
f the page. "Steve Keller" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > At 6/18/2003 03:22 PM, Logan McKinley wrote: > > > the error checking include file just handles php errors, the javascript > > handles form validation. I believe the problem

Re: [PHP] Strange roblems with sessions

2003-06-18 Thread Logan McKinley
the error checking include file just handles php errors, the javascript handles form validation. I believe the problem i am having is with the session not the error handling, because i removed all validation and it did the same thing. ~Logan "Steve Keller" <[EMAIL PROTECTED]>

[PHP] Strange roblems with sessions

2003-06-18 Thread Logan McKinley
hat would be of more help, Thanks in advance for any help, ~Logan begin 666 registration_form.php M/#\-"FEN8VQU9&4H(FEN8VQU9&5S7&AA;F1L95]E6]U7!E(B!C;VYT M96YT/2)T97AT+VAT;6P[(&-H87)S970]=VEN9&]W6QE/2)B;W)D97(M8V]L;&%P'0B(&YA;64](D]R9TYA;64B('-I>F4](C,

[PHP] error with null $HTTP_GET_VARS['field']

2003-06-17 Thread Logan McKinley
must be a more eligant way to prevent the error then with 11 individual if statements. Is there a way in which it will return a value even if the key does not exist in the querystring. Thanks in advance, ~Logan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

Re: [PHP] Basic Help

2003-06-17 Thread Logan McKinley
my back end. Thanks in advance, ~Logan "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tuesday 17 June 2003 11:39, Logan McKinley wrote: > > Use a descriptive subject heading. > > > I am new to PHP but have been using ASP for yea

[PHP] Basic Help

2003-06-16 Thread Logan McKinley
value at all it gives me an error in the if statement Any help would be appriciated Thanks in advance ~Logan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] asymmetric encryption with PHP

2003-06-15 Thread Logan McKinley
vance, ~Logan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to run sockets in Win32

2002-01-15 Thread Logan
I didnt try it, but i found this, in the compiled version of "php4win" 4.1.1 -> php_sockets.dll, does it work??? Logan "Andrew Brampton" <[EMAIL PROTECTED]> escribió en el mensaje 03cc01c19de2$f1a90440$2528260a@STUDENT5830">news:03cc01c19de2$f1a90440$252826

[PHP] How to run sockets in Win32

2002-01-15 Thread Logan
I tried to use the socket function under PHP 4.0.6 in IIS 5 on a server with windows XP. It give me the error -> Socket function not found in line 3 It's the socket implementation a package that i have to install??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: