Re: [PHP] Please unsubscribe

2011-10-10 Thread Jim Lucas
On 10/10/2011 8:26 AM, Joao Coelho wrote: I have been sending emails to this list to unsubscribe and i still receive emails. To unsubscribe, visit: http://www.php.net/unsub.php -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ http://www.bendsource.com/ C - (541) 408

[PHP] Re: Oi , Portas/ Hello, Ports

2011-10-10 Thread Jim Giner
QI.VOLMAR QI qi.vol...@gmail.com wrote in message news:cab7l6ey9rkfwtmprpe0fk3doo5s1c5jyhpnbt5rjj0f_eb5...@mail.gmail.com... Alguem sabe se, e como eu posso trabalhar com as portas do computador com php no windows? Do someone know if, and how, I could work with Computer logical ports with

[PHP] Re: files outside of documentRoot

2011-10-08 Thread Jim Giner
Access files for use in the running script? Or access files meaning executing a script? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Secure data management

2011-10-04 Thread Jim Giner
I thought I knew how to do this. I have a form that collects some data fields. My script checks if magic quotes are off and (since they are) executes addslashes on each input field. Then I run a query to INSERT these 'slashed' vars into the database. But when I go to phpadmin on my site the

Re: [PHP] Secure data management

2011-10-04 Thread Jim Giner
Stuart Dallas stu...@3ft9.com wrote in message news:da8b3499-4d11-4053-9834-68b34d030...@3ft9.com... 1. Why are you using addslashes? 2. MySQL will strip one level of backslashes. * I thought you were supposed to do an addslashes to protect your appl from malicious d/e. Did not know

[PHP] Re: php.ini setting

2011-10-03 Thread Jim Giner
?php if (get_magic_quotes_gpc()) { $process = array($_GET, $_POST, $_COOKIE, $_REQUEST); while (list($key, $val) = each($process)) { foreach ($val as $k = $v) { unset($process[$key][$k]); if (is_array($v)) {

Re: [PHP] Re: php.ini setting

2011-10-03 Thread Jim Giner
Richard Quadling rquadl...@gmail.com wrote in message news:CAKUjMCVwFos-=swewaoyxw2ukvhkwaueh6dahptycj-4wud...@mail.gmail.com... On 3 October 2011 14:30, Jim Giner jim.gi...@albanyhandball.com wrote: Thanks for the code sample - a little more complex than I've ever used. Can you explain

Re: [PHP] php.ini setting

2011-10-02 Thread Jim Giner
Spoke to quickly - still having issues. While the .ini file in each of my appl. folders has magic quotes set to Off, my scripts are still escaping my input - obviously following the server's .ini file settings. Waiting for my hosters to get back to me. -- PHP General Mailing List

[PHP] php.ini setting

2011-10-01 Thread Jim Giner
I'm trying to set magic quotes Off as my reading tells me that it's not good to have it defaulted to On. My ISP has this setting (from PHPINFO call): magic_quotes_gpc on From reading the php.net manual I found this line php_flag magic_quotes_gpc on which it says to place in the

Re: [PHP] php.ini setting

2011-10-01 Thread Jim Giner
Stephen stephe...@rogers.com wrote in message news:4e874606.2030...@rogers.com... http://php.net/manual/en/security.magicquotes.disabling.php Stephen That tells me nothing new. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php.ini setting

2011-10-01 Thread Jim Giner
Mike Mackintosh mike.mackint...@angrystatic.com wrote in message news:52ea6b9e-ef12-44d3-bd31-72984e5e5...@angrystatic.com... Have you tried: ini_set('magic_quotes_gpc', false);= I'm trying to set it directly and not have to incl in every script I write. -- PHP General Mailing List

Re: [PHP] php.ini setting

2011-10-01 Thread Jim Giner
Solved. Had to have my host provider put a copy of php.ini in my public_html and then I made the magic quotes setting change. Interesting - running a phpinfo command still shows the setting as On becuase it returns the server's settigns, NOT my individual folder setting. -- PHP General

Re: [PHP] using passthru or system() even and passing the $_FILES array

2011-09-28 Thread Jim Lucas
. sessions, does not exist $_FILES, no direct access Jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Curl cost

2011-09-28 Thread Jim Lucas
On 9/28/2011 1:28 AM, muad shibani wrote: what are the costs of using PHP Curl to show another websites on my site as stumbleon do .. traffic, memory or what? That isn't how stumbleupon does it. You might want to take a closer look at the HTML to see how they do what they do. -- PHP

Re: [PHP] Curl cost

2011-09-28 Thread Jim Lucas
On 9/28/2011 9:05 AM, Daniel Brown wrote: On Wed, Sep 28, 2011 at 11:54, Jim Lucas li...@cmsws.com wrote: That isn't how stumbleupon does it. You might want to take a closer look at the HTML to see how they do what they do. He said stumbleON, actually. Looks like they simply

Re: [PHP] book quest

2011-09-28 Thread Jim Lucas
, the php-general mailing list and the wonderful members of this list, and Google have provided answers for all the questions I have ever needed to ask since. Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What would you like to see in most in a text editor?

2011-09-14 Thread Jim Giner
But why? Brad Huskins brad.husk...@gmail.com wrote in message news:66.b1.08893.200a0...@pb1.pair.com... I am aiming to build something that is almost as easy to use as Notepad. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Stop PHP execution on client connection closed

2011-09-14 Thread Jim Lucas
On 9/14/2011 1:04 AM, Marco Lanzotti wrote: Il 13/09/2011 20:58, Alex Nikitin ha scritto: Correction on Marco's post. You can absolutely stop a mysql query I know I can stop a query, but I don't know how to realize HTTP client has closed connection during query execution. My query count

Re: [PHP] Stop PHP execution on client connection closed

2011-09-13 Thread Jim Lucas
this means is PHP will not be able to do anything else until the db has finished its step and handed data back to the processing script. At that point, you can check to see if the connection is still active and take appropriate action. Jim Lucas -- PHP General Mailing List (http://www.php.net

Re: [PHP] Stop PHP execution on client connection closed

2011-09-13 Thread Jim Lucas
On 9/13/2011 11:58 AM, Alex Nikitin wrote: On Tue, Sep 13, 2011 at 11:44 AM, Jim Lucas li...@cmsws.com wrote: On 9/12/2011 7:40 AM, Marco Lanzotti wrote: Hi all, I'm new in the list and I already have a question for you. I'm running an heavy query on my DB in a PHP script called by AJAX

Re: [PHP] What would you like to see in most in a text editor?

2011-09-13 Thread Jim Lucas
On 9/13/2011 5:23 PM, tamouse mailing lists wrote: On Tue, Sep 13, 2011 at 3:35 PM, Robert Cummings rob...@interjinn.com wrote: I'm a big fan of editors that work in the terminal. You'll get my emacs when you pry it out of my cold dead hands. +1 mg too -- PHP General Mailing List

Re: [PHP] What would you like to see in most in a text editor?

2011-09-13 Thread Jim Lucas
On 9/13/2011 7:11 PM, Brad Huskins wrote: Oh geez. Didn't mean to start a flame war... Quit fanning it then... :) On 09/13/2011 08:56 PM, James Yerge wrote: On 09/13/2011 08:40 PM, Jim Lucas wrote: On 9/13/2011 5:23 PM, tamouse mailing lists wrote: On Tue, Sep 13, 2011 at 3:35 PM, Robert

Re: [PHP] Dreaded Premature end of script headers

2011-08-26 Thread Jim Lucas
does NOT fail in dev, test and stage, only production. Well, you might have to go about this the long way. I suggest you cut larger sections of code out until you get a working script. Then start putting it back together. Jim Lucas -- PHP General Mailing List (http://www.php.net

Re: [PHP] Problem with inserting numbers...

2011-08-11 Thread Jim Lucas
. Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem with inserting numbers...

2011-08-11 Thread Jim Lucas
On 8/11/2011 9:34 AM, Jason Pruim wrote: Hey Jim, Would that still hold true with inserting into a database which is the true end of it? This is going to be a one time thing I'm doing and I'm trying to make it a learning experience as I go since that's what everything should be right

Re: [PHP] form handling

2011-08-11 Thread Jim Giner
I'm thinking that Chris means that he has a 'page' designed that utilizes two form tags for functionally different sets of input fields. The answer Chris is that a page can have many forms and whether or not they trigger the same script upon submit or not doesn't matter. Go ahead! My sample

Re: [PHP] form handling

2011-08-11 Thread Jim Giner
Jim, This is what I am trying to do. One submit button for both forms going to the same destination. The only reason I am doing this is because I can't figure out why my ajax for my select menus is altering my tinyMCE textarea box. Ultimately if I can figure out how to control the ajax within

Re: [PHP] using pg_query in a function not working

2011-08-05 Thread Jim Lucas
On 8/5/2011 12:08 PM, Marc Fromm wrote: I have to sql statements in functions to use in my code. Even though the echo statements show the sql is valid the sql does not seem to execute and I get the error, PHP Warning: pg_fetch_object() expects parameter 1 to be resource, boolean given in

[PHP] Re: testing

2011-08-04 Thread Jim Giner
Jim Giner jim.gi...@albanyhandball.com wrote in message news:6d.60.30104.5b968...@pb1.pair.com... Don't seem to be getting any feeds thru the newsgroup mirror(?). Something's wrong. My OE still cannot connect to the news server for this list, it continues to show unread messages

Re: [PHP] Re: testing

2011-08-04 Thread Jim Giner
Aln...@ridersite.org wrote: On 8/2/2011 5:18 PM, Jim Giner wrote: Don't seem to be getting any feeds thru the newsgroup mirror(?). This newsgroup has been a mess for almost a year now. One big problem is that the server only accepts a small number of connections, for just some mail

Re: [PHP] Re: testing

2011-08-04 Thread Jim Giner
... On Thu, Aug 4, 2011 at 10:39, Jim Giner jim.gi...@albanyhandball.com wrote: Actually, we haven't changed anything at all. It's always been temperamental, but it's always just been a small additional offering. As Ash said, this is a mailing list, not a newsgroup. The fact that we offer

Re: Re: [PHP] Re: testing

2011-08-04 Thread Jim Giner
... On 04 Aug 2011 at 15:48, Jim Giner jim.gi...@albanyhandball.com wrote: Sounds like time for me to move on. Thanks for the info Dan. Say Jim, Why don't you pick it up as mail like the rest of us? -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Sending a message

2011-08-04 Thread Jim Lucas
On 8/5/2011 9:49 PM, wil prim wrote: Ok so I have tried to create a sort of messaging system on my website and I have run into some problems storing who the message is from, ill try to take you through step by step what I am trying to do. *step #1 *(messages.php):--This is where the member

[PHP] testing

2011-08-02 Thread Jim Giner
Don't seem to be getting any feeds thru the newsgroup mirror(?). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: testing

2011-08-02 Thread Jim Giner
Jim Giner jim.gi...@albanyhandball.com wrote in message news:6d.60.30104.5b968...@pb1.pair.com... Don't seem to be getting any feeds thru the newsgroup mirror(?). Ok - this showed up in my OE newsgroup, but OE still shows 36 more messages in php.general that I haven't/can't seem to retrieve

Re: [PHP] Re: testing

2011-08-02 Thread Jim Giner
- Original Message - From: ad...@buskirkgraphics.com To: 'Jim Giner' jim.gi...@albanyhandball.com; php-general@lists.php.net Sent: Tuesday, August 02, 2011 6:01 PM Subject: RE: [PHP] Re: testing I was thinking the same thing I have none myself. Your response did show up in my

Re: [PHP] I can't execute pf commands

2011-07-29 Thread Jim Lucas
can assume that nobody besides root will be able to write to this file. Now, if you go the route Shawn talked about, it will work. Just be sure to limit the sudoers to only allow the pfctl command and not all allow all commands on your system. Jim -- PHP General Mailing List (http://www.php.net

Re: [PHP] Tree menu list in php

2011-07-26 Thread Jim Giner
Jasper Mulder lord_fa...@hotmail.com wrote in message news:snt106-w6527d1e82d0a3efe6f76f1f7...@phx.gbl... From: alekto.antarct...@gmail.com Date: Tue, 26 Jul 2011 19:20:58 +0200 To: php-general@lists.php.net Subject: [PHP] Tree menu list in php Hi, is there a way to create a tree menu

Re: [PHP] Re: PHP frameworks

2011-07-21 Thread Jim Lucas
On 7/21/2011 4:00 PM, Micky Hulse wrote: +1 for CI. If you search the group archives, a little while back I asked about micro PHP frameworks and got a ton of good replies. So folks, how'z about a PHP framework with a built-in admin interface? That would be pretty sweet. :) So, what

Re: [PHP] Fwd: ezmlm warning

2011-07-20 Thread Jim Lucas
People, it isn't a problem with your mail server, it is a problem with the lists.php.net IP address. It got on another SPAM list. I had to modify my SPAM filtering to allow it through a few years ago. Currently it is listed on [1], and [2] If I had to guess, qmail had an internal error and had

Re: [PHP] chained select with ajax

2011-07-18 Thread Jim Lucas
On 7/17/2011 11:38 AM, Chris Stinemetz wrote: Thanks all. I am trying to create a cascading seletct with 3 menu choices. For some reason my third select menu is not populating. It doesn't seem like my ajax is correctly sending $_post values to the final query in my PHP class I built. By the

Re: [PHP] is_null() and is_string() reversed when using in switch case statements... [SOLVED]

2011-07-15 Thread Jim Lucas
; } Can you give an example of where this might be useful? Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PEAR Mail $obj-send()

2011-07-08 Thread Jim Lucas
On 7/8/2011 9:50 AM, Brian Smither wrote: A client has: PHP 5.3 on Win7x64 running a local web app that needs to send mail. (This app was once hosted on a linux-based hosted space.) Apache 2.2 is installed but apparently not being used. I think the IIS service is actually the web server

[PHP] Re: Self-whitelisting (WAS: Top Posting)

2011-07-06 Thread Jim Giner
George Langley george.lang...@shaw.ca wrote in message news:841bbd90-9cd4-4df5-9a38-ff61638f7...@shaw.ca... On 2011-07-05, at 8:52 PM, Jim Giner wrote: Huh? You have a problem with a person having a spam filter that requires one valid response to ensure that the mail from an address is from

Re: [PHP] Re: Re: Top Posting

2011-07-06 Thread Jim Lucas
On 7/5/2011 7:52 PM, Jim Giner wrote: And what do you use to cut down on spam in your in-box? This is completely off topic, but here it goes... When I received an email the other day from your mail server, I had created this crazy ass reply to your automatic request for a reply. But in turn

Re: [PHP] Constants in strings

2011-07-06 Thread Jim Giner
I LOVE the heredocs tool. I only learned about it a couple of months ago - what a find! It makes generating my html for my web pages so much easier and allows me to include my php vars within the html with much less confusion and simplifies the intermixing of html and php vars - no more

Re: [PHP] Re: Re: Top Posting

2011-07-06 Thread Jim Giner
You are currently listed in my /etc/postfix/helo_checks file as 64.118.87.45 REJECT Your mail server is a source of SPAM. Fix it! My mail server is my isp's. It is a shared server and not under my control. They are aware that is listed but cannot get to the bottom of why it is flagged.

Re: [PHP] Re: Re: Top Posting

2011-07-06 Thread Jim Giner
Stuart Dallas stu...@3ft9.com wrote in message news:e73bd95e-0524-4743-92be-ae211b57e...@3ft9.com... On 6 Jul 2011, at 20:03, Jim Giner jim.gi...@albanyhandball.com wrote: Frankly, I don't know why you are getting mail from me - I'm not sending you any. FFS and for the last time

Re: Re: [PHP] Re: Re: Top Posting

2011-07-06 Thread Jim Giner
Tim Streater t...@clothears.org.uk wrote in message news:e5.d2.37602.f96b4...@pb1.pair.com... On 06 Jul 2011 at 20:03, Jim Giner jim.gi...@albanyhandball.com wrote: As for your solution to spam. What is Postfix? Rather than rely on heuristics, I wrote a Bayesian filter for my e-mail app. Let

[PHP] Re: Installing PHP

2011-07-05 Thread Jim Giner
Thanks David! The error log tells me that I have installed a version of PHP that is not thread-safe. My bad - I mis-read the download page and did in fact acquire the wrong version. Am beginning PHP install all over again! David Robley robl...@aapt.net.au wrote in message

[PHP] Re: Installing PHP

2011-07-05 Thread Jim Giner
Eureka! The whole problem was my unfamiliarity with the php download page. To others - read the choices there very carefully (which I thought I did!) to be sure you get the thread-safe version. Thanks to all who contributed, but David gets the kudos for telling me to check the error logs

[PHP] Re: Top Posting

2011-07-05 Thread Jim Giner
outlook doesn't offer an option for that. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Top Posting

2011-07-05 Thread Jim Giner
And besides - I'm sure there are PLENTY of people here who despise scrolling thru endless repeated paragraphs from a long list of posts just to get the the latest contribution to the topic.:) This newgroup may have its rules, but if bottom-posting was such a wise and preferred method, why

Re: [PHP] Re: Top Posting

2011-07-05 Thread Jim Giner
not what he was asking for. Curtis Maurand cur...@maurand.com wrote in message news:4e7755d57a7a032c39e44598f3660ac7.squir...@www.xyonet.com... Jim Giner wrote: outlook doesn't offer an option for that. ctrl-END gets you to the bottom of a message. -- PHP General Mailing List (http

Re: [PHP] Re: Top Posting

2011-07-05 Thread Jim Giner
Actually business user do subscribe to use Outlook as their client. It does not come with the OS, it is purchased on a per seat basis by every corporation using it in the form of a license. On the other hand Outlook Express is available as part of the os, or is easily obtained for free. It

Re: [PHP] Re: Top Posting

2011-07-05 Thread Jim Giner
Stuart Dallas stu...@3ft9.com wrote in message If you're looking for a sane reason why Microsoft software is popular in the business world you're not going to find one. No - you missed my statement's point. Not looking for anything - just saying it is what it is. You won't find me

Re: [PHP] Re: Top Posting

2011-07-05 Thread Jim Giner
Stuart Dallas stu...@3ft9.com wrote in message news:CAJgGj58OkZLiakMMo8qmuhg68BamYOi+TLNGyzze=iyppbj...@mail.gmail.com... Again, please include the list when replying! But don't include the poster's email if you're replying to the list! -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Re: Top Posting

2011-07-05 Thread Jim Giner
any and all posts without having another one in their inbox, won't they? Richard Quadling rquadl...@gmail.com wrote in message news:CAKUjMCW9rcqZodVe7dx2R9Rew5bQ5-5xcHgHxMmtzqc_z=a...@mail.gmail.com... And Jim, your anti-spam measures are spamming me. So, I've blocked your anti-spam as spam

Re: [PHP] Re: Top Posting

2011-07-05 Thread Jim Giner
Richard Quadling rquadl...@gmail.com wrote in message news:CAKUjMCVbhbXO=ngr1lnzo-6fdahdj-r8hc73b-esotfqg+k...@mail.gmail.com... But that is what reply-all is about. Person A sends an message to List B. I reply-all and Person A and List B get replies. Hmm. A new level of complexity! A

Re: [PHP] Re: Top Posting

2011-07-05 Thread Jim Lucas
On 7/5/2011 9:11 AM, Richard Quadling wrote: And Jim, your anti-spam measures are spamming me. So, I've blocked your anti-spam as spam. I noticed this the other day and I blocked him as well. Maybe this is why his mail server IP is listed as a source of spam... http://www.mxtoolbox.com

Re: [PHP] Re: Top Posting

2011-07-05 Thread Jim Giner
It's certainly not spam - it's a spam filter offered by my ISP and works great. The mail you are getting from it is a query asking you to reply if you are real and once you do, you'll never get the request again. Jim Lucas li...@cmsws.com wrote in message news:4e134676.7090...@cmsws.com

Re: [PHP] Re: Top Posting

2011-07-05 Thread Jim Giner
Ashley Sheridan a...@ashleysheridan.co.uk wrote in message news:21e916f2-2a1f-4982-bc4d-9a574da92...@email.android.com... I've seen fake messages do that before as a way of harvesting good live email addresses, so I regard all such messages spam now. oh, well... -- PHP General Mailing

Re: [PHP] Top Posting

2011-07-05 Thread Jim Giner
James Moe ji...@sohnen-moe.com wrote in message news:4e1353f3.6090...@sohnen-moe.com... I suspect one reason top posting is popular is that responders do not have to think about tidying up, just spit out a reply and move on. The result is a message that grows in size with every reply

[PHP] Re: Re: Top Posting

2011-07-05 Thread Jim Giner
Huh? You have a problem with a person having a spam filter that requires one valid response to ensure that the mail from an address is from a real person ONE TIME ONLY? And what do you use to cut down on spam in your in-box? -- PHP General Mailing List (http://www.php.net/) To

[PHP] Installing PHP

2011-07-04 Thread Jim Giner
Hi all, (Hopefully I posted this in a place that can/will help me) I got curious about running php / apache on my own laptop in order to help my devl process, instead of writing, uploading and testing on my site. Found a nice pair of docs from thesitewizard.com that appeared to be pretty

[PHP] Re: Installing PHP

2011-07-04 Thread Jim Giner
Shawn, I added my php folder to the path but no change. Shawn McKenzie nos...@mckenzies.net wrote in message news:4e11e7e7.6010...@mckenzies.net... You may need to add c:\php\ to the Windows path so that the Apache mod can find other files it may need. If you have mysql or other extensions

Re: [PHP] Would like to subscribe to this mailing list

2011-07-04 Thread Jim Lucas
On 7/3/2011 9:37 PM, Brian Dworkin wrote: I would like to subscribe to this mailing list please. Thanks. Sincerely, Brian Dworkin Managing Partner Bright Telecom 201-892-9553 (mobile #) br...@brighttelecom.net http://www.brighttelecom.net http://php.net/mailing-lists.php will

Re: [PHP] I want to use POST when redirect via PHP Header function.

2011-06-30 Thread Jim Giner
Just as bottom posting (I know, it's in da rules) makes it rather difficult for humans to read thru a topic, scrolling thru ever-longer messages to get to the 'new' content. Let's solve it for all by only posting your own content and let the sum of all the messages equate to the topic. :)

Re: [PHP] I want to use POST when redirect via PHP Header function.

2011-06-30 Thread Jim Giner
DON't get me started on the massacre of the English language on posting sites all over the internet! It seems that people are so wrought up in their problem-of-the-moment that they don't realize that they are mis-spelling, mis-typing and mis-stating their problem(s) in their frantic posts.

Re: [PHP] Re: Php filter validate url

2011-06-27 Thread Jim Lucas
, $allowed) { // Protocol not valid! exit(1); // or return FALSE; whatever... } Seems a little less muddy to me. Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: dropdown with two Sql query

2011-06-26 Thread Jim Giner
I don't even understand what the first two code blocks are saying. Looks like html, but I have never seen it like that. I also don't see the two fields you specifically mention to start in your first select statement - some other garbled names are there instead. Are you sure you've copied

[PHP] Re: asynchronous launch of a script

2011-06-26 Thread Jim Giner
You mean - you want a second thread to run independently of your current running script? A wonderful thing to do and helpful for long intenesive processes but do you really want to go thru the hassles of managing two processes? Won't you have to verify the results of your offshoot and react

Re: [PHP] Re: asynchronous launch of a script

2011-06-26 Thread Jim Lucas
On 6/26/2011 7:58 PM, Jim Giner wrote: You mean - you want a second thread to run independently of your current running script? A wonderful thing to do and helpful for long intenesive processes but do you really want to go thru the hassles of managing two processes? Won't you have to verify

Re: [PHP] Re: [PHP-DB] Re: radio form submission

2011-06-24 Thread Jim Giner
Call me backwards, but I prefer to keep my statements simple. I would first obtain the POST value before trying to pull up an array element. $stype=$_POST[''store_type']; if (!isset($stype)) (handle missing radio button) else $st_name=$choices[$stype]; for me (and the next guy who has

[PHP] this newsgroup and OE

2011-06-22 Thread Jim Giner
Perhaps someone can tell me the secret to getting problem-free access to the php newsgroups using OE. I have two other newsgroup servers configured in OE which do not give me any difficulties at all. My setup for news.php.net however gives me nothing but problems. Inability to connect to

[PHP] Re: this newsgroup and OE

2011-06-22 Thread Jim Giner
Well - it's a secret until one asks I guess. Thanks Shawn for the info. Since you say it's been happening for years, I guess there's no hope for resolution. Can you or someone else recommend a newsgroup client that functions better with this group? BTw - this is my second attempt to respond

Re: [PHP] jQuery to PHP

2011-06-22 Thread Jim Lucas
On 6/22/2011 12:43 PM, Tim Streater wrote: On 22 Jun 2011 at 19:44, Ethan Rosenberg eth...@earthlink.net wrote: I have a PHP program which will generate a chess board with a form in the program. I wish to fill the form by clicking one of the squares in the chess board. I am trying to use

Re: [PHP] help with an array if its possible!

2011-06-22 Thread Jim Lucas
On 6/22/2011 3:43 PM, Adam Preece wrote: Hi Gang! i have 2 assoc arrays from 2 querys, first one is page categorys it consists of: id name second is pages name cat_id now, i am using smarty, so i pass arrays into the view. this i would like to pass to

Re: [PHP] Doctrine madness!

2011-06-17 Thread Jim Lucas
-stop since August 2007 with minimal maintenance needed. Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Doctrine madness!

2011-06-17 Thread Jim Lucas
On 6/17/2011 12:23 PM, Eric Butera wrote: On Fri, Jun 17, 2011 at 3:19 PM, Jim Lucas li...@cmsws.com wrote: On 6/16/2011 3:15 PM, Nathan Nobbe wrote: what it really amounts to is php is good at doing 1 thing and 1 thing only, generating web pages. for anything else, including command line

[PHP] Re: Getting File Owner Name

2011-06-13 Thread Jim Giner
fileowner returns the username OF the file's OWNER. Isn't that what you want? You don't think you're going to get their first and last name do you? Floyd Resler fres...@adex-intl.com wrote in message news:693f2104-a45d-403f-9c1d-13ad6e4fc...@adex-intl.com... Is there a way I can get the name

Re: [PHP] trying to combine two forms into a single form

2011-06-09 Thread Jim Lucas
On 6/9/2011 5:37 AM, matty jones wrote: formEl.action += 'title=' + formEl['_title'].value; The only thing I see inconsistent is the above line. But then again, it could be right. You might be looking for $_GET['title'] in your processing page instead of $_GET['_title'] -- PHP

Re: [PHP] trying to combine two forms into a single form

2011-06-09 Thread Jim Lucas
on jQuerry, I will look into it. On Thu, Jun 9, 2011 at 10:53 AM, Jim Lucas li...@cmsws.com wrote: On 6/9/2011 5:37 AM, matty jones wrote: formEl.action += 'title=' + formEl['_title'].value; The only thing I see inconsistent is the above line. But then again, it could be right

Re: [PHP] advice on how to build this array from an array.

2011-06-07 Thread Jim Lucas
On 6/7/2011 2:44 PM, Adam Preece wrote: hi, thanks for your reply. i have figured out, well kind of, and got the data i need but the problem is its nested within to many arrays! Array ( [threads form types] = Array ( [0] = Array ( [name] = imperial thread form

Re: [PHP] Can't use class 'DOMDocument

2011-06-06 Thread Jim Lucas
On 6/6/2011 6:49 PM, Adam Tong wrote: Hi, When I try using DOMDocument I get the following error: Fatal error: Class 'DOMDocument' not found in ... I guess something has to be fixed in my php.ini? Here is my php version: # php -version PHP 5.3.6 (cli) (built: Mar 17 2011 20:58:15) Copyright

Re: [PHP] displaying a pdf

2011-06-01 Thread Jim Giner
Well - the code works just fine as is and that's all I care about. As for Richard's comments - the url in my header(Location) statement points to a pdf file, not a php file, so the target is not sending any headers (that I know of ). -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] phpsadness

2011-05-31 Thread Jim Lucas
need it. Why not do it the other way around... $alphabet_array=range('a','z'); $alphabet=join($alphabet_array); $letter_numbers=array_flip($alphabet_array); Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] displaying a pdf

2011-05-30 Thread Jim Giner
Thanks for the attempt Simon, but your code only displayed gibberish. While looking around again for help, I found this and it works perfectly: ?php session_start(); // // Specify the name of the pdf here and the folder // $pdfname='VFD_ByLaws.pdf'; $path='/pdfs/'; // // the rest will handle

[PHP] displaying a pdf

2011-05-29 Thread Jim Giner
Perhaps someone can tell me what I'm doing wrong. I did some ( a lot) looking around for hints on this and here is what I have compiled. It doesn't work - just goes to a white, blank page and sits. I don't know if I need all the html parts or even if I have placed my php in the right areas.

[PHP] Re: displaying a pdf

2011-05-29 Thread Jim Giner
Update. I re-arranged my code and now I get a popup saying File does not begin with '%PDF-'. Here's the code as it is now. ?php session_start(); header(Cache-Control: no-cache); header(Content-type: application/pdf); $root = $_SERVER['DOCUMENT_ROOT']; $pdfname=$root.'/pdfs/myfile.pdf'; ?

Re: [PHP] i need delay time in doing array_key_exists but while(true) can't work 4 it.

2011-05-20 Thread Jim Lucas
Negin, You cannot pause PHP. You need to do your checking and header() redirect on a processing page that your form is submitting to. file process form.php Displays form process.phpdecide what to you, redirect to secondary page secondary.php display your secondary page On

Re: [PHP] Customize link

2011-05-05 Thread Jim Lucas
On 5/5/2011 3:38 PM, Michael Simiyu wrote: Dan, thanks for the reply.this is the code that shows/lists the categories you need to make the following check look at $_GET instead of $_POST. Or, I hate to suggest it, you can use $_REQUEST. It includes $_GET, $_POST, and others all in one

Re: [PHP] passing control to a separate script

2011-05-02 Thread Jim Giner
No includes. Period. To get script 1 to begin from script 2 based on a certain path... script2.php --- if ($path1) { // do stuff here include('script1.php'); exit; } // otherwise do other stuff here --- -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP

Re: [PHP] passing control to a separate script

2011-05-02 Thread Jim Giner
Sorry - I responded directly to the responder - BECAUSE - I lost track of who I was answering. That's what happens when people choose to repond to the poster directly INSTEAD of JUST replying to the list. Tedd gave me the 'header' directive and it works just as I imagined something would do.

[PHP] passing control to a separate script

2011-05-01 Thread Jim Giner
I have a large script that does a certain function for me. I have a second script that gets called and does its thing and when I'm done with it I'd like to pass control to the first script. I don't need this 'included' in my second script - I just want to pass control to it and let it take

Re: [PHP] passing control to a separate script

2011-05-01 Thread Jim Giner
No - I don't want to include either one in the other one. They are separate things that interesect once. I really am just trying to do this separately as I said. script1 work work work (done) script2 do something user response do something (write data) execute script 1 (done. Script 2

Re: [PHP] Re: PHP delete confirmation

2011-04-29 Thread Jim Lucas
On 4/29/2011 12:06 AM, Geoff Lane wrote: On Friday, April 29, 2011, ad...@buskirkgraphics.com wrote: Personally I would use the javascript page navigation is senseless if they miss click. Javascript: Small and simple javascript. onclick=return confirm('Are you sure you want to

Re: [PHP] refreshing pages in the cache

2011-04-28 Thread Jim Giner
Yes - that seems to be the trick! Thank you very much for your tip AND your patience. :) You've made an old programmer's day! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: What's faster using if else or arrays?

2011-04-28 Thread Jim Giner
how many entries are you talking about, ie., how many conditions? Obviously if you have more than 4-5 it's going to be easier to code up as a case statement (?) rather than an if/else. Never in all my days have I ever heard of using an array for such a determination though. (remainder

Re: [PHP] Re: What's faster using if else or arrays?

2011-04-28 Thread Jim Giner
Arrays - using a silly construct that probably still takes as much time to evaluate machine-wise as anything else. And as far as readability goes, it is even sillier. IMO. (remainder deleted for readers' sakes :) ) -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

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