RE: [PHP] PHP GURU NEEDED

2009-09-15 Thread Jerome Botbol
To start with I am not a recruiter just looking for talented PHP
developers to join my team.

Secondly I am trying to understand why you (Daevid) think that it is
acceptable to try and tarnish the name of my company when you don't even
know us or the work that we produce. One wonders why, if you are so
disinterested in working with us, you bothered to reply at all. As
you've already made up your mind that Cyber-Duck is not a great company
to work for this seems to be an awfully large waste of your time. 

I'm not going to spend hours going into the finer details of our
business strategy with someone whose sole purpose in answering my
initial email is to defame both myself and the company I work for.
Cyber-Duck has an exemplary track record, backed up by a host of digital
media awards and satisfied clients, none of whom have ever been put off
by the name of the company or the highly proficient flash animations on
our website. 

Thanks for the advice on buzzwords- obviously all non net-savvy
potential clients want to spend hours trying to digest page after page
of what, to them, are incomprehensible pseudonyms and abbreviations. 

Jealousy is an unattractive quality Daevid. 

-Original Message-
From: Daevid Vincent [mailto:dae...@daevid.com] 
Sent: 14 September 2009 22:53
To: php-general@lists.php.net
Cc: Jerome Botbol
Subject: RE: [PHP] PHP GURU NEEDED

I'm not trolling, but I am really curious who and why someone thought
"Cyber-Duck" was a good name (and theme) to use?!? Seriously? 

Personally, I wouldn't work for a company with such a silly name. Is
there
some hidden meaning or is this a personal joke between the founders? I
really am curious. 

http://www.cyber-duck.co.uk is even silly with animated duck-people. 

And I think you need to use more buzzwords and acronyms here "We produce
brands and award winning user centered websites with superior web 2.0
technologies. We conduct online marketing to drive traffic and generate
conversions." and "Cyber-Duck's ethos is that every interaction should
have
a meaningful purpose. For our clients this means that we focus on
generating
tangible results that are meaningful for businesses. For website users
that
means that we focus on generating a positive experience that will entice
them to buy your product, sign up to your newsletter, comment on your
blog
or distribute your video to their contacts." Perhaps this page will
help:
http://www.robietherobot.com/buzzword.htm

Also, why do you have (http://www.cyber-duck.co.uk/#duck%281%29) :
1 director
3 managers
3 designers
1 programmer <-- ONE?!? Sounds like a lot of chiefs and not
enough
indians.

OMFG! They all use duck caricatures. If the name wasn't a deterrent,
this
thought alone would be. I will concede that the History duck -> manduck
is
clever. :-)

*sigh*

> -Original Message-
> From: Jerome Botbol [mailto:jer...@cyber-duck.co.uk] 
> Sent: Monday, September 14, 2009 10:38 AM
> To: php-general@lists.php.net
> Subject: [PHP] PHP GURU NEEDED
> 
> Hi All,
> 
> Cyber-Duck are looking for a highly motivated PHP / CSS Guru 
> to join our blah blah blah...


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



[PHP] anyone interested in PHP? Call for moderator

2009-09-15 Thread Patrick
It seems that list list has degenerated into a kindergarten brawl.

Is there a moderator here? Someone to silence all this name calling and
of topic non-sense

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



Re: [PHP] anyone interested in PHP? Call for moderator

2009-09-15 Thread Ashley Sheridan
On Tue, 2009-09-15 at 08:22 -0400, Patrick wrote:
> It seems that list list has degenerated into a kindergarten brawl.
> 
> Is there a moderator here? Someone to silence all this name calling and
> of topic non-sense
> 
I'll give you kindergarten you Yank! ;)

I think the list is meant to be self moderating, although my best guess
as to how that happens is to shout people down... On the plus side, it
does give way to some amusing emails!

Thanks,
Ash
http://www.ashleysheridan.co.uk




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



Re: [PHP] anyone interested in PHP? Call for moderator

2009-09-15 Thread Yeti
It is good to hear that they teach PHP in kindergarden these days.

//Yeti

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



Re: [PHP] anyone interested in PHP? Call for moderator

2009-09-15 Thread Richard Heyes
Hi,

> It is good to hear that they teach PHP in kindergarden these days.

I've heard it's soon to be part of the national curriculum here in the UK.

-- 
Richard Heyes
HTML5 graphing: RGraph - www.rgraph.net (updated 5th September)
Lots of PHP and Javascript code - http://www.phpguru.org

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



Re: [PHP] anyone interested in PHP? Call for moderator

2009-09-15 Thread Ashley Sheridan
On Tue, 2009-09-15 at 13:45 +0100, Richard Heyes wrote:
> Hi,
> 
> > It is good to hear that they teach PHP in kindergarden these days.
> 
> I've heard it's soon to be part of the national curriculum here in the UK.
> 
> -- 
> Richard Heyes
> HTML5 graphing: RGraph - www.rgraph.net (updated 5th September)
> Lots of PHP and Javascript code - http://www.phpguru.org
> 
I hope not, I'm not having some toddler doing me out of a job!

Thanks,
Ash
http://www.ashleysheridan.co.uk




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



Re: [PHP] APC - Upload progress problem. apc

2009-09-15 Thread Nathan Nobbe
On Tue, Sep 15, 2009 at 12:05 AM, Phred White wrote:

> Folks:
> Thanks for all your help and suggestions.
>
> Miracle of miracles I am now getting a response,so I can start some level
> of debugging.
>
> I am not sure exactly what has been going on. I NEVER got a response, then
> I did - when I tried uploading some different files. It seems that larger
> files always give a negative response for me. Now I am thinking that it has
> been a timing issue. My ajax stuff doesn't repeat yet, so there is currently
> only one request. It seems that if the file is a little too large, the first
> response is always false, that may be the case for very small files too. I
> finally just picked a file that was the right size.
>
> Since I could never verify that APC was responding, it didn't occur to me
> to go ahead and iron out the ajax stuff.
>
> Anyway now I can move forward.
>
> Thanks all for all your suggestions, sorry this ends up being such a stupid
> conclusion.
>

good work pushing through it phred!  it was a pain in the ass when i
implemented it a few weeks back as well, so lets just assume thats how it is
for everyone ;)

-nathan


RE: [PHP] PHP GURU NEEDED

2009-09-15 Thread Jay Blanchard
[snip]
...
[/snip]

Gentlemen...take this offline.

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



Re: [PHP] php.ini in cgi vs php.ini in cli

2009-09-15 Thread Andres Gonzalez

Lars,

Thank you for your response. The function that raised this error is from 
my own
extension module. I was not aware of phpinfo() and your suggestion to 
run it helped
me resolve this issue. Turns out my CGI version is NOT using cgi/php.ini 
but is using

apache2/php.ini instead.

Thanks again for your help--you deserve a raise. :-)

-Andres





Lars Torben Wilson wrote:

On Mon, 14 Sep 2009 18:21:11 -0400
Andres Gonzalez  wrote:

  
In the php configurations directories /etc/php5, there are 2 
subdirectories, one for

cgi and one for cli.  There is a php.ini file in each of these
directories.

What would cause a difference of behavior in these 2 environments
with the php.ini
exactly the same in each directory??

I have a command line script that consequently uses the cli version. 
This script works

just fine in that it can access API function in modules that are
loaded via cli/php.ini

However, when executing in the cgi environment, I get a "call to 
undefined function" error

even though my 2 php.ini files are exactly the same.

Any idea what is causing this?

thanks,

-Andres




Hi Andres,

When asking this kind of question, it would be very helpful if you
would tell us *which* function raised this error.

My first thought is that you tried to call a function which was
compiled in to the CLI version but not the CGI. What does phpinfo()
show when run under each?


Torben

  


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



Re: [PHP] php.ini in cgi vs php.ini in cli

2009-09-15 Thread Lars Torben Wilson
On Tue, 15 Sep 2009 10:11:56 -0400
Andres Gonzalez  wrote:

> Lars,
> 
> Thank you for your response. The function that raised this error is
> from my own
> extension module. I was not aware of phpinfo() and your suggestion to 
> run it helped
> me resolve this issue. Turns out my CGI version is NOT using
> cgi/php.ini but is using
> apache2/php.ini instead.
> 
> Thanks again for your help--you deserve a raise. :-)
> 
> -Andres

Hi Andres,

Glad it worked! 


Regards,

Torben

> Lars Torben Wilson wrote:
> > On Mon, 14 Sep 2009 18:21:11 -0400
> > Andres Gonzalez  wrote:
> >
> >   
> >> In the php configurations directories /etc/php5, there are 2 
> >> subdirectories, one for
> >> cgi and one for cli.  There is a php.ini file in each of these
> >> directories.
> >>
> >> What would cause a difference of behavior in these 2 environments
> >> with the php.ini
> >> exactly the same in each directory??
> >>
> >> I have a command line script that consequently uses the cli
> >> version. This script works
> >> just fine in that it can access API function in modules that are
> >> loaded via cli/php.ini
> >>
> >> However, when executing in the cgi environment, I get a "call to 
> >> undefined function" error
> >> even though my 2 php.ini files are exactly the same.
> >>
> >> Any idea what is causing this?
> >>
> >> thanks,
> >>
> >> -Andres
> >>
> >> 
> >
> > Hi Andres,
> >
> > When asking this kind of question, it would be very helpful if you
> > would tell us *which* function raised this error.
> >
> > My first thought is that you tried to call a function which was
> > compiled in to the CLI version but not the CGI. What does phpinfo()
> > show when run under each?
> >
> >
> > Torben
> >
> >   


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



[PHP] moving to quad core

2009-09-15 Thread Andres Gonzalez
I have an application developed that uses alot of PHP. Currently, it is 
running on a Ubuntu 8.04 , single core CPU host.  We are moving to a 
quad core host for this application.


Is there anything special that I need to do to configure PHP to run on a 
quad core host? I noticed that my current single core system has PHP 
configured with Thread Safety disabled (as reported from phpinfo()).  
Does that need to be enabled to run in a multi-core environment?


Any other suggestions for configuring PHP for multi-core use?

Thanks,

-Andres

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



Re: [PHP] moving to quad core

2009-09-15 Thread Robert Cummings

Andres Gonzalez wrote:
I have an application developed that uses alot of PHP. Currently, it is 
running on a Ubuntu 8.04 , single core CPU host.  We are moving to a 
quad core host for this application.


Is there anything special that I need to do to configure PHP to run on a 
quad core host? I noticed that my current single core system has PHP 
configured with Thread Safety disabled (as reported from phpinfo()).  
Does that need to be enabled to run in a multi-core environment?


Any other suggestions for configuring PHP for multi-core use?


You don't need to change anything.

Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP

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



Re: [PHP] moving to quad core

2009-09-15 Thread Tom Worster
On 9/15/09 10:54 AM, "Andres Gonzalez"  wrote:

> I have an application developed that uses alot of PHP. Currently, it is
> running on a Ubuntu 8.04 , single core CPU host.  We are moving to a
> quad core host for this application.
> 
> Is there anything special that I need to do to configure PHP to run on a
> quad core host? I noticed that my current single core system has PHP
> configured with Thread Safety disabled (as reported from phpinfo()).
> Does that need to be enabled to run in a multi-core environment?
> 
> Any other suggestions for configuring PHP for multi-core use?

interesting question.

i never paid any attention to the possibility of needing to make config
changes when moving from single to multi-core computers. i'm using apxs2 and
just assumed that there's no threading within each httpd process. in other
words, i assumed it's up to the os' scheduler to make something of the
hardware.

i'm curious to hear more on the topic.



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



[PHP] Problem with date

2009-09-15 Thread Korgan

Hi,

 I have a problem with date function.

$gen_pos = mktime(0,0,1,10,25,2009);
$d1 = date("Y-m-d", $gen_pos);  // 2009-10-25
$d2 = date("Y-m-d", $gen_pos + (1*24*60*60)); // 2009-10-25
$d3 = date("Y-m-d", $gen_pos + (2*24*60*60)); // 2009-10-26
$d4 = date("Y-m-d", $gen_pos + (3*24*60*60)); // 2009-10-27
$d5 = date("Y-m-d", $gen_pos + (4*24*60*60));
$d6 = date("Y-m-d", $gen_pos + (5*24*60*60));
$d7 = date("Y-m-d", $gen_pos + (6*24*60*60));
$d8 = date("Y-m-d", $gen_pos + (7*24*60*60));

line 2 and line 3 return same date,its wrong ... it should be 2009-10-25 
, 2009-10-26 ? :)


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



Re: [PHP] moving to quad core

2009-09-15 Thread Rahul S. Johari



On 9/15/09 10:54 AM, "Andres Gonzalez"  wrote:



I have an application developed that uses alot of PHP. Currently, it  
is

running on a Ubuntu 8.04 , single core CPU host.  We are moving to a
quad core host for this application.

Is there anything special that I need to do to configure PHP to run  
on a

quad core host? I noticed that my current single core system has PHP
configured with Thread Safety disabled (as reported from phpinfo()).
Does that need to be enabled to run in a multi-core environment?

Any other suggestions for configuring PHP for multi-core use?



Very interesting question indeed;

I moved from a single-core to dual-core some time back, and recently  
moved from dual-core to quad-core. Never paid attention to the hyper- 
threading difference in the httpd process. Would definitely be  
interesting in seeing more information on this topic.


---
Rahul Sitaram Johari
Founder, Internet Architects Group, Inc.

[Email] sleepwal...@rahulsjohari.com
[Web]   http://www.rahulsjohari.com





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



Re: [PHP] Problem with date

2009-09-15 Thread Jonathan Tapicer
Adding the number of seconds in a day could fall in the same day due
to daylight saving time, a more reliable way of adding one day (or a
given number of days) is this:

$tomorrow  = mktime(0, 0, 0, date("m")  , date("d")+1, date("Y"));

Then use date() with $tomorrow to format it.

(Taken from example #3 here:
http://www.php.net/manual/en/function.date.php, see the Note below the
example in that page).

Hope that helps.

Regards,
Jonathan


2009/9/15 Korgan :
> Hi,
>
>  I have a problem with date function.
>
> $gen_pos = mktime(0,0,1,10,25,2009);
> $d1 = date("Y-m-d", $gen_pos);                // 2009-10-25
> $d2 = date("Y-m-d", $gen_pos + (1*24*60*60)); // 2009-10-25
> $d3 = date("Y-m-d", $gen_pos + (2*24*60*60)); // 2009-10-26
> $d4 = date("Y-m-d", $gen_pos + (3*24*60*60)); // 2009-10-27
> $d5 = date("Y-m-d", $gen_pos + (4*24*60*60));
> $d6 = date("Y-m-d", $gen_pos + (5*24*60*60));
> $d7 = date("Y-m-d", $gen_pos + (6*24*60*60));
> $d8 = date("Y-m-d", $gen_pos + (7*24*60*60));
>
> line 2 and line 3 return same date,its wrong ... it should be 2009-10-25 ,
> 2009-10-26 ? :)
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

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



RE: [PHP] Problem with date

2009-09-15 Thread Mayer, Jonathan
strtotime would be a neater way of solving the problem...

ie (untested):

$n = 0;
while ($n <= 9)
{
$date = "d".$n;
$$date = date("Y-m-d", strtotime("+ $n days")
$n++;
}

If you are just enquiring about the maths though, I'm not sure!

-Original Message-
From: Korgan [mailto:josber...@seznam.cz] 
Sent: 15 September 2009 16:32
To: php-general@lists.php.net
Subject: [PHP] Problem with date

Hi,

  I have a problem with date function.

$gen_pos = mktime(0,0,1,10,25,2009);
$d1 = date("Y-m-d", $gen_pos);// 2009-10-25
$d2 = date("Y-m-d", $gen_pos + (1*24*60*60)); // 2009-10-25
$d3 = date("Y-m-d", $gen_pos + (2*24*60*60)); // 2009-10-26
$d4 = date("Y-m-d", $gen_pos + (3*24*60*60)); // 2009-10-27
$d5 = date("Y-m-d", $gen_pos + (4*24*60*60));
$d6 = date("Y-m-d", $gen_pos + (5*24*60*60));
$d7 = date("Y-m-d", $gen_pos + (6*24*60*60));
$d8 = date("Y-m-d", $gen_pos + (7*24*60*60));

line 2 and line 3 return same date,its wrong ... it should be 2009-10-25

, 2009-10-26 ? :)

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




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



Re: [PHP] moving to quad core

2009-09-15 Thread Eddie Drapkin
On Tue, Sep 15, 2009 at 11:35 AM, Rahul S. Johari
 wrote:
>
>> On 9/15/09 10:54 AM, "Andres Gonzalez"  wrote:
>>
>>>
>> I have an application developed that uses alot of PHP. Currently, it is
>> running on a Ubuntu 8.04 , single core CPU host.  We are moving to a
>> quad core host for this application.
>>
>> Is there anything special that I need to do to configure PHP to run on a
>> quad core host? I noticed that my current single core system has PHP
>> configured with Thread Safety disabled (as reported from phpinfo()).
>> Does that need to be enabled to run in a multi-core environment?
>>
>> Any other suggestions for configuring PHP for multi-core use?
>
>
> Very interesting question indeed;
>
> I moved from a single-core to dual-core some time back, and recently moved
> from dual-core to quad-core. Never paid attention to the hyper-threading
> difference in the httpd process. Would definitely be interesting in seeing
> more information on this topic.
>
> ---
> Rahul Sitaram Johari
> Founder, Internet Architects Group, Inc.
>
> [Email] sleepwal...@rahulsjohari.com
> [Web]   http://www.rahulsjohari.com
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

In regards to thread-safe compilations of PHP, if you don't absolutely
know you need it, you don't need it.

Utilizing a multiple CPU server setup with PHP depends on how you're
using PHP.  If you're using FastCGI with a process pool, the number of
PHP processes is going to determine how many CPUs PHP uses, obviously
enough.  On a quad core machine, 2 FastCGI children in the pool are
only ever going to use 2 cores, while 4 processes has a higher
likelihood of utilizing the entire set of CPUs.  However, setting your
child process number too low can seriously impede your performance, so
there's some experimentation necessary to determine what's best for
your particular scenario, based on usage, server power, script
profiling, etc. but a good number to start with is (1.5 * # of logical
processors).

All of this necessarily changes if you're using Apache, of course.
Under the classic pre-fork model, Apache forks a new process to handle
a request every time the server is hit.  So, to utilize four cores,
Apache would have to serve four pages simultaneously, forking four
child processes.  Depending on your traffic and page generation time,
the amount of child Apache processes can pretty easily head up into
the hundreds, unless of course you have a lower MaxChildren set (which
I personally would recommend against because of Apache's huge glaring
vulnerability to SlowLoris).  Under the worker model, Apache forks up
to X processes, and each process handles a configurable amount of
requests before dying, so like FastCGI, you'd have to configure the
number of children to be run, although it's recommended (I hear, I'm
not too very familiar with Apache) to use a much higher number than
the amount of cores, several dozen perhaps.  Like I said, I'm not too
familiar with Apache, so I'd do some research and experimentation with
the number of child workers to give Apache.

I hope this helps :)

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



[PHP] php/mysql Query Question.

2009-09-15 Thread admin
Before most of you go on a rampage of how to please read below...

As most of you already know when using MySQL from the shell you can write your 
queries in html format in an out file.

Example:   shell>mysql -uyourmom -plovesme --html
This now will return all results in an html format from all queries.

Now I could “tee” this to a file and save the results returned if I so choose 
to save the result of the display .

Let’s say I want to be lazy and write a php MySQL query to do the same so that 
any result I queried for would return the html results in a table without 
actually writing the table tags in the results.

Is there a mysql_connect or select_db or mysql_query tag option to do that 
since mysql can display it from the shell?

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



Re: [PHP] php/mysql Query Question.

2009-09-15 Thread Robert Cummings



ad...@buskirkgraphics.com wrote:

Before most of you go on a rampage of how to please read below...

As most of you already know when using MySQL from the shell you can write your 
queries in html format in an out file.

Example:   shell>mysql -uyourmom -plovesme --html
This now will return all results in an html format from all queries.

Now I could “tee” this to a file and save the results returned if I so choose 
to save the result of the display .

Let’s say I want to be lazy and write a php MySQL query to do the same so that 
any result I queried for would return the html results in a table without 
actually writing the table tags in the results.

Is there a mysql_connect or select_db or mysql_query tag option to do that 
since mysql can display it from the shell?


echo "Select * from my_table" | mysql --html -ufoo -pfee database_name

However, this allows for your database password to be visible in the 
process list for a brief moment of time. You might be better served by 
finer grained process control where you can check the output and provide 
input as needed. Or a simple expect script might suffice.


Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP

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



[PHP] best function to use ~ file_get_contents or ?

2009-09-15 Thread CRM
Hi All,
Not sure of the best approach, need your feedback. I have 4 images on a
website. These are used in navigation. When I load a reference webpage on my
local machine the local page calls 4 images from an external website, each
image will be on a different domain.

What I want to see is if the navigation images/buttons can be loaded/displayed
in my browser. If they can, then I will display the images on my local page.
If the images cannot be loaded, then this indicates some connection issue and
the result will be some text like 'Site Offline'. So just by glancing at my
local machine reference page I can tell if one or more of the different sites
is or is not available.

So what is the best function to use?

if ( @file_get_contents( DOMAIN_PATH . "images/navigation/nav_globalissa.png" 
)):

or ???

Please also cc i...@globalissa.com

Thanks for any helpful suggestions.

Sincerely,

Rob
Global I.S. S.A.
Software Powers the Net
Email: crm at globalissa dot com

* * * The Forge of Globalissa ~ PHP Foobar Machine * * *
http://globalissa.com/forge/


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



Re: [PHP] anyone interested in PHP? Call for moderator

2009-09-15 Thread Clancy
On Tue, 15 Sep 2009 13:47:06 +0100, a...@ashleysheridan.co.uk (Ashley Sheridan) 
wrote:

>On Tue, 2009-09-15 at 13:45 +0100, Richard Heyes wrote:
>> Hi,
>> 
>> > It is good to hear that they teach PHP in kindergarden these days.
>> 
>> I've heard it's soon to be part of the national curriculum here in the UK.
>> 
>> -- 
>> Richard Heyes
>> HTML5 graphing: RGraph - www.rgraph.net (updated 5th September)
>> Lots of PHP and Javascript code - http://www.phpguru.org
>> 
>I hope not, I'm not having some toddler doing me out of a job!

It's been known for years that the essential accessory for any piece of modern 
electronics
equipment is a 10-year-old boy!


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



Re: [PHP] moving to quad core

2009-09-15 Thread Clancy
On Tue, 15 Sep 2009 11:55:51 -0400, oorza...@gmail.com (Eddie Drapkin) wrote:

>On Tue, Sep 15, 2009 at 11:35 AM, Rahul S. Johari
> wrote:
>>

>the amount of cores, several dozen perhaps.  Like I said, I'm not too
>familiar with Apache, so I'd do some research and experimentation with
>the number of child workers to give Apache.

First we have people worrying about losing their jobs to kindergarten children, 
now we
have people recommending giving Apache child workers. Call out the RSPCC!


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



Re: [PHP] php/mysql Query Question.

2009-09-15 Thread Robert Cummings

ad...@buskirkgraphics.com wrote:

Would you mind giving me an example of this that i can stick right into a blank 
php file and run.

I get what you are saying but i cant seem to make that even echo out the data.  
php 5.2 mysql 5.1.3 Apache 2.2




Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP


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



Re: [PHP] best function to use ~ file_get_contents or ?

2009-09-15 Thread Tommy Pham
--- On Tue, 9/15/09, CRM  wrote:

> From: CRM 
> Subject: [PHP] best function to use ~ file_get_contents or ?
> To: php-general@lists.php.net
> Cc: i...@globalissa.com
> Date: Tuesday, September 15, 2009, 5:36 PM
> Hi All,
> Not sure of the best approach, need your feedback. I have 4
> images on a
> website. These are used in navigation. When I load a
> reference webpage on my
> local machine the local page calls 4 images from an
> external website, each
> image will be on a different domain.
> 
> What I want to see is if the navigation images/buttons can
> be loaded/displayed
> in my browser. If they can, then I will display the images
> on my local page.
> If the images cannot be loaded, then this indicates some
> connection issue and
> the result will be some text like 'Site Offline'. So just
> by glancing at my
> local machine reference page I can tell if one or more of
> the different sites
> is or is not available.
> 
> So what is the best function to use?
> 
> if ( @file_get_contents( DOMAIN_PATH .
> "images/navigation/nav_globalissa.png" )):
> 
> or ???
> 
> Please also cc i...@globalissa.com
> 
> Thanks for any helpful suggestions.
> 
> Sincerely,
> 
> Rob
> Global I.S. S.A.
> Software Powers the Net
> Email: crm at globalissa dot com
> 
> * * * The Forge of Globalissa ~ PHP Foobar Machine * * *
> http://globalissa.com/forge/
> 
> 

Shouldn't it be:

if ( @file_get_contents( DOMAIN_PATH . 
 "images/navigation/nav_globalissa.png", FILE_BINARY))




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



Re: [PHP] best function to use ~ file_get_contents or ?

2009-09-15 Thread Gaurav Kumar
There is no best function as such. Everything depends upon your requirement.

You can also use fopen() to get the contents of the remote file and do some
error handling that if you get any content then display image else a message
etc..

Gaurav Kumar
(Team Lead- open source)
oswebstudio.com



On Wed, Sep 16, 2009 at 4:06 AM, CRM  wrote:

> Hi All,
> Not sure of the best approach, need your feedback. I have 4 images on a
> website. These are used in navigation. When I load a reference webpage on
> my
> local machine the local page calls 4 images from an external website, each
> image will be on a different domain.
>
> What I want to see is if the navigation images/buttons can be
> loaded/displayed
> in my browser. If they can, then I will display the images on my local
> page.
> If the images cannot be loaded, then this indicates some connection issue
> and
> the result will be some text like 'Site Offline'. So just by glancing at my
> local machine reference page I can tell if one or more of the different
> sites
> is or is not available.
>
> So what is the best function to use?
>
> if ( @file_get_contents( DOMAIN_PATH .
> "images/navigation/nav_globalissa.png" )):
>
> or ???
>
> Please also cc i...@globalissa.com
>
> Thanks for any helpful suggestions.
>
> Sincerely,
>
> Rob
> Global I.S. S.A.
> Software Powers the Net
> Email: crm at globalissa dot com
>
> * * * The Forge of Globalissa ~ PHP Foobar Machine * * *
> http://globalissa.com/forge/
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>