php-general Digest 2 Jun 2008 02:26:22 -0000 Issue 5492
Topics (messages 274908 through 274916):
Re: saving outside website content via php...
274908 by: Gabriel Sosa
274910 by: Shawn McKenzie
274916 by: blackwater dev
Re: Anybody got a little spare time to help me out with a little OOP
274909 by: Ryan S
274911 by: Tony Marston
274912 by: Ted Wood
274913 by: Michael Kubler
ecommerce data sharing?
274914 by: Michael McGlothlin
274915 by: Richard Heyes
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 ---
why no just save the searhed url in a db field. next time you just
need call the iframe with the last or N search
anyway if you still want to save all the searched page try using curl
http://ar.php.net/manual/en/function.curl-exec.php
saludos
On Sat, May 31, 2008 at 8:11 PM, blackwater dev <[EMAIL PROTECTED]> wrote:
> I'm using the google api to allow people to search the web via my site. The
> pages are simply iframed within my site. Is it possible for me to give them
> a 'save' button and let them save the page they are viewing in it's current
> state? I don't mean save to their computer but I would use php to save it
> to disk or the db. How can I do this and pull in all the css, images, etc?
>
>
>
> Thanks!
>
--
Los sabios buscan la sabidurĂa; los necios creen haberla encontrado.
Gabriel Sosa
--- End Message ---
--- Begin Message ---
Gabriel Sosa wrote:
why no just save the searhed url in a db field. next time you just
need call the iframe with the last or N search
anyway if you still want to save all the searched page try using curl
http://ar.php.net/manual/en/function.curl-exec.php
saludos
On Sat, May 31, 2008 at 8:11 PM, blackwater dev <[EMAIL PROTECTED]> wrote:
I'm using the google api to allow people to search the web via my site. The
pages are simply iframed within my site. Is it possible for me to give them
a 'save' button and let them save the page they are viewing in it's current
state? I don't mean save to their computer but I would use php to save it
to disk or the db. How can I do this and pull in all the css, images, etc?
Thanks!
Or if you don't have access to curl, you can use file_get_contents() on
a URL if allow_url_fopen=on.
-Shawn
--- End Message ---
--- Begin Message ---
Yes, but file_get_contents will get me the code which I could then echo back
out to the browser but that wouldn't give me any external images, css files
or js.
On Sun, Jun 1, 2008 at 11:23 AM, Shawn McKenzie <[EMAIL PROTECTED]>
wrote:
> Gabriel Sosa wrote:
>
>> why no just save the searhed url in a db field. next time you just
>> need call the iframe with the last or N search
>>
>> anyway if you still want to save all the searched page try using curl
>>
>> http://ar.php.net/manual/en/function.curl-exec.php
>>
>> saludos
>>
>>
>> On Sat, May 31, 2008 at 8:11 PM, blackwater dev <[EMAIL PROTECTED]>
>> wrote:
>>
>>> I'm using the google api to allow people to search the web via my site.
>>> The
>>> pages are simply iframed within my site. Is it possible for me to give
>>> them
>>> a 'save' button and let them save the page they are viewing in it's
>>> current
>>> state? I don't mean save to their computer but I would use php to save
>>> it
>>> to disk or the db. How can I do this and pull in all the css, images,
>>> etc?
>>>
>>>
>>>
>>> Thanks!
>>>
>>>
>>
>>
>>
> Or if you don't have access to curl, you can use file_get_contents() on a
> URL if allow_url_fopen=on.
>
> -Shawn
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Hey!
<snip>
Here would be my incarnation of this script
<?php
$sample_string="From http://www.ezee.se/ The UK police are by far one of
the most open to being greedy and corrupted by their afore mentioned
greed, case and point: the hundreds of extra speed cameras that are put
in place with an idea of making more money rather than public safety,
cameras that get fines that are around 100 million pounds per year!
Heres one example..";
$break = 12;
$words=explode(" ", $sample_string, $break);
$words[($break-1)] = "... read more inside!";
echo join(' ', $words);
</snip>
Thanks for replying, but how and where do I put that into the script? all that
"this->" stuff is confusing....
Cheers!
R
--- End Message ---
--- Begin Message ---
If you want to know what $this-> means then take a look at
http://www.tonymarston.net/php-mysql/databaseobjects.html
Other articles on OOP with PHP are:
http://www.tonymarston.net/php-mysql/databaseobjects2.html
http://www.tonymarston.net/php-mysql/dateclass.html
http://www.tonymarston.net/php-mysql/good-bad-oop.html
http://www.tonymarston.net/php-mysql/hero-or-heretic.html
http://www.tonymarston.net/php-mysql/oop-for-heretics.html
http://www.tonymarston.net/php-mysql/what-is-oop.html
http://www.tonymarston.net/php-mysql/object-relational-mappers-are-evil.html
--
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
"Ryan S" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hey!
>
> <snip>
> Here would be my incarnation of this script
> <?php
> $sample_string="From http://www.ezee.se/ The UK police are by far one of
> the most open to being greedy and corrupted by their afore mentioned
> greed, case and point: the hundreds of extra speed cameras that are put
> in place with an idea of making more money rather than public safety,
> cameras that get fines that are around 100 million pounds per year!
> Heres one example..";
>
> $break = 12;
>
> $words=explode(" ", $sample_string, $break);
>
> $words[($break-1)] = "... read more inside!";
>
> echo join(' ', $words);
> </snip>
>
>
>
>
>
> Thanks for replying, but how and where do I put that into the script? all
> that "this->" stuff is confusing....
>
> Cheers!
> R
>
>
>
>
--- End Message ---
--- Begin Message ---
On 1-Jun-08, at 8:15 AM, Ryan S wrote:
Thanks for replying, but how and where do I put that into the
script? all that "this->" stuff is confusing....
Tony Marsten's links seem to be very good, but let me offer you a
simpler introduction. Once you can think in an OOP fashion,
procedural-/functional-based programming seems archaic.
Object-oriented programming is all about thinking about everything as
"objects".... people, cars, flowers, dogs, pictures, food items...
whatever your application manages. You model up these real-world
objects using simple PHP syntax.
Objects can refer to themselves (or their inheritance) using $this->,
which means "me" or "mine". When using $this->, the object is
referring to a property or method (aka function) within itself or
inherited from one of its parents, whichever comes first.
~Ted
--- End Message ---
--- Begin Message ---
http://en.wikipedia.org/wiki/Object_oriented_programming
I remember having troubles understanding OOP, especially going from Pic
Microcontroller assembly to Java, but I found the Wikipedia article
helped a lot.
I still write in functions, but I understand OO :-) .
BTW : Hello list. I just joined.
Michael Kubler
*G*rey *P*hoenix *P*roductions <http://www.greyphoenix.biz>
Ted Wood wrote:
On 1-Jun-08, at 8:15 AM, Ryan S wrote:
Thanks for replying, but how and where do I put that into the script?
all that "this->" stuff is confusing....
Tony Marsten's links seem to be very good, but let me offer you a
simpler introduction. Once you can think in an OOP fashion,
procedural-/functional-based programming seems archaic.
Object-oriented programming is all about thinking about everything as
"objects".... people, cars, flowers, dogs, pictures, food items...
whatever your application manages. You model up these real-world
objects using simple PHP syntax.
Objects can refer to themselves (or their inheritance) using $this->,
which means "me" or "mine". When using $this->, the object is
referring to a property or method (aka function) within itself or
inherited from one of its parents, whichever comes first.
~Ted
--- End Message ---
--- Begin Message ---
Does anyone know of a project for sharing ecommerce related data? Such
as abstracted order histories so that tables of related items can be
built for recommending items?
--
Michael McGlothlin
Southwest Plumbing Supply
smime.p7s
Description: S/MIME Cryptographic Signature
--- End Message ---
--- Begin Message ---
Does anyone know of a project for sharing ecommerce related data? Such
as abstracted order histories so that tables of related items can be
built for recommending items?
Sounds like a huge privacy can of worms and worm related matter.
--
Richard Heyes
In Cambridge? Employ me
http://www.phpguru.org/cv
+----------------------------------------+
| Access SSH with a Windows mapped drive |
| http://www.phpguru.org/sftpdrive |
+----------------------------------------+
--- End Message ---