Message
From: Richard Lynch <[EMAIL PROTECTED]>
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 th
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 thou
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, yo
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
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,
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
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
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
----
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
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
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;
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,
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
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
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
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);
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
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 Me
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 ha
19 matches
Mail list logo