[PHP] DOMDocument, content of entity
Hi, does anybody know, how can I parse (by DOMDocument::loadHTMLFile) content of td tag, containing string in 3 rows (br)? I need it to split to 3 strings. Thanks. Fanda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] DOMDocument, content of entity
http://www.php.net/explode I know it, but when I get content of td by $cols-item(0)-nodeValue, it is without br tags. So I need to: a) get content with tags also or b) split content by DOM (if it is possible) and get 3 different parts -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] CLI in background on windows
Jason networkad...@emarket2.com píse v diskusním príspevku news:70.f5.09584.8465b...@pb1.pair.com... At 16:49 18/12/2008, you wrote: Hi, I am looking for some method, how to run php cli script on background in windows. It should be started by windows task manager. Run php-win.exe rather than php.exe, this will prevent the console window from opening whilst the task is running. Schedule as normal using the Task Scheduler. We have several such tasks on our 2K3 SP2 server running this way. Should you need to debug, change the php-win.exe back to php.exe to see the console output. Example commandlines: d:\php\php-win.exe d:\phpcli\phpinfo.php This will result in no output. d:\php\php.exe d:\phpcli\phpinfo.php Will result in a console window appearing and the phpinfo(); output printed, then the window will close. HTH J This looks it works. Great! That is what I was looking for. Thank you very much. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] CLI in background on windows
Hi, I am looking for some method, how to run php cli script on background in windows. It should be started by windows task manager. Do you have any idea? Thans, Fanda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] CLI in background on windows
Yes, it should be task scheduler. :-) My Windows is in czech, sorry. I was trying commands you suggested before, but black window always blinks on screen. My soulution is to create new windows user and run my tasks under this user. In such case tasks run is not visible... Thanks for your tips, Fanda Boyd, Todd M. tmbo...@ccis.edu píse v diskusním príspevku news:33bde0b2c17eef46acbe00537cf2a190037b7...@exchcluster.ccis.edu... -Original Message- From: Fanda [mailto:d...@sidak.net] Sent: Thursday, December 18, 2008 10:50 AM To: php-general@lists.php.net Subject: [PHP] CLI in background on windows Hi, I am looking for some method, how to run php cli script on background in windows. It should be started by windows task manager. Do you have any idea? I assume by task manager you mean task scheduler? The Task Manager is more of a process listing, like ps or top in Linux. In the Windows command-line interface (cmd.exe), type start /? to give you an idea of what your options are. As far as in the background goes, Vista's task scheduler can hide the programs it executes from being viewed by the user. Pre-vista, I think you can just minimize it (unless it's run on a different account on the same machine other than the one logged in)... start /min /b php myscript.php The /b option MIGHT prevent pre-Vista machines from showing the user that a task is being executed. If it doesn't, then at least /min will keep the window minimized rather than slapping them in the face with it. HTH, // Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] character encoding
Hi, can I use some php funciton to convert strings to charset iso-8859-2? Do exists some function to detect encoding of string? Thanks from Czech Republic... Fanda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]