[PHP] Hey, I have a full time PHP developer position in Chicago!

2013-09-10 Thread Steve Gadlin
Howdy. My name is Steve, and I run the web department for Weigel Broadcasting in Chicago. We're looking for a senior-level PHP developer to add to our team. This is a full time gig with benefits. As it's an in-house thing, we're happy to meet with people outside Chicago if the

RE: [PHP] What is wrong with this preg_match?

2011-10-27 Thread Steve Staples
ts, so 2011-01-011 is getting 2011-01-01 and truncating the last 1. If you had used (I think) "^(\d{4}-\d{2}-\d{2})$" I think that would give you what you want... (but my reg-ex is horrible) Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] FW: parse error

2011-10-13 Thread Steve Staples
uery is it possible that the value is getting a ' character, in which case it would be crapping out the line... For now, try adding [addslashes]: $termnum10=addslashes(substr($dest, $start_from_which_offset,10)); $alias_sql_stmt="SELECT ani FROM ldrates WHERE ani='$termnum10'";// <-this is line 1050 Steve. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Querying a database for 50 users' information: 50 queries or a WHERE array?

2011-09-13 Thread Steve Staples
g logic here)); guess it all depends on how you want to do it... but that would make it 1 db query good luck! -- Steve Staples Web Application Developer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Querying a database for 50 users' information: 50 queries or a WHERE array?

2011-09-13 Thread Steve Staples
#x27;, ', $usersids) .")"; not very elegant, and I am not sure that the IN is any better than doing 50 mysql calls, but this is only 1 call, and gets you the data. Are you querying the database to get the id's in the frist place? if so, you could look at doing an inner join on

Re: [PHP] array problem

2011-09-09 Thread Steve Staples
array $arrUsers. foreach ($arrUsers as $user){ foreach ($user as $val) { echo $val . ""; } echo ''; } -- Steve Staples Web Application Developer 519.258.2333 x8414 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Dreaded Premature end of script headers

2011-08-29 Thread Steve Staples
l never figured it out, but I've moved on since then). Just a thought, check your conf files for differences. Steve. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Best editor?

2011-08-03 Thread Steve Staples
let me test PHP files without having to upload everything > every time I edit it? Any help would be greatly appreciated. Thanks! > -Matty > I personally use Komodo IDE, but there are lots out there. There is the Eclipse with PHP, or there was the way I learned, NotePad (then switched to

Re: [PHP] $_POST value disappearing?

2011-08-02 Thread Steve Staples
ex.php-- > > --/index.php-- > > > > > The result I get is: > > Array > ( > [f_ap] => upload > [f_action] => doit > ) > --- > > Can someone enlighten me? > > Thanks, > Donovan try print_r($_FI

Re: Re: [PHP] What is a label?

2011-07-14 Thread Steve Staples
On Thu, 2011-07-14 at 13:39 +0100, Stuart Dallas wrote: > On Thu, Jul 14, 2011 at 1:37 PM, Steve Staples wrote: > > > On Wed, 2011-07-13 at 23:27 +0100, Tim Streater wrote: > > > A valid variable name starts with a letter or underscore > > > > If I am not mist

Re: Re: [PHP] What is a label?

2011-07-14 Thread Steve Staples
ng to be a formal or "programmatic" definition, then I think > I'd prefer BNF to a regexp. > > -- > Cheers -- Tim > Isn't that statement a little misleading? > A valid variable name starts with a letter or underscore If I am not mistaken, $_1 is not a valid variable name. Steve. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] vend-bot?

2011-07-06 Thread Steve Staples
stead. Either way, unless you have some kind of file locking/binding to IP/mac address and/or a call home feature, it is kinda hard to stop piracy, and even then, there are people who can and will crack it if it is something that useful. Good luck with this. Steve. -- PHP General Ma

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

2011-06-30 Thread Steve Staples
hard to find sometimes... As much as I hate to go off-topic even more, this is one thing that I do like about Python. The fact that requires/enforces proper indentation... but that is as far as I am going with that :) Steve. -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] PDO_INFOMIX connection problem...

2011-06-30 Thread Steve Staples
On Wed, 2011-06-29 at 16:42 -0400, Steve Staples wrote: > I am trying to connect to an informix database, and using excel and odbc > it works fine. > > I installed the PDO_INFORMIX via: > pecl download pdo_informix > phpize > ./configure --with-pdo-informix=/opt/IBM/informix

[PHP] PDO_INFOMIX connection problem...

2011-06-29 Thread Steve Staples
I am trying to connect to an informix database, and using excel and odbc it works fine. I installed the PDO_INFORMIX via: pecl download pdo_informix phpize ./configure --with-pdo-informix=/opt/IBM/informix make make install and it all appeard to work... phpinfo() shows that it's enabled, and act

Re: [PHP] caching problem

2011-06-28 Thread Steve Staples
ule. > > If you're absolutely certain that you are not using any opcode caching (you > mentioned that you are using pre-compiled binaries, and it's possible they > include APC or similar by default), then I have no idea what's going on > beyond what I and others have already

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

2011-06-27 Thread Steve Staples
d comics that relate to programming somehow and insert them in the > php.net documentation :) > > Tamara, kind of like this one? http://ca3.php.net/manual/en/control-structures.goto.php I love that comic :) Steve. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Ftp upload

2011-06-15 Thread Steve Staples
t the age of 16... -- Steve Staples Web Application Developer 519.258.2333 x8414 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What do you get for ...

2011-06-07 Thread Steve Staples
) 1998-2009 Zend Technologies sstaples@webdev01:~$ sstaples@webdev01:~$ pwd /home/sstaples sstaples@webdev01:~$ php -r "var_dump(realpath(null));" string(14) "/home/sstaples" sstaples@webdev01:~$ I am running Ubuntu 9.10 Steve. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP Brainteasers 2011

2011-05-20 Thread Steve Staples
Just wondering if anyone has done anything for this? I personally haven't had any "ideas" come to mind yet... Looking forward to seeing them!!! (once they come) Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Closing Session (Revisited)

2011-05-05 Thread Steve Staples
you will be fine, but if one tabs stays open, no go :( Have you looked at the http://ca3.php.net/session_name function, and putting that into your site just after your session_start() ? I believe that will fix your issues (as long as your session names are unique), but i am not 100% sure. Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2011-04-29 Thread Steve Staples
KING about using a GOTO! :P (yes, there are still *SOME* (and i use that loosely) benefits to the GOTO command, but in reality, no.) Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newsgroup status

2011-04-27 Thread Steve Staples
Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > I guess we've all figured out how to deal with our problems... TO THE CLOUD!! Steve. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] email w/attachments

2011-04-18 Thread Steve Staples
t; 2007+. Outlook 2003 was very good with HTML mail. Outlook 2007+, not > so good. But that is fine for me, as the data was all tables. But for > those sending out pretty mails, I believe it is a harder job that > expected. > > Richard. > > -- > Richard Quadling > Twitter

Re: [PHP] Last Name extraction in query

2011-04-04 Thread Steve Staples
de... use that. they are a helpful bunch over there. -- Steve Staples Web Application Developer MNSi (Managed Network Systems Inc.) 519.258.2333 x8414 http://www.mnsi.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Closing Session

2011-03-31 Thread Steve Staples
On Thu, 2011-03-31 at 16:51 -0400, Daniel Brown wrote: > On Thu, Mar 31, 2011 at 16:40, Ethan Rosenberg wrote: > > > > > > Ash - > > > > I can be working on more than one program simultaneously and have one tab > > open w/ program A and another w/ program B. The site in reference is > >

Re: [PHP] neubie seeking answers

2011-03-31 Thread Steve Staples
On Thu, 2011-03-31 at 17:34 +0100, Stuart Dallas wrote: > On Thursday, 31 March 2011 at 17:24, Kirk Bailey wrote: > I need to extract the name of the subdirectory a page lives in to > > use in the title for that page. This will be returned as a string to > > echo to the output stream. Now how the

Re: [PHP] neubie seeking answers

2011-03-31 Thread Steve Staples
On Thu, 2011-03-31 at 12:24 -0400, Kirk Bailey wrote: > I need to extract the name of the subdirectory a page lives in to > use in the title for that page. This will be returned as a string to > echo to the output stream. Now how the heck do I do that?!? > > -- > end > > Very Truly yours, >

Re: [PHP] [OT:Friday] Kunal invites you to join Games24x7.com

2011-03-25 Thread Steve Staples
elopment in 1994 (technical birth year)? so that would technically make it 17 years old, not the 15 that they are claiming it is. Also, you have to admit, the way they spelled "Like" (lyk) was awesome! Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Upload Progress Meter

2011-03-23 Thread Steve Staples
modifications to my PHP install. So, how is it done? > > Thanks! > Floyd > you can google this... "jquery upload progress meter" or: http://www.nixboxdesigns.com/demos/jquery-uploadprogress.php http://www.bitrepository.com/uploading-files-with-progress-bar.html Ste

Re: [PHP] Re: echo?

2011-03-23 Thread Steve Staples
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, nor > does \n, hence the . Of course, if I don't need the & then I've > just saved two keystrokes. :) Also - I do believe I tried ($i+1) and that > didn't work either. > > "Paul M

RE: [PHP] problem with if and exact match

2011-03-15 Thread Steve Staples
gt; > > > > > > > print "false"; > > > > > > } > > > > > > > > > > > > ?> > > > > > > > > > > > > Thanks! > > > > > > Jack > > > Wouldn't this be better to use, as it is meant to search for the string inside the string? (use use regex) if(stristr($name, 'Jackson')) { echo "String is in String"; } else { echo "Failed"; } http://ca.php.net/manual/en/function.strstr.php (case sensative) http://ca.php.net/manual/en/function.stristr.php (case insensative) Steve. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_POST variable

2011-03-11 Thread Steve Staples
_" ? > > Thank You > > Danny > loop thought all the $_POST variables... foreach($_POST as $key => $val) { if(susbtr($key, 0, 7) === "radio_") { # this is what we're looking for } } crude, but works... I am sure there are many ways to look for it. Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Check for open file

2011-03-04 Thread Steve Staples
Depending on the size of the file, wouldn't this fall under the 2gb limitation on windows 32bit OS? I ran into this problem on a project I was working on, and ended up switching to Python (but that is a WHOLE other conversation) just food for thought, since I am not sure of the size of

RE: [PHP] Check for open file

2011-03-03 Thread Steve Staples
ile (that i know of anyways)... maybe the samba does the same thing? how large are these files (or how large would the largest file typically be) ? would it be worth looking at the "time" of the file, and waiting until that file is at least (say) 5 mintues old, then do something with it?

Re: [PHP] Somewhat OT - Stored Procedures

2011-03-03 Thread Steve Staples
he mysql server, and not have to do the same thing on 4 different servers. views, stored procedures, triggers and functions really do have their purpose within mysql/mssql (and whichever sql server you are using if they support them), and most of the times they are forgotten about and/or ove

RE: [PHP] Delaying $(document).ready() in jQuery until php script finish

2011-03-03 Thread Steve Staples
completed is "thing". What I don't get about the question is, is the document.ready() shouldn't fire, until the page has completely loaded, and if the PHP script is still running, the "document" shouldn't be "ready" yet, should it? Steve -- PHP Gener

Re: [PHP] Re: Dynamically Created Checkboxes

2011-02-24 Thread Steve Staples
On Thu, 2011-02-24 at 12:52 -0500, Gary wrote: > "Steve Staples" wrote in message > news:1298568238.14826.2431.camel@webdev01... > > On Thu, 2011-02-24 at 11:42 -0500, Gary wrote: > >> "Steve Staples" wrote in message > >> news:1298492194.1482

Re: [PHP] Re: Dynamically Created Checkboxes

2011-02-24 Thread Steve Staples
On Thu, 2011-02-24 at 11:42 -0500, Gary wrote: > "Steve Staples" wrote in message > news:1298492194.14826.2425.camel@webdev01... > > On Wed, 2011-02-23 at 14:56 -0500, Gary wrote: > >> "Steve Staples" wrote in message > >> news:1298490417.1482

Re: [PHP] Re: Dynamically Created Checkboxes

2011-02-23 Thread Steve Staples
On Wed, 2011-02-23 at 14:56 -0500, Gary wrote: > "Steve Staples" wrote in message > news:1298490417.14826.2418.camel@webdev01... > > On Wed, 2011-02-23 at 14:17 -0500, Gary wrote: > >> "Jim Lucas" wrote in message > >> news:4d653673.7040...@cm

Re: [PHP] Re: Dynamically Created Checkboxes

2011-02-23 Thread Steve Staples
> working in FF or Chrome. This is a link to the first page which runs you > through the pages. > > I have the submit to trigger upon change so there is no submit button. This > works in IE7. If I add a submit button, it does not work in any of them. > > I am wondering if this is more a problem with the html. > > > http://www.assessmentappeallawyer.com/forum_state.php > > This is the code for the first processing page > > 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 ''; > } > > ?> > > This is the code for the second processing page. > > > > > if ( !empty($_POST['county'])) > foreach ( $_POST['county'] AS $id => $name ) > echo 'You have selected '. " {$name}".''; > > > > $totalRows_county_result_net= "($totalRows_county_result) + (1)"; > echo "[$totalRows_county_result_net]"; > echo "$totalRows_county_result"; > ?> > > > > > $name=$_POST['name']; > echo 'You have selected'."$name"; > > ?> > mysql_free_result($county_result); > ?> > > Again, thank you for any input. > > Gary I think it may have to do with HTML, or the fact that IE is "helping" you with your coding... where FF and Chrome are usually more "literal" (yet better IMO). Also, the fact that "submit" has not been defined. try adding: This *SHOULD* give you the submit button, but the style is "hidden" now, so it shouldn't show, but it will fire off the "submit" action... make sure it is in between the tags though. Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] > 2gb file issues

2011-02-17 Thread Steve Staples
On Thu, 2011-02-17 at 15:36 -0600, Nicholas Kell wrote: > On Feb 17, 2011, at 3:29 PM, Steve Staples wrote: > > > Is there a workaround for 32bit systems wanting to use > > fopen() > > is_file() > > filesize() > > > > and i am sure there are oth

[PHP] > 2gb file issues

2011-02-17 Thread Steve Staples
not reading the files :( any assistance? besides upgrading to a 64bit php version. Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] root of PHP found!

2011-02-17 Thread Steve Staples
On Wed, 2011-02-16 at 19:04 -0500, Daniel Brown wrote: > On Wed, Feb 16, 2011 at 18:15, Daevid Vincent wrote: > > Aha! I am working for the company that was the root of PHP! > > > > http://www.panasonic.net/history/founder/chapter3/story3-02.html > > > > ;-) > > I'm surprised you found that.

Re: [PHP] Howdy (new in here)

2011-02-15 Thread Steve Staples
esmiths Style sucks... and Allman Style is the best way to do it. :) My personal bracing style is the Allman Style... I've been doing it that way forever, it just made sense to me (even before I knew there was that style name... which was about 3 minutes ago). everything lined up nice and neat. Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 2 submit buttons.

2011-02-15 Thread Steve Staples
n text value with your default submit value, and then on the submit "onclick" event of the other submit button, replace the text value of the hidden field to something else. Then finally in your postback check, check the value of the hidden field to determine what you're going to do. Personally, I do a combination of both. I disable the ability to submit on key press, and require you to submit via my submit methods, and onclick of the submit button sets a value to the hidden text field, and then do a switch() case:... on that hidden value. But that is my way of doing it (which will prolly get ripped apart by someone here, which is good/constructive criticism for me) steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP -- using without installing

2011-02-14 Thread Steve Staples
On Mon, 2011-02-14 at 16:10 -0500, Paul M Foster wrote: > On Mon, Feb 14, 2011 at 12:32:51PM -0500, Steve Staples wrote: > > > Hi! > > > > I've been developing this stand alone application, found the webserver > > that I am going to use (it is written in php

[PHP] PHP -- using without installing

2011-02-14 Thread Steve Staples
laimer? Any help, or pointers to where my google-fu has failed me would be appreciated :) TIA! Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread Steve Staples
the db, and then query along the way or when you need/want some information on it?? Maybe i just haven't quite figured out, or got the gist of what you are trying to accomplish... it also seems to me, that this really isn't a PHP specific issue, so all the posts that you're doing, re

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

2011-02-04 Thread Steve Staples
On Fri, 2011-02-04 at 20:25 +0100, Thijs Lensselink wrote: > On 02/04/2011 04:59 PM, Steve Staples wrote: > > On Fri, 2011-02-04 at 07:51 -0800, Jim Lucas wrote: > >> On 2/4/2011 5:37 AM, Steve Staples wrote: > >>> Hello Guys/Gals, > >>> > >>>

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

2011-02-04 Thread Steve Staples
On Fri, 2011-02-04 at 07:51 -0800, Jim Lucas wrote: > On 2/4/2011 5:37 AM, Steve Staples wrote: > > Hello Guys/Gals, > > > > it's friday (at least where I am it is) and I have an issue with a > > script that I just started using again. The problem is, is that i

[PHP] override built-in mail()

2011-02-04 Thread Steve Staples
what I am looking to do (maybe I just can't google) Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Pulling from Multiple Databases

2011-02-01 Thread Steve Staples
-- purposely top posting as well -- just think, here in ontario, we have UBB... where Bell is proposing a 25 cap on usage... you sir, are killing my usage! :) On Tue, 2011-02-01 at 12:18 -0700, Alexis wrote: > Bloody Hell!! > > How many lines is the footer in your email response!!! > > I ma

RE: [PHP] Different sessions, same client

2011-01-24 Thread Steve Staples
On Sun, 2011-01-23 at 17:40 -0800, Tommy Pham wrote: > > -Original Message- > > From: Tommy Pham [mailto:tommy...@gmail.com] > > Sent: Sunday, January 23, 2011 5:23 PM > > To: 'Paul M Foster' > > Cc: 'php-general@lists.php.net'; 'Thijs Lensselink' > > Subject: RE: [PHP] Different sessions,

Re: [PHP] Class and interface location

2011-01-20 Thread Steve Staples
> Maybe it's the noob in me, or the lack of smrts... but couldn't you just add a var in the class, and set it like: $GLOBALS['classes_that_do_things']['name'] = 'class_name'; And for those that do 'things', and then do the foreach on that? foreach($GLOBALS['classes_that_do_things']['name'] as $class_name) {...} not sure if that would work or not, it was just something that was in the cobwebs of my brain this morning. Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Class and interface location

2011-01-19 Thread Steve Staples
loper > and > I'm quite sure they'll forget to do so or get it wrong on a regular basis. > > 5) Wave a wand and let the magic ponies figure it out. I wish. :-) > > Can anyone suggest a better alternative? At the moment option 3 seems like > the most viable approa

Re: [PHP] Array Symbol Suggestion

2011-01-12 Thread Steve Staples
t is an array, and what is a variable. Good luck with your suggestion, I personally wouldn't like it (as I am so used to the way it is now), but that is just me. Steve. [1] http://ca.php.net/manual/en/language.operators.errorcontrol.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HTML errors

2011-01-12 Thread Steve Staples
On Wed, 2011-01-12 at 13:40 +, Richard Quadling wrote: > On 12 January 2011 13:20, Steve Staples wrote: > > Jim, > > > > Not to be a smart ass like Danial was (which was brilliantly written > > though), but you have your "example" formatted incorrectly.

Re: [PHP] HTML errors

2011-01-12 Thread Steve Staples
; ", $category); > > echo "$replace"; > > Try this instead > > echo '',$replace,''; > > Jim Lucas [snip] Jim, Not to be a smart ass like Danial was (which was brilliantly written though), but you have your "example" formatted i

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-11 Thread Steve Staples
ls an issue? or is this only numerals only? it also is my business number :P 990-9327 (WEBS) TheStapler.ca is also my domain... which is a my nickname (last name is staples) ANYWAY... way off topic there, was just wodnering about the "legality" of my 990webs domains... since i can

Re: [PHP] First PHP job

2011-01-10 Thread Steve Staples
tions the way Javascript does. > > Wait until you get to PHP's automatic casting of strings to numbers under > the proper conditions. You'll scratch your head for quite a while once > you hit that one. > > Paul > > -- > Paul M. Foster > http://noferblatz.co

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-10 Thread Steve Staples
http://sperling.com/ > on my Ubuntu box, I can copy and past the √ (square-root) character and it displays properly in he address bar on google chome, but it translates it back to the http://xn--19g.com and doesn't show anything else (well... the page loads...LOL) so did you register the xn--19q.com address knowing that it would work/translate to √.com (square-root) ? -- Steve Staples Web Application Developer 519.258.2333 x8414 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newbie Question

2011-01-04 Thread Steve Staples
it. I caught flack for some time when I told people I used EditPlus ++ for all my coding, but they just didn't know how to use the features. Good luck with your coding! and finding an IDE that works for you! (or just a standard text editor like VI if you desire) Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Regex for telephone numbers

2010-12-31 Thread Steve Staples
On Wed, 2010-12-29 at 19:35 -0500, Daniel P. Brown wrote: > On Wed, Dec 29, 2010 at 19:12, Ethan Rosenberg wrote: > > Dear List - > > > > Thank you for all your help in the past. > > > > Here is another one > > > > I would like to have a regex which would validate that a telephone number > >

Re: [PHP] Printing PDF

2010-12-29 Thread Steve Staples
On Wed, 2010-12-29 at 17:36 +, Richard Quadling wrote: > On 29 December 2010 17:24, Steve Staples wrote: > > I can create the PDF's no problem, it is just how to send the created > > pdf to the printer to print (it is a label printer, printing 3x5 labels) > >

Re: [PHP] Printing PDF

2010-12-29 Thread Steve Staples
On Wed, 2010-12-29 at 11:49 -0500, Paul M Foster wrote: > On Wed, Dec 29, 2010 at 10:36:30AM -0500, Steve Staples wrote: > > > Hi! > > > > I have an app that needs to be created, and it is all running on linux. > > I am sure I shoulnd't really write it using

[PHP] Printing PDF

2010-12-29 Thread Steve Staples
would ask you GURU's here :) thank in advance! Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Server response very poor again

2010-12-22 Thread Steve Staples
On Wed, 2010-12-22 at 12:49 -0500, Daniel P. Brown wrote: > On Wed, Dec 22, 2010 at 12:17, Nicholas Kell wrote: > > > > I am with Steve. Well, what I mean is, on this topic I am in agreement with > > Steve. My connection, etc. seems to be quite responsive. > >

Re: [PHP] Server response very poor again

2010-12-22 Thread Steve Staples
the intertubes? Or could it be an issue with your computer? I've never had any problems posting, or retrieving mail from this list, so I can't say/speak to a related issue. Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problems w/ goto

2010-12-17 Thread Steve Staples
On Fri, 2010-12-17 at 12:22 -0500, Robert Cummings wrote: > On 10-12-17 12:08 PM, Steve Staples wrote: > > On Fri, 2010-12-17 at 10:50 -0600, Jay Blanchard wrote: > >> [snip] > >> Thank you with your excellent help in the past. Here is another > >> puzzler.

RE: [PHP] Problems w/ goto

2010-12-17 Thread Steve Staples
using basic and batch files... I honestly didn't even know that the GOTO was still in existence, especially within PHP. I had to show the people in my office, and we all got a chuckle from teh XKCD comic in the PHP documentation for GOTO http://ca2.php.net/goto Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Error Querying Database

2010-12-15 Thread Steve Staples
."VALUES "."('$beername', '$manu', '$type', > '$singles', '$six', '$can', '$bottles', '$tap', '$size', '$desc', '$ip' )") > or die(mysql_error()); > > echo "Data Inserted!"; > > I am now getting this error message, but it does not make sense > > You have an error in your SQL syntax; check the manual that corresponds to > your MySQL server version for the right syntax to use near 'desc, ip)VALUES > ('', '', 'Imported', '', '', '', '', '', '', '', '68.80.24.11' at line 1 > > Does this mean I am getting closer to getting some actual work done today? > > Thanks again > > gary not sure if this is the issue or not, but you have reserved words in your field names... try escaping them all in backticks... and the way i do things with variables inside "", i put them in {}... here is what i mean: mysql_query("INSERT INTO `beer` (`beername`, `manu`, `type`, `singles`, `six`, `can`, `bottles`, `tap`, `size`, `desc`, `ip`)"."VALUES "."('{$beername}', '{$manu}', '{$type}', '{$singles}', '{$six}', '{$can}', '{$bottles}', '{$tap}', '{$size}', '{$desc', '{$ip}')"); Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Error Querying Database

2010-12-15 Thread Steve Staples
On Wed, 2010-12-15 at 14:34 -0500, Gary wrote: > "Steve Staples" wrote in message > news:1292440837.5460.8.ca...@webdev01... > > On Wed, 2010-12-15 at 13:42 -0500, Gary wrote: > >> I cant seem to get this to connect. This is to my local testing server, > &g

Re: [PHP] Error Querying Database

2010-12-15 Thread Steve Staples
On Wed, 2010-12-15 at 13:42 -0500, Gary wrote: > I cant seem to get this to connect. This is to my local testing server, > which is on, so we need not worry that I have posted the UN/PW. > > This is a duplicate of a script I have used countless times and it worked. > The error message is 'Error

Re: [PHP] sending emails

2010-12-09 Thread Steve Staples
ler with SMTP Authentication, which then the email comes from the "MailServer" rather than the "WebServer" if they are 2 separate machines. That COULD solve the issue there, but as Ash said, if it has "spammy" words in it, it wouldn't make any difference then.

Re: Re[2]: [PHP] Redirect output to a file on the web server

2010-12-06 Thread Steve Staples
On Mon, 2010-12-06 at 20:31 +0200, Andre Polykanine wrote: > Hello Steve, > > Btw, the built-in mail() function is to slow to send such amount > of mail. Consider using SMTP (if you don't). > -- > With best regards from Ukraine, > Andre > Skype: Francophile

Re: [PHP] Redirect output to a file on the web server

2010-12-06 Thread Steve Staples
On Mon, 2010-12-06 at 16:19 +, Richard Quadling wrote: > On 6 December 2010 15:46, Ferdi wrote: > > On 6 December 2010 20:47, Steve Staples wrote: > > > >> On Mon, 2010-12-06 at 20:29 +0530, Ferdi wrote: > >> > Greetings List members, > >> > &g

Re: [PHP] Redirect output to a file on the web server

2010-12-06 Thread Steve Staples
whatever, refresh the content. good luck in your script, and if you still run it from the browser, and need to output to a file, then i would continually be writing content to that file, every time you do soemthing, or start another part of the script so you know EXACTLY where you are, at all times... Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] desire your recommendation for our specific HTML -> PDF project

2010-12-06 Thread Steve Staples
another app that creates all the barcodes in memory). Anyway, I would look into that if pdf is the way you're going. There is also html2pdf, but if you're looking for exact specifications, and sizes, then I wouldn't personally use pure CSS, i would create my own PDF. my shipping labels

Re: [PHP] code quest

2010-12-02 Thread Steve Staples
^\./',basename($d)) && > !in_array(basename($d),$excludes)) { > echo ''.$d.''.PHP_EOL; > } > } > ?> > > -- > > Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting > (866-) 725-4321 > http://www.parasane.net/

Re: [PHP] $_POST issues

2010-12-01 Thread Steve Staples
your form submits via: then you redirect to the page.php, and it puts the $_POST variables into the url string... and that works fine. and now, you're trying to get the variables from the page.php, using the $_POST method? wouldn't you want to be checking the $_GET on this page, as they would be coming in from the url string? Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP shows nothing

2010-11-30 Thread Steve Staples
Make sure that the page you're trying to pull up has some kind of echo, or at least output of any type... if that fails, then you can try adding: error_reporting(E_ALL); to the top of the page you're trying to view, to see if there are any errors it is generating. just some things t

Re: [PHP] Poor newsgroup server performance

2010-11-29 Thread Steve Staples
7;t take more than a few hours to copy it over, and dns to propagate.. 36 hours later, and no sleep... i got it done... barely in time for his clients to log back in at 8am... that was a stressful weekend... steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL database export to Excel

2010-11-26 Thread Steve Staples
the CLI) you can prolly get it done... and yeah, this is a pointer to how it *COULD* be done, but it's not the only way, nor is it prolly the best either. Good Luck, and if you need more MySQL related questions answered, try the my...@lists.mysql.com mailing list. they are really good o

Re: [PHP] is this thing on??

2010-11-23 Thread Steve Staples
On Tue, 2010-11-23 at 20:55 +0100, Peter Lind wrote: > On 23 November 2010 20:52, Steve Staples wrote: > > tap tap tap... testing testing... 1, 2, 3 > > > > Hello?No activity since yesterday at like 6pm EST... am i not > > getting messages, or has there not been

[PHP] is this thing on??

2010-11-23 Thread Steve Staples
tap tap tap... testing testing... 1, 2, 3 Hello?No activity since yesterday at like 6pm EST... am i not getting messages, or has there not been any activity? Just curious... carry on about your business... :P Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Procedural Autoloader?

2010-11-23 Thread Steve Staples
... function test_somefunction($var1, $var2, $var3 = '') { return $var1 .' - '. $var2; } This is just a thought, and yeah, it would require some rewrites, and some forward thinking... but could solve your issue... maybe steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Wordpress Page: How to add pagination?

2010-11-22 Thread Steve Staples
te meat > Here, this may help: http://lmgt4u.com/?q=wordpress+pagination Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] smary assign var

2010-11-19 Thread Steve Staples
some products returns > like "-18.%" > when i escape only 2 chars > i get e result like > "-5.%" > > so is there a way to round that value to int not float? > > would something like this should work... just pieced it from the smarty site: http://www.smarty.net/docsv2/en/language.function.math {math assign='yuzde' equation="x + y" x=$height y=$width format="%.2f"} Steve -- Steve Staples Web Application Developer 519.258.2333 x8414 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: FW: [PHP] Why the PEAR hate?

2010-11-16 Thread Steve Staples
sitory of > PHP modules that is used by the typical PHP developer? > > the only pear module i use, is MDB2... and i would actually change from it, if i could find something comparable... i suppose i could write my own, but it works, and have been using it for a few years now. any suggestions to a replacement? Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Switch Question...

2010-11-15 Thread Steve Staples
On Mon, 2010-11-15 at 22:43 +, Ashley Sheridan wrote: > On Mon, 2010-11-15 at 16:27 -0500, Steve Staples wrote: > > > Ok, dumb question, and i have tested, but I want to ensure that my tests > > were accurate, and behavior is correct. > > > > Ok, i have an int

[PHP] Switch Question...

2010-11-15 Thread Steve Staples
break; am I just overthinking things? i dunno... it's monday... brains still on weekend mode. Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Chat

2010-11-09 Thread Steve Staples
On Tue, 2010-11-09 at 16:51 +0100, Dušan Novaković wrote: > Hello there, > > I have to make chat for website that has around 10 000 users (small > social network). So before I start, I would like to hear different > opinions. Important thing is to have in mind that in one moment you > can have ove

Re: [PHP] Template engines

2010-11-08 Thread Steve Staples
lazy to change now ;) ) all of my projects now consist of smarty, pear mdb2, phpmailer, jquery, fpdf (if needed), and pchart (again, if needed). these are my personal choices, and I have been happy with them so far ;) Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] read smb drive

2010-11-05 Thread Steve Staples
On 5 November 2010 16:30, Nathan Nobbe wrote: > >>> > >>> > >>>> On Fri, Nov 5, 2010 at 10:18 AM, Steve Staples > >>>> > >>>> > >>> wrote: > >>> > >>> > >>>> On Fr

Re: [PHP] read smb drive

2010-11-05 Thread Steve Staples
On Fri, 2010-11-05 at 10:06 -0600, Nathan Nobbe wrote: > On Fri, Nov 5, 2010 at 9:48 AM, Steve Staples wrote: > > > Hey guys (and gals) > > > > I am writing something that needs to connect to a SMB server... can this > > be done easliy? > > > > I copie

[PHP] read smb drive

2010-11-05 Thread Steve Staples
p would be appreciated... Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP sockets enabled but socket_create() gives an error call to undefined function

2010-11-04 Thread Steve Staples
milar channels for other distros. > > still though, update the locate database and see if you just need to enable > sockets in a cli specific ini file. > > -nathan is there a PEAR module you can install that will do this? I know there are a lot of PEAR modules out there... ju

Re: [PHP] php-general-digest-unsubscr...@lists.php.net not working?

2010-11-04 Thread Steve Staples
On Thu, 2010-11-04 at 12:34 -0400, Daniel P. Brown wrote: > On Thu, Nov 4, 2010 at 12:33, Daniel P. Brown > wrote: > > > >If you continue to have issues, let me know and I will remove you. > > From the list, that is, to be clear. Not the Earth. > i lol'd. -- PHP General Mailing Li

Re: [PHP] include() and duplicate function definition

2010-11-03 Thread Steve Staples
On Thu, 2010-11-04 at 00:00 +0800, David Nelson wrote: > Hi Thijs, :-) > > On Wed, Nov 3, 2010 at 20:38, Thijs Lensselink wrote: > > I re-read your original post. And noticed you include the function inside > > your child action.php > > Is there a special reason for that? You want to overwrite th

  1   2   3   4   5   6   7   8   9   10   >