Re: [PHP] Re: refernces, arrays, and why does it take up so much memory?

2013-09-03 Thread Jim Giner
On 9/3/2013 1:09 AM, Daevid Vincent wrote: -Original Message- From: Jim Giner [mailto:jim.gi...@albanyhandball.com] Sent: Monday, September 02, 2013 8:14 PM To: php-general@lists.php.net Subject: [PHP] Re: refernces, arrays, and why does it take up so much memory? On 9/2/2013 9:30 PM

Re: [PHP] jquery fill select option value

2013-09-22 Thread Jim Giner
On 9/22/2013 3:52 AM, Ashley Sheridan wrote: iccsi wrote: -- BMW Audi I use above code to have my select drop down on the form and would like to use jQuery to fill option value on change event. I would like know is it possible to do, if yes, any hint or example code at server site is

Re: [PHP] jquery fill select option value

2013-09-22 Thread Jim Giner
On 9/22/2013 12:04 PM, Tedd Sperling wrote: On Sep 21, 2013, at 9:06 PM, iccsi wrote: -- BMW Audi I use above code to have my select drop down on the form and would like to use jQuery to fill option value on change event. I would like know is it possible to do, if yes, any hint or example c

[PHP] Re: Switch Statement

2013-09-28 Thread Jim Giner
On 9/28/2013 10:33 PM, Ethan Rosenberg wrote: Dear List - I have a working program. I made one change in a switch statement, and it does not work. I'm probably missing something fundamental. Here are some code SNIPPETS... [please note that all my debug statements are at the left margin] Set

[PHP] Re: Switch Statement

2013-09-28 Thread Jim Giner
Ethan,Ethan,Ethan - what is all this "stuff" you have at the top??? Do you know how any of this is supposed to be written? You can not put Constants in quotes - they become just plain strings then, not Constants with the predefined values you (and the functions) are expecting. For example

Re: [PHP] Re: Switch Statement

2013-09-28 Thread Jim Giner
On 9/29/2013 1:29 AM, Ethan Rosenberg wrote: On 09/28/2013 11:59 PM, Jim Giner wrote: Ethan,Ethan,Ethan - what is all this "stuff" you have at the top??? Do you know how any of this is supposed to be written? You can not put Constants in quotes - they become just plain strings

Re: [PHP] Re: Switch Statement

2013-09-28 Thread Jim Giner
On 9/29/2013 1:38 AM, Jim Giner wrote: session_start(); session_name("STORE"); set_time_limit(2400); ini_set('display_errors', 'on'); ini_set('display_startup_errors', 'on'); error_reporting(-2); ini_set(&#

[PHP] date time problem

2013-10-06 Thread Jim Giner
I always hate dealing with date/time stuff in php - never get it even close until an hour or two goes by anyway I have this: // get two timestamp values $exp_time = $_COOKIE[$applid."expire"]; $curr_time = time(); // get the difference $diff = $exp_time - $curr_time; // produce a display t

Re: [PHP] date time problem

2013-10-06 Thread Jim Giner
On 10/6/2013 6:36 PM, Farzan Dalaee wrote: You should use gmdate() if you want to how many hours left to expire $time_left = gmdate("H:i:s",$diff); Best Regards Farzan Dalaee On Oct 7, 2013, at 1:49, Jim Giner wrote: I always hate dealing with date/time stuff in php - never g

Re: [PHP] date time problem

2013-10-06 Thread Jim Giner
On 10/6/2013 6:49 PM, Farzan Dalaee wrote: Try this please gmdate("H:i:s", $diff%86400) Best Regards Farzan Dalaee On Oct 7, 2013, at 2:12, Jim Giner wrote: On 10/6/2013 6:36 PM, Farzan Dalaee wrote: You should use gmdate() if you want to how many hours left to expire

Re: [PHP] date time problem

2013-10-06 Thread Jim Giner
Look at my code. The inputs are all timestamps so date should work, no? My question why am i getting an hour value in this case? jg On Oct 6, 2013, at 7:14 PM, Aziz Saleh wrote: > Jim, > > The date method takes in a timestamp (not seconds away). > > You have the seconds, y

Re: [PHP] date time problem

2013-10-06 Thread Jim Giner
ime-difference-in-minutes-in-php>Jonathan sent out contains functions that does the division for you with results. Another link you can check out: http://stackoverflow.com/a/9143387/1935500 On Sun, Oct 6, 2013 at 7:29 PM, Jim Giner wrote: Look at my code. The inputs are all timestamps so date

Re: [PHP] date time problem

2013-10-06 Thread Jim Giner
On 10/6/2013 7:55 PM, Ashley Sheridan wrote: On Sun, 2013-10-06 at 19:14 -0400, Aziz Saleh wrote: Jim, The date method takes in a timestamp (not seconds away). You have the seconds, you will need to manually convert those seconds to what you desire (minutes = seconds / 60), (hours = minutes

Re: [PHP] date time problem

2013-10-07 Thread Jim Giner
On 10/6/2013 11:21 PM, Romain CIACCAFAVA wrote: An easier way to do that would be using the diff() method of a DateTime object on another. Regards Romain Ciaccafava Romain - you were so right. A little less calculating to be done and I got the result I wished. For anyone interested here's t

[PHP] php.ini

2013-10-08 Thread Jim Giner
Can someone give me an understanding of how the .ini settings are located and combined? I am under the impression that there is a full settings .ini file somewhere up high in my host's server tree and that any settings I create in .ini files in each of my domain folders are appended/updated ag

Re: [PHP] php.ini

2013-10-09 Thread Jim Giner
On 10/8/2013 11:13 AM, Simon Schick wrote: Hi, Jim I suggest to read this page of the tutorial. It seems, that it solves the questions, you posted here: http://www.php.net/manual/en/configuration.file.per-user.php Please be aware, that the ini-file is not re-read on every request, but after a

Re: [PHP] php.ini

2013-10-09 Thread Jim Giner
re: changing ini settings. If my running script modifies an ini setting I currently believe that that changed setting will apply to that specific process and any others that run after that from that same folder (since i have an ini file in each folder currently). Correct? And if I do make a

Re: [PHP] php.ini

2013-10-09 Thread Jim Giner
On 10/9/2013 3:14 AM, Simon Schick wrote: On Tue, Oct 8, 2013 at 9:50 PM, Jim Giner wrote: On 10/8/2013 2:42 PM, Simon Schick wrote: On Tue, Oct 8, 2013 at 5:25 PM, Jim Giner * *wrote: re: changing ini settings. If my running script modifies an ini setting I currently believe that that

Re: [PHP] Stripping carriage returns

2011-01-11 Thread Jim Lucas
); The modifiers after the second / are i = case-insensitive s = include new lines in your '.' character match. New lines are excluded by default. Can't remember right now, nor do I have the time to test, you might need to invert the greediness of the match using a 'U' after the second / also. So... $content = preg_replace("//isU", "", $content); YMMV Let us know how this works out for you. Jim Lucas PS: you might want to swap the order of these two statements. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HTML errors

2011-01-11 Thread Jim Lucas
bout_us', 'contact_us', 'testimonials'); foreach($categorys as $category){ $replace = str_replace("_", " ", $category); echo "$replace"; Try this instead echo '',$replace,''; Jim Lucas } Validator Error: an attri

Re: [PHP] which php file is sending emails?

2011-01-15 Thread Jim Lucas
ed to revise your sysadmin skills! > Um, I use OpenBSD and that command gives me an error or two... $ grep -l mail $(find -name *.php) find: unknown option -- n find: unknown option -- a find: unknown option -- m find: unknown option -- e formmail.php $ grep -l mail $(find ./ -name "*.php&quo

Re: [PHP] which php file is sending emails?

2011-01-15 Thread Jim Lucas
On 1/15/2011 10:51 AM, Nilesh Govindarajan wrote: > On 01/15/2011 11:13 PM, Daniel Brown wrote: >> On Sat, Jan 15, 2011 at 12:21, Nilesh Govindarajan wrote: >>> On 01/15/2011 10:22 PM, Jim Lucas wrote: >>>> >>>> Um, I use OpenBSD and that command gives

Re: [PHP] email list 101

2011-01-16 Thread Jim Lucas
..@address.com,My Name list($addr, $name) = explode(',', $addr, 2) $mail->AddAddress($addr, $name); } if(!$mail->Send()) { echo "Message could not be sent. "; echo "Mailer Error: " . $mail->ErrorInfo; exit; } if ( ! headers_sent() ) header(&

Re: [PHP] [security] PHP has DoS vuln with large decimal points

2011-01-16 Thread Jim Lucas
27;t test it on *nix platform yet. Could someone please > confirm this? > > Thanks, > Tommy > > Seems to work fine for me. $ cat float.php $ php -f float.php Example 1 float(2.2250738585072E-307) float(2.2250738585072E-307) Example 2 float(2.2250738585072E-308) float(2.2

Re: [PHP] [PHP]: permission problem www-data

2011-01-18 Thread Jim Lucas
On 1/18/2011 1:44 AM, Moses wrote: > Hi Everyone, > > I am creating a file in PHP script which takes a value from a form and > writes it > to a file. However, i don't have the mode permission for the file instead it > is owned > by www-data.What can i do to ensure that the file is owned by me. >

Re: [PHP] [PHP]: permission problem www-data

2011-01-18 Thread Jim Lucas
Then have your web server use that PHP instance for your web site to process all PHP requests. This is how we have our servers at the office setup. Works great. Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Script mysteriously restarting

2011-01-21 Thread Jim Lucas
y a PHP script would restart itself like this? > > FWIW, I'm running PHP5 with Apache 2 on a Linux server. > Clarification please. Is this cli or browser based? Jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] preg_replace question

2011-01-24 Thread Jim Lucas
I > > > I could not find a way to fix this and I would be happy for some help. Thank > you > in advance! > > Merlin > Do you have control over the building of the initial "phrase" => "link" assoc? If so, reverse the order of these two items. Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Formatting

2011-01-25 Thread Jim Lucas
plain text" 2 - http://www.php.net/manual/en/function.header.php#92620 If in cli... well, you wouldn't be having this problem... :) Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Counting Online users, but not using a Session Table in MySQL

2011-01-28 Thread Jim Lucas
you are looking for. This gives you the idea... SELECT COUNT(*) FROMusers_table WHERE logged_in = 't' AND last_activity > FROM_UNIXTIME( UNIX_TIMESTAMP() - 1800 ) Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Counting Online users, but not using a Session Table in MySQL

2011-01-28 Thread Jim Lucas
es after they > logged in. This is easily handled in a query on the users table, but it > causes performance issues. > > David > cron it. Setup a cron script that runs every 5 minutes. A seconds work every 5 minutes isn't too much is it? Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PEAR & PHP

2011-01-30 Thread Jim Lucas
e, what is a dynamic extension? Again, http://www.google.com Enter "what is a dynamic extension" ... Here is a good result from the list returned http://www.atnf.csiro.au/computing/software/karma/programmer-manual/node17.html Thanks. Ethan I hope this gets you headed down th

Re: [PHP] override built-in mail()

2011-02-04 Thread Jim Lucas
would be to actually specify a replacement sendmail executable when setting up the sendmail option in the php.ini. You could specify a php script that can run as though it was sendmail, accept the same arguments, etc... but do all the phpmailer stuff inside. Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] file upload utility ?

2011-02-07 Thread Jim Lucas
set it up and send emails. phpmailer examples The first result is this http://phpmailer.worxware.com/index.php?pg=examples It has a variety of examples that should cover almost any scenario you can possibly think of. Just one thing, do not try and be a cut/paste god here. Actually take time

Re: [PHP] using BOTH GET and POST in the same page.

2011-02-12 Thread Jim Lucas
Name: When submitted with data to this: Will result in this: Array ( [page_id] => 22 [action] => AddUser ) Array ( [action] => DelUser [FullName] => Jim Lucas ) Array ( [page_id] => 22 [action] => DelUser [FullNam

Re: [PHP] Simplifying MySql queries

2011-02-12 Thread Jim Lucas
FROM`CandidateQuestions` WHERE `Category` IN (1,2,3,4) ORDER BY RAND() LIMIT 4 This will probably do the distinct after the ORDER BY RAND(), but again, completely untested. YMMV Give them a whirl and let us know how it works out. Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] code quest

2011-02-14 Thread Jim Lucas
&&!in_array(basename($d),$excludes)) > { > echo ''.$d.' border="5">'; > include($d."/desc.txt"); > echo ''; > }; > }; > echo ''; > ?> > > Now I am stymied on changing this to add at th

Re: [PHP] Re: Dynamically Created Checkboxes

2011-02-23 Thread Jim Lucas
http://www.eset.com > If you would allow me to show you a little easier way of doing this. if ( !isset($_POST['submit']) ) { echo ''; if ($Recordset1) { echo <<   State County HEADER; while ( $row = mysql_fetch_array($Recordset1) ) { echo << {$row['state_id']} {$row['name']} ROW; }//end while echo ''; } else { echo 'Error performing query: '.mysql_error().''; } echo ''; } Now, the main thing I want you to see is the line for the country checkbox'es The county[] turns the submitted values into an array. So, in the processing script, you would do this. $name ) echo "{$id} {$name}\n"; ... ?> Hope this clears things up for you a little. Enjoy. Jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Manipulating variables

2011-02-23 Thread Jim Lucas
app quiz and I need to test the users answers. Ron The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info Give this a try -- Jim Lucas http://www.cmsws.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why is this array_walk_recursive action not working?

2011-02-24 Thread Jim Lucas
l pass the value as a reference, so, change around your function like this. $karamohOutput['test'] = ""; # notice this .>| function test_print(&$item, $key) { $item = "$key holds $item\n"; } array_walk_recursive($karamohArray, 'test_print'); print_r($karamohArray); Give this a try and let us know. Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sorting an array

2011-03-01 Thread Jim Lucas
ld recommend doing it in mysql? SELECT * FROM ORDER BY ; Check out the syntax for it here. http://dev.mysql.com/doc/refman/5.0/en/select.html and http://dev.mysql.com/doc/refman/5.0/en/order-by-optimization.html Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help needed with mysql import

2011-03-02 Thread Jim Lucas
is fine and dandy until you want to do a restore of your data. With a restore, you will probably want to retain your auto-increment IDs since they are probably used else where in your DB. Jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help needed with mysql import

2011-03-02 Thread Jim Lucas
On 3/2/2011 9:48 AM, Ashley Sheridan wrote: > "Jim Lucas" wrote: > >> On 3/2/2011 4:25 AM, Alex wrote: >>> You shouldn't have a default value in an auto increment field. You >> can >>> set AUTO_INCREMENT to 0 and start with 1, but as auto in

Re: [PHP] Re: Possible bug in PHP 5.3.5 with OAuth extension?

2011-03-04 Thread Jim Lucas
On 3/4/2011 5:18 PM, Daniel Hong wrote: > Correction: > > I stated the incorrect version of PHP that does not seem to have this issue. > The version of PHP that works correctly is 5.3.2, not 5.3.3. Can you give us an example of what you are doing? Jim Lucas > > Thanks, &g

Re: [PHP] Help translating PHP5 code to PHP4.

2011-03-08 Thread Jim Lucas
that is in the PHP manual http://us.php.net/manual/en/function.xml-parser-create.php#38739 The only modification that you will probably have to make is to set the following in your php.ini file. allow_url_include = On and/or allow_url_fopen = On This would allow fopen to open the external URL and

Re: [PHP] Can´t upload files bigger than 50KB

2011-03-09 Thread Jim Lucas
On 3/9/2011 6:28 AM, Gotzon Astondoa wrote: > Hi all: > > On my website I have an Ajax form. From this form user can upload files. My guess would be that you have an HTML form. Not AJAX > Server side is a PHP script. > This form works properly on my development server. Is this on localhost or

Re: [PHP] Re: $_POST variable

2011-03-11 Thread Jim Lucas
o have the form only allow you to have one of the radio input fields selected at any given time. How you showed it, it would not see the uniqueness of the radio button names, and therefor allow more than one of the radio input fields to be selected at a time. I would try something like this

Re: [PHP] Deleting elements from the middle of an array

2011-03-14 Thread Jim Lucas
On 3/14/2011 1:31 PM, Paul M Foster wrote: > Here's what I need to do: I have an indexed array, from which I need to > delete elements in the middle. Once completed, the indexes should be > numerically in sequence, as they were when I first encountered the > array. That is: > > Before: > $arr = ar

Re: [PHP] Deleting elements from the middle of an array

2011-03-15 Thread Jim Lucas
On 3/14/2011 2:02 PM, Jim Lucas wrote: > On 3/14/2011 1:31 PM, Paul M Foster wrote: >> Here's what I need to do: I have an indexed array, from which I need to >> delete elements in the middle. Once completed, the indexes should be >> numerically in sequence, as they wer

[PHP] problem compiling 5.3 with postgresql

2011-03-19 Thread Jim White
gets this ext/standard/.libs/dns.o: In function `php_parserr': /usr/local/php-5.3.5/ext/standard/dns.c:418: undefined reference to `__dn_expand' and more lines like the last one. How can I fix this? I am using Ubuntu 10.10. JIm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[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 ($i=0;$i<$rows

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

Re: [PHP] Re: echo?

2011-03-23 Thread Jim Giner
n message 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 s

[PHP] Re: echo?

2011-03-23 Thread Jim Giner
y'. "Geoff Lane" wrote in message news:1278073104.20110323074...@gjctech.co.uk... > Hi Jim, > > On Wednesday, March 23, 2011, 1:42:18 AM, you wrote: > >> ok - here's the code in question. >> $q = 'select * from director_records '; >> $qrslt =

Re: [PHP] Re: echo?

2011-03-23 Thread Jim Giner
not the concern in this posting "Richard Quadling" wrote in message news:aanlktindqu7bzeamtcwh6y9f3m9yjxqpt-ime9ysh...@mail.gmail.com... On 23 March 2011 07:46, Geoff Lane wrote: > Hi Jim, > > On Wednesday, March 23, 2011, 1:42:18 AM, you wrote: > >> ok - here&#

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" 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 = 'sele

Re: [PHP] Re: echo?

2011-03-23 Thread Jim Giner
Very Interesting - '\n' doesn't work, but "\n" does work. "Steve Staples" 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 on an html page. A doesn't work,

[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
t9.com/ > > On Wednesday, 23 March 2011 at 12:39, Jim Giner wrote: >> Very Interesting - '\n' doesn't work, but "\n" does work. >> "Steve Staples" wrote in message >> news:1300883645.5100.973.camel@webdev01... >> > On Wed, 201

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

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: getText("h2")'; ... 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" 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 - for

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 > > > 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 > > > 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
To those who have been so helpful: I did manage to subscribe to a mysql mailing list. thanks for the pointers. As for my orig problem - for those who are intereseted: The FIELD function apparently doesn't work in 5.0.2, even tho it is in the online ref manual. I was given a suggestion of using

Re: [PHP] randomly random

2011-04-05 Thread Jim Lucas
t; No, but it can be done in one line: 0 ) echo array_rand(file($filename), 1); ?> Jim Lucas -- 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" wrote in message news:4d9c6165.5040...@silvio-siefke.de... > Hello, > > >

Re: [PHP] the best 1 book for php

2011-04-06 Thread Jim Lucas
iley, Largo Florida kniht +-+ | BOX | +-+ think -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Jim Lucas www.cmsws

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

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" Newsgroups: php.general To: "Jim Giner" Cc: "PHP General" Sent: W

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
rote 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&q

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
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 List (http://www.p

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 th

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: http://www.php.n

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

Re: [PHP] str_replace

2011-04-25 Thread Jim Lucas
On 4/24/2011 8:44 AM, Ron Piggott wrote: > > I am trying to figure out a syntax that will replace each instance of % with a > different letter chosen randomly from the string $puzzle_filler. > $puzzle_filler > is populated with the letters of the alphabet, roughly in the same ratio as > they > a

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

[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
I"m 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 s

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" >> > 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: no-cache")

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" 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 General Mailing List (http://www.php.net/) To unsubscribe, visit

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 deleted

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

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

2011-04-28 Thread Jim Giner
made a powerful use of the array constuct. "Geoff Lane" 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

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

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

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 doesn'

<    10   11   12   13   14   15   16   17   18   19   >