php-general Digest 5 Aug 2008 14:20:50 -0000 Issue 5608
Topics (messages 277691 through 277724):
Re: PHP querying mysql db for data limited to the last month
277691 by: Micah Gersten
277700 by: Per Jessen
RPM
277692 by: VamVan
277697 by: Jim Lucas
277714 by: Colin Guthrie
Re: [PHP Header] Right-Click Download in Firefox showing php filename
277693 by: Will
Re: PDO prepared statements and LIKE escaping
277694 by: Larry Garfield
277724 by: Andrew Ballard
Regular Expression by Exception
277695 by: Alberto GarcÃa Gómez
277698 by: Micah Gersten
Variable number of parameters
277696 by: Philip Thompson
277723 by: Daniel Brown
[PHP-DEV] Re: [PHP] PDO prepared statements and LIKE escaping
277699 by: Lester Caine
Re: SoapClient and arrays
277701 by: Marten Lehmann
An appeal to your better nature
277702 by: Richard Heyes
277704 by: Aschwin Wesselius
277707 by: Richard Heyes
277709 by: Aschwin Wesselius
277710 by: Richard Heyes
277711 by: Daniel Brown
277712 by: Richard Heyes
277713 by: Per Jessen
277715 by: Aschwin Wesselius
277716 by: Daniel Brown
277717 by: Daniel Brown
277718 by: Richard Heyes
277720 by: Richard Heyes
277722 by: Daniel Brown
SOAP / Server Communication
277703 by: stuart tonner
flock and file reading
277705 by: ragnarok.email.it
Re: [PHP-DEV] PHP 5.3.0alpha1
277706 by: Hannes Magnusson
277708 by: Pierre Joye
Fatal error: Cannot redeclare
277719 by: Kai Kauer
277721 by: Daniel Brown
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
1. To get last months date, you can use strtotime("1 month ago")
instead of mktime.
2. I don't see anywhere in the code where you are limiting by date.
Try using > and <. Between is tricky on dates.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Vinny Gullotta wrote:
> So I have this code I'm working with (pasted below) that queries a
> mysql db table called timetracking. The goal of the page is to search
> the db for all data based on a certain engineer, sorted by product and
> it takes pre-defined values based on actions performed, sums them
> based on product and display's the percentage of time an engineer has
> spent on each product. Everything works great except I need to limit
> the results to the last months data only, but everything I try seems
> to just break it. Can anyone push me in the right direction a little?
> I have tried using BETWEEN in the SELECT statement, some while
> statements and if statements, and all I do is keep breaking it. If
> anyone has any ideas, it would be exceptionally helpful.
>
> Thanks in advance,
> Vinny
>
>
> <?php
> $total = 0;
> $today = date('Y-m-d h:i:s');
> $monthago = date("Y-m-d h:i:s", mktime(date("h"), date("i"),
> date("s"), date("m")-1, date("d"), date("Y")));
> echo "Today = ", $today;
> echo "<br>One Month Ago = ", $monthago, "<br>";
>
> $query = "SELECT *, SUM(timespent) FROM timetracking WHERE engineer =
> '$engineer' GROUP BY product";
> $result = mysql_query($query) or die(mysql_error());
> $result2 = mysql_query($query) or die(mysql_error());
> echo "<center>";
>
> while($row = mysql_fetch_array($result)){
> $total = $row['SUM(timespent)'] + $total;
> }
> while($row = mysql_fetch_array($result2)){
> $perc = $row['SUM(timespent)'] * 100 / $total;
> echo "[ <font color=#1E429B size=+1>", $row[product]. " = ".
> number_format($perc,2), "%</font> ]";
> }
>
> ?>
>
>
--- End Message ---
--- Begin Message ---
Vinny Gullotta wrote:
> So I have this code I'm working with (pasted below) that queries a
> mysql db table called timetracking. The goal of the page is to search
> the db for all data based on a certain engineer, sorted by product and
> it takes pre-defined values based on actions performed, sums them
> based on product and display's the percentage of time an engineer has
> spent on each product. Everything works great except I need to limit
> the results to the last months data only, but everything I try seems
> to just break it. Can anyone push me in the right direction a little?
I can't see a timestamp field in your code, but I'm assuming you've got
one?
SELECT *,SUM(timespent) FROM timetracking
WHERE engineer=<engineer> AND
month(timestamp)=month(date_sub(now(),interval 1 month))
GROUP BY product;
/Per Jessen, Zürich
--- End Message ---
--- Begin Message ---
Hello All,
Does any body create installable RPM's for reinstalling their PHP based
websites? Is it possible....????
If yes could you please share your experience. Oh yes you could tar it but
that's a primitive method.
My quest is to make all my websites installable on any given server using 2
or 3 commands to the maximum.
thanks
--- End Message ---
--- Begin Message ---
VamVan wrote:
Hello All,
Does any body create installable RPM's for reinstalling their PHP based
websites? Is it possible....????
If yes could you please share your experience. Oh yes you could tar it but
that's a primitive method.
My quest is to make all my websites installable on any given server using 2
or 3 commands to the maximum.
thanks
tar zxvf mywebsite.tar.gz
That is about as few as I can think of... :]
Or are you looking for something that will modify the httpd.conf file
for you, add your database automatically, and alter the bind, etc... ?
Jim
--- End Message ---
--- Begin Message ---
VamVan wrote:
Hello All,
Does any body create installable RPM's for reinstalling their PHP based
websites? Is it possible....????
If yes could you please share your experience. Oh yes you could tar it but
that's a primitive method.
My quest is to make all my websites installable on any given server using 2
or 3 commands to the maximum.
I'd use a VCS like Subversion for websites, and just do a checkout on
the server.
Easier to update and maintain than RPMs IMO, but YMMV.
For software development projects, I'd personally opt for git, but for
websites, SVN is IMO a better choice. But everyone has their own tastes.
Col
--- End Message ---
--- Begin Message ---
Thanks everyone. I looked into the Firefox browser forums/support and
found that the "Right-Click >> Save Link As" does not send the header
response, as it will take the file as-is. So in this example, it sees
the 'download.php' and then takes that as the default name. It then
starts the download of the file, which in turn gets the header
information and starts downloading the 'Setup.msi'... but now under
the name of 'download.php' -- Again to note in IE the Right-Click will
get the header information including the Content-Disposition and THEN
open the Save As window. In all browsers, the Left-Click works as
normal as it processes the header information.
My solution: With mod_rewrite under Apache. I know rewrite the
'download.php' file as default of 'ApplicationSetup.msi' -- So IF
Right-Clicked in FF, the user defaults the link with the proper
extension to Save As. Otherwise if Left-Clicked, the rewrite will run
the 'download.php' and then prompt with the correct MSI with version
number (as intended) : 'ApplicationSetup_v1_0.msi'
Otherwise with all the other header information, it works fine.. its
just the browsers that DO NOT get the header info on a Right-Click
Save As on objects, as they prompt to save in location BEFORE header
info is sought.
William Frankhouser
WilzDezign
On Mon, Aug 4, 2008 at 2:40 AM, David Otton
<[EMAIL PROTECTED]> wrote:
> 2008/8/4 Will <[EMAIL PROTECTED]>:
>
>> I am trying to have users download a file named 'Setup.msi', however
>> under a PHP file with the sent header information, the default name to
>
>> $forcename = "ApplicationSetup_v1_0.msi";
>> $filename = "Setup.msi";
>>
>> header("Content-Type: application/force-download");
>> header("Content-Type: application/octet-stream; name=".$forcename);
>> header("Content-Type: application/octetstream; name=".$forcename);
>> header("Content-Transfer-Encoding: binary");
>> header("Content-Length: ".filesize($filename));
>>
>> @readfile($filename);
>
> Try a variation on this:
>
> header("Content-Type: application/x-msi");
> header("Content-Disposition: attachment;
> filename=\"ApplicationSetup_v1_0.msi\";" );
> header("Content-Transfer-Encoding: binary");
> header("Content-Length: " . filesize('Setup.msi'));
> readfile('Setup.msi');
>
> http://www.mhonarc.org/~ehood/MIME/rfc2183.txt
>
> content-disposition controls what the browser should do with the file
> you're sending (open it or save it).
> filename suggests what the file should be saved as on the local
> system, when downloading as an attachment
> content-type is the mime-type of the file you're sending
>
--- End Message ---
--- Begin Message ---
I'm building a multi-database system, although my main targets are MySQL,
Postgres, and SQLite.
How would those handle something like "a string that ends in 100%"?
On Monday 04 August 2008 6:18:24 pm Asher Snyder wrote:
> Depending on what database you're using you might be able to use LIKE
> while maintaining security. For instance PostgreSQL has the functions
> quote_ident(), and quote_literal() which would allow you to use LIKE
> since these functions would automatically make the string suitable for
> comparison.
>
> So for instance in a stored procedure in PostgreSQL you could do:
>
> SELECT * FROM sometable WHERE quote_ident(column) LIKE quote_ident($1);
>
> Note that in the above line $1 would be the first parameter of the
> stored procedure.
>
> -Asher
>
> Adam Richardson wrote:
> > Like I said, I'm not 'especially pleased' with any idea up until now.
> > I'm certainly open to any other ideas.
> >
> > Adam
> >
> > On Mon, Aug 4, 2008 at 6:57 PM, Larry Garfield
<[EMAIL PROTECTED]>wrote:
> >> Hm. So your solution is "don't use LIKE"? I can't say I'm wild about
> >> that. :-/
> >>
> >> --Larry Garfield
--
Larry Garfield
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
On Mon, Aug 4, 2008 at 1:36 AM, Larry Garfield <[EMAIL PROTECTED]> wrote:
> Hi folks. I am trying to figure out the best way to handle an interesting
> issue in PDO prepared statements. Consider:
>
> $search = 'mystring';
>
> $stmt = $dbh->prepare("SELECT * FROM mytable WHERE myfield LIKE :myfield");
> $stmt->execute(array(':myfield' => $search . '%'));
>
> The above will search for any record whose myfield entry begins with the value
> in $search. Great. And because it's a prepared statement, the database
> handles SQL injection protection for us.
>
> According to the manual, that is the correct way of handling LIKE statements:
>
> http://us3.php.net/manual/en/pdo.prepared-statements.php
>
> (See Example #6)
>
> But! Now consider this:
>
> $search = "100% pure PHP";
>
> When that is run, the % in the literal string will get interpreted by the SQL
> server as another wildcard character. That is not desired.
>
> IIRC, the way in SQL to circumvent that is to convert "100%" into "100%%".
> However, that does rather defeat the purpose of a prepared statement if I
> have to do my own escaping anyway, does it not? We also cannot use
> $dbh->quote(), as that is intended for cases where you're building a query
> string directly rather than using a prepared statement.
>
> How do other folks handle this issue?
>
> --
> Larry Garfield
> [EMAIL PROTECTED]
>
I don't see any way around it, nor do I see it as defeating the
purpose of prepared statements. I also don't see that this is any
special limitation of PDO when compared to any other database library.
How can any escaping mechanism know that in one case you are looking
for a literal percent sign and in another you are using a wildcard?
You have to provide it with hints, which is what the escape character
does.
Escaping a percent sign inside a string literal used as the pattern
for a LIKE comparison is not the same thing as escaping single quotes
within a string. Most of the time a percent sign in a pattern will be
a wildcard; matching a literal percent sign is usually the exception.
If you fail to escape a percent sign in your condition, the query will
still execute successfully. You may get more (but not less) results
than you desired or intended, but it will still work. However, if you
fail to escape literal delimiters like single quotes, your query will
not (usually) run at all. (And if it does run, it will likely produce
undesired results or side effects, which is the definition of SQL
injection.) As I see it, this is one of the purposes of prepared
statements.
Andrew
--- End Message ---
--- Begin Message ---
Fellows:
If I use ereg_replace($params, $string) I can replace the char that match
with $params in the $string.
BUT, how I can replace ALL chars EXCEPT the chars in $params.
Something like !$params, I think
--- End Message ---
--- Begin Message ---
I don't know how to use the POSIX classes, but if you use preg_replace:
preg_replace("/[^$params]/", '', $string);
I think this will work.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Alberto García Gómez wrote:
> Fellows:
>
> If I use ereg_replace($params, $string) I can replace the char that
> match with $params in the $string.
>
> BUT, how I can replace ALL chars EXCEPT the chars in $params.
>
> Something like !$params, I think
>
>
--- End Message ---
--- Begin Message ---
Is it possible to grab a variable number of parameters and send the
appropriate amount to another function?
<?php
// Some class
$this->db->prepare("SELECT * FROM `table` WHERE (`id`=?)");
$this->db->bind('ii', $id1);
$this->db->prepare("SELECT * FROM `table` WHERE (`id`=? AND
`other_id`=?)");
$this->db->bind('ii', $id1, $id2);
// DB class
function bind () {
$args = func_get_args();
$this->statement->bind_param($args[0], $args[1], ...);
}
?>
Ok, is it possible to send any number of variables to db->bind() in
order to send those to statement->bind_param()?
Or, if someone else has a better db abstraction method, feel free to
educate...
Thanks,
~Phil
--- End Message ---
--- Begin Message ---
On Tue, Aug 5, 2008 at 1:40 AM, Philip Thompson <[EMAIL PROTECTED]> wrote:
> Is it possible to grab a variable number of parameters and send the
> appropriate amount to another function?
You can predefine function parameters:
<?php
function example($line1,$line2="There is no line 2.") {
echo $line1."\n";
echo $line2."\n";
}
example("This is a test.","This is another test.");
/*
Returns:
This is a test.
This is another test.
*/
example("This is a third test.");
/*
Returns:
This is a third test.
There is no line 2.
*/
?>
.... but more likely, you're looking for func_get_args().
http://php.net/func_get_args
--
</Daniel P. Brown>
More full-root dedicated server packages:
Intel 2.4GHz/60GB/512MB/2TB $49.99/mo.
Intel 3.06GHz/80GB/1GB/2TB $59.99/mo.
Intel 2.4GHz/320/GB/1GB/3TB $74.99/mo.
Dedicated servers, VPS, and hosting from $2.50/mo.
--- End Message ---
--- Begin Message ---
Sorry - switched address to the wrong list :(
*I* hate reply not going to the right place - but one of these days I switch
to something that just ignores the on board miss direction ;)
Larry Garfield wrote:
I'm building a multi-database system, although my main targets are MySQL,
Postgres, and SQLite.
How would those handle something like "a string that ends in 100%"?
Personally this is one of the reasons that PDO has never attracted me.
Providing the tools to flatten some of the differences between *SQL*
variations is just as important as flattening the name differences in functions.
My own use of LIKE tends to process the string and then add the wrapping %%
when passing it to the param array, but do all databases HANDLE 'escaped %' in
the LIKE data? Firebird allows a escape character but you need to include it
in the SQL
LIKE '%100#%%' ESCAPE '#'
But I think MySQL actually uses \% to achieve the same thing -
and the ESCAPE '\' is then optional?
--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/lsces/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hello,
What about $response->key ??? What does that give? It seems to me, that
$response->key will be a public property of the stdClass?
thanks, this works fine.
Regards
Marten
--- End Message ---
--- Begin Message ---
Hi,
Seems my 1and1 server has finally gone kaput taking my website with
it, and in the tradition of all good IT professionals, I have no
backups. :( So this is an appeal to you to ask if you have downloaded
anything from phpguru.org at all, could you please send it to me so I
can try to rebuild my site.
A big thanks.
--
Richard Heyes
http://www.phpguru.org
--- End Message ---
--- Begin Message ---
Richard Heyes wrote:
Hi,
Seems my 1and1 server has finally gone kaput taking my website with
it, and in the tradition of all good IT professionals, I have no
backups. :( So this is an appeal to you to ask if you have downloaded
anything from phpguru.org at all, could you please send it to me so I
can try to rebuild my site.
A big thanks.
Hi,
What does Google cache has? And the Wayback Machine
(http://www.archive.org/)? Coral Cache?
Bummer dude, but you've got to learn it once the hard time. On the other
hand, good backup solutions just cost a lot.
I'm going to have a look at my browser cache. Maybe I find something.
--
Aschwin Wesselius
/'What you would like to be done to you, do that to the other....'/
--- End Message ---
--- Begin Message ---
Hi,
> What does Google cache has? And the Wayback Machine
> (http://www.archive.org/)? Coral Cache?
Currently going through them. For some reason I've found a page with
all CSS and JS intact. Odd, but fortunate.
> I'm going to have a look at my browser cache. Maybe I find something.
Thanks.
--
Richard Heyes
http://www.phpguru.org
--- End Message ---
--- Begin Message ---
Richard Heyes wrote:
I'm going to have a look at my browser cache. Maybe I find something.
Thanks.
I'm sorry Richard, seems that my browser doesn't hold the history long
enough.
Forgive me to ask, but how come that you don't have much copies of your
work? Do you work straight on your server?
I've got my editor (UltraEdit Studio) setup, that it makes a backup of
the file I'm editing every 5 minutes with a timestamp and the full path.
Besides that, we use SVN (wich is not that difficult to setup and manage).
So, if your server is your food (so to speak), you'd better take a look
at the simple things that might rescue you some day. Nowadays there are
little NAS devices with RAID-0 support (like My Books from Western
Digital), that gives a good backup solution for a quick buck. Off
course, you can always step up to better solutions and methods.....
Doesn't your hosting provider has a backup facility? Maybe rent another
webserver (could be virtual) and mirror it with rsync? I don't know.....
there must be something that suits your needs.....
I wouldn't like to loose my stuff, but I can't afford much for the best
solutions either. It's not that my job depends on it, but personal data
is a big loss too.
--
Aschwin Wesselius
/'What you would like to be done to you, do that to the other....'/
--- End Message ---
--- Begin Message ---
> Forgive me to ask, but how come that you don't have much copies of your
> work? Do you work straight on your server?
I do, via WinSCP (now). This normally would be fine, except I haven't
made any backups. Doh.
> I've got my editor (UltraEdit Studio) setup, that it makes a backup of the
> file I'm editing every 5 minutes with a timestamp and the full path. Besides
> that, we use SVN (wich is not that difficult to setup and manage).
Yes, fortunately my PEAR stuff is all fine since it is in
(unsurprisingly) PEAR cvs.
> So, if your server is your food (so to speak), you'd better take a look at
> the simple things that might rescue you some day. Nowadays there are little
> NAS devices with RAID-0 support (like My Books from Western Digital), that
> gives a good backup solution for a quick buck. Off course, you can always
> step up to better solutions and methods.....
I think from now on I'll be doing a million backups a day. Or,
alternatively, one.
> Doesn't your hosting provider has a backup facility?
My hosting provider is 1and1. Cheap but, well, nuff said I think.
> Maybe rent another
> webserver (could be virtual) and mirror it with rsync? I don't know.....
> there must be something that suits your needs.....
That would work well I think.
> I wouldn't like to loose my stuff, but I can't afford much for the best
> solutions either. It's not that my job depends on it, but personal data is a
> big loss too.
Losing stuff sucks donkey d***.
--
Richard Heyes
http://www.phpguru.org
--- End Message ---
--- Begin Message ---
On Tue, Aug 5, 2008 at 8:53 AM, Aschwin Wesselius
<[EMAIL PROTECTED]> wrote:
>
> I wouldn't like to loose my stuff, but I can't afford much for the best
> solutions either. It's not that my job depends on it, but personal data is a
> big loss too.
Tell me about it. One of the sickest feelings in the world comes
when you hear your hard drive start going "click.... click....
choke.... click...."
--
</Daniel P. Brown>
Better prices on dedicated servers:
Intel 2.4GHz/60GB/512MB/2TB $49.99/mo.
Intel 3.06GHz/80GB/1GB/2TB $59.99/mo.
Intel 2.4GHz/320GB/1GB/3TB $74.99/mo.
Dedicated servers, VPS, and hosting from $2.50/mo.
--- End Message ---
--- Begin Message ---
> Tell me about it. One of the sickest feelings in the world comes
> when you hear your hard drive start going "click.... click....
> choke.... click...."
I think the only reason I'm not sitting in a corner comatose is
because I can't... :-)
--
Richard Heyes
http://www.phpguru.org
--- End Message ---
--- Begin Message ---
Daniel Brown wrote:
> On Tue, Aug 5, 2008 at 8:53 AM, Aschwin Wesselius
> <[EMAIL PROTECTED]> wrote:
>>
>> I wouldn't like to loose my stuff, but I can't afford much for the
>> best solutions either. It's not that my job depends on it, but
>> personal data is a big loss too.
>
> Tell me about it. One of the sickest feelings in the world comes
> when you hear your hard drive start going "click.... click....
> choke.... click...."
I use two in every system. They're so cheap that it's not worth saving
the expense.
/Per Jessen, Zürich
--- End Message ---
--- Begin Message ---
Daniel Brown wrote:
On Tue, Aug 5, 2008 at 8:53 AM, Aschwin Wesselius
<[EMAIL PROTECTED]> wrote:
I wouldn't like to loose my stuff, but I can't afford much for the best
solutions either. It's not that my job depends on it, but personal data is a
big loss too.
Tell me about it. One of the sickest feelings in the world comes
when you hear your hard drive start going "click.... click....
choke.... click...."
Well...... I don't know about you and your empathy. But most of my
sickest feelings are caused by human behavior, not hardware...... Some
acts come from darker corners of a sick human mind, than the situations
where Murphy's laws are famous for.
--
Aschwin Wesselius
/'What you would like to be done to you, do that to the other....'/
--- End Message ---
--- Begin Message ---
On Tue, Aug 5, 2008 at 9:20 AM, Per Jessen <[EMAIL PROTECTED]> wrote:
>
> I use two in every system. They're so cheap that it's not worth saving
> the expense.
Yeah, now, thank God.... but remember, it wasn't always that way.... ;-P
http://web.archive.org/web/19961110071252/http://www.maxtor.com/
When the DiamondMax drives first came out, they were a couple
hundred dollars each. I wanted to be the first guy on the block with
a terabyte RAID, but I bought a car instead.
--
</Daniel P. Brown>
Better prices on dedicated servers:
Intel 2.4GHz/60GB/512MB/2TB $49.99/mo.
Intel 3.06GHz/80GB/1GB/2TB $59.99/mo.
Dedicated servers, VPS, and hosting from $2.50/mo.
--- End Message ---
--- Begin Message ---
On Tue, Aug 5, 2008 at 9:30 AM, Aschwin Wesselius
<[EMAIL PROTECTED]> wrote:
>
> Well...... I don't know about you and your empathy. But most of my sickest
> feelings are caused by human behavior, not hardware...... Some acts come
> from darker corners of a sick human mind, than the situations where Murphy's
> laws are famous for.
What the hell is "empathy?" Isn't that a brand of kids cereal?
--
</Daniel P. Brown>
Better prices on dedicated servers:
Intel 2.4GHz/60GB/512MB/2TB $49.99/mo.
Intel 3.06GHz/80GB/1GB/2TB $59.99/mo.
Dedicated servers, VPS, and hosting from $2.50/mo.
--- End Message ---
--- Begin Message ---
> Well...... I don't know about you and your empathy. But most of my sickest
> feelings are caused by human behavior,
Hah, you probably wouldn't want to know about my feelings for 1and1 now then...
--
Richard Heyes
http://www.phpguru.org
--- End Message ---
--- Begin Message ---
> When the DiamondMax drives first came out, they were a couple
> hundred dollars each. I wanted to be the first guy on the block with
> a terabyte RAID, but I bought a car instead.
I think I probably would rather have the HDDs. :/ Does that make me a geek?
--
Richard Heyes
http://www.phpguru.org
--- End Message ---
--- Begin Message ---
On Tue, Aug 5, 2008 at 9:36 AM, Richard Heyes <[EMAIL PROTECTED]> wrote:
>> When the DiamondMax drives first came out, they were a couple
>> hundred dollars each. I wanted to be the first guy on the block with
>> a terabyte RAID, but I bought a car instead.
>
> I think I probably would rather have the HDDs. :/ Does that make me a geek?
In hindsight, I'd rather have done the same. All the car got me
was the ability to get back and forth from a job I didn't like, to
take out the girlfriend and spend the money I didn't have, to incur
more headaches that I didn't really need, and to get me that speeding
ticket that I didn't really want.
--
</Daniel P. Brown>
Better prices on dedicated servers:
Intel 2.4GHz/60GB/512MB/2TB $49.99/mo.
Intel 3.06GHz/80GB/1GB/2TB $59.99/mo.
Dedicated servers, VPS, and hosting from $2.50/mo.
--- End Message ---
--- Begin Message ---
Hi,
At the moment I've taken over a group of individual systems that all do their
job well enough independently, but all need to talk to one another. For
example, one system handles stock levels, one system handles sales leads,
another handles special offers, etc. etc.
A complete rewrite is in order but as a step towards that, I'd like each part
to be able to communicate and keep the other systems aware of their own status.
eg. the special offers system needs to know whether there is stock of a
particular product.
Each system is running on a separate server and I need that level of separation
to continue, what would be the best way of setting this up? I had used SOAP a
while back on other projects but would this be the best solution in this case?
Is there something better suited?
To give a rough estimate of the data, the special offers system will only hold
roughly about 100 offers and be changed every month or so, the sales leads are
only catching incoming website form enquiries (maybe about 50 a day) and the
stock levels can change maybe once or twice a day but only normally by either a
mass import or removing a sold product.
Thanks for any help / advice!
_________________________________________________________________
Win New York holidays with Kellogg’s & Live Search
http://clk.atdmt.com/UKM/go/107571440/direct/01/
--- End Message ---
--- Begin Message ---
Hi all,
I've simple question: LOCK_EX is only effective for file writing or it locks
reading, too?
Ciao,
Stefano
--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f
Sponsor:
E' arrivato EmailBlog, il blog ufficiale di Email.it. Partecipa anche tu!
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=8136&d=20080805
--- End Message ---
--- Begin Message ---
On Fri, Aug 1, 2008 at 09:31, Lukas Kahwe Smith <[EMAIL PROTECTED]> wrote:
> Hello!
>
> Johannes has packed PHP 5.3.0alpha1 yesterday evening, which you can find
> here:
> http://downloads.php.net/johannes/
So.. Apparently we will not get Windows builds of alpha1 as some of
the new extensions didn't build on Windows.. Is someone working on
fixing that problem for alpha2?
-Hannes
--- End Message ---
--- Begin Message ---
On Tue, Aug 5, 2008 at 2:14 PM, Hannes Magnusson
<[EMAIL PROTECTED]> wrote:
> On Fri, Aug 1, 2008 at 09:31, Lukas Kahwe Smith <[EMAIL PROTECTED]> wrote:
>> Hello!
>>
>> Johannes has packed PHP 5.3.0alpha1 yesterday evening, which you can find
>> here:
>> http://downloads.php.net/johannes/
>
> So.. Apparently we will not get Windows builds of alpha1 as some of
> the new extensions didn't build on Windows.. Is someone working on
> fixing that problem for alpha2?
Indeed, as you can notice yourself snaps are working.
Cheer,
--
Pierre
http://blog.thepimp.net | http://www.libgd.org
--- End Message ---
--- Begin Message ---
Hi @all,
I was just installing the Moodle-Version 1.9.2 at our university. It was
installed without any problems. But during testing and preparing for use I
got this error message:
Fatal error: Cannot redeclare make_log_url() (previously declared
in /global/WEB_DAT/documents/fme/institute/get/lehre/course/lib.php:25)
in ./lib.php on line 54
This error is only shown in the course administration (e. g. adding or editing
courses). Other function do not have any problems. I tried to find
single "include" or "require", but didn't find any (there are
always "inlcude_once" or "require_once" commands used). If I try to
deactivate the function this error is shown again with the next function.
Does anyone know a solution? Or does anyone know where I can ask for a
solution? I posted this also at the moodle-forum.
Thanks for help
greets
Kai
P.S.: Sorry for my bad english.
--- End Message ---
--- Begin Message ---
On Tue, Aug 5, 2008 at 9:37 AM, Kai Kauer <[EMAIL PROTECTED]> wrote:
> Hi @all,
>
> I was just installing the Moodle-Version 1.9.2 at our university. It was
> installed without any problems. But during testing and preparing for use I
> got this error message:
>
> Fatal error: Cannot redeclare make_log_url() (previously declared
> in /global/WEB_DAT/documents/fme/institute/get/lehre/course/lib.php:25)
> in ./lib.php on line 54
This is usually a result of the same function include script being
included twice, and thus, the function being defined a second time.
Check ./lib.php on line 54 and see if it's including itself, or if -
for whatever reason - there's two entries in that file starting with
"function make_log_url(***)".
*** Optional parameters may be enclosed within the parentheses.
--
</Daniel P. Brown>
Better prices on dedicated servers:
Intel 2.4GHz/60GB/512MB/2TB $49.99/mo.
Intel 3.06GHz/80GB/1GB/2TB $59.99/mo.
Intel 2.4GHz/320/GB/1GB/3TB $74.99/mo.
Dedicated servers, VPS, and hosting from $2.50/mo.
--- End Message ---