Something else that should be said: You won't need to muck around with
firewall settings as well (that if your running a firewall on the same
box
On Sat, Mar 3, 2012 at 11:22 AM, Matijn Woudt wrote:
> On Fri, Mar 2, 2012 at 5:56 PM, Yuchen Wang wrote:
>> Hello all,
>>
>> I am trying to confi
On Fri, Mar 2, 2012 at 5:56 PM, Yuchen Wang wrote:
> Hello all,
>
> I am trying to config some new server
>
> All of my servers are using TCP Socket(127.0.0.1:9000) between nginx and
> php-fpm before
>
> But, I run ab(ab -n 2 -c50 http://192.168.74.130:81/) to test the
> performance of Unix So
On Fri, Mar 2, 2012 at 6:09 PM, Nibin V M wrote:
> Hmm..I am a php newbie ( just started learning it )...
>
> what my need is to display website from my server always for a
> non-registered domain.This is the code I use now to display the website
>
> $opts = array(
> 'http'=>array(
> 'method'
Hi, Jim
To avoid this kind of problem it would also help to provide an
autoloader-function as PHP then tries to load the class-definition by this
autoloader ;)
Using that you'd bind yourself to have a pretty good system for php-classes
and you'd avoid having problems like that.
I'd in fact have n
This how I would look at it, if it on the same box use socket, and yes
it is expected that socket is faster than TCP since (as far as I know)
you don't need to deal with the overhead of TCP.
Regards,
Daniel Fenn
On Sat, Mar 3, 2012 at 3:56 AM, Yuchen Wang wrote:
> Hello all,
>
> I am tryin
"Stuart Dallas" wrote in message
news:7eeba658-c7f6-4449-87bd-aac71b41e...@3ft9.com...
Make sure the class is declared before you call session_start.
*
You Da Man!!
I see now why it makes a difference. The session tries to bring back the
data but doesn't know how to handle the objects in
On 2 Mar 2012, at 21:09, Jim Giner wrote:
> ok - In examinig the objects in the Session after the data has been
> displayed and the user has hit triggered a re-entry into my script (just one
> script involved here), the objects in the session array now say
> "[__PHP_Incomplete_Class_Name" and "
ok - In examinig the objects in the Session after the data has been
displayed and the user has hit triggered a re-entry into my script (just one
script involved here), the objects in the session array now say
"[__PHP_Incomplete_Class_Name" and "__PHP_Incomplete_Class Object ". They
didn't say
Please quote the pertinent bit of the message you're replying to, it makes
using the list a halluvalot easier and improves SEO for the archives.
On 2 Mar 2012, at 20:55, Jim Giner wrote:
> Yes I ahve the class defined. The classes work in most cases - just this one
> place where I want to save
Yes I ahve the class defined. The classes work in most cases - just this
one place where I want to save the objects in a sess var for re-use fails
me.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 2 Mar 2012, at 20:07, Jim Giner wrote:
> My first foray into classes & objects.
>
> When retrieving a set of records, I'm using a class to build an object. At
> this time I save each record/object into a Session array by doing this:
>
> $rows = mysql_num_rows($qrslts);
> if ($rows > 0)
> f
My first foray into classes & objects.
When retrieving a set of records, I'm using a class to build an object. At
this time I save each record/object into a Session array by doing this:
$rows = mysql_num_rows($qrslts);
if ($rows > 0)
for ($i=1;$i<=$rows;$i++)
{
$row = mysql_fetch_ar
[snip]
> I'm not saying you should get rid of the recursive function calls, but
> rather, why not pull all your data in one SQL call, then use recursive
> functions on the returned array of data. It will save a little time by not
> hitting the DB on each function call too.
> [/snip]
I'll just
On 03/02/2012 08:27 AM, Jay Blanchard wrote:
[snip]
Doesn't this SQL query return everything that has company_id set to 3
which would it not contain all the data from the other queries combined
into one large data set?
[/snip]
I could do that, I can return one large dataset for all of the column
[snip] ...stuff ... [/snip]
A thought occurred to me - I need to call the function at the end of the
while loop and then again with different criteria after the while loop?
I'll have to test that later today.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.
Hmm..I am a php newbie ( just started learning it )...
what my need is to display website from my server always for a
non-registered domain.This is the code I use now to display the website
array(
'method'=>"GET",
'header'=>"Accept-language: en\r\n" .
"Cookie: foo=bar\r\n"
Hello all,
I am trying to config some new server
All of my servers are using TCP Socket(127.0.0.1:9000) between nginx and
php-fpm before
But, I run ab(ab -n 2 -c50 http://192.168.74.130:81/) to test the
performance of Unix Socket and TCP Socket,
the result is Unix is little better than TCP
On Fri, Mar 2, 2012 at 11:29, Nibin V M wrote:
> Thanks guys :)
>
> Now another problem...I use a test domain ( say blahblah.com ) for testing
> this, which isn't registered yet. So with the given code the index page is
> loading fine. But when I try to click on any links, it will redirect to the
Hello,
On Fri, Mar 2, 2012 at 8:07 AM, Jim Lucas wrote:
>> But on some of my servers, curl isn't enabled! Is there any equivalent
>> code
>> to achieve the same?
I've used a combination of output buffering [1], readfile() [2] and
caching (specific to the framework I was using).
Simply, you cou
Thanks guys :)
Now another problem...I use a test domain ( say blahblah.com ) for testing
this, which isn't registered yet. So with the given code the index page is
loading fine. But when I try to click on any links, it will redirect to the
original domain which isn't exists!
( I have actually po
[snip]
Doesn't this SQL query return everything that has company_id set to 3
which would it not contain all the data from the other queries combined
into one large data set?
[/snip]
I could do that, I can return one large dataset for all of the columns
shown in the tiers array. I have to remo
On Fri, Mar 2, 2012 at 7:43 AM, Jay Blanchard
wrote:
>> My usual approach to a problem like this to to includes a parent column in
>> the table
>>
>> ID (int pk)
>> Parent ( default null ) // no parent
>> Item
>> Itemtype
>> [etc]
>>
>> Parent will then hold either a null if a top level item, or
On 03/02/2012 06:26 AM, Nibin V M wrote:
Hello,
I am trying to display the website content through a php code ( my own
websites; doesn't cause copy right issues ).
I use curl to display the page via the following simple code.
http://mytest.com";);
curl_exec ($curl);
curl_close ($curl);
?>
But
On 03/01/2012 06:20 PM, Jay Blanchard wrote:
[snip]
Can you show the output of the function above?
[/snip]
Doesn't this SQL query return everything that has company_id set to 3
which would it not contain all the data from the other queries combined
into one large data set?
At this point,
http://www.php.net/manual/en/function.stream-context-create.php
On Fri, Mar 2, 2012 at 4:44 PM, Nibin V M wrote:
> Thanks Marc. But that need to add the DOM parser to the server. What I am
> looking for something like "iframe" in html and that doesn't require any
> additional PHP modules ( I do
Thanks Marc. But that need to add the DOM parser to the server. What I am
looking for something like "iframe" in html and that doesn't require any
additional PHP modules ( I do would like to avoid additions to the current
php; that is why I didn't compiled in curl )
On Fri, Mar 2, 2012 at 8:10 PM,
Thanks Marc. But that need to add the DOM parser to the server. What I am
looking for something like "iframe" in html and that doesn't require any
additional PHP modules ( I do would like to avoid additions to the current
php; that is why I didn't compiled in curl )
On Fri, Mar 2, 2012 at 7:58 PM,
Hello,
I am trying to display the website content through a php code ( my own
websites; doesn't cause copy right issues ).
I use curl to display the page via the following simple code.
http://mytest.com";);
curl_exec ($curl);
curl_close ($curl);
?>
But on some of my servers, curl isn't enabled!
> My usual approach to a problem like this to to includes a parent column in
> the table
>
> ID (int pk)
> Parent ( default null ) // no parent
> Item
> Itemtype
> [etc]
>
> Parent will then hold either a null if a top level item, or a structured path
> ( 1/10/24 ) that notes the parents of the
29 matches
Mail list logo