Re: [PHP] Re: Static and/or Dynamic site scraping using PHP

2009-05-02 Thread Lenin
I thought I would get some more experts giving me more insight about the
methods of scraping.

I want to grab the body content of pages say of Wordpress but not through
RSS. I would assume the pages are static only. And try to scrape the  body
content but avoiding  sidebar, footer, header etc.

I tried with the DOM and its fun. But just wanting to know some expert
experience on specific to my problem.

Thanks in advance.


Re: Re: [PHP] Re: Static and/or Dynamic site scraping using PHP

2009-05-02 Thread Lenin
On Sat, May 2, 2009 at 10:01 PM,
wrote:

> Je suis actuellement absent du bureau aussi TEST !
>
> I dont get it why I get this automated mail everytime I send message to
this thread.  :-/


Re: [PHP] php-general@lists.php.net, Tim-Hinnerk Heuer has invited you to open a Google mail account

2009-05-08 Thread Lenin
Yeah gmail is a nice thing :)

The best ever mailing system world has ever seen until now.


Re: [PHP] php-general@lists.php.net, Tim-Hinnerk Heuer has invited you to open a Google mail account

2009-05-09 Thread Lenin
Hahaha quite Hilarious.

le...@phpxperts.net is also hosted by Google Apps :P

Its the Largest active PHP group in South Asia (originated from Bangladesh).
Participated by thousands from many other countries.

Keep the humor on! :D


Re: [PHP] php-general@lists.php.net, Tim-Hinnerk Heuer has invited you to open a Google mail account

2009-05-09 Thread Lenin
LOL good points indeed!

But I dont use other Google products that much. But yes I'm helping google
in some way.

One great satisfaction I have is I use Ubuntu with FireFox. :)


Re: [PHP] Watermarking of images

2009-05-11 Thread Lenin
I haven't used GD lib yet. But I can suggest one thing, that is
printing a layer of color under the text to be printed could be a
saver.

I dont know how translucency is made but thats another way to make
better WaterMarks as well.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Watermarking of images

2009-05-11 Thread Lenin
Thanks to Robert and congrats Michael :)

Robert could you suggest about the transperency or translucency in GD?

I also have interest in using Bangla Font through GD, but I dont know
why it doesn't support it. if anyone had suggestions ...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Watermarking of images

2009-05-11 Thread Lenin
I'm talking about  Unicode TTF fonts(OpenType).

The characters Like this   অ আ ক খ

Fonts in  www.omicronlab.com  or www.ekushey.org

Thanks

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Urgent problem PCRE or DOM help

2009-05-12 Thread Lenin


 Home | My Interface 

My Interface

DONT READ TABLE

Step-By-Step Instructions:

P tags
IMG tags

DONT READ
 

I am having trouble with the above HTML semantics. I just need to read the
content inside the TD with Class name text11(its the only class in the page
as well).
Need to omit the table inside as it contains Adsense ads.

Got to omit the first two A HREF tags as well. I'm not very good with PCRE
so failing to make it work.

Tried with DOMDocument but with the examples found I failed to achieve the
result.

$elements = $doc->getElementsById('table');

if (!is_null($elements)) {
  foreach ($elements as $element) {
echo "". $element->nodeName. ": ";

$nodes = $element->childNodes;
foreach ($nodes as $node) {
  echo $node->nodeValue. "";
}
  }
}

This above code only gets Texts inside but not Img.
Plz any help would be greatly appreciated.


[PHP] Re: Urgent problem PCRE or DOM help

2009-05-13 Thread Lenin
No one willing to help?


Re: [PHP] Really basic PHP questions -- newbie here!

2009-05-20 Thread Lenin
If not following some classes. I'd suggest Ellen to watch the videos for a
quick overview from NETTUTS and KillerPHP.

www.killerphp.com also google for some vidoes.

And you need to understand the facts of  ServerSide, ClientSide, HTML,
WebServer, Permission of Files etc.


Re: [PHP] Re: -less layouts; Ideas welcome

2009-05-23 Thread Lenin
Have anyone of you checked the table to div converter class from
www.phpclasses.org ?


Re: [PHP] Re: PHP, OOP and AJAX

2009-05-28 Thread Lenin
2009/5/28 kranthi 

>
>
> i recommend you firebug firefox adddon (just go to the net tab and you
> can see all the details of the communication between client and
> server)
> and i find it helpful to use a standard javascript(jQuery in my case)
> library instead of highly limited plain javascript  language
>
I also recommend using FirePHP with FireBug here's a nicely written tutorial
on how to use them both together for Ajax'ed pages. http://tr.im/iyvl
Thanks
Lenin
www.twitter.com/nine_L


Re: [PHP] PHP as Server Side for a Web Database Application.

2009-06-10 Thread Lenin
I reckon Dan brown is fond of pillow talks instead of PHP(pillow has
p*nux) in here very much ;)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: Re: [PHP] How to authnticate and use contents from ${HOME}

2009-07-11 Thread Lenin
On Sat, Jul 11, 2009 at 9:41 PM,  wrote:

> What is xamp?


XAMPP is a preconfigured package for using apache, mysql, php/perl/python on
any platform like linux, mac OS or Windows. Look at www.apachefriends.de


Re: [PHP] I am RTFM, but still stumbling on how to get built-in functions parsed in heredoc

2009-07-11 Thread Lenin
On Sun, Jul 12, 2009 at 2:56 AM, Eddie Drapkin  wrote:

> On Sat, Jul 11, 2009 at 3:53 PM, Govinda
> wrote:
> > On Jul 11, 2009, at 11:26 AM, Eddie Drapkin wrote:
> >
> >> $foo = << >> $bar[hello]
> >> EOT;
> >
> > what does "EOT" stand for?
> > (I realize that string can be anything..  but I am just asking what EOT
> > means to everyone?
>
>
> I just use it as "End of Term" because I'm used to "EOF" as "End of File"


EOT used to mean  End of Text. reference ASCII-7 notatioin


Re: [PHP] I am RTFM, but still stumbling on how to get built-in functions parsed in heredoc

2009-07-12 Thread Lenin
On Sun, Jul 12, 2009 at 6:49 AM, Daniel Brown  wrote:

>
>  > Sorry for TOP posting  This mailing list also don't force us to be
> good
> > :)
>
> FORCE, no.  ENCOURAGE, yes.  Particularly in long threads like
> this one.  Check the rules.  They're not just there to take up space
> on the paper.  ;-P

If I reply from my Nokia 6020's wap (as gmail app would hang now due to less
memory) and I include the receiver's text I cant choose to place it at top
or bottom. So, that way it would always be top posting.

Also from that wap device you will have REAL difficulty if mails are not TOP
posted. Because, then you'd have to scroll all the pages by clicking "next
message">> "next message" blah blah blah.

Of course it is better for reading if mails are written bottom posted or
inline answered.

Regards

Lenin


Re: [PHP] I am RTFM, but still stumbling on how to get built-in functions parsed in heredoc

2009-07-12 Thread Lenin
On Sun, Jul 12, 2009 at 2:08 PM, Eddie Drapkin  wrote:

> 2) Why does every thread lately degrade into chatter about top/bottom
> posting? *looks RIGHT AT D. Brown*
>

Ask him :D :P


Re: [PHP] HTTP headers and include()

2009-07-12 Thread Lenin
On Fri, Jul 10, 2009 at 12:49 PM, Michael A. Peters  wrote:

> James Colannino wrote:
>
>>

> White space can cause this - make sure your code has  and ?> at the very bottom, or the white space may trigger the web server to
> send a header and the white space as data before the cookie for
> session_start() is sent.



Well, at the end of the file dont put a ?> on your php files especially
which files you are gonna include at others. It would save you some
dreadfull buggy times. Its also practiced in the framework programming.


Re: [PHP] Pattern Matching

2009-07-15 Thread Lenin
On Wed, Jul 15, 2009 at 3:24 AM, VamVan wrote:

> contact/me - Contact US
>
> perfect match would be easy because I can exactly look for what I want.
>
> It becomes tricky when I introduce wild cards like contact/* for example. It
> could also be contact/me/*
>
> How would I match patterns for this kind of relative matches.? Any ideas
> anyone?


Use preg_match function to do that.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] need to get .html files parsed by PHP. -- WAS: why does PHP parse "*.html" files in one subdir/ but not in another?

2009-07-19 Thread Lenin
>
> On Sun, Jul 19, 2009 at 10:00 AM, Govinda  >wrote:
>
> >
> >  * You turn expose_php off in your php.ini
> >>
> >
> > what does this one ^^^ do exactly ?
>
 expose_php boolean

Decides whether PHP may expose the fact that it is installed on the server
(e.g. by adding its signature to the Web server header). It is no security
threat in any way, but it makes it possible to determine whether you use PHP
on your server or not.


Re: [PHP] Doubt regarding session_destroy() in PHP 5

2009-07-21 Thread Lenin
On Wed, Jul 22, 2009 at 3:24 AM, L.Guruprasad  wrote:

> Hi,
> Floyd Resler wrote:
>
>> Keep in mind that sessions are based on the domain.  I've run into
>> situations where someone will be working in several different sites that we
>> host.  Each site is accessed via http://domain/site.  Each site has it's
>> own database, users, etc.  However, because they all hang off the same
>> domain, they get one session.  That can really mess things up for the users
>> as they go from site to site.  I got around this by using MySQL-based
>> sessions.  It keeps things nice and separated.
>>
>> Take care,
>> Floyd
>>
>
> Will this be causing issues when http://1.a.b and http://2.a.b are the two
> PHP sites running on the same web server using virtualhosts?
>
As Floyd suggested keeping your sessions in the DB will give you better
session management and security as well.


Re: [PHP] Doubt regarding session_destroy() in PHP 5

2009-07-22 Thread Lenin
On Wed, Jul 22, 2009 at 2:46 PM, Ashley Sheridan
wrote:

> On Wed, 2009-07-22 at 03:45 +0700, Lenin wrote:
>


> > >
> > As Floyd suggested keeping your sessions in the DB will give you better
> > session management and security as well.
>
> Why would putting the session data in a database offer more security?
> I'm not meaning to try and poke holes in your idea, I genuinely don't
> know the answer!
>
> *Storing Session Data In A Database
*When you use on-disk files to store session data, those files must be
readable and writeable by PHP. On a multi-user hosting system, it is
possible for other users to access your session data through the PHP process
(but see the commentary on open_basedir in part 5 of this series. The best
way to secure your session data is to store it in a database.

source: http://www.acunetix.com/websitesecurity/php-security-6.htm

I have also studied Zend Certification Study guide by Davey Shafik and Ben
Ramsey who said similar things in the book.


Lenin

http://twitter.com/nine_L


Re: [PHP] Session Confusion.

2009-07-22 Thread Lenin
Dear Dare,
I would recommend you to get the free copy of *chapter 10: Security from
Zend Certification Study guide* by Ben Ramsey & Davey Shafik at
www.zceguide.com


shorter tips:
1. You can apply session_regenerate_id() to prevent *session riding*
or *session
fixation*
2. You can keep $_SESSION['user_agent']=$_SERVER['HTTP_USER_AGENT'] and
check for logged in user to prevent *session hijacking*
3. Cookie must be encrypted.
4. Filter All inputs and validate them
5. Escape all output
6. while filtering inputs use whitelist & blacklist method

Regards

Lenin

http://twitter.com/nine_L


Re: [PHP] Client Side PHP

2009-07-22 Thread Lenin
On Thu, Jul 23, 2009 at 1:06 AM, Bastien Koert  wrote:

> On Wed, Jul 22, 2009 at 1:56 PM, Javed Khan wrote:
> > I need help on my project I want to have my browser do compling of PHP
> scripts. Can someone please send me some concepts and if possible codes to
> do this. I know this aspect will pose great security threat to the server
> and client but I will still love any help with this.
> > Thanks,
> > J. K
> >
> >
> >
>
> PHP is a server side language. If you want to have php as an
> executable on the client, you could look at www.roadsend.com for the
> compiler. Otherwise, you could create a dll on windows for for
> execution in IE or as jim mentioned, write an extension for FF
>

Sorry to Bastien and posting to the list again:
@Javed Khan:
If you just want to have php functions in client side JS then visit
www.phpjs.org

Did you try any good php IDE? like NetBeans 7.0 or Zend Studio or did you
try Dreamweaver with site defined?


Re: [PHP] Re: newbie question - php parsing

2009-07-22 Thread Lenin
Ted Turner   -
"Sports is like a war without the killing."

2009/7/23 Shane Hill 

> 2009/7/22 João Cândido de Souza Neto 
>
> > You made a mistake in your code:
> >
> > 
> >
> > must be:
> >
> > 
>
>
> 


Short tag and not recommended as its deprecated now, would be void at PHP
6.0


Re: [PHP] MySQL Appeal from Monty

2009-12-13 Thread Lenin
You might also like this:
Come on Monty - Lukas Smith http://bit.ly/5lmwwD


Re: [PHP] Appalling Dreamweaver performance

2010-02-05 Thread Lenin
Try the NetBeans then


[PHP] Caution Fraud Alert about Antony Papamichail

2010-08-29 Thread Lenin
I really didn't want to publish this at this moment to this list. As this
list is going to die for this sort of mishaps. Though I should at first let
you all know that this didn't happen from this list at all. But informing
about a fraud will always help.

I have all the proofs and records of chat in skype with this client. And the
party seems to be making good money as well. This greek guy named
Antonis Papamichail (papa...@gmail.com) skype(a.papamichail) contacted me
from the www.getshopped.org WP consultants list. And asked me to solve his
problem of single page theme he had. Though I insisted to allow me 2days but
he at the last moment of agreement allowed me only 1 day. I have taken $100
as advance of 50% of total deal. Then I delivered him the full work. I had
to trust him because he seemed to have a renowed and well established
business. Who would have thought that when I submitted the whole work and he
thanked me, he'd just go away without any talks about the rest of the
payment? I have sent him paypal invoice and sent mail reminders. I found
that he probably has blocked me on Skype after he reported me that the
work/modification by me is working fine. I had no access to his resources as
he  mailed them and I sent that back after proper work.

Anyways I wont write more as, not everyone has the patience to hear it all.
The job I worked for is of an humanitarian guy
http://store.machinegunpreacher.org/index.php

Upto this I wrote on 22nd August but as there was a conversation over Skype
with Dan Milward (founder of instinct.co.nz the WP eCommerce Plugin owner),
he suggested me to not to say anything(as this is something negative) about
this guy in mailing lists, I kept myself off from the tendency to publish
this fraud act(and now I am suffering for not doing this). He is now taking
chances as I didn't take action against him at all. This guy seems to be
related with www.redshift.gr which is also www.psdgator.com


-

Latest update is he not only fled away from giving me the rest 50% money as
in $100. Now, he even claimed back the first $100 over to paypal. Which not
only forcing me put dispute against him but also I think every developer
should be warned about such a miscreant and liar. I have all the proof of
chat conversations, emails and the sourcecode I worked on.

I wonder if he can be such mischievous with a tiny amount of money as $200
and a work of only a single page theme design for WP eCommerce, then what he
is serving to the clients of his company? If I show you all the
conversations he had with me you'll see his attitude problem(acts just like
a teenager phreak) as well.

Thanks

Lenin
http://twitter.com/nine_L
http://zend.com/zce.php?c=ZEND009985