[PHP] echo?

2011-03-22 Thread Jim Giner
Kinda new to this, but I've been puttering/writing for about 3 weeks now and have some good working screens up. Ran into something new while I was debuggina script today. Tried to echo the $i value within a for loop as part of the list of items I was building Something like for

[PHP] Re: echo?

2011-03-22 Thread Jim Giner
ok - here's the code in question. $q = 'select * from director_records '; $qrslt = mysql_query($q); $rows = mysql_num_rows($qrslt); for ($i=0; $i$rows; $i++) { $j = $i+1; $row = mysql_fetch_array($qrslt); echo $j.'-'.$row['userid']; if ($row['user_priv'] ) echo '

Re: [PHP] Re: echo?

2011-03-22 Thread Jim Giner
:521bdb9d-adbf-45d7-b759-acd315b19...@gmail.com... On Mar 22, 2011, at 8:42 PM, Jim Giner wrote: ok - here's the code in question. $q = 'select * from director_records '; $qrslt = mysql_query($q); $rows = mysql_num_rows($qrslt); for ($i=0; $i$rows; $i++) { $j = $i+1; Am i reading

Re: [PHP] Re: echo?

2011-03-23 Thread Jim Giner
news:20110323034621.go1...@quillandmouse.com... On Tue, Mar 22, 2011 at 10:50:54PM -0400, Jim Giner wrote: Yes - it is J and I. I tried using $i+1 in the echo originally but it wouldn't run. That's why I created $j. Yes, the substitution creates a syntax error unless surrounded

[PHP] Re: echo?

2011-03-23 Thread Jim Giner
By george - I think you've solved it! As for my coding choice - that's the beauty of programming - everybody has a way of solving a problem/creating a solution. Unless you are concerned with performance(which in this particular case is not a concern), there is no 'wrong way'. Geoff Lane

Re: [PHP] Re: echo?

2011-03-23 Thread Jim Giner
not the concern in this posting Richard Quadling rquadl...@gmail.com wrote in message news:aanlktindqu7bzeamtcwh6y9f3m9yjxqpt-ime9ysh...@mail.gmail.com... On 23 March 2011 07:46, Geoff Lane ge...@gjctech.co.uk wrote: Hi Jim, On Wednesday, March 23, 2011, 1:42:18 AM, you wrote: ok - here's

Re: [PHP] Re: echo?

2011-03-23 Thread Jim Giner
it was as complete as need be to demonstrate my dilemma, as Richard has discovered above Frank Arensmeier farensme...@gmail.com wrote in message news:7cfb015a-c530-4712-9ebc-fbdf5b0ed...@gmail.com... 23 mar 2011 kl. 02.42 skrev Jim Giner: ok - here's the code in question. $q = 'select * from

Re: [PHP] Re: echo?

2011-03-23 Thread Jim Giner
Very Interesting - '\n' doesn't work, but \n does work. Steve Staples sstap...@mnsi.net wrote in message news:1300883645.5100.973.camel@webdev01... On Wed, 2011-03-23 at 08:28 -0400, Jim Giner wrote: I am outputting to a textarea on an html page. A br doesn't work, nor does \n, hence

[PHP] Re: echo?

2011-03-23 Thread Jim Giner
As Richard proved my problem was caused by my use of the archaic cr/lf character pair. Once I found the correct syntax for using \n my output of the loop counter worked. thanks for all the suggestions. My first experience on a PHP newsgroup and it was a postiive one. I've spent the last 12+

Re: [PHP] Re: echo?

2011-03-23 Thread Jim Giner
2011 at 12:39, Jim Giner wrote: Very Interesting - '\n' doesn't work, but \n does work. Steve Staples sstap...@mnsi.net wrote in message news:1300883645.5100.973.camel@webdev01... On Wed, 2011-03-23 at 08:28 -0400, Jim Giner wrote: I am outputting to a textarea on an html page. A br doesn't

[PHP] looking for a newsgroup for JS

2011-03-23 Thread Jim Giner
Anyone know of a working Javascript newsgroup? I googled and tried adding several to my OE newsgroups but couldn't find the servers. comp.lang.javascript pl.lang. mozilla.. All of these (can't remember their names now) came up with the same error message. As part of learning php, I

Re: [PHP] newbie - function is undefined

2011-04-01 Thread Jim Giner
Thanks - now I see. the message means that it can't find a php function called getText. Doh! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] newbie - function is undefined

2011-04-01 Thread Jim Giner
function. Try something like: ... echo 'heaading contains: scriptgetText(h2)/script'; ... I tried it - no better. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] newbie - function is undefined

2011-04-01 Thread Jim Giner
And the way to do this is? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to check if remote machines are running using PHP and Eclipse-Require Urgent Help

2011-04-01 Thread Jim Giner
your boss is asking you to write something in PHP, but it sounds to me like you are not very knowledgable in it, or even in creating a text file. Why is he doing this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Last Name extraction in query

2011-04-04 Thread Jim Giner
having a problem posting this message - forgive any duplication please. Hi, I'm trying to use sql to extract the last name from a person's name field in my table. Here's my Select: $q = SELECT race_winner,count(race_date) as wins, substr(race_winner,FIELD(' ',race_winner)) as last_name etc.,,,

Re: [PHP] Last Name extraction in query

2011-04-04 Thread Jim Giner
good point. So wrapped up in making my php script work that I didn't think about that. Ashley Sheridan a...@ashleysheridan.co.uk wrote in message news:1301936583.2288.3.camel@localhost... On Mon, 2011-04-04 at 11:50 -0400, Jim Giner wrote: having a problem posting this message - forgive any

Re: [PHP] Last Name extraction in query

2011-04-04 Thread Jim Giner
Actually - I can't seem to find a mysql newsgroup anywhere. The ones that come up in google search are all dead and buried. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Last Name extraction in query

2011-04-04 Thread Jim Giner
Thanks - will do! I found a mailing list that might work for you: To subscribe to the list, send an empty message to mysql-subscr...@lists.mysql.com Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Last Name extraction in query

2011-04-04 Thread Jim Giner
no - that address came back undeliverable. To subscribe to the list, send an empty message to mysql-subscr...@lists.mysql.com Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Newbi Question with calculate

2011-04-06 Thread Jim Giner
I think you want to use the FOR loop to process each record in your table. You query (?) the table and then process each row in the result using the FOR and all your calculations on each one. Look up FOR. Silvio Siefke li...@silvio-siefke.de wrote in message

[PHP] $_POST vars

2011-04-13 Thread Jim Giner
Can one create a set of $_POST vars within a script or is that not do-able? My display portion of my script utilizes the POST array to supply values to my input screen - this works well for the first display of an empty screen, and any following re-displays if there's an error in the user's

Re: [PHP] $_POST vars

2011-04-13 Thread Jim Giner
When you say assign that array to $_POST do you mean $_POST = $qrslt; Not sure about this assigning an array thing. - Original Message - From: Stuart Dallas stu...@3ft9.com Newsgroups: php.general To: Jim Giner jim.gi...@albanyhandball.com Cc: PHP General php-general@lists.php.net Sent

Re: [PHP] $_POST vars

2011-04-13 Thread Jim Giner
No need to email me AND send to the list. Is that the standard practice on this forum? Not encountered it before. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_POST vars

2011-04-13 Thread Jim Giner
in message news:4962044e8a244fc28719d97746759...@3ft9.com... On Wednesday, 13 April 2011 at 19:12, Jim Giner wrote: When you say assign that array to $_POST do you mean $_POST = $qrslt; Not sure about this assigning an array thing. Yup, nothing more complicated than that. -Stuart

Re: [PHP] $_POST vars

2011-04-14 Thread Jim Giner
Guys - the problem has been solved. Give it a rest. (sent only to the list) (remainder deleted for the benefit of all :) ) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] JavaScript Injection ???

2011-04-18 Thread Jim Giner
ad...@buskirkgraphics.com wrote in message news:005501cbfdeb$457839c0$d068ad40$@com... Javascript:alert(Hello World); The browsers have had many updates since last I seen this work. ?? You're saying that alert doesn't work on your browse? Gee - it works on mine. -- PHP General Mailing

Re: [PHP] combining PHP with JS

2011-04-20 Thread Jim Giner
Sounds like you need to have the user make a decision before you go to this php script that is processing the case statement. Since the script's process is predetermined by this time (when you want the user's input) you should be able to have the user make his input before the script begins.

[PHP] trouble using is_file()

2011-04-24 Thread Jim Giner
I've got a d/e screen that collects a path and a file name. My script then attempts to verify that the file exists before moving on to do things with it. I've displayed the combined fields and they are showing correctly - ie, c:\temp\emax.pdf as well as c:/temp/emax.pdf . But when I use that

Re: [PHP] trouble using is_file()

2011-04-24 Thread Jim Giner
Hmmm... did not realize that. From all the code I examined I thought it was looking at the client. So how does one do a file upload from the client to the host? Preferably with ftp rather than http. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] trouble using is_file()

2011-04-24 Thread Jim Giner
because I've seen many comments in my research that ftp is better for larger files. I'm trying to upload photos so I know that they can be big. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] trouble using is_file()

2011-04-24 Thread Jim Giner
Well, I'll take your word for it. As well as that of all the examples on Google that come up when looking for php ftp uploads which are NOT doing ftp uploads at all. Seems that many people are calling the 'move' of their file from one host folder to another an 'upload'. Thanks! -- PHP

[PHP] files outside of the web tree

2011-04-27 Thread Jim Giner
I have managed to build include files and store them above my public folder and the called pages manage to find them from the public folder and properly include them. My problem is with the html src= attribute. I have uploaded photos to be included in my web pages and I didn't want them in

[PHP] Re: files outside of the web tree

2011-04-27 Thread Jim Giner
I think I see what you mean but I guess if that's the way it's meant to be there must not be a great risk to my uploaded files. Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] refreshing pages in the cache

2011-04-27 Thread Jim Giner
Im trying to make my webpages display random photos on a border. Got it all working now but have a question about the IE cache. Seems that once the page has been displayed, no amount of refresh will make the page rebuild and thus show 'different' pics the second time around. Can php do

Re: [PHP] refreshing pages in the cache

2011-04-27 Thread Jim Giner
thanks for the input but your first link is invalid and the second I don't understand why you sent me. Perhaps you could explain? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] refreshing pages in the cache

2011-04-27 Thread Jim Giner
ok - I'm lost. What do I do with this knowledge? - Original Message - From: Sean Greenslade zootboys...@gmail.com Sure. In order to tell the browser to not cache a page, you need to set the header Cache-Control: no-cache. This can be done by the PHP command header(Cache-Control:

Re: [PHP] refreshing pages in the cache

2011-04-27 Thread Jim Giner
So - it's not an html attribute - it's a PHP command that precedes ALL my html headers? Ross Hansen hansen.r...@live.com.au wroteYou need to still put in the standard PHP tags as you would normally and it is just another line of code. e.g ?php header(Cache-Control: no-cache); ? -- PHP

Re: [PHP] refreshing pages in the cache

2011-04-27 Thread Jim Giner
Must be doing something wrong. Besides not helping my pages to re-build, it actually ruins the presentation of a couple of my pages, even tho they are all using the exact same includes with only some dummy content in one div different than all the other pages. I added this line to my existing

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,

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

2011-04-28 Thread Jim Giner
a powerful use of the array constuct. Geoff Lane ge...@gjctech.co.uk wrote in message news:1286892056.20110429010...@gjctech.co.uk... On Thursday, April 28, 2011, Jim Giner wrote: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

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/)

[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

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

[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

[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
If you resisted sending what amounts to a duplicate email to the posters who are 'on' the list, you wouldn't have to deal with spam filters. Don't understand the purpose of a reply all when in essence our replies are to the list wherein the topic originated. Those on the list will surely see

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

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

[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

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

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

[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

  1   2   3   4   5   >