[PHP] Same Page, Fundamentally Different Behavior OR is Firefox broken?

2009-06-11 Thread Matt Neimeyer
on in the address. Has anyone run into this behavior before? Any recommendations on how to stop it? Preferably from the server with code of some sort... Thanks in advance. Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Same Page, Fundamentally Different Behavior OR is Firefox broken?

2009-06-13 Thread Matt Neimeyer
I'd have to check... But am I to understand that no-cache works with pre-caching? I always assumed it basically meant "when you get this page, don't keep it for next time"? Thanks! On Fri, Jun 12, 2009 at 2:04 AM, Manuel C. wrote: > Matt Neimeyer a écrit : >> >&g

[PHP] PHP module "portability" on OSX 10.4

2009-06-23 Thread Matt Neimeyer
s like it should work... but at the same time, something in my head is telling me it shouldn't work... Barring that does anyone have steps "written down" that I can follow to compile php_gd.so with libpng compiled in somehow so it is only one file? Thanks in advance! Matt --

[PHP] OT mysql pivot table problem

2009-06-25 Thread Matt Giddings
I know this is the off topic (sorry), but it is a php project that I'm working on! I need some pointers on how to pivot a mysql column (containing comma delimited data) into an equal number of rows (see example). Any direction (pointers to links, etc. would be appreciated). >From this: user.tab

Re: [PHP] OT mysql pivot table problem

2009-06-25 Thread Matt Giddings
Thanks for taking the time to provide an example. I'm going to take the advice given by you and others and simply do this in php instead of looking for a fancy mysql solution. ; ) Dang, and I was really wanting to wow myself today... Thanks again! Matt On Thu, Jun 25, 2009 at 3:51 PM, A

Re: [PHP] OT mysql pivot table problem

2009-06-26 Thread Matt Giddings
Ummm yeah, its going to take me a while to wrap my head around that one. thanks though! Matt On Thu, Jun 25, 2009 at 5:07 PM, Andrew Ballard wrote: > On Thu, Jun 25, 2009 at 4:21 PM, Andrew Ballard wrote: > > On Thu, Jun 25, 2009 at 3:20 PM, Matt Giddings wrote: > >> I kn

[PHP] Split up Date Range

2009-07-01 Thread Matt Neimeyer
g as you have have only two elements then consider each item by itself. If it's not handled by the above rules then don't split it up. Thanks in advance. Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Split up Date Range

2009-07-01 Thread Matt Neimeyer
On Jul 1, 2009, at 11:33, Ashley Sheridan wrote: On Wednesday 01 July 2009 16:25:29 Matt Neimeyer wrote: We've got a project where "Date Of Attendance" is moving from a single type in character field to an automatically built field based on a DateBegin date field and

[PHP] Launch Windows Program from PHP

2009-07-13 Thread Matt Neimeyer
f javascript that will cause "phase 3" to automatically start. Any ideas? Thanks! Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP and FoxPro

2009-07-20 Thread Matt Neimeyer
ften this will happen. Other than that... Works like a charm. Looking forward, once you bite the bullet and convert to MySQL (at least for us) you can almost change odbtp_ to mysql_ and be up and running. (Assuming you limit yourself to "pure" SQL and not invoke VFP functions.) Matt -

[PHP] Converting SQL Dialects

2009-07-21 Thread Matt Neimeyer
X="") or (X is null OR x=0) etc... These are for customer "stored" queries... I've already manually converted "system" queries and I'm frustrated to the point of giving up and adding a column "untested" and let the end user figure it out but that seems b

Re: [PHP] PHP and FoxPro

2009-07-21 Thread Matt Neimeyer
,a=a+1 WHERE x=y You might be able to limit the total number of calls to the database that way... If I wasn't in the process of migrating to MySQL I might give it a whirl... :) Hope this helps whatever you decide to do. On Tue, Jul 21, 2009 at 8:27 AM, Floyd Resler wrote: > Matt, >

Re: [PHP] Converting SQL Dialects

2009-07-21 Thread Matt Neimeyer
auto-conversions covers another X% of upgrades, and auto-convert FunctionX (whatever it is...) gives us another X% of upgrades... that this will result in a hopefully small number of saved queries that are flagged for manual upgrading. (And not be so painful in development that it still nets us saved ti

Re: [PHP] Converting SQL Dialects

2009-07-23 Thread Matt Neimeyer
, 1, 1, 1 but... select coalesce(0,"")="",coalesce("","")="",coalesce(0,"")="",coalesce("","")=""; returns 0, 1, 0, 1 Which implies that in certain circumstances "" = 0 but 0 != "&quo

[PHP] Broken IF behavior? (Changing the branch changes the evaluation)

2009-07-28 Thread Matt Neimeyer
tError" on the screen and $Ret gets returned. WHY does adding the die() inside the { } change the way the if is evaluated? By the way I've tested this on 4.4.x on OSX and Windows, and on 5.2.5 on Windows... Thanks Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Broken IF behavior? (Changing the branch changes the evaluation)

2009-07-28 Thread Matt Neimeyer
e" [1]=> string(11) "Sample Cust" ["value"]=> string(11) "Sample Cust" } On Tue, Jul 28, 2009 at 2:56 PM, Eddie Drapkin wrote: > On Tue, Jul 28, 2009 at 2:48 PM, Matt Neimeyer wrote: >> Background: I'm converting a webapp from Visual

Re: [PHP] Re: Broken IF behavior? (Changing the branch changes the evaluation)

2009-07-29 Thread Matt Neimeyer
ot;Returns an array of strings that corresponds to the fetched row, or FALSE if there are no more rows." Is there a way to differentiate between a FALSE for no more rows and an error? Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] This isn't infinitely recursive is it?

2009-07-30 Thread Matt Neimeyer
. but I'm not sure how to check for it if I did... Any suggestions? Thanks! Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: This isn't infinitely recursive is it?

2009-07-31 Thread Matt Neimeyer
I like it... Thanks! On Thu, Jul 30, 2009 at 8:04 PM, Ben Dunlap wrote: >> I don't THINK I need to worry about circular mappings... but I'm not >> sure how to check for it if I did... > Would the following work? It avoids recursion entirely and also checks for > circular mappings. You can plug in

[PHP] Script to Compare Database Structures

2009-07-31 Thread Matt Neimeyer
the local structure match the uploaded structure. Thanks in advance... Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Script to Compare Database Structures

2009-08-05 Thread Matt Neimeyer
I finally got a chance to play with this and it looks like it is exactly what I need. Thanks! On Fri, Jul 31, 2009 at 11:50 PM, German Geek wrote: > have you tried mysqldiff? >> I want to be able to compare the structure of two different clients >> databases that might be on different servers tha

[PHP] Determining Calling Script Information

2009-08-13 Thread Matt Giddings
arameters. Guess I'm looking for a simple solution. Anyway, if there is a way just point me in the right direction and I'll take it from there. Thanks, Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Determining Calling Script Information

2009-08-13 Thread Matt Giddings
Thanks for the pointers! Matt Robert Cummings wrote: Matt Giddings wrote: Hi, Is there a way (other than using __LINE__ and __FILE__) to determine which file & line called a function/method? I would like to add some debugging information to a method but I don't want to have to go

[PHP] Converting string representation of a directory to multi-dimensional array

2007-02-05 Thread Matt Carlson
Over the weekend, I was tasked with taking a string representation of a directory ('\Interface\Addons\\'), which can vary in length (no set number of depths) to a multi-dimensional array (i.e. array('Interface' => array('Addons' => array('' => )));). We came up with a very ugly hack to do it

Re: [PHP] Server Stall

2007-02-05 Thread Matt Carlson
If you have cURL installed, you could use Curl to get the file, and manipulate the contents that way. Here is the standard function I use for grabbing a remote page. function doRequest($method, $url, $vars = '', $headers = '0') { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url);

Re: [PHP] Converting string representation of a directory to multi-dimensional array

2007-02-06 Thread Matt Carlson
It will never receive a base name due to the way the data is structured before being passed into the function. I appreciate everyone's input on this. It's been tough for us to develop what we did (since it's such an odd case), and it's good to see other possible methods to do this in a better

Re: [PHP] PHP or Bridge (card game)

2007-02-10 Thread Matt Carlson
Having learned Bridge when I was younger, I feel PHP is alot easier to learn as it is "constant" in a way. Depending on cards you are holding, cards your partner is holding, and your oponents bidding, depends how you should bid. Quite a bit of variablity in there. - Original Message

Re: [PHP] Another hand wringer

2007-02-18 Thread Matt Zandstra
Looks to me as if you're treating $flen as an array in one place and as a value in another: String here: $flen = $_POST['flen'];// length of text field group, shows to be the Array here: for($i = 0; $i < count($flen); $i++) Remove the count() and you'll probably get what you

Re: [PHP] array issues

2007-02-26 Thread Matt Carlson
If i'm understanding you correctly, you have something like a flat file, and hopefully it is artist[tab]artist[tab] with the title being something like artist1title[tab]artist2title[tab], etc. If so, use explode. $artists = explode("\t", $stringofartists); $songs = explode("\t", $stringoftitles

[PHP] PHP Documentation in XML

2007-02-27 Thread Matt Carlson
Does anyone know where I could find PHP Documentation in XML or in an SQL dump? I'm trying to write an IRC bot that can retrieve information on php functions, and am realizing this would be the easiest way. Thanks in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Variable variables and references

2007-03-10 Thread Matt Carlson
I've used variable variables probably 5 times in 2 years. They are great when you need them, but don't usually have a day-to-day use for them. Here is some sample code of the last time I used it. if(isset($$key)) { print($$key); continue;

Re: [PHP] 2 errors I can not understand

2007-03-13 Thread Matt Carlson
I think you have an issue with the line while($d<$s) when it comes to the number 3. $d will NEVER be < $s if $s = 3. I think you want $d<=$s?? Or maybe a switch for the number 3? - Original Message From: Jonathan Kahan <[EMAIL PROTECTED]> To: php Lists Sent: Tuesday, March 13, 2007

Re: [PHP] 2 errors I can not understand

2007-03-13 Thread Matt Carlson
---- From: Matt Carlson <[EMAIL PROTECTED]> To: Jonathan Kahan <[EMAIL PROTECTED]>; php Lists Sent: Tuesday, March 13, 2007 5:12:03 PM Subject: Re: [PHP] 2 errors I can not understand I think you have an issue with the line while($d<$s) when it comes to the number 3. $d will NE

[PHP] Integer question

2007-03-22 Thread Matt Carlson
When dealing with large numbers inside of php, I know at the int limit, a variable is recast into float. 1). How do you return the true number of the float when it reaches the upper limits of mysql's bigint (9223372036854775807). 2). How do you handle numbers that large, while maintaining p

[PHP] Integer question

2007-03-22 Thread Matt Carlson
When dealing with large numbers inside of php, I know at the int limit, a variable is recast into float. 1). How do you return the true number of the float when it reaches the upper limits of mysql's bigint (9223372036854775807). 2). How do you handle numbers that large, while maintaining p

Re: [PHP] Where is phpm

2007-03-29 Thread Matt Carlson
I don't know how much of it I have left. I know that I hacked it up quite a bit when I created an irc bot with the php reference manual. Unfortunately, there really isn't an easy way to get function information as such from inside of php, without parsing php's website. The phpdoc stuff wasn't

[PHP] Google-Yahoo venture and PHP

2007-03-31 Thread Matt Kay
will be getting our desktop as a service, and MS have the same goal. PHP will only be a small part of this if Zend decide to throw thier lot in also. Matt

[PHP] Question on Portfoilo's

2007-04-09 Thread Matt Carlson
So i've been meaning to start a portfolio of some code, so that when I apply for a job, and they want code samples, I have something to show them. Unfortunately, at this time, most of my work is inside of a much larger application, or in code that belongs to my current employer (not a php job,

Re: [PHP] 'lang' file editor ...

2007-04-12 Thread Matt Carlson
I am running into the same problem. A very VERY basic thing that I worked on for importing yielded this: preg_match_all('/.*?(?:\$lang([^=]*)=(.*?); *$.*?)+/ms', file_get_contents("localization/enUS.php"), $parsed); It wasn't the best, but it worked 90% of the time. Maybe this can help you on

[PHP] I'm not crazy I swear it... IE vs Safari and Firefox - The impossible!

2009-08-31 Thread Matt Neimeyer
no other explanation of why it DOES matter... I've tried disabling prefetching in Firefox (thinking MAYBE the browser was prefetching the "bailout" link back to step 1 from step 3). The initialize in step 1 fixed another problem we were having but I did try disabling it temporarily to no av

Re: [PHP] I'm not crazy I swear it... IE vs Safari and Firefox - The impossible!

2009-08-31 Thread Matt Neimeyer
> No answers - just more questions to maybe point you in a direction you > haven't been Anything is appreciated... > Is it possible that the query/script is taking too long to build the > response page and FireFox/Safari is asking for an empty query result? I don't think so... the tr

Re: [PHP] I'm not crazy I swear it... IE vs Safari and Firefox - The impossible!

2009-08-31 Thread Matt Neimeyer
the Safari as well. Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] I'm not crazy I swear it... IE vs Safari and Firefox - The impossible!

2009-08-31 Thread Matt Neimeyer
browser) isn't IE. Neither would I... but unless I have to for some other reason I prefer PHP 5+, MySQL 5+, Apache 2+ and a *nix of some flavor for my web serving needs. Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] I'm not crazy I swear it... IE vs Safari and Firefox - The impossible!

2009-08-31 Thread Matt Neimeyer
"Net" tab? While I'm familiar with the concepts... :) I have not... this is the first problem I've had which could not be directly traced to problematic code (php syntax or logic errors, mysql query errors, problems with database optimizations, etc) Matt -- PHP General Mailing

[PHP] CSS and variables

2009-11-20 Thread Phil Matt
De-lurking here. I'm trying, with no success, to use some CSS styling on my PHP output. Here's the code I want to style: echo ''.$row[0].''.$row[1].' I want to use a CSS style for the second cell, picking up the style from the value of a variable. I tried this: $newcolor = "color: red"; '

[PHP] Change styling depending on var value

2009-11-20 Thread Phil Matt
I am trying to style HTML table cells depending on the values stored in a MySQL db. Thanks to other on this list, I can now refer to the variable that holds a CSS styling value. Now, I need to apply different values of that variable, depending on the content of the table cell itself. I tried

Re: [PHP] Change styling depending on var value

2009-11-20 Thread Phil Matt
Ashley Sheridan wrote: Copying back the phplist *again*! Sorry. I'll remember to copy in... what does your code currently look like now, with the right == in? $entree="meat"; $beverage="coffee"; if ($row[3] == $entree) { $newcolor="color:red"; } elseif ($row[3] == $beverage) { $newcol

Re: [PHP] Change styling depending on var value

2009-11-20 Thread Phil Matt
Dan McCullough wrote: To add to what Ashley said about $row[3], remember that when you are returning from the db the counter for fields will start at 0 not 1, so if its the 3rd field that will be $row[2]. You might also want to do switch rather then elseif but thats always a good debate.

Re: RES: [PHP] CSS and variables

2009-11-20 Thread Phil Matt
Jônatas Zechim wrote: Try: echo '' . $row[1] . ''; Thanks, Jônatas. This was the solution. Cheers --- Phil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Change styling depending on var value

2009-11-20 Thread Phil Matt
Ashley Sheridan wrote: copy the results of this: vardump($row); Sirloin Steak freshAcmemeat Chicken Breast frozen Acmemeat Decaf Columbianpantry Giant coffee Ice Cream frozen Giant dessert All looks as expected. NB: This is just te

Re: [PHP] Change styling depending on var value

2009-11-20 Thread Phil Matt
Ashley Sheridan wrote: That's not a vardump, a vardump would contain the type of variable. I wanted to see the whole thing. I played with this for a while and checked the PHP manual; not sure how to use this. Cheers --- Phil -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Change styling depending on var value

2009-11-20 Thread Phil Matt
Ashley Sheridan wrote: As Mike pointed out, I meant var_dump(), sorry! Is the idea to put the variable in question within the parentheses? I tried the statement, var_dump($row[3]; And I got in the output: NULL Also tried var_dump(); And I got in the output: Warning: Wrong parameter co

Re: [PHP] Change styling depending on var value

2009-11-20 Thread Phil Matt
Ashley Sheridan wrote: put var_dump($row); I inserted this line in the script at the end of the html table, still inside the PHP echo statement. This yields: bool(false) Cheers --- Phil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Change styling depending on var value

2009-11-23 Thread Phil Matt
Mari Masuda wrote: This may be a dumb question, but did you actually fetch the db query's results and put them in $row before trying to use $row? In MySQL you could do something like: $query = "select * from my_table"; $result = mysql_query($query); $row = mysql_fetch_array($result); //this

[PHP] storing a mysql query in mysql

2010-02-17 Thread Matt Giddings
with sqlyog its f'ed up beyond belief. Is there another/better way to store this information? Thanks, Matt

Re: [PHP] Magnetic Stripe Reader or Barcode to PHP

2010-02-18 Thread Matt Neimeyer
the form. It's been a couple years since I played with it so there might have been some additional software that kicked the "enter". Then you process the data as you would for any other text field submission. It worked well enough to catalog a couple thousand books in a single evenin

[PHP] Fun with Streams

2010-02-21 Thread Matt Neimeyer
eam_tell was even being called). Can anyone tell me what I'm doing wrong or suggest another way to "communicate" into the stream wrapper that will be compatible with PHP 4 and 5 on OSX, Linux and Windows? Thanks Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Fun with Streams

2010-02-24 Thread Matt Neimeyer
, it makes it simple to just dump row after row of data into it for exports and simple reports. Matt On Mon, Feb 22, 2010 at 4:14 AM, Rene Veerman wrote: > just curious, why did you choose to use it from behind a stream wrapper? > > On Sun, Feb 21, 2010 at 11:03 PM, Matt Neimeyer wr

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Matt Giddings
unsubscribe

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Matt Giddings
ok, how do I get off this list?

[PHP] adduser & php

2010-07-10 Thread Matt Morrow
e output is: Added user ``hosting'' I have validated that $username and $password contain the correct values from the form, by outputting them as well above the line which calls the adduser command. Any help is appreciated. Matt

Re: [PHP] adduser & php

2010-07-10 Thread Matt M.
ide quotes, it is not getting through. From: Ashley Sheridan Sent: Saturday, July 10, 2010 2:01 PM To: Matt Morrow Cc: php-general@lists.php.net Subject: Re: [PHP] adduser & php On Sat, 2010-07-10 at 13:45 -0500, Matt Morrow wrote: I am using php 5 on OpenBSD 4.7 I have a script

[PHP] "Downgrading" HTML

2010-09-16 Thread Matt Neimeyer
. Blah This is for an eReader I love but is long out of production and the converter tool only works with HTML 3.2 Thanks in advance. Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Is it possible to create a global namespace alias?

2010-10-03 Thread Matt Palermo
index.php file. Is there a way to make the “nsItem” alias a “global” one, so that I don’t have to define it in EVERY file that I want to use? -Matt

[PHP] Is it possible to create a global namespace alias?

2010-10-04 Thread Matt Palermo
index.php file. Is there a way to make the “nsItem” alias a “global” one, so that I don’t have to define it in EVERY file that I want to use? -Matt

[PHP] Re: Is it possible to create a global namespace alias?

2010-10-05 Thread Matt Palermo
I'm assuming there is no way to make a global alias. Can anyone confirm/deny this? ""Matt Palermo"" wrote in message news:5e7b8989448b45dbbeeb6fb89b3f3...@rachet... Is it possible to create a global namespace alias in PHP or does the alias have to be defined

Re: [PHP] Eclipse, Komodo, Netbeans, Zend Studio, PHP Storm, other?

2010-10-13 Thread Matt Giddings
I've tried Eclipse and Netbeans and have found Netbeans to fit my needs well. On Wed, Oct 13, 2010 at 1:40 PM, James Diamond wrote: > Hey Mike, > > I use zend eclipse, love it. > > What I love about it is what I love about any IDE, code complete, project > configurations, customizable preference

Re: [PHP] work online

2010-10-18 Thread Matt M.
On Mon, 2010-10-18 at 13:03 -0400, Govinda wrote: > > At 4:40 PM +0200 10/18/10, Jordan Jovanov wrote: > >> Hello Everybody, > >> > >> > >> Does somebody know company for PHP programing where people can work > >> from home? Actual I only want to know does have regular or part > >> time job for

[PHP] Re: Receiving Live data

2010-10-27 Thread Matt Anderton
look at Prototype's PeriodicalUpdater: http://prototypejs.org/api/ajax/periodicalUpdater -- matt On Wed, Oct 27, 2010 at 5:10 PM, Cameron Mc Gorian wrote: > Hi, > > I want to find out if it is possible to receive live data using PHP and > MySQL. I have am developing a websit

RE: [PHP] Pros/Cons of using mysqli prepared statments

2010-11-04 Thread Matt Graham
eth. The initial idea was for the app to do almost nothing but call stored procedures and display results; this caused a number of problems which were ignored or solved badly. (I'd almost forgotten that horrible mess where I had no input on anything design-related, thank you for reminding

Re: [PHP] Template engines

2010-11-08 Thread Matt Giddings
On Mon, Nov 8, 2010 at 9:39 PM, David McGlone wrote: > On Mon, 2010-11-08 at 16:51 -0500, Steve Staples wrote: > > On Mon, 2010-11-08 at 14:41 -0700, Hansen, Mike wrote: > > > I really like the idea of using a templating engine. Which one do you > use? Why? For those that don't use templating eng

Re: [PHP] code quest

2010-12-04 Thread Matt Graham
see what you get. I'll use SSI for "dumb" blocks of text and php include for "smart" blocks of code, because IME that tends to produce fewer instances of gross stupidity. Note that YMMV on all this and ICBW. -- Matt G / Dances With Crows The Crow202 Blog: http://crow2

Re: [PHP] File moving hell on Windows

2012-07-31 Thread Matt Graham
;); // equivalent of "umount //machine/share2" However, there may be a better/easier/more elegant way to do these things. Not sure; our PHP-running machines are all running Linux. -- Matt G / Dances With Crows The Crow202 Blog: http://crow202.org/wordpress/ There is no Darkness in Et

Re: [PHP] redefine a define ...

2012-08-25 Thread Matt Neimeyer
)) { define("SOME_CONSTANT","Generic Value"); } This should avoid any redefinition and thus the notices. Matt On Sat, Aug 25, 2012 at 3:07 PM, Matijn Woudt wrote: > Op 25 aug. 2012 21:03 schreef "Adam Richardson" het > volgende: >> >> On Sat, Au

[PHP] Re: Creating an Advanced Form

2012-11-02 Thread Matt Graham
putting another space at the end of each substring would help, but that's the first thing I'd try. (I'm sure other people will say "OMGPANIC procedural code! OH NOES, using mysql_* functions! Unclean! Unclean! AH!", so be prepared for that too) -- Matt G / D

Re: [PHP] Introduction ... !

2013-03-02 Thread Matt Giddings
I've been on this list since the early 2000's. I used to participate a lot back then but then took up a non-php related job and I stopped paying attention to the list. I've been working again with php for the past 4.5 years but choose to just monitor the list and haven't participated much. Perha

[PHP] Re: mcrypt_create_iv - why so slow?

2013-05-31 Thread Matt Graham
y doing "time dd if=/dev/random of=/dev/null bs=16k count=5" and repeating the same command with /dev/urandom. 1.312 seconds vs. 0.019 seconds here. Not much to do with PHP, though, just the way the Linux kernel people did things. /dev/urandom is probably the way to go for most normal r

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

2013-09-10 Thread Matt Giddings
Sorry I can't relocate at the time. Thanks for sending me the notification though. : ) Matt On Tue, Sep 10, 2013 at 10:41 AM, Steve Gadlin wrote: > Howdy. My name is Steve, and I run the web department for Weigel > Broadcasting in Chicago. We're looking for a senior-level

[PHP] Re: postgresql database access failure

2011-05-02 Thread Matt Graham
ve functions do more, or do it better than whatever the latest and greatest layer of abstraction does. -- Matt G / Dances With Crows The Crow202 Blog: http://crow202.org/wordpress/ There is no Darkness in Eternity/But only Light too dim for us to see -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] notices nightmare - looking for a regex solution

2011-06-01 Thread Matt Giddings
this method does not create a backup file for you. You can do a quick check (but not fool proof) by using this command find /htdocs_folder -name \*.php -print | xargs grep "\$array_name" | more You may need to remove the slash in front of the $ sign. Matt On Wed, Jun 1, 2011 at

Re: [PHP] notices nightmare - looking for a regex solution

2011-06-01 Thread Matt Giddings
I was thinking about this a little more and thought that the method I sent before will work, but it has the potential of clobbering variables that are not related to this warning/notice. Best bet would be to create a list of file names that contain the offending variables then feed that to sed usi

Re: [PHP] Best editor?

2011-08-03 Thread Matt Giddings
Notepad!!! LOL.. I use netbeans but eclipse is nice. A lot of it is personal opinion. On Wed, Aug 3, 2011 at 9:46 AM, Florian Müller wrote: > > Maybe an adittional information: PSPad is completely freeware and portable. > > You can download it right here: http://pspad.en.softonic.com/ > > This

Re: [PHP] Code should be selv-maintaining!

2011-08-30 Thread Matt Graham
From: David Harkness > I don't always use braces, but when I do I use Compact Control Readability > style. Stay coding, my friends. ...and when you use CCR style, you can sing, "I see a bad brace a-risin'"? -- Matt G / Dances With Crows The Crow202 Blog: http://cr

[PHP] DOS CLI?

2011-12-02 Thread Matt Neimeyer
find another scripting language for DOS but to prototype this project I'd like to not have to learn a new language as well. :) Thanks in advance for ANY suggestions. Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] DOS CLI?

2011-12-08 Thread Matt Neimeyer
On Thu, Dec 8, 2011 at 7:16 AM, Richard Quadling wrote: > On 2 December 2011 21:00, Matt Neimeyer wrote: >> Is there (or is there a way to compile) a DOS CLI version of a fairly >> recent version of PHP? I have not been able to find one using the >> powers of Google. &g

[PHP] re: More Error Reporting Problems

2011-12-30 Thread Matt Graham
group if necessary. /var/log is always owned by root and is 755, meaning that the webserver user doesn't have permission to create that file if it doesn't exist. -- Matt G / Dances With Crows The Crow202 Blog: http://crow202.org/wordpress/ There is no Darkness in Eternity/But only

Re: [PHP] Re: http_referer. what's wrong with that?

2012-01-11 Thread Matt Neimeyer
While perhaps unlikely in "common users" it is also possible to prevent your browser from sending the referrer. IIRC, the referrer can also get mangled when passing through HTTPS (although I don't remember on which side, HTTP->HTTPS or HTTPS->HTTP or both) Matt On Thu, Ja

Re: [PHP] is_dir & is_file bugs?

2005-02-08 Thread Matt M.
> $path = 'product_images'; > $handle = opendir($path); > while (false !== ($file = readdir($handle))) > { > if ($file != "." && $file != "..") > { > echo $file; > if (is_dir($file)) > { > echo ' <-- folder'; >

Re: [PHP] Primer for working with arrays

2005-02-09 Thread Matt M.
> I need a really good primer for working with arrays in PHP and with MySQL. I > can do what I need to do without them right now, but I would really like to > get > arrays figured out. > > Any have some good ones? http://www.php.net/array http://us4.php.net/mysql -- PHP General Mailing List (

Re: [PHP] Parsing pdf file

2005-02-09 Thread Matt M.
> For a project of a customer i need to know if a pdf file contains special > functions and buttons. > > Is there a way to parse a PDF file in php? you might be able to find something at http://us3.php.net/pdf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

Re: [PHP] Parsing pdf file

2005-02-09 Thread Matt M.
did you try this? "); echo "$test"; # Returns a -1 if uncompression failed function pdf2string($sourcefile) { $fp = fopen($sourcefile, 'rb'); $content = fread($fp, filesize($sourcefile)); fclose($fp); # Locate all text hidden within the stream and endstream tags $searchstart = 's

Re: [PHP] Fancy Form processing Ideas

2005-02-14 Thread Matt M.
> I am looking for interesting approaches to form submissions and error > checking in the forms. http://pear.php.net/package/HTML_QuickForm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mediator between PHP and Perl (with sessions)

2005-02-15 Thread Matt M.
> Is there a way to use sessions variables in PHP shell script (without > reading the session file and parse it in the script)? Do you have a database available? You could put the session info in a database. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

Re: [PHP] Delete a file immediately after download

2005-02-15 Thread Matt M.
> I have a database that contains encrypted data using Mysql function > ENCODE(). Certain users will be allowed to view this data and I will allow > them to download a CSV file contain the decrypted data using the Mysql > DECODE() function. However I don't want this file to be left on the server, >

Re: [PHP] [NEWBIE] Trying to combine array into one string

2005-02-15 Thread Matt M.
> The Problem: > I can't quite figure out how to take the results of the > mysql_query() and assemble them into a string. In my experiments so far, > I either get a "mysql_data_seek(): Offset 0 is invalid for MySQL result > index" error, or my mail function sends to a blank address. no gua

Re: [PHP] Re: Image Creation

2005-02-15 Thread Matt M.
get rid of : echo " This is a test".makepie(20,200)." "; and only have this : makepie(20,200); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Array question

2005-02-15 Thread Matt M.
> What I want to do is to only show 20 pictures at a time with a "Next" link > and a "Previous" link. For the first 20 only the "Next" link would show and > whenever the last set would show only the "Previous" link would. Every other > time both would show. > > Can someone point me in the right di

Re: [PHP] Intelligent Forms and Form Processing

2005-02-15 Thread Matt M.
> Any feedback will be appreciated. why reinvent the wheel? take a look at: http://pear.php.net/package/Html_quickform -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] FATAL: emalloc()

2005-02-18 Thread Matt M.
> FATAL: emalloc() : Unable to allocate 1073741824 bytes I found this at http://us4.php.net/odbc_exec I kept getting FATAL: emalloc() errors when using select statements via odbc for MS SQL. I had no control over the DB as it is a commercial CRM system. I found that by 1st issuing an SQL query

Re: [PHP] FATAL: emalloc()

2005-02-18 Thread Matt M.
On Fri, 18 Feb 2005 12:10:32 -0500 (GMT-05:00), George A. Balanos <[EMAIL PROTECTED]> wrote: > Thank you Matt, I found that also but to be honest the person who built this > server recently passed away. He was our php specialist and to be honest I > have no clue on how to activ

<    7   8   9   10   11   12   13   14   15   16   >