Re: [PHP] Website preview script

2012-02-29 Thread Nibin V M
HI all, But what my requirement here is, I need to display the website configured on our server. No matter where the domain actually points to :) Perhaps it can call a proxyhere is the actual intention of creating this script. Suppose X created a new website on serverA, but the domain actual

Re: [PHP] Website preview script

2012-02-29 Thread Simon Schick
Hi, Ashley The question is what this function does ;) I think it really takes a screenshot of the server - whatever is shown there right now. But how to get a browser running there in full-screen? I came around that post for a couple of weeks ago and thought it could be useful for someone here: h

Re: [PHP] Website preview script

2012-02-29 Thread Ashley Sheridan
On Wed, 2012-02-29 at 19:54 +0100, Simon Schick wrote: > Hi, Nibin > > I wonder what you'd call a ... > Do you mean a screenshot or the HTML-response from the server, specially > prepared (sounds like you want to create a proxy ;))? > > Bye > Simon > > 2012/2/29 Nibin V M > > > No..what I am

Re: [PHP] Website preview script

2012-02-29 Thread Simon Schick
Hi, Nibin I wonder what you'd call a ... Do you mean a screenshot or the HTML-response from the server, specially prepared (sounds like you want to create a proxy ;))? Bye Simon 2012/2/29 Nibin V M > No..what I am trying to write a "website preview" plugin attached to a > control panel.. :) >

Re: [PHP] Website preview script

2012-02-29 Thread Nibin V M
No..what I am trying to write a "website preview" plugin attached to a control panel.. :) since I am a newbie, I don't know how to achieve this without modifying hosts file ( I am basically a linux sys admin ) :) @Martin - I will check it. Since I am a beginner ( of course, just started to learn

Re: [PHP] Website preview script

2012-02-29 Thread Ashley Sheridan
On Wed, 2012-02-29 at 19:29 +0100, Matijn Woudt wrote: > On Wed, Feb 29, 2012 at 7:07 PM, Nibin V M wrote: > > Hello, > > > > I am very new to PHP coding. I am trying to achieve a task via PHP, > > regarding which I have been googling around for a few days and now come up > > with emtpy hands! >

Re: [PHP] Little Info...

2012-02-29 Thread Ashley Sheridan
On Wed, 2012-02-29 at 19:27 +0100, Matijn Woudt wrote: > On Wed, Feb 29, 2012 at 7:01 PM, Don Wieland wrote: > > This is a bit related to PHP but mostly mySQL (is there a similar list for > > this stuff? Let me know please) > > > > In my mySQL query editor, I am trying to return a value of 0 when

Re: [PHP] Website preview script

2012-02-29 Thread Matijn Woudt
On Wed, Feb 29, 2012 at 7:07 PM, Nibin V M wrote: > Hello, > > I am very new to PHP coding. I am trying to achieve a task via PHP, > regarding which I have been googling around for a few days and now come up > with emtpy hands! > > Ok, what I need to write is a "website preview script". That is I

Re: [PHP] Little Info...

2012-02-29 Thread Matijn Woudt
On Wed, Feb 29, 2012 at 7:01 PM, Don Wieland wrote: > This is a bit related to PHP but mostly mySQL (is there a similar list for > this stuff? Let me know please) > > In my mySQL query editor, I am trying to return a value of 0 when there is > no related rows from this query: > > (select if(count(

[PHP] Website preview script

2012-02-29 Thread Nibin V M
Hello, I am very new to PHP coding. I am trying to achieve a task via PHP, regarding which I have been googling around for a few days and now come up with emtpy hands! Ok, what I need to write is a "website preview script". That is I need to display a website hosted on serverA and pointing elsewh

Re: [PHP] Little Info...

2012-02-29 Thread Daniel Brown
On Wed, Feb 29, 2012 at 13:01, Don Wieland wrote: > This is a bit related to PHP but mostly mySQL (is there a similar list for > this stuff? Let me know please) php...@lists.php.net and p...@lists.mysql.com, specifically. -- Network Infrastructure Manager http://www.php.net/ -- PHP Gener

[PHP] Little Info...

2012-02-29 Thread Don Wieland
This is a bit related to PHP but mostly mySQL (is there a similar list for this stuff? Let me know please) In my mySQL query editor, I am trying to return a value of 0 when there is no related rows from this query: (select if(count(ip.payment_amount) IS NOT NULL, count(ip.payment_amount)

Re: [PHP] Custom PHP extension: Invalid library (maybe not a PHP library)

2012-02-29 Thread Sławomir Zborowski
Yes, you are right. But that was not the case. Actually, the problem was that I had two PHP packages installed. $PATH modification worked fine for me. Kind Regards, Sławomir W dniu 29 lutego 2012 14:51 użytkownik Matijn Woudt napisał: >> >> The code compiles well with these commands: >> $ ./conf

Re: [PHP] Custom PHP extension: Invalid library (maybe not a PHP library)

2012-02-29 Thread Matijn Woudt
> > The code compiles well with these commands: > $ ./configure --enable-hello2 > $ make -j5 > # make install > It's a long time since I built PHP extensions, but aren't you supposed to run phpize before configure? > But after I execute the command: > $ php5 -d"extension=hello2.so" -v > I get the

Re: [PHP] How do I enable more useful PHP error logging?

2012-02-29 Thread Stuart Dallas
On 29 Feb 2012, at 01:13, Daevid Vincent wrote: >> -Original Message- >> From: Stuart Dallas [mailto:stu...@3ft9.com] >> >> Seriously? Errors like this should not be getting anywhere near your >> production servers. This is especially true if you're really getting 30k >> hits/s. > > Don'

[PHP] Custom PHP extension - Invalid library (maybe not a PHP library)

2012-02-29 Thread Sławomir Zborowski
Hi all! I'm interested in creating a custom PHP extension. I have found several so called tutorials, but the code examples they contain do not work for me. Let's stick to this site: http://devzone.zend.com/303/extension-writing-part-i-introduction-to-php-and-zend/ Basing on it I have following so

[PHP] Custom PHP extension: Invalid library (maybe not a PHP library)

2012-02-29 Thread Sławomir Zborowski
Hi all! I'm interested in creating a custom PHP extension. I have found several so called tutorials, but the code examples they contain do not work for me. Let's stick to this site: http://devzone.zend.com/303/extension-writing-part-i-introduction-to-php-and-zend/ Basing on it I have following so

[PHP] Roller - A High Performance Router for PHP5.3 and PHP5.4

2012-02-29 Thread Lin Yo-An
Hi folks, we have working on a PHP router project for a while, now we have a final stable release for this. Roller - high performance router for PHP5.3+ https://github.com/c9s/Roller And we wrote an extension for dispatching routes, by using this extension, the dispatch performance is faster 160

Re: [PHP] How do I enable more useful PHP error logging?

2012-02-29 Thread Simon Schick
Hi, Daevid What you could do to have it quick is to install the plugin xdebug. Here you can (as described in the documentation linked here) enable to get some extra information for a E_* message from php. http://xdebug.org/docs/stack_trace I would not do that on a live-system where you have 30k