Re: [PHP] CLI utility
John Nichel wrote: Ray Cantwell wrote: Hello again, I was wondering if any of you knew of a good command line utility for php5 on linux? The box i write on has no X-windows. Ray. A command line utility to do what? Indeed. Context might even indicate he's looking for something to use to write his PHP scripts on a box with no GUI. In which case, the question is better avoided as it's a terribly effective magnet for holy war. Furthermore, I didn't choose the .sig below, it's randomly generated by fortune(6), but it really speaks to me, heh KDK PS. ed(1) is the standa nah. ;-) -- Uncle Ed's Rule of Thumb: Never use your thumb for a rule. You'll either hit it with a hammer or get a splinter in it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] CLI utility
Indeed i am looking for a tool to write my code with on a box that has no gui environment, However if a Jihad is going to ensue because of it, i shall withdraw my question, head bowed. RTC Kevin Kinsey wrote: John Nichel wrote: Ray Cantwell wrote: Hello again, I was wondering if any of you knew of a good command line utility for php5 on linux? The box i write on has no X-windows. Ray. A command line utility to do what? Indeed. Context might even indicate he's looking for something to use to write his PHP scripts on a box with no GUI. In which case, the question is better avoided as it's a terribly effective magnet for holy war. Furthermore, I didn't choose the .sig below, it's randomly generated by fortune(6), but it really speaks to me, heh KDK PS. ed(1) is the standa nah. ;-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] CLI utility
Ray Cantwell wrote: Indeed i am looking for a tool to write my code with on a box that has no gui environment, However if a Jihad is going to ensue because of it, i shall withdraw my question, head bowed. RTC context snipped in froward violation of common sense Well, kudos to you for discretion, which has been noted as 'the better part of valor', indeed. For our mutual edification, here are a few links relevant to the discussion as it pertains to PHP in particular, from a favorite forum of mine. The classic: http://www.phpbuilder.com/board/showthread.php?t=10209798 The imitators: http://www.phpbuilder.com/board/showthread.php?t=10280025 http://www.phpbuilder.com/board/showthread.php?t=10274550 (GPL version) http://www.phpbuilder.com/board/showthread.php?t=10255309 http://www.phpbuilder.com/board/showthread.php?t=10253439 http://www.phpbuilder.com/board/showthread.php?t=10298665 http://www.phpbuilder.com/board/showthread.php?t=10256359 Regarding WYSIWYG editors: http://www.phpbuilder.com/board/showthread.php?t=10264772 For the Mac user: http://www.phpbuilder.com/board/showthread.php?t=10297539 I'd also recommend plugging such terms as editor, text editor, PHP IDE and so on into a good search engine. Finally, try reading this: http://en.wikipedia.org/wiki/Editor_wars --- for some background on why this question is so, um, politically incorrect ? (ahem), and try Googling the phrase vi versus emacs to see that it's actually true. Meanwhile, I'm off to unwedge my tongue, which seems to have lodged itself firmly between my cheek and upper jaw Use what you want, they'll make more, Kevin Kinsey -- A wise man can see more from the bottom of a well than a fool can from a mountain top. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] CLI utility
Ray Cantwell wrote: Hello again, I was wondering if any of you knew of a good command line utility for php5 on linux? The box i write on has no X-windows. Ray. A command line utility to do what? -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] CLI utility
Hello again, I was wondering if any of you knew of a good command line utility for php5 on linux? The box i write on has no X-windows. Ray. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] CLI utility
On Tue, February 21, 2006 4:03 pm, Ray Cantwell wrote: I was wondering if any of you knew of a good command line utility for php5 on linux? The box i write on has no X-windows. E. Assuming I understand the question... lynx is a text-based browser which you can use to surf to pages and see what they output, kinda sorta. Not really useful for rich-media sites, but viable for mostly-text sites. There MIGHT be a curses-based web browser out there... I mean, in theory, there could be one, right? And it might even be able to render vector-based images, I suppose??? You can also run: php -l script.php to check for syntax errors before you attempt to surf to it, and catch the really bone-headed mistakes before you fire up lynx. None of the above will be real useful for MOST web-sites, but might fit your needs, and fall strictly within the question asked. Going farther afield from the original question... You might also want to use a laptop/desktop/whatever and an SSH client program such as putty to be able to surf with common browsers in one window while typing in another. Cuz you're really not going to be able to develop a modern web-site without some kind of graphical browser, for 99.99% of web-sites out there today. OTOH, if all you are doing is some kind of data-warehousing web-service type application, you could probably get away with: telnet localhost 80 | less GET / HTTP/1.0 Host: localhost [hit return TWICE] after that last localhost] I've done that, in a pinch. :-) Actually, if's VERY useful for figuring out your headers, for checking output of funky characters, and quite instructive for search engine optimization, because THAT is what Google sees. YMMV -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] CLI utility
moin, richard nice idea , but i'd rather think according to probability calculation chance for this to happen converge to 0, doesn't it... ;) There MIGHT be a curses-based web browser out there... I mean, in theory, there could be one, right? And it might even be able to render vector-based images, I suppose??? woh-woh-woh... what is this? never ever thought of such a method... where can i get more info about such stuff ? maybe apache-docs, but where? does it even work with other protocols/servers, maybe something like 'rtsp' or a db-server :) ? telnet localhost 80 | less GET / HTTP/1.0 Host: localhost Oh... errr... sorry... but, those abbrivations... can't get used to them... is there a glosary or such alike to find somewhere? YMMV cheers Björn Bartels -Development/IT-Services- -- dbusiness.de gmbh digital business printing gmbh Greifswalder Str. 152 D-10409 Berlin Fon: [0.30] 4.21.19.95 Fax: [0.30] 4.21.19.74 www.dbusiness.de [EMAIL PROTECTED] ftp://dbusiness.dyndns.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] CLI utility
Just a raw (manual) way to talk to a server. You just need to understand the way a HTTP request is sent to a server (http://w3c.org/). Or if you know how to comminicate with what ever protocol you use manually. The reason to really do it with db-server would be to test to see if is actually running, for example for mysql: telnet localhost 3306 5.0.15-standard�q9i$t=tR,|;P_l%lu']~^CConnection closed by foreign host. or smtp telnet localhost 25 220 bagend.shire ESMTP Exim 4.54 Tue, 21 Feb 2006 20:01:16 -0800 helo localhost 250 bagend.shire Hello localhost.shire [::1] ... or pop3 telnet localhost 110 Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused telnet: Unable to connect to remote host oh yeah, i dont run a pop server :) woh-woh-woh... what is this? never ever thought of such a method... where can i get more info about such stuff ? maybe apache-docs, but where? does it even work with other protocols/servers, maybe something like 'rtsp' or a db-server :) ? telnet localhost 80 | less GET / HTTP/1.0 Host: localhost I usually use google's 'define:YMMV' Oh... errr... sorry... but, those abbrivations... can't get used to them... is there a glosary or such alike to find somewhere? YMMV Curt. -- cat .signature: No such file or directory -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php