php-general Digest 5 Feb 2008 16:30:11 -0000 Issue 5276
Topics (messages 268699 through 268722):
How to download a file (with browser) using fsockopen() ?
268699 by: szalinski
268700 by: szalinski
268701 by: szalinski
268702 by: szalinski
268703 by: szalinski
268704 by: szalinski
268705 by: Wolf
268706 by: Wolf
268707 by: Wolf
268708 by: Wolf
268709 by: Wolf
268710 by: Wolf
268711 by: venkatk.aol.in
Re: text messages
268712 by: clive
268717 by: Per Jessen
Re: php competion
268713 by: Robert Cummings
Re: Doctrine vs. Propel
268714 by: Zoltán Németh
268715 by: Zoltán Németh
Re: Efficient mass mailings
268716 by: Per Jessen
Re: New search related question
268718 by: Jason Pruim
268719 by: Adam Williams
268722 by: Jim Lucas
Anyone else doing PHP on Symbian?
268720 by: George Pitcher
268721 by: Paul Scott
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 ---
Hi
I have been working on this download script for quite a while, and I just
can't find how to download a remote file via a user's browser using
fsockopen.
Basically I am wondering if anyone can just give me a simple working
example on how to use fsockopen() to fetch a file on a remote server, and
then pop up a save dialog box in my browser. For example, let's say I want
to download this file from here:
http://remotedomain.com/file.zip
Instead of putting this directly into my browser and then being prompted
to save it to my pc, how can i use fsockopen() to fetch the file, and get
the same prompt on my browser? E.g. I want to be able to do
http://localhost/index.php?url=http://remotedomain.com/file.zip
I know that this does not seem the most obvious and easy way to do it, but
i simply cannot get a file to download myself using fsockopen. I
specifically want this function, as I need to POST headers to the server
and I haven't as yet been able to download a file using it, without it
being corrupt, or the connection hanging. I just can't figure it out, and
I'm getting a bit tired with it!
I don't need a whole hand-made script, I just need the part where
fsockopen will download this file. Perhaps a working function that would
do it. Please try not to use classes or objects because I haven't quite
figured out object-oriented programming yet!!
Also, I would like if you can do it via HTTP 1.0 because I know HTTP 1.1
is tricky, and might require a chunk decoder, and i don't see the need for
it, unless someone is able to provide a working chunked data decoder.
Thanks to anyone who can help. :)
--- End Message ---
--- Begin Message ---
Hi
I have been working on this download script for quite a while, and I just
can't find how to download a remote file via a user's browser using
fsockopen.
Basically I am wondering if anyone can just give me a simple working
example on how to use fsockopen() to fetch a file on a remote server, and
then pop up a save dialog box in my browser. For example, let's say I want
to download this file from here:
http://remotedomain.com/file.zip
Instead of putting this directly into my browser and then being prompted
to save it to my pc, how can i use fsockopen() to fetch the file, and get
the same prompt on my browser? E.g. I want to be able to do
http://localhost/index.php?url=http://remotedomain.com/file.zip
I know that this does not seem the most obvious and easy way to do it, but
i simply cannot get a file to download myself using fsockopen. I
specifically want this function, as I need to POST headers to the server
and I haven't as yet been able to download a file using it, without it
being corrupt, or the connection hanging. I just can't figure it out, and
I'm getting a bit tired with it!
I don't need a whole hand-made script, I just need the part where
fsockopen will download this file. Perhaps a working function that would
do it. Please try not to use classes or objects because I haven't quite
figured out object-oriented programming yet!!
Also, I would like if you can do it via HTTP 1.0 because I know HTTP 1.1
is tricky, and might require a chunk decoder, and i don't see the need for
it, unless someone is able to provide a working chunked data decoder.
Thanks to anyone who can help. :)
--- End Message ---
--- Begin Message ---
Hi
I have been working on this download script for quite a while, and I just
can't find how to download a remote file via a user's browser using
fsockopen.
Basically I am wondering if anyone can just give me a simple working
example on how to use fsockopen() to fetch a file on a remote server, and
then pop up a save dialog box in my browser. For example, let's say I want
to download this file from here:
http://remotedomain.com/file.zip
Instead of putting this directly into my browser and then being prompted
to save it to my pc, how can i use fsockopen() to fetch the file, and get
the same prompt on my browser? E.g. I want to be able to do
http://localhost/index.php?url=http://remotedomain.com/file.zip
I know that this does not seem the most obvious and easy way to do it, but
i simply cannot get a file to download myself using fsockopen. I
specifically want this function, as I need to POST headers to the server
and I haven't as yet been able to download a file using it, without it
being corrupt, or the connection hanging. I just can't figure it out, and
I'm getting a bit tired with it!
I don't need a whole hand-made script, I just need the part where
fsockopen will download this file. Perhaps a working function that would
do it. Please try not to use classes or objects because I haven't quite
figured out object-oriented programming yet!!
Also, I would like if you can do it via HTTP 1.0 because I know HTTP 1.1
is tricky, and might require a chunk decoder, and i don't see the need for
it, unless someone is able to provide a working chunked data decoder.
Thanks to anyone who can help. :)
--- End Message ---
--- Begin Message ---
Hi
I have been working on this download script for quite a while, and I just
can't find how to download a remote file via a user's browser using
fsockopen.
Basically I am wondering if anyone can just give me a simple working
example on how to use fsockopen() to fetch a file on a remote server, and
then pop up a save dialog box in my browser. For example, let's say I want
to download this file from here:
http://remotedomain.com/file.zip
Instead of putting this directly into my browser and then being prompted
to save it to my pc, how can i use fsockopen() to fetch the file, and get
the same prompt on my browser? E.g. I want to be able to do
http://localhost/index.php?url=http://remotedomain.com/file.zip
I know that this does not seem the most obvious and easy way to do it, but
i simply cannot get a file to download myself using fsockopen. I
specifically want this function, as I need to POST headers to the server
and I haven't as yet been able to download a file using it, without it
being corrupt, or the connection hanging. I just can't figure it out, and
I'm getting a bit tired with it!
I don't need a whole hand-made script, I just need the part where
fsockopen will download this file. Perhaps a working function that would
do it. Please try not to use classes or objects because I haven't quite
figured out object-oriented programming yet!!
Also, I would like if you can do it via HTTP 1.0 because I know HTTP 1.1
is tricky, and might require a chunk decoder, and i don't see the need for
it, unless someone is able to provide a working chunked data decoder.
Thanks to anyone who can help. :)
--- End Message ---
--- Begin Message ---
Hi
I have been working on this download script for quite a while, and I just
can't find how to download a remote file via a user's browser using
fsockopen.
Basically I am wondering if anyone can just give me a simple working
example on how to use fsockopen() to fetch a file on a remote server, and
then pop up a save dialog box in my browser. For example, let's say I want
to download this file from here:
http://remotedomain.com/file.zip
Instead of putting this directly into my browser and then being prompted
to save it to my pc, how can i use fsockopen() to fetch the file, and get
the same prompt on my browser? E.g. I want to be able to do
http://localhost/index.php?url=http://remotedomain.com/file.zip
I know that this does not seem the most obvious and easy way to do it, but
i simply cannot get a file to download myself using fsockopen. I
specifically want this function, as I need to POST headers to the server
and I haven't as yet been able to download a file using it, without it
being corrupt, or the connection hanging. I just can't figure it out, and
I'm getting a bit tired with it!
I don't need a whole hand-made script, I just need the part where
fsockopen will download this file. Perhaps a working function that would
do it. Please try not to use classes or objects because I haven't quite
figured out object-oriented programming yet!!
Also, I would like if you can do it via HTTP 1.0 because I know HTTP 1.1
is tricky, and might require a chunk decoder, and i don't see the need for
it, unless someone is able to provide a working chunked data decoder.
Thanks to anyone who can help. :)
--- End Message ---
--- Begin Message ---
Hi
I have been working on this download script for quite a while, and I just
can't find how to download a remote file via a user's browser using
fsockopen.
Basically I am wondering if anyone can just give me a simple working
example on how to use fsockopen() to fetch a file on a remote server, and
then pop up a save dialog box in my browser. For example, let's say I want
to download this file from here:
http://remotedomain.com/file.zip
Instead of putting this directly into my browser and then being prompted
to save it to my pc, how can i use fsockopen() to fetch the file, and get
the same prompt on my browser? E.g. I want to be able to do
http://localhost/index.php?url=http://remotedomain.com/file.zip
I know that this does not seem the most obvious and easy way to do it, but
i simply cannot get a file to download myself using fsockopen. I
specifically want this function, as I need to POST headers to the server
and I haven't as yet been able to download a file using it, without it
being corrupt, or the connection hanging. I just can't figure it out, and
I'm getting a bit tired with it!
I don't need a whole hand-made script, I just need the part where
fsockopen will download this file. Perhaps a working function that would
do it. Please try not to use classes or objects because I haven't quite
figured out object-oriented programming yet!!
Also, I would like if you can do it via HTTP 1.0 because I know HTTP 1.1
is tricky, and might require a chunk decoder, and i don't see the need for
it, unless someone is able to provide a working chunked data decoder.
Thanks to anyone who can help. :)
--- End Message ---
--- Begin Message ---
Wow, did you have to post this 6 times barney??
szalinski wrote:
Hi
I have been working on this download script for quite a while, and I just
can't find how to download a remote file via a user's browser using
fsockopen.
Basically I am wondering if anyone can just give me a simple working
example on how to use fsockopen() to fetch a file on a remote server, and
then pop up a save dialog box in my browser. For example, let's say I want
to download this file from here:
http://remotedomain.com/file.zip
Instead of putting this directly into my browser and then being prompted
to save it to my pc, how can i use fsockopen() to fetch the file, and get
the same prompt on my browser? E.g. I want to be able to do
http://localhost/index.php?url=http://remotedomain.com/file.zip
I know that this does not seem the most obvious and easy way to do it, but
i simply cannot get a file to download myself using fsockopen. I
specifically want this function, as I need to POST headers to the server
and I haven't as yet been able to download a file using it, without it
being corrupt, or the connection hanging. I just can't figure it out, and
I'm getting a bit tired with it!
I don't need a whole hand-made script, I just need the part where
fsockopen will download this file. Perhaps a working function that would
do it. Please try not to use classes or objects because I haven't quite
figured out object-oriented programming yet!!
Also, I would like if you can do it via HTTP 1.0 because I know HTTP 1.1
is tricky, and might require a chunk decoder, and i don't see the need for
it, unless someone is able to provide a working chunked data decoder.
Thanks to anyone who can help. :)
--- End Message ---
--- Begin Message ---
Wow, did you have to post this 6 times barney??
szalinski wrote:
Hi
I have been working on this download script for quite a while, and I just
can't find how to download a remote file via a user's browser using
fsockopen.
Basically I am wondering if anyone can just give me a simple working
example on how to use fsockopen() to fetch a file on a remote server, and
then pop up a save dialog box in my browser. For example, let's say I want
to download this file from here:
http://remotedomain.com/file.zip
Instead of putting this directly into my browser and then being prompted
to save it to my pc, how can i use fsockopen() to fetch the file, and get
the same prompt on my browser? E.g. I want to be able to do
http://localhost/index.php?url=http://remotedomain.com/file.zip
I know that this does not seem the most obvious and easy way to do it, but
i simply cannot get a file to download myself using fsockopen. I
specifically want this function, as I need to POST headers to the server
and I haven't as yet been able to download a file using it, without it
being corrupt, or the connection hanging. I just can't figure it out, and
I'm getting a bit tired with it!
I don't need a whole hand-made script, I just need the part where
fsockopen will download this file. Perhaps a working function that would
do it. Please try not to use classes or objects because I haven't quite
figured out object-oriented programming yet!!
Also, I would like if you can do it via HTTP 1.0 because I know HTTP 1.1
is tricky, and might require a chunk decoder, and i don't see the need for
it, unless someone is able to provide a working chunked data decoder.
Thanks to anyone who can help. :)
--- End Message ---
--- Begin Message ---
Wow, did you have to post this 6 times barney??
szalinski wrote:
Hi
I have been working on this download script for quite a while, and I just
can't find how to download a remote file via a user's browser using
fsockopen.
Basically I am wondering if anyone can just give me a simple working
example on how to use fsockopen() to fetch a file on a remote server, and
then pop up a save dialog box in my browser. For example, let's say I want
to download this file from here:
http://remotedomain.com/file.zip
Instead of putting this directly into my browser and then being prompted
to save it to my pc, how can i use fsockopen() to fetch the file, and get
the same prompt on my browser? E.g. I want to be able to do
http://localhost/index.php?url=http://remotedomain.com/file.zip
I know that this does not seem the most obvious and easy way to do it, but
i simply cannot get a file to download myself using fsockopen. I
specifically want this function, as I need to POST headers to the server
and I haven't as yet been able to download a file using it, without it
being corrupt, or the connection hanging. I just can't figure it out, and
I'm getting a bit tired with it!
I don't need a whole hand-made script, I just need the part where
fsockopen will download this file. Perhaps a working function that would
do it. Please try not to use classes or objects because I haven't quite
figured out object-oriented programming yet!!
Also, I would like if you can do it via HTTP 1.0 because I know HTTP 1.1
is tricky, and might require a chunk decoder, and i don't see the need for
it, unless someone is able to provide a working chunked data decoder.
Thanks to anyone who can help. :)
--- End Message ---
--- Begin Message ---
Wow, did you have to post this 6 times barney??
szalinski wrote:
Hi
I have been working on this download script for quite a while, and I just
can't find how to download a remote file via a user's browser using
fsockopen.
Basically I am wondering if anyone can just give me a simple working
example on how to use fsockopen() to fetch a file on a remote server, and
then pop up a save dialog box in my browser. For example, let's say I want
to download this file from here:
http://remotedomain.com/file.zip
Instead of putting this directly into my browser and then being prompted
to save it to my pc, how can i use fsockopen() to fetch the file, and get
the same prompt on my browser? E.g. I want to be able to do
http://localhost/index.php?url=http://remotedomain.com/file.zip
I know that this does not seem the most obvious and easy way to do it, but
i simply cannot get a file to download myself using fsockopen. I
specifically want this function, as I need to POST headers to the server
and I haven't as yet been able to download a file using it, without it
being corrupt, or the connection hanging. I just can't figure it out, and
I'm getting a bit tired with it!
I don't need a whole hand-made script, I just need the part where
fsockopen will download this file. Perhaps a working function that would
do it. Please try not to use classes or objects because I haven't quite
figured out object-oriented programming yet!!
Also, I would like if you can do it via HTTP 1.0 because I know HTTP 1.1
is tricky, and might require a chunk decoder, and i don't see the need for
it, unless someone is able to provide a working chunked data decoder.
Thanks to anyone who can help. :)
--- End Message ---
--- Begin Message ---
Wow, did you have to post this 6 times barney??
szalinski wrote:
Hi
I have been working on this download script for quite a while, and I
just can't find how to download a remote file via a user's browser using
fsockopen.
Basically I am wondering if anyone can just give me a simple working
example on how to use fsockopen() to fetch a file on a remote server,
and then pop up a save dialog box in my browser. For example, let's say
I want to download this file from here:
http://remotedomain.com/file.zip
Instead of putting this directly into my browser and then being prompted
to save it to my pc, how can i use fsockopen() to fetch the file, and
get the same prompt on my browser? E.g. I want to be able to do
http://localhost/index.php?url=http://remotedomain.com/file.zip
I know that this does not seem the most obvious and easy way to do it,
but i simply cannot get a file to download myself using fsockopen. I
specifically want this function, as I need to POST headers to the server
and I haven't as yet been able to download a file using it, without it
being corrupt, or the connection hanging. I just can't figure it out,
and I'm getting a bit tired with it!
I don't need a whole hand-made script, I just need the part where
fsockopen will download this file. Perhaps a working function that would
do it. Please try not to use classes or objects because I haven't quite
figured out object-oriented programming yet!!
Also, I would like if you can do it via HTTP 1.0 because I know HTTP 1.1
is tricky, and might require a chunk decoder, and i don't see the need
for it, unless someone is able to provide a working chunked data decoder.
Thanks to anyone who can help. :)
--- End Message ---
--- Begin Message ---
Wow, did you have to post this 6 times barney??
szalinski wrote:
Hi
I have been working on this download script for quite a while, and I
just can't find how to download a remote file via a user's browser using
fsockopen.
Basically I am wondering if anyone can just give me a simple working
example on how to use fsockopen() to fetch a file on a remote server,
and then pop up a save dialog box in my browser. For example, let's say
I want to download this file from here:
http://remotedomain.com/file.zip
Instead of putting this directly into my browser and then being prompted
to save it to my pc, how can i use fsockopen() to fetch the file, and
get the same prompt on my browser? E.g. I want to be able to do
http://localhost/index.php?url=http://remotedomain.com/file.zip
I know that this does not seem the most obvious and easy way to do it,
but i simply cannot get a file to download myself using fsockopen. I
specifically want this function, as I need to POST headers to the server
and I haven't as yet been able to download a file using it, without it
being corrupt, or the connection hanging. I just can't figure it out,
and I'm getting a bit tired with it!
I don't need a whole hand-made script, I just need the part where
fsockopen will download this file. Perhaps a working function that would
do it. Please try not to use classes or objects because I haven't quite
figured out object-oriented programming yet!!
Also, I would like if you can do it via HTTP 1.0 because I know HTTP 1.1
is tricky, and might require a chunk decoder, and i don't see the need
for it, unless someone is able to provide a working chunked data decoder.
Thanks to anyone who can help. :)
--- End Message ---
--- Begin Message ---
Try this, it should work.
//Get the file from the remote location
function getFile($host, $resource, $port)
{
??? $hdr = '';
??? $file_cont = '';
??? $fh = fsockopen($host, $port, $errno, $errstr, 300);
???
??? if(! $fh)
??? {
??? ??? return "error";
??? } else {
??? ??? $hdr .= "GET /$resource HTTP/1.1 \r\n";
??? ??? $hdr .= "Host: $host\r\n";
??? ??? $hdr .= "Connection: close\r\n\r\n";
??? ??? fwrite($fh, $hdr);
??? ??? while(!feof($fh))
??? ??? {
??? ??? ??? $file_cont .= fgets($fh, 128);
??? ??? }
??? ??? //Return the file as a string
??? ??? return $file_cont;
??? }
}
//Set up essential headers
header("Content-Type: Application/GIF");
header("Content-Disposition: application/gif; filename=one.gif");
//Strip the text headers in the file and print it out.
print preg_replace("/^.*\r\n/m", "", getFile("wisdomleaf.com",
"images/logo.gif", 80));
Anyway, the core of the script is download the file as a string, print it out
as a string with suitable headers.
Cheers,
V
-----Original Message-----
From: szalinski <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]; [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Sent: Tue, 5 Feb 2008 8:58 am
Subject: [PHP] How to download a file (with browser) using fsockopen() ?
Hi?
?
I have been working on this download script for quite a while, and I just can't
find how to download a remote file via a user's browser using fsockopen.?
?
Basically I am wondering if anyone can just give me a simple working example on
how to use fsockopen() to fetch a file on a remote server, and then pop up a
save dialog box in my browser. For example, let's say I want to download this
file from here:?
?
http://remotedomain.com/file.zip?
?
Instead of putting this directly into my browser and then being prompted to
save it to my pc, how can i use fsockopen() to fetch the file, and get the same
prompt on my browser? E.g. I want to be able to do?
?
http://localhost/index.php?url=http://remotedomain.com/file.zip?
?
I know that this does not seem the most obvious and easy way to do it, but i
simply cannot get a file to download myself using fsockopen. I specifically
want this function, as I need to POST headers to the server and I haven't as
yet been able to download a file using it, without it being corrupt, or the
connection hanging. I just can't figure it out, and I'm getting a bit tired
with it!?
I don't need a whole hand-made script, I just need the part where fsockopen
will download this file. Perhaps a working function that would do it. Please
try not to use classes or objects because I haven't quite figured out
object-oriented programming yet!!?
?
Also, I would like if you can do it via HTTP 1.0 because I know HTTP 1.1 is
tricky, and might require a chunk decoder, and i don't see the need for it,
unless someone is able to provide a working chunked data decoder.?
?
Thanks to anyone who can help. :)?
?
--PHP General Mailing List (http://www.php.net/)?
To unsubscribe, visit: http://www.php.net/unsub.php?
________________________________________________________________________
You are invited to Get a Free AOL Email ID. - http://webmail.aol.in
--- End Message ---
--- Begin Message ---
blackwater dev wrote:
I know this isn't specific to php but I need to add some code to my php
pages to start sending out text messages. If anyone does this, how do you
do it? Do you simply use a free service like teleflip or do you use a paid
aggregator company?
I use a paid service, called bulksms, they have a php class you can use
to integrate with your app or you can you their api, very easy as well.
Thanks!
--- End Message ---
--- Begin Message ---
blackwater dev wrote:
> I know this isn't specific to php but I need to add some code to my
> php pages to start sending out text messages. If anyone does this,
> how do you do it?
My local setup is like this:
I send an email to '[EMAIL PROTECTED]' - that is routed to my
telephone server which uses sms_client to dial Swisscoms SMSC and send
the message. http://www.smsclient.org/
I have thought of using a more elegant solution (a provider with an
internet interface for instance), but we use SMS as an alert mechanism,
and the telephone interface is the most reliable.
/Per Jessen, Zürich
--- End Message ---
--- Begin Message ---
On Mon, 2008-02-04 at 17:43 -0800, Warren Vail wrote:
> There's probably even a tee-shirt. As in; been there, done that, got the
> tee-shirt.
Live and learn!
:)
Cheers,
Rob.
> > -----Original Message-----
> > From: Shawn McKenzie [mailto:[EMAIL PROTECTED]
> > Sent: Monday, February 04, 2008 5:32 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [PHP] php competion
> >
> > And a newer adage, maybe from grade school, "takes one to know one". :-)
> >
> > Robert Cummings wrote:
> > > On Mon, 2008-02-04 at 15:26 -0600, Shawn McKenzie wrote:
> > >> I hardly think this one is a scam, I mean all you have to do is write a
> > >> PHP app that converts between PHP, Python, C and Perl and you get:
> > >> "not only bragging rights will come your way, but it will sure look
> > good
> > >> on your resume"!
> > >>
> > >> I'm in.
> > >
> > > There's an old adage that I think may apply here... goes something like:
> > >
> > > "There's a sucker born every minute."
> > >
> > > Cheers,
> > > Rob.
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'
--- End Message ---
--- Begin Message ---
2008. 02. 4, hétfő keltezéssel 22.14-kor AmirBehzad Eslami ezt írta:
> Dear List,
>
> I've just heard of ORM (Object Relational Mapping) frameworks written for
> PHP.
> It seems that there are two major frameworks here: Doctrine and Propel:
>
> http://www.phpdoctrine.org/
> http://propel.phpdb.org/trac/
>
> I wonder which one is better? What is the difference between these?
doctrine has several very cool and useful features which propel does not
have. for example real inheritance. and their documentation is also much
superior.
however doctrine is still in early stage of development, so if you work
on a project where stability is an issue I suggest using propel (later,
when doctrine becomes stable, we plan to change to it). if you just want
to experiment with these, try both. :)
greets
Zoltán Németh
> I'm talking about the learning curve, peroformance.
> What are the advantages/disadvantages of each one?
>
> Thank you in advance,
> Behzad
--- End Message ---
--- Begin Message ---
2008. 02. 4, hétfő keltezéssel 14.03-kor Nathan Nobbe ezt írta:
> On Feb 4, 2008 1:44 PM, AmirBehzad Eslami <[EMAIL PROTECTED]> wrote:
>
> > Dear List,
> >
> > I've just heard of ORM (Object Relational Mapping) frameworks written for
> > PHP.
> > It seems that there are two major frameworks here: Doctrine and Propel:
> >
> > http://www.phpdoctrine.org/
> > http://propel.phpdb.org/trac/
> >
> > I wonder which one is better? What is the difference between these?
> > I'm talking about the learning curve, peroformance.
> > What are the advantages/disadvantages of each one?
>
>
> hmm... i havent seen this doctrine yet; it looks pretty cool.
> actually, they seem to be somewhat similar. some things ive noticed
> are doctrine uses yaml in its schema files, and doctrine appears to have
> a caching mechanism already for both queries and results. thats nice,
> because for propel youll have to roll your own. unless perhaps symphony
> has done this already ?
symfony AFAIK only has file caching on its own
greets
Zoltán Németh
> also, propel doesnt have anything like DQL. i have to say, doctrine has
> some
> killer docs as well. these appear to be more robust than what propel has at
> a
> cursory glance.
> ill probly take a closer look at this as time permits; thanks for the info!
>
> -nathan
--- End Message ---
--- Begin Message ---
Richard Heyes wrote:
>> Whether you BCC or not does not affect the actual mail-server
>> traffic. A Bcc'ed address is only one that isn't listed in To:
>> header.
>
> But it does affect how much data gets transferred to the mail server.
> If you Bcc: addresses the email will only be sent over the wire to the
> mail server once.
Sometime last night I realised my previous answer was bogus. Whether or
not you use Bcc does not change anything wrt. the amount of data
transferred.
You send the mail like this:
sendmail -oi <rcp#1> ...<rcp#999> <<XXX
.
.
.
.
.
.
.
XXX
Any <rcp> not listed in the 'To:' header is a Bcc address. Your MTA
couldn't care less whether you've got 'To:' addresses or not, so the
email is transferred in the same manner with them or without.
/Per Jessen, Zürich
--- End Message ---
--- Begin Message ---
On Feb 4, 2008, at 7:42 PM, Jim Lucas wrote:
Daniel Brown wrote:
On Feb 4, 2008 2:48 PM, Jason Pruim <[EMAIL PROTECTED]> wrote:
Hi Everyone! :)
Just a quick question, I've done some googling but haven't been able
to find what I need... I am looking at doing a search function for
someone's website, the website is just static HTML files, and she
doesn't want to redo the entire website to make it dynamic.
I got bored, so I wrote out a system to handle it. Let me know if
you want the source when it's done.
So did I... :)
Has options for searching recursively, case sensitivity, and
displayable HTML only or the entire file. Also a restriction to
limit which filetypes from the results it will display.
It only works on *nix, I used grep. Don't have to worry about cron,
scheduled tasks, etc to refresh a DB. I have it searching about
7000 files that range from plain text 2k all the way up to 60meg
binary zip files, and it is rather quick at it.
I think I will use this in my script testing area. I have already
found it to be rather handy. Instead of trying to remember where
something is, all I have to do is search for it. But now I don't
have to log into my server and run grep from the command line. I
hated having to do that just to find one script example.
I'd love to see both! I'm always trying to look at other peoples code
so I can get an idea of the Right Way(tm) to do it :)
And thanks for all the input! Hopefully this will end up coming in
useful! :)
--
Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
3251 132nd ave
Holland, MI, 49424
www.raoset.com
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
http://search.mnogo.ru
Jason Pruim wrote:
Hi Everyone! :)
Just a quick question, I've done some googling but haven't been able
to find what I need... I am looking at doing a search function for
someone's website, the website is just static HTML files, and she
doesn't want to redo the entire website to make it dynamic.
What I am thinking (And please correct me when I'm wrong!) is that if
I maintain a database with keywords in it, and links to the pages it
exists on, I can implement the search easily enough without redoing
the entire website. IE: Someone searches the database for "Flowers"
and flowers are the main product on: "Flowers.html" and
"fakeFlowers.html" so on the page, I would display:
Search Term: Flowers
Search Results:
link.to.site/Flowers.html
link.to.other.site/fakeFlowers.html
Is there anything wrong with the way I'm thinking? Or is it that there
is a better way to search through a static HTML site?
--
Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
3251 132nd ave
Holland, MI, 49424
www.raoset.com
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Jason Pruim wrote:
On Feb 4, 2008, at 7:42 PM, Jim Lucas wrote:
Daniel Brown wrote:
On Feb 4, 2008 2:48 PM, Jason Pruim <[EMAIL PROTECTED]> wrote:
Hi Everyone! :)
Just a quick question, I've done some googling but haven't been able
to find what I need... I am looking at doing a search function for
someone's website, the website is just static HTML files, and she
doesn't want to redo the entire website to make it dynamic.
I got bored, so I wrote out a system to handle it. Let me know if
you want the source when it's done.
So did I... :)
Has options for searching recursively, case sensitivity, and
displayable HTML only or the entire file. Also a restriction to limit
which filetypes from the results it will display.
It only works on *nix, I used grep. Don't have to worry about cron,
scheduled tasks, etc to refresh a DB. I have it searching about 7000
files that range from plain text 2k all the way up to 60meg binary zip
files, and it is rather quick at it.
I think I will use this in my script testing area. I have already
found it to be rather handy. Instead of trying to remember where
something is, all I have to do is search for it. But now I don't have
to log into my server and run grep from the command line. I hated
having to do that just to find one script example.
I'd love to see both! I'm always trying to look at other peoples code so
I can get an idea of the Right Way(tm) to do it :)
And thanks for all the input! Hopefully this will end up coming in
useful! :)
--
Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
3251 132nd ave
Holland, MI, 49424
www.raoset.com
[EMAIL PROTECTED]
Just finished adding the ability to show a snippet of the code, file
modification time, and size to the results page.
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by William Shakespeare
--- End Message ---
--- Begin Message ---
Hi,
I've recently installed PAMP (PHP, Apache, MySQL & Python) on my Nokia N95.
I can do my development in Dreamweaver and move across to the phone and it
all works.
I have some questions, but won't bother asking if there's no-one else here
doing it.
Cheers
George, in a very wet Edinburgh
--- End Message ---
--- Begin Message ---
On Tue, 2008-02-05 at 14:44 +0000, George Pitcher wrote:
> I've recently installed PAMP (PHP, Apache, MySQL & Python) on my Nokia N95.
> I can do my development in Dreamweaver and move across to the phone and it
> all works.
>
Sounds intruiging! Care to share some resources/links as to how to set
up? I have a Sony/Ericsson P990i that I don't mind destroying with
insane hacks, and this sounds like fun!
--Paul
All Email originating from UWC is covered by disclaimer
http://www.uwc.ac.za/portal/public/portal_services/disclaimer.htm
--- End Message ---