Re: [PHP] date problem

2011-04-01 Thread Dan Dan
I removed the day (1 before the March), but its still giving the same result, i.e. different days of month with and without the 'first'. Any further help ? print "first Tuesday :".date("d-m-Y H:i:s",strtotime('March 2011 Tuesday'))."\n"; print "first: ".date("d-m-Y H:i:s",strtotime('March 2011 fir

Re: [PHP] How to check if remote machines are running using PHP and Eclipse-Require Urgent Help

2011-04-01 Thread Stuart Dallas
On Friday, 1 April 2011 at 17:07, Santosh gunat wrote: Hi, > > I am in a big problem, > > My manager gave a task, > He want a PHP scrip which will check if the remote machines are Powered on > and are running. > He want this to be done using eclipse. > > He also want a log in a HTML or text file

Re: [PHP] How to check if remote machines are running using PHP and Eclipse-Require Urgent Help

2011-04-01 Thread Jim Giner
your boss is asking you to write something in PHP, but it sounds to me like you are not very knowledgable in it, or even in creating a text file. Why is he doing this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to check if remote machines are running using PHP and Eclipse-Require Urgent Help

2011-04-01 Thread Louis Huppenbauer
You could just periodically ping those remote machines with a system()-call, and then write the result to a file. 2011/4/1 Santosh gunat : > Hi, > > I am in a big problem, > > My manager gave a task, > He want a PHP scrip which will check if the remote machines are Powered on > and are running. >

Re: [PHP] newbie - function is undefined

2011-04-01 Thread Stuart Dallas
On Friday, 1 April 2011 at 22:43, Alex Nikitin wrote: JavaScript is a browser-side language, browsers have cache, cache sticks > around, meaning that you can tell the browser to cache the JS file and not > download it from the server (every time) if its being included on the > browser end (which js

Re: [PHP] newbie - function is undefined

2011-04-01 Thread Jim Giner
And the way to do this is? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] newbie - function is undefined

2011-04-01 Thread Alex Nikitin
JavaScript is a browser-side language, browsers have cache, cache sticks around, meaning that you can tell the browser to cache the JS file and not download it from the server (every time) if its being included on the browser end (which js is). All means faster page load times post initial load, an

Re: [PHP] newbie - function is undefined

2011-04-01 Thread Richard S. Crawford
On Fri, Apr 1, 2011 at 2:32 PM, Jim Giner wrote: > > function. Try something like: > ... > echo 'heaading contains: getText("h2")'; > ... > > I tried it - no better. > Did you still get the "function undefined" error? -- Sláinte, Richard S. Crawford (rich...@underpope.com) http://www.underpope.

Re: [PHP] Looking for Tool to read JSON format

2011-04-01 Thread Me
http://www.php.net/manual/en/book.json.php Sent via DROID on Verizon Wireless -Original message- From: Simon J Welsh To: Michelle Konzack Cc: PHP - General Sent: Fri, Apr 1, 2011 21:23:22 GMT+00:00 Subject: Re: [PHP] Looking for Tool to read JSON format On 2/04/2011, at 10:19 AM, Mic

Re: [PHP] newbie - function is undefined

2011-04-01 Thread Jim Giner
function. Try something like: ... echo 'heaading contains: getText("h2")'; ... I tried it - no better. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Looking for Tool to read JSON format

2011-04-01 Thread Simon J Welsh
On 2/04/2011, at 10:19 AM, Michelle Konzack wrote: > Hello *, > > curently I am coding on my new Intranet Interface, but some teleguided > servers return only JSON or YAML files. > > Can someone tell me, how to import JSON files in PHP 5/6? > > Thanks, Greetings and nice Day/Evening >Mich

[PHP] Looking for Tool to read JSON format

2011-04-01 Thread Michelle Konzack
Hello *, curently I am coding on my new Intranet Interface, but some teleguided servers return only JSON or YAML files. Can someone tell me, how to import JSON files in PHP 5/6? Thanks, Greetings and nice Day/Evening Michelle Konzack -- # Debian GNU/Linux Consultant #

Re: [PHP] newbie - function is undefined

2011-04-01 Thread Jim Giner
Thanks - now I see. the message means that it can't find a php function called getText. Doh! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] newbie - function is undefined

2011-04-01 Thread Micky Hulse
Maybe try: echo 'getText("p1")'; I think that should work. Good luck. Cheers, Micky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] date problem

2011-04-01 Thread Daniel Brown
On Fri, Apr 1, 2011 at 12:35, Dan Dan wrote: > Hi Folks, > > I am trying to get the day of month for a particular day of week (e.g. > Tuesday) for the first, second, third, fourth week in a month. The code i > have seems issues in March, but works e.g. in April: > > print date("d-m-Y H:i:s",strtot

[PHP] date problem

2011-04-01 Thread Dan Dan
Hi Folks, I am trying to get the day of month for a particular day of week (e.g. Tuesday) for the first, second, third, fourth week in a month. The code i have seems issues in March, but works e.g. in April: print date("d-m-Y H:i:s",strtotime('1 March 2011 Tuesday')); >> 01-03-2011 00:00:00 prin

[PHP] How to check if remote machines are running using PHP and Eclipse-Require Urgent Help

2011-04-01 Thread Santosh gunat
Hi, I am in a big problem, My manager gave a task, He want a PHP scrip which will check if the remote machines are Powered on and are running. He want this to be done using eclipse. He also want a log in a HTML or text file that which remote machine is running and which remote machine is down/po

[PHP] Re: [PHP-WIN] Re: [PHP] Which versions of Apache will PHP 5.3.6 work with??

2011-04-01 Thread Santosh gunat
Hi, I am in a big problem, My manager gave a task, He want a PHP scrip which will check if the remote machines are Powered on and are running. He want this to be done using eclipse. He also want a log in a HTML or text file that which remote machine is running and which remote machine is down/po

[PHP] Re: session variable problem

2011-04-01 Thread markb
On 3/25/2011 12:09 PM, markb wrote: Very rusty with PHP. We moved our web site to a new hosting service (godaddy). PHP changed from 4x to 5.2.17. I can no longer change $_SESSION variables after the first use. First call to form - start session create variables Second call - can read variables, c

Re: [PHP] Closing Session - Apache

2011-04-01 Thread Ethan Rosenberg
At 05:04 AM 4/1/2011, Richard Quadling wrote: On 31 March 2011 23:16, Ethan Rosenberg wrote: > >>> > Dan - > > I'm a newbie... > > 1] What should the line in the Apache configuration file be? Just to be > sure, the file is: /etc/apache2/apache2.conf, correct? -- Richard Quadling Twitter : EE

RE: [PHP] Closing Session

2011-04-01 Thread Ford, Mike
> -Original Message- > From: Ethan Rosenberg [mailto:eth...@earthlink.net] > Sent: 31 March 2011 21:40 > I can be working on more than one program simultaneously and have > one > tab open w/ program A and another w/ program B. The site in > reference is "http://localhost"; Do these

Re: [PHP] Closing Session

2011-04-01 Thread Richard Quadling
On 31 March 2011 23:16, Ethan Rosenberg wrote: > >>> >>>        127.0.0.1 localhost development subdomain.development >>> >>>    Don't worry about it being an FQDN.  Prior to checking with the >>> router or DNS servers, all modern systems check the hosts file.  Then >>> just add a reference to ea

Re: [PHP] Closing Session

2011-04-01 Thread Richard Quadling
On 31 March 2011 21:40, Ethan Rosenberg wrote: > At 02:12 PM 3/31/2011, Ashley Sheridan wrote: >> >> On Thu, 2011-03-31 at 13:54 -0400, Ethan Rosenberg wrote: >> >> > At 01:30 PM 3/31/2011, Daniel Brown wrote: >> > >On Thu, Mar 31, 2011 at 13:09, Ethan Rosenberg >> > > wrote: >> > > > Dear List -

Re: [PHP] neubie seeking answers

2011-04-01 Thread Richard Quadling
On 1 April 2011 03:31, Kirk Bailey wrote: > PERFECT SIMPLE SOLUTION. THANK YOU! > > On 3/31/2011 12:34 PM, Stuart Dallas wrote: >> >> On Thursday, 31 March 2011 at 17:24, Kirk Bailey wrote: >> I need to extract the name of the subdirectory a page lives in to >>> >>> use in the title for that page.

Re: [PHP] neubie seeking answers

2011-04-01 Thread Stuart Dallas
On Friday, 1 April 2011 at 03:31, Kirk Bailey wrote: PERFECT SIMPLE SOLUTION. THANK YOU! As Richard noted there is a constant called __DIR__ which is equivalent to dirname(__FILE__) so basename(__DIR__) will give you what you want and saves a few cycles. -Stuart -- Stuart Dallas 3ft9 Ltd http