Re: [PHP] Session ?

2012-12-13 Thread Jim Giner
On 12/13/2012 9:16 AM, Marco Behnke wrote: Am 13.12.12 14:49, schrieb Jim Giner: Ok, that is a different answer from the previous one where you said it points to a folder within my main domain's structure Are you running on error_reporting(E_ALL) and ini_set('display_errors', 'On')? Just

Re: [PHP] storing searching docs

2012-12-13 Thread Jim Giner
On 12/13/2012 9:19 AM, Matijn Woudt wrote: On Thu, Dec 13, 2012 at 3:10 PM, Jim Giner jim.gi...@albanyhandball.comwrote: I'm not sure if there's much difference between large text fields and blobs, but I had a database (MySQL) with rows that had one blob each of 5-10 mb. At around 200-300

Re: [PHP] storing searching docs

2012-12-13 Thread Jim Giner
On 12/13/2012 10:56 AM, Bastien wrote: Bastien Koert On 2012-12-13, at 9:10 AM, Jim Giner jim.gi...@albanyhandball.com wrote: Thanks for the input gentlemen. Two opposing viewpoints! I understand the concept of using files for the docs and a table to locate them and id them. But I am

Re: [PHP] storing searching docs

2012-12-13 Thread Jim Giner
On 12/13/2012 2:40 PM, Bastien Koert wrote: On Thu, Dec 13, 2012 at 12:41 PM, Matijn Woudt tijn...@gmail.com wrote: On Thu, Dec 13, 2012 at 5:13 PM, Jim Giner jim.gi...@albanyhandball.comwrote: On 12/13/2012 10:56 AM, Bastien wrote: Bastien Koert On 2012-12-13, at 9:10 AM, Jim Giner

Re: [PHP] storing searching docs

2012-12-13 Thread Jim Giner
Thanks for all the posts. After reading and googling all afternoon, I think the best approach for me is: Create two macros in Word (done!) to export each of my .doc files to .txt and .pdf formats. Create a sql table to hold the .txt contents of my .doc files, along with a reference to the

Re: [PHP] storing searching docs

2012-12-13 Thread Jim Lucas
On 12/13/2012 02:49 PM, Jim Giner wrote: Thanks for all the posts. After reading and googling all afternoon, I think the best approach for me is: Create two macros in Word (done!) to export each of my .doc files to .txt and .pdf formats. Create a sql table to hold the .txt contents of my .doc

Re: [PHP] Session ?

2012-12-12 Thread Jim Giner
On 12/12/2012 8:08 AM, ma...@behnke.biz wrote: Jim Giner jim.gi...@albanyhandball.com hat am 12. Dezember 2012 um 02:53 geschrieben: On 12/11/2012 7:27 PM, Marco Behnke wrote: Am 08.12.12 19:08, schrieb Jim Giner: All my debugging messages indicagte that I have the same session id, yet I

[PHP] storing searching docs

2012-12-12 Thread Jim Giner
Slightly off-topic perhaps but I'm looking for general input here. New idea for a project - save the minutes of my firehouse meetings into a mysql table and build a ui to search them for words and such. The docs are written in Word currently. My simplistic idea is to perhaps convert them to

Re: [PHP] Php application with session used in a cluster

2012-12-12 Thread Jim Lucas
system used by default. Thanks. Jan. -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session ?

2012-12-11 Thread Jim Giner
On 12/11/2012 7:27 PM, Marco Behnke wrote: Am 08.12.12 19:08, schrieb Jim Giner: All my debugging messages indicagte that I have the same session id, yet I don't have the same variables, ie, they're missing. Just to be sure ... the webspace is on the same server and has access to the same

Re: [PHP] Session ?

2012-12-08 Thread Jim Giner
On 12/7/2012 3:20 PM, Sebastian Krebs wrote: 2012/12/7 Daniel Brown danbr...@php.net On Fri, Dec 7, 2012 at 3:04 PM, Jim Giner jim.gi...@albanyhandball.com wrote: OK - now that I've messed us all up, help me to understand your proposed solution. I added the ini-set line to my first script

Re: [PHP] Session ?

2012-12-08 Thread Jim Giner
On 12/7/2012 4:02 PM, Jim Giner wrote: So i need the ini set in both scripts. Thx. Ill try that later jg OK - I put the line: ini_set('session.cookie_domain','.albanyhandball.com'); session_start(); into each of my scripts. Didn't work. Let me explain my domain names. My main domain

Re: [PHP] Session ?

2012-12-08 Thread Jim Giner
On 12/8/2012 11:04 AM, Daniel Brown wrote: You can pass the session ID and reactivate the session that way, sure. Not pretty, and it does lead to security considerations, but it would work. OK - I've done this in script 1: if (isset($_REQUEST['sess'])) $sess_id =

Re: [PHP] Session ?

2012-12-08 Thread Jim Giner
On 12/8/2012 11:41 AM, Jim Giner wrote: On 12/8/2012 11:04 AM, Daniel Brown wrote: You can pass the session ID and reactivate the session that way, sure. Not pretty, and it does lead to security considerations, but it would work. OK - I've done this in script 1: if (isset($_REQUEST

Re: [PHP] Session ?

2012-12-08 Thread Jim Giner
On 12/8/2012 12:10 PM, Jim Giner wrote: On 12/8/2012 11:41 AM, Jim Giner wrote: On 12/8/2012 11:04 AM, Daniel Brown wrote: You can pass the session ID and reactivate the session that way, sure. Not pretty, and it does lead to security considerations, but it would work. OK - I've done

[PHP] Session ?

2012-12-07 Thread Jim Giner
Something new for me - working with scripts on two of my sub-domains. I want to call script 2 in my B domain from script 1 in my A domain. It appears that the session vars established in script 1 do not show up in script 2. Is that because the domain name is different? Is this where one

Re: [PHP] Session ?

2012-12-07 Thread Jim Giner
On 12/7/2012 2:36 PM, Daniel Brown wrote: On Fri, Dec 7, 2012 at 2:33 PM, Jim Giner jim.gi...@albanyhandball.com wrote: Something new for me - working with scripts on two of my sub-domains. I want to call script 2 in my B domain from script 1 in my A domain. It appears that the session vars

Re: [PHP] Session ?

2012-12-07 Thread Jim Giner
On 12/7/2012 2:41 PM, Daniel Brown wrote: On Fri, Dec 7, 2012 at 2:38 PM, Jim Giner jim.gi...@albanyhandball.com wrote: On 12/7/2012 2:36 PM, Daniel Brown wrote: On Fri, Dec 7, 2012 at 2:33 PM, Jim Giner jim.gi...@albanyhandball.com wrote: Something new for me - working with scripts on two

Re: [PHP] Session ?

2012-12-07 Thread Jim Giner
On 12/7/2012 2:58 PM, Sebastian Krebs wrote: 2012/12/7 Jim Giner jim.gi...@albanyhandball.com On 12/7/2012 2:41 PM, Daniel Brown wrote: On Fri, Dec 7, 2012 at 2:38 PM, Jim Giner jim.gi...@albanyhandball.com wrote: On 12/7/2012 2:36 PM, Daniel Brown wrote: On Fri, Dec 7, 2012 at 2:33 PM

Re: [PHP] Session ?

2012-12-07 Thread Jim Giner
On 12/7/2012 2:59 PM, Daniel Brown wrote: On Fri, Dec 7, 2012 at 2:54 PM, Jim Giner jim.gi...@albanyhandball.com wrote: What if my sub-domain names are not in the form of 'a.domain.com' and 'b.domain.com'. A subdomain is a subdomain. Unless you've discovered a new magical form

Re: [PHP] Session ?

2012-12-07 Thread Jim Giner
So i need the ini set in both scripts. Thx. Ill try that later jg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to read emails with php

2012-12-04 Thread Jim Lucas
from. Here is a page I wrote a while back that shows you how to do this. http://bendsource.cmsws.com/serverSetup -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ http://bendsource.cmsws.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] PHP site search broken?

2012-12-04 Thread Jim Lucas
://quillandmouse.com -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PDO question

2012-11-28 Thread Jim Giner
On 11/28/2012 3:58 PM, ad...@buskirkgraphics.com wrote: Guys, I am not quiet sure what is happening but every time i try to connect to a remote host it refers back to localhost. $pdo = new PDO('mysql:host=171.16.23.44;dbname=test', 'user','password'); ERROR: Access denied for user

Re: [PHP] Re: PDO question

2012-11-28 Thread Jim Giner
On 11/28/2012 4:18 PM, ad...@buskirkgraphics.com wrote: On November 28, 2012 at 4:11 PM Jim Giner jim.gi...@albanyhandball.com wrote: On 11/28/2012 3:58 PM, ad...@buskirkgraphics.com wrote: Guys, I am not quiet sure what is happening but every time i try to connect to a remote host it refers

Re: [PHP] Re: PDO question

2012-11-28 Thread Jim Giner
On 11/28/2012 4:22 PM, ad...@buskirkgraphics.com wrote: On November 28, 2012 at 4:11 PM Jim Giner jim.gi...@albanyhandball.com wrote: On 11/28/2012 3:58 PM, ad...@buskirkgraphics.com wrote: Guys, I am not quiet sure what is happening but every time i try to connect to a remote host it refers

Re: [PHP] PDO question

2012-11-28 Thread Jim Lucas
there is NOT. There is a warning on the following page that talks about a possible issue with connections. Might give it a look. http://www.php.net/manual/en/ref.pdo-mysql.connection.php -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] CSV importer tool

2012-11-27 Thread Jim Lucas
it, maybe using AJAX or similar cute techniques? Leandro google for: php csv importer script Reading the first result, it seems it is exactly what you are looking for. -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Date comparison going wrong, wrong, wrong

2012-11-20 Thread Jim Lucas
is *the show has ended* which is wrong. A test example is at http://www.lakesidesurrey.co.uk/test.php. You can also me what I am doing wrong? Thanks Terry -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Re: Switch - Case Statement Questions

2012-11-19 Thread Jim Giner
On 11/16/2012 8:33 PM, Iñigo Medina wrote: On Fri, 16 Nov 2012, Jim Giner wrote: On 11/16/2012 12:38 PM, Tim Streater wrote: On 16 Nov 2012 at 12:10, Omar Muhsin mrfroa...@gmail.com wrote: Hello, I was just wondering after writting the code in version 2 here below, it turns out in testing

[PHP] Re: Switch - Case Statement Questions

2012-11-16 Thread Jim Giner
On 11/16/2012 12:38 PM, Tim Streater wrote: On 16 Nov 2012 at 12:10, Omar Muhsin mrfroa...@gmail.com wrote: Hello, I was just wondering after writting the code in version 2 here below, it turns out in testing that it actually PHP is not validating the expressions instead always I get the

Re: [PHP] memory allocation error

2012-11-12 Thread Jim Lucas
scripts. See if the problem continues. Maybe at the very end of your customer error handler. If the problem stops showing up, you might want to look at your PHP config to see if anything is setup in the auto_append_file section. -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples

Re: [PHP] memory allocation error

2012-11-12 Thread Jim Lucas
On 11/12/2012 7:50 AM, Carol Peck wrote: Jim, Thanks for your idea - using die prevents it from coming up. As I mentioned, it is rather random so sometimes hard to verify. My auto_prepend and auto_append have no value in php.ini. I'm wondering why you suggested that? If something

Re: [PHP] memory allocation error

2012-11-12 Thread Jim Lucas
On 11/12/2012 8:54 AM, Carol Peck wrote: Jim, I just found that the die didn't fix it after all - just ran into it again. So still looking for ideas! thanks, Carol Then it must be something in either your code or the way PHP is doing some garbage collection with the libs you are using

[PHP] Re: Date comparison going wrong, wrong, wrong

2012-11-11 Thread Jim Giner
On 11/11/2012 1:30 PM, Terry Ally (Gmail) wrote: Hi all, I am having a problem with comparing time. I am using the following: $todaydate = date(D, M jS, Y g:i:s a); $showenddate = date(D, M jS, Y g:i:s a, strtotime($showsRecord['end_date'])); if ($todaydate $showenddate): echo The date

[PHP] Re: Date comparison going wrong, wrong, wrong

2012-11-11 Thread Jim Giner
BTW - this is the code I used to test out your process: ? $dt_format = D, M jS, Y g:i:s a; $todaydate = date($dt_format); $showenddate = strtotime(11/18/12 16:00:00); if ($todaydate $showenddate) echo The date of the show has not yet arrived; else echo The show has ended; -- PHP

Re: [PHP] Fwd: PHP Enterprise Bananas

2012-11-06 Thread Jim Lucas
page for the project, maybe it is defunct. Ben I have scripts that get ran via crond and others that run 24/7 as daemons. I have no issues using PHP via the cli. Like Bastien said, you will want to setup better logging and maybe summary emails from cron would be useful too. -- Jim Lucas

Re: [PHP] URGENT! Need help with command line for list all new/modified files within the last 24 hours

2012-10-25 Thread Jim Lucas
/modified files within the last 24 hours. Thanks for any help, LAMP First off, don't hijack someone else's thread for a new topic Secondly, this has nothing to do with PHP Third, if it is Linux, man find and you will find the answer you seek Forth, if it is Windows, I have nothing else to say -- Jim

[PHP] cron job problem

2012-10-23 Thread Jim Giner
I have a php script that has been triggered by my hoster's cron process(?) to run once a day since last March. It's been running fine - and I've made no changes to it. Suddenly in the last couple of days it is running twice it seems. The whole process sends an email at its conclusion and

Re: [PHP] cron job problem

2012-10-23 Thread Jim Giner
On 10/23/2012 4:56 PM, Daniel Brown wrote: On Tue, Oct 23, 2012 at 4:48 PM, Jim Giner jim.gi...@albanyhandball.com wrote: I have a php script that has been triggered by my hoster's cron process(?) to run once a day since last March. It's been running fine - and I've made no changes

Re: [PHP] cron job problem

2012-10-23 Thread Jim Giner
On 10/23/2012 6:18 PM, David OBrien wrote: On Tue, Oct 23, 2012 at 5:31 PM, Daniel Brown danbr...@php.net wrote: On Tue, Oct 23, 2012 at 5:34 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: Crontab is the daemon which runs cron jobs, and some distros have set up special files called

Re: [PHP] cron job problem

2012-10-23 Thread Jim Giner
On 10/23/2012 6:57 PM, Ashley Sheridan wrote: On Tue, 2012-10-23 at 18:36 -0400, Jim Giner wrote: On 10/23/2012 6:18 PM, David OBrien wrote: On Tue, Oct 23, 2012 at 5:31 PM, Daniel Brown danbr...@php.net wrote: On Tue, Oct 23, 2012 at 5:34 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote

Re: [PHP] Table help needed

2012-10-20 Thread Jim Giner
On 10/20/2012 8:26 AM, Maciek Sokolewicz wrote: On 20-10-2012 07:52, tamouse mailing lists wrote: Surprised no one else has jumped on the Don't use mysql anymore thing here. Quick and dirty PDO implementation: https://gist.github.com/3922192 I'm actually more surprised that the OP hasn't

Re: [PHP] Send php Mail not working in MAMP (non pro version)

2012-10-18 Thread Jim Lucas
On 10/17/2012 05:00 PM, Dave wrote: Make sure, if you happen to have install postfix as well, that it has replaced your sendmail. Then, from the cli, as your apache/php user, try sending an email using sendmail. # sendmail -v y...@email.com testing . Thanks a lot Jim for the help

Re: [PHP] Send php Mail not working in MAMP (non pro version)

2012-10-17 Thread Jim Lucas
this [jlucas@jim ~]$ which sendmail /usr/bin/which: no sendmail in (...) But as root, I get this [root@jim ~]# which sendmail /usr/sbin/sendmail So, make sure your apachephp user can see and execute sendmail -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ -- PHP General Mailing List

Re: [PHP] foreach

2012-10-16 Thread Jim Giner
On 10/15/2012 8:39 PM, Jim Lucas wrote: On 10/15/2012 05:16 PM, David McGlone wrote: I've been sitting here playing around with foreach() and I'm wondering why I am getting these results. here's what I've been fooling around with. the code has no perticular meaning, but I noticed if the script

Re: [PHP] foreach

2012-10-15 Thread Jim Lucas
the output I get is 1 1 Milk Milk 2.59 2.59 Which is printed to the screen according to how many rows are in the db I belive. So my question is why this behavior? I was expecting something like a while loop. Code please. -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ -- PHP

[PHP] Re: PHP The Right Way (website)

2012-10-14 Thread Jim Giner
On 10/14/2012 1:10 AM, tamouse mailing lists wrote: This just dropped in my inbox the other day from Smashing #69: 2. PHP The Right Way If you are developing for the Web, the chances are high that you have to deal with PHP on a regular basis. However, once you've stumbled upon a problem that

Re: [PHP] Re: PHP The Right Way (website)

2012-10-14 Thread Jim Giner
On 10/14/2012 12:06 PM, tamouse mailing lists wrote: On Sun, Oct 14, 2012 at 10:48 AM, Jim Giner jim.gi...@albanyhandball.com wrote: On 10/14/2012 1:10 AM, tamouse mailing lists wrote: This just dropped in my inbox the other day from Smashing #69: 2. PHP The Right Way If you are developing

Re: [PHP] Re: PHP The Right Way (website)

2012-10-14 Thread Jim Giner
On 10/14/2012 12:12 PM, Daniel Brown wrote: On Sun, Oct 14, 2012 at 11:48 AM, Jim Giner jim.gi...@albanyhandball.com wrote: Sounds like a good idea, but as for me - if I was a newbie I'd have a problem with their very first instructions. It says right off the start to type in the following

[PHP] Ok then, here is a test

2012-10-13 Thread Jim Lucas
was it got blocked, but I have enabled all the filtering again, and this is my test email with the full set of filtering enabled. Lets see if the server still gets blocked. I will post the logs if and when it gets blocked. -- Jim Lucas -- PHP General Mailing List (http://www.php.net

Re: [PHP] Ok then, here is a test

2012-10-13 Thread Jim Lucas
On 10/13/2012 10:42 PM, Jim Lucas wrote: On 10/12/2012 11:42 AM, Daniel Brown wrote: Well, as the adage goes, you'll catch more flies with honey than with vinegar. And considering this is the very first message I've ever seen from you, it sounds like either (a) you didn't follow

Re: [PHP] Re: limiting

2012-10-10 Thread Jim Giner
On 10/10/2012 10:07 AM, Floyd Resler wrote: On Oct 10, 2012, at 9:12 AM, Andy McKenzie amckenz...@gmail.com wrote: snip Have you read a book on php and perhaps one on CSS to help with your hiding problem? (BTW - that last was a hint.) I've read plenty of PHP books I own at least 5 and

Re: [PHP] Re: limiting

2012-10-10 Thread Jim Giner
On 10/10/2012 1:19 PM, David McGlone wrote: With that said, I just may leave the list. After all if this is all I'm going to get out of it, it's not worth it! -- David M. This list has given you some very good advice, much of it from others. It may not have solved your understanding of

[PHP] Re: limiting

2012-10-10 Thread Jim Giner
On 10/10/2012 2:36 PM, Tim Streater wrote: On 10 Oct 2012 at 19:17, David McGlone da...@dmcentral.net wrote: BTW - in any of your other computer languages didn't they utilize a 'return' statement? PHP's is no different. back in like '85, I learned Pascal that's the only language I learned

Re: [PHP] Re: limiting

2012-10-10 Thread Jim Giner
On 10/10/2012 4:27 PM, Matijn Woudt wrote: On Wed, Oct 10, 2012 at 10:26 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Wed, 2012-10-10 at 14:53 -0400, David McGlone wrote: On Wednesday, October 10, 2012 07:36:00 PM Tim Streater wrote: On 10 Oct 2012 at 19:17, David McGlone

[PHP] Re: limiting

2012-10-09 Thread Jim Giner
On 10/8/2012 11:11 PM, David McGlone wrote: Hi all, is there any other way to limit this code to only displaying 1 image other than using return. When I use return, I can't get the other images to display in lightbox, but when I use echo, all 5 of the images will correctly display in lightbox,

Re: [PHP] Re: limiting

2012-10-09 Thread Jim Giner
PLEASE SEE MY COMMENTS INTERSPERSED AND BELOW. (yes this is a top post) On 10/9/2012 3:18 PM, David McGlone wrote: On Tuesday, October 09, 2012 12:18:06 PM Jim Giner wrote: On 10/8/2012 11:11 PM, David McGlone wrote: Hi all, is there any other way to limit this code to only displaying 1

Re: [PHP] Re: limiting

2012-10-09 Thread Jim Giner
On 10/9/2012 3:46 PM, Matijn Woudt wrote: On Tue, Oct 9, 2012 at 9:18 PM, David McGlone da...@dmcentral.net wrote: On Tuesday, October 09, 2012 12:18:06 PM Jim Giner wrote: Sorry to be so blunt. It's fine I kinda figured I'd be either ignored, or yelled at when I asked and I now know that I

Re: RES: [PHP] Re: limiting

2012-10-09 Thread Jim Giner
, and not as yells or other bad things, doesn't matter how bad the words appear to be. Good luck in your path. -Mensagem original- De: Jim Giner [mailto:jim.gi...@albanyhandball.com] Enviada em: terça-feira, 9 de outubro de 2012 17:07 Para: php-general@lists.php.net Assunto: Re: [PHP] Re

Re: [PHP] Re: building upon the code RE: Differences

2012-10-05 Thread Jim Giner
On 10/5/2012 8:09 AM, David McGlone wrote: On Thursday, October 04, 2012 10:41:17 PM Jim Giner wrote: On 10/4/2012 10:15 PM, David McGlone wrote: I hope I'm not being a pest. I've played with the return and echo so much today I've finally realized I'm going in circles. But I can say I

[PHP] Re: Differences

2012-10-04 Thread Jim Giner
On 10/3/2012 8:48 PM, David McGlone wrote: Hi everyone, I have been playing around with some code the list helped me with a while back and I'm not grasping the concept between return and echo and the PHP manual doesn't answer this, unless I'm missing something. There is an example at the very

Re: [PHP] Re: Differences

2012-10-04 Thread Jim Giner
On 10/4/2012 7:08 PM, David McGlone wrote: On Thursday, October 04, 2012 06:06:50 PM Jim Giner wrote: On 10/3/2012 8:48 PM, David McGlone wrote: Hi everyone, I have been playing around with some code the list helped me with a while back and I'm not grasping the concept between return and echo

[PHP] Re: building upon the code RE: Differences

2012-10-04 Thread Jim Giner
On 10/4/2012 10:15 PM, David McGlone wrote: I hope I'm not being a pest. I've played with the return and echo so much today I've finally realized I'm going in circles. But I can say I understand it more than ever. Now whats on my mind is breaking out of this circle and doing more with this

[PHP] Re: building upon the code RE: Differences

2012-10-04 Thread Jim Giner
On 10/4/2012 10:15 PM, David McGlone wrote: I hope I'm not being a pest. I've played with the return and echo so much today I've finally realized I'm going in circles. But I can say I understand it more than ever. Now whats on my mind is breaking out of this circle and doing more with this

[PHP] Re: php can't insert data mysql table

2012-10-01 Thread Jim Giner
On 10/1/2012 12:32 AM, Tim Dunphy wrote: Hello list, I'm trying to learn and get comfortable with HTML forms in PHP. In one example I am trying to include a file upload in one of the forms. I can connect to the database but for some reason the MySQL query string is bad. I've been over this

Re: [PHP] Re: php can't insert data mysql table

2012-10-01 Thread Jim Giner
On 10/1/2012 9:12 AM, Tommy Pham wrote: On Mon, Oct 1, 2012 at 6:03 AM, Jim Giner jim.gi...@albanyhandball.com wrote: In this case, I do think that your insert statement is incorrect - I could be wrong. I think the VALUES clause s/b just 'VALUE'. Also if you added MYSQLI_ERROR to your error

[PHP] Re: php can't insert data mysql table

2012-10-01 Thread Jim Giner
On 10/1/2012 12:32 AM, Tim Dunphy wrote: Hello list, I'm trying to learn and get comfortable with HTML forms in PHP. In one example I am trying to include a file upload in one of the forms. I can connect to the database but for some reason the MySQL query string is bad. I've been over this

[PHP] Re: php can't insert data mysql table

2012-10-01 Thread Jim Giner
oops - I added a an extra id field. There were only 4 in OP's DESCRIBE email. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: php can't insert data mysql table

2012-10-01 Thread Jim Giner
On 10/1/2012 12:20 PM, Tim Dunphy wrote: hey thanks guys adding debugging info worked. Actually it was mysqli_error() providing me with a specific error of where the problem was. Cannot insert query:Duplicate entry '0' for key 'PRIMARY' This is the data in the table mysql select * from

Re: [PHP] Here's my rounding

2012-09-28 Thread Jim Giner
On 9/28/2012 2:11 AM, Simon J Welsh wrote: On 28/09/2012, at 6:08 PM, Chris Payne oxygene...@gmail.com wrote: $test2 = '253177'; echo $tes2 . rounded to: ; $rounded_number = round($test2,-3); echo $rounded_number; Is it SUPPOSED to happy a number is sent to this little system and it's

Re: [PHP] about lock some codes.

2012-09-27 Thread Jim Giner
On 9/27/2012 7:05 AM, Maciek Sokolewicz wrote: On 27-09-2012 11:31, lx wrote: Hello: I have a question now.the code is: $ftemp = fopen($fdoc_tmp/temp_proxy, 'w'); fwrite($ftemp, $content); fclose($ftemp);

[PHP] Re: PHP as Application Server

2012-09-26 Thread Jim Giner
On 9/26/2012 5:58 AM, Maciej Liżewski wrote: Hi, Maybe this topic have been already on board, but I could not find nothing in google, so my question to PHP maintaneers (and other users too) is: Why there is no possibility to run PHP in application server way among other SAPI modules and other

Re: [PHP] Re: PHP as Application Server

2012-09-26 Thread Jim Giner
and whole things works as expected... 2012/9/26 Jim Giner jim.gi...@albanyhandball.com: On 9/26/2012 5:58 AM, Maciej Liżewski wrote: Hi, Maybe this topic have been already on board, but I could not find nothing in google, so my question to PHP maintaneers (and other users too) is: Why

[PHP] Re: Joining a team, where no wiki or docs are available

2012-09-24 Thread Jim Giner
On 9/24/2012 10:05 AM, AmirBehzad Eslami wrote: Hi, i'm going to join a mid-size company with a few PHP-driven projects written in procedural PHP, million years old. At the moment, they don't have a wiki or any documentation about their projects. For me, the first challenge in probation period

Re: [PHP] Bounce messages

2012-09-21 Thread Jim Lucas
=blacklist%3a213.123.20.127 This could be the source of your bounce messages. -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Bounce messages

2012-09-21 Thread Jim Lucas
...@ashleysheridan.co.uk] Sent: Friday, September 21, 2012 2:56 PM To: Jim Lucas Cc: Lester Caine; php-general@lists.php.net Subject: Re: [PHP] Bounce messages On Fri, 2012-09-21 at 09:56 -0700, Jim Lucas wrote: On 09/21/2012 12:40 AM, Lester Caine wrote: I know that the php list are one

Re: [PHP] about PHP's filter_var function

2012-09-20 Thread Jim Lucas
5.1.6 can slove this work and replace the filter_var function ? Thank you, I'm a new one, so I don't know much about PHP documentation. By the way, The PHP version is required. so I can't upgrade it. -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ -- PHP General Mailing

Re: [PHP] about PHP's filter_var function

2012-09-20 Thread Jim Lucas
On 09/20/2012 10:00 AM, Matijn Woudt wrote: On Thu, Sep 20, 2012 at 6:03 PM, Jim Lucasli...@cmsws.com wrote: On 09/20/2012 02:35 AM, Sebastian Krebs wrote: Plaseplease update... 5.1.6 is from 2006! I read the it's required, but I can't imagine _anything_ that it's worth it to use

Re: [PHP] Re: Programmers and developers needed

2012-09-18 Thread Jim Giner
How naive you are to think that technology will promote world peace. People promote world peace and all the technology in the world cannot help them. You want world peace - stop chasing the easy solution and go do something. Look at the great social networks of today - they amount to

[PHP] tricky code problem

2012-09-17 Thread Jim Giner
This is a tricky one but let's see if I can explain it. 1 - using a menu screen I have a link that calls a js function that opens a popup with a form in it; 2 - the form receives some user input (a login) and then the user clicks a submit button; 3 - the button has an onclick that calls a

Re: [PHP] How to limit source IP in PHP

2012-09-14 Thread Jim Lucas
the connection to. -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to limit source IP in PHP

2012-09-14 Thread Jim Lucas
On 09/13/2012 04:15 PM, Tonix (Antonio Nati) wrote: Jim, sorry but you did not read carefully my posts. Since the fist post, I ALWAYS spoke about connections a PHP script may open autonomously (what you name second connection). I'm never speaking about listening/intercepting/using

Re: [PHP] How to limit source IP in PHP

2012-09-13 Thread Jim Lucas
connecting out, that is more of a OS specific option. You will need to find out how to run a php script and have it bind to a given IP (or interface) when it connects to the WWW. Hope this helps. Jim Regards, Tonino -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ -- PHP

Re: [PHP] How to limit source IP in PHP

2012-09-13 Thread Jim Lucas
On 09/13/2012 12:55 PM, Tonix (Antonio Nati) wrote: Il 13/09/2012 21:41, Jim Lucas ha scritto: On 09/13/2012 12:28 PM, Tonix (Antonio Nati) wrote: You are speaking about incoming connections, I suppose. I'm speaking about connections started from within PHP. Which is a response

[PHP] Re: Programmers and developers needed

2012-09-13 Thread Jim Giner
On 9/13/2012 3:45 AM, agbo onyador wrote: Hello there! We are looking for programmers and developers to create a world wide system. Your comments are welcome. really?? A world wide system? And this is how you advertise it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] another Array question

2012-09-10 Thread Jim Lucas
by array_slice() $length = ($f_pos - $s_pos); $subset_array = array_slice($myarray, $s_pos, $length); print_r($subset_array); $all_values = join(', ', $subset_array); echo $all_values; ? Obviously, you need to add in some error checking. But that should get you started. -- Jim -- PHP

Re: [PHP] The end of mysql

2012-09-08 Thread Jim Giner
Nope. No PDO as yet either jg On Sep 7, 2012, at 11:22 PM, Adam Richardson simples...@gmail.com wrote: On Fri, Sep 7, 2012 at 9:58 PM, Jim Giner jim.gi...@albanyhandball.com wrote: So with the announced end of the mysql functions (and switching to a different extension), one would think

Re: [PHP] The end of mysql

2012-09-08 Thread Jim Giner
On 9/8/2012 10:40 AM, Bastien wrote: Change hosts. They are not keeping up That's not entirely true. They have kept up to date with most things for the 10 years I've been with them. I think they just have to get their heads around the idea that the PHP community is moving ahead on

Re: [PHP] The end of mysql

2012-09-08 Thread Jim Giner
On 9/8/2012 9:54 AM, Jim Giner wrote: Nope. No PDO as yet either jg On Sep 7, 2012, at 11:22 PM, Adam Richardson simples...@gmail.com wrote: On Fri, Sep 7, 2012 at 9:58 PM, Jim Giner jim.gi...@albanyhandball.com wrote: So with the announced end of the mysql functions (and switching

[PHP] The end of mysql

2012-09-07 Thread Jim Giner
So with the announced end of the mysql functions (and switching to a different extension), one would think that my isp/hoster would be a bit more interested in my dilemma. I tried today to create my first mysqli-based test script and found that I didn't have that extension. A series of

Re: [PHP] PHP to XLS Security Alert issue

2012-08-29 Thread Jim Lucas
, then it complains. May want to check that as well. -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: get question

2012-08-27 Thread Jim Giner
On 8/27/2012 3:17 PM, Jack S wrote: Hello All, Trying to figure out why when I include the page that contains this code, I'm not able to get the $calling_page populated with any values. Any help appreciated... ? # Dynamic Content based in page $calling_page = $_GET['page']; # Home Page

Re: [PHP] Re: get question

2012-08-27 Thread Jim Lucas
On 08/27/2012 01:26 PM, Ashley Sheridan wrote: On Mon, 2012-08-27 at 15:56 -0400, Jim Giner wrote: Also, as Ashley can attest, make sure that your able to run with short-tags enabled. Seeings how your code block starts with a short-tag. eg. '?' Change this to ?php and see if you get

Re: [PHP] Re: get question

2012-08-27 Thread Jim Giner
On 8/27/2012 7:21 PM, Ashley Sheridan wrote: On Mon, 2012-08-27 at 18:54 -0400, Jack S wrote: OK yes, ? works fine. In respect to errors I get: PHP Notice: Undefined index: page in /home/WebSite.com/www/includes/header.php on line 8 Line 8 has the below line of code $calling_page =

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread Jim Lucas
pasting sites around, but that breaks up the continuity of the list archive. No solution, just frustrated This list does allow attachments, but that breaks things too, because they are not shown on archive web sites. -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ My

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread Jim Lucas
On 08/24/2012 08:25 AM, Matijn Woudt wrote: On Fri, Aug 24, 2012 at 5:22 PM, Jim Lucasli...@cmsws.com wrote: Two simple guide lines will help everybody here. 1) Limit your lines to 80 characters 2) Use spaces instead of Tabs Are we going to discuss coding guidelines again? The 80-character

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread Jim Lucas
On 08/24/2012 08:47 AM, Matijn Woudt wrote: On Fri, Aug 24, 2012 at 5:33 PM, Jim Lucasli...@cmsws.com wrote: On 08/24/2012 08:25 AM, Matijn Woudt wrote: On Fri, Aug 24, 2012 at 5:22 PM, Jim Lucasli...@cmsws.com wrote: Two simple guide lines will help everybody here. 1) Limit your lines

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread Jim Lucas
On 08/24/2012 09:28 AM, tamouse mailing lists wrote: On Fri, Aug 24, 2012 at 10:16 AM, Jim Lucasli...@cmsws.com wrote: On 08/24/2012 08:01 AM, tamouse mailing lists wrote: OT Reply -- just frustrated with the way email screws up program listings. It's a royal pain to have to strip out code

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread Jim Lucas
On 08/24/2012 12:34 PM, Matijn Woudt wrote: On Fri, Aug 24, 2012 at 8:24 PM, Jim Lucasli...@cmsws.com wrote: Personally, I let my code ramble on as long a line as it needs. I use tabs (set to 8 chars) in my code. That is because the other developers that I work with have editors that can

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