php-general Digest 1 Apr 2011 08:28:26 -0000 Issue 7253

2011-04-01 Thread php-general-digest-help
php-general Digest 1 Apr 2011 08:28:26 - Issue 7253 Topics (messages 312157 through 312186): If Statements Array and Notice Undefined Index 312157 by: Nicholas Cooper 312158 by: Stuart Dallas 312161 by: Nicholas Cooper 312184 by: Al Re: session_start() may

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

Re: [PHP] neubie seeking answers

2011-04-01 Thread Richard Quadling
On 1 April 2011 03:31, Kirk Bailey kbai...@howlermonkey.net 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

Re: [PHP] Closing Session

2011-04-01 Thread Richard Quadling
On 31 March 2011 21:40, Ethan Rosenberg eth...@earthlink.net 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 eth...@earthlink.net

Re: [PHP] Closing Session

2011-04-01 Thread Richard Quadling
On 31 March 2011 23:16, Ethan Rosenberg eth...@earthlink.net wrote: snip        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

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 programs

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 eth...@earthlink.net wrote: snip 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

[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,

[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

[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

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] 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

[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] 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 Michelle

Re: [PHP] newbie - function is undefined

2011-04-01 Thread Jim Giner
function. Try something like: ... echo 'heaading contains: scriptgetText(h2)/script'; ... 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 Me
http://www.php.net/manual/en/book.json.php Sent via DROID on Verizon Wireless -Original message- From: Simon J Welsh si...@welsh.co.nz To: Michelle Konzack linux4miche...@tamay-dogan.net Cc: PHP - General php-general@lists.php.net Sent: Fri, Apr 1, 2011 21:23:22 GMT+00:00 Subject: Re:

Re: [PHP] newbie - function is undefined

2011-04-01 Thread Richard S. Crawford
On Fri, Apr 1, 2011 at 2:32 PM, Jim Giner jim.gi...@albanyhandball.comwrote: function. Try something like: ... echo 'heaading contains: scriptgetText(h2)/script'; ... I tried it - no better. Did you still get the function undefined error? -- Sláinte, Richard S. Crawford

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,

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 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] 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 santoshgu...@gmail.com: 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

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 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 that

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 first