Re: [PHP] Editing in a text area field

2009-01-10 Thread Ross McKay
licated for the editor (and perhaps modified a little too), but that's no drama once the site design has settled down. -- Ross McKay, Toronto, NSW Australia "It doesn't matter if the Rock wants to go get diamond rings or not!" - The Rock -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Editing in a text area field

2009-01-10 Thread Ross McKay
y browser-based (mostly JavaScript) rich text editors come in to their own. -- Ross McKay, Toronto, NSW Australia "Nobody ever rioted for austerity" - George Monbiot -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Editing in a text area field

2009-01-10 Thread Ross McKay
aviour of HTML elements that cannot be defined by css; such trivial things as href, name, class, id, tabindex, maxlength, value, etc. I know, I'm nit picking a bit... -- Ross McKay, Toronto, NSW Australia "Words can only hurt if you try to read them. Don't play their game" - Zoola

Re: [PHP] Editing in a text area field

2009-01-10 Thread Ross McKay
/ http://developer.yahoo.com/yui/ http://geniisoft.com/showcase.nsf/WebEditors >I see forum web sites that allow the user to enter [b]bold text[/b] for >example. > >I would like to do this. > >Anyone have a function to convert this kind of thing to HTML? http://au2.php.net/manual/en/book.b

[PHP] Re: Unique Object Instance ID..?

2009-01-10 Thread Ross McKay
, 16, 36); Returns stuff like this: 9xm1k6oodk8o00s4wc.50nplu -- Ross McKay, Toronto, NSW Australia "Let the laddie play wi the knife - he'll learn" - The Wee Book of Calvin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Editing in a text area field

2009-01-10 Thread Ross McKay
d >selection. Likewise with TinyMCE (and I suspect many of the others). Given the abundance of good rich text editors, I don't see any good reason for making clients enter HTML tags directly - it only confuses them. -- Ross McKay, Toronto, NSW Australia "The lawn could stand another mo

Re: [PHP] Unique Object Instance ID..?

2009-01-10 Thread Ross McKay
ct hashes for two separate and distinct instances. -- Ross McKay, Toronto, NSW Australia "Let the laddie play wi the knife - he'll learn" - The Wee Book of Calvin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Editing in a text area field

2009-01-11 Thread Ross McKay
t as more like: good, cheap, fast, pick ONE. >Thanks for the tip on TinyMCE -- I'll look into that. As Eric mentions, FCKEditor can do this stuff too, and I imagine yui and others do as well. You just need to configure them to fit your requirements. -- Ross McKay, Toronto, NSW Australia "Before enlightenment: chop wood, carry water; After enlightenment: chop wood, carry water" - Wu Li -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Editing in a text area field

2009-01-11 Thread Ross McKay
rademark symbols, etc. Isn't that causing a problem, rather than dealing with one? If the problem is one of validation, then maybe you should investigate character sets and the full abilities of htmlentities. -- Ross McKay, Toronto, NSW Australia "The chief cause of problems is solutio

[PHP] Re: 64bit vs. 32bit

2009-01-19 Thread Ross McKay
t solves the Year 2038 problem, so any date calculations you have in PHP will work past 2038. This includes forecasting 30+ years into the future, which will break in PHP on 32-bit unless you avoid time_t based functions like time() and stick with DateTime objects. -- Ross McKay, Toronto, NSW Aus

[PHP] Re: developers life

2009-01-19 Thread Ross McKay
On Mon, 19 Jan 2009 21:28:05 +, Nathan Rixham wrote: >well just for the hell of it; and because I'm feeling worn.. > >anybody else find the following true when you're a developer? >[...] Yes. -- Ross McKay, Toronto, NSW Australia "Towers get higher, Jobs get c

Re: [PHP] Re: 64bit vs. 32bit

2009-01-20 Thread Ross McKay
owever... why? If you really need to run DOS programs, there's always DOSBOX, or even FreeDOS running in QEMU or similar, and the graphics support will be better than whatever Wine would have allowed. -- Ross McKay, Toronto, NSW Australia "Nobody ever rioted for austerity" - George M

Re: [PHP] Re: 64bit vs. 32bit

2009-01-20 Thread Ross McKay
hey're specifically coded to make use of PAE... :) -- Ross McKay, Toronto, NSW Australia "My old man told me one time, you never get wise, you only get older" - Dandy Warhols -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: How to use SVN + PHP

2009-01-20 Thread Ross McKay
ugh Subversion's history of changes. Once you've tested your changes and are happy that everything is working, and committed them all to the trunk, copy the trunk to a tag and put that on the server. -- Ross McKay, Toronto, NSW Australia "Let the laddie play wi the knife - he'll l

[PHP] Re: mysql_real_escape_string("asdasddas") ??? wtf

2009-02-20 Thread Ross McKay
On Sat, 21 Feb 2009 19:19:44 +1300, t...@ihostnz.com wrote: >Can anyone here tell me why mysql_real_escape_string("asdasddas") returns an >empty string? Have you opened a connection to a MySQL database? It won't work without an open connection. -- Ross McKay, Toronto, N

Re: [PHP] Re: mysql_real_escape_string("asdasddas") ??? wtf

2009-02-21 Thread Ross McKay
); // might need to replace a literal \ too. > >If you can, please enlighten me. And also: NUL, LF, CR, " and ^Z Or you could just call mysql_real_escape_string and know that you haven't coded your str_replace with some hole in it :) -- Ross McKay, Toronto, NSW Australia &

Re: [PHP] Question about template systems

2009-03-03 Thread Ross McKay
missing something, but I don't see the point of special templating systems that require you to know yet another notation set, i.e. abstraction away from PHP as Stuart puts it. -- Ross McKay, Toronto NSW Australia "Click me, drag me, treat me like an object" -- PHP General

[PHP] Re: PHP to create an ERD (sic) on the fly on a web page based on current DB records?

2009-03-13 Thread Ross McKay
On Thu, 12 Mar 2009 18:47:40 -0600, scubak1w1 wrote: >Seeking some advice on how to create an ERD (sic) graphically on the page on >the fly when the page is 'called'... >[...] Maybe GraphViz? http://graphviz.org/ -- Ross McKay, Toronto, NSW Australia "Let the laddie p

[PHP] Re: 2 forms, same page, 1st is file upload - works in IE, 'dies' in non-IE browsers

2009-03-13 Thread Ross McKay
eem to do anything - i.e., >the onsubmit is not being triggered, etc, etc How do you "turn on" your submit button? (for that matter, how do you "turn it off"?) Have you checked Firefox's log to see if you have JavaScript errors? -- Ross McKay, Toronto, NSW Australia &qu

[PHP] Re: 2 forms, same page, 1st is file upload - works in IE, 'dies' in non-IE browsers

2009-03-19 Thread Ross McKay
here all along, but disable it (attribute: disabled="disabled") until you have your array key (script: submitElement.disabled = false). No chance of bollocksing up the DOM code then :) -- Ross McKay, Toronto, NSW Australia "Let the laddie play wi the knife - he'll learn" - T

[PHP] Re: Encrypting email

2009-04-23 Thread Ross McKay
al/en/function.openssl-pkcs7-encrypt.php Apparently, PHPMailer supports it too so check that out. -- Ross McKay, Toronto, NSW Australia "Let the laddie play wi the knife - he'll learn" - The Wee Book of Calvin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to enable ttf support in php 5.2.9

2009-05-08 Thread Ross McKay
e come from? They weren't there when I added that >text. What did you do?" If that's using TinyMCE, enable the Paste From Word button (or the Paste as Plain Text button) and disable the regular Paste button :) -- Ross McKay, Toronto, NSW Australia "Pay no attention to tha

[PHP] Re: Problems with HTTPS and maybe an .htaccess???

2009-05-08 Thread Ross McKay
to ask for another page at the new URL. The %{SERVER_NAME} bit tells Apache to insert the server name, whether it be your sitename.com or dev.sitename.com -- Ross McKay, Toronto, NSW Australia "Let the laddie play wi the knife - he'll learn" - The Wee Book of Calvin -- PHP Genera

Re: [PHP] how to enable ttf support in php 5.2.9

2009-05-13 Thread Ross McKay
is getting the users to cooperate by giving them a button for Word and a button for Text and explaining to them how it *helps them* to use those buttons properly. But that only works while they remember, and they never remember when they're in a hurry (which is always). -- Ross McKay, Tor

[PHP] Re: Best way to test for form submission?

2009-08-31 Thread Ross McKay
On Sat, 29 Aug 2009 04:47:09 -0400, "O. Lavell" wrote: >There are more methods, I always use: > >if($_SERVER["REQUEST_METHOD"] == "POST") { > >do_something(); > >} +1. Although, this doesn't catch PUT requests, but I have yet to enc

[PHP] Re: uniqid() and repetition of numbers generated

2009-11-12 Thread Ross McKay
nd can't rely on auto-increment integers aligning across peers) -- Ross McKay, Toronto, NSW Australia "Let the laddie play wi the knife - he'll learn" - The Wee Book of Calvin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Replacing accented characters?

2010-01-27 Thread Ross McKay
, $text); But ensure you have set your locale properly. http://au.php.net/manual/en/function.iconv.php -- Ross McKay, Toronto NSW Australia "All we are saying Is give peas a chance" - SeedSavers -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Replacing accented characters?

2010-01-27 Thread Ross McKay
tion to go >with it. [...] True. But for the purposes of "cleaning up" URLs (not I18N friendly, but practical on Anglo-centric websites) it has its uses. -- Ross McKay, Toronto, NSW Australia "Faced with a choice between the survival of the planet and a new set of matching tableware, mo

Re: [PHP] PHP Manual problems

2010-02-10 Thread Ross McKay
it happening soon at most government / business organisations that deal in Microsoft Office documents until OpenOffice.org can better support the huge range of spottily formatted Office documents out there. That, or everyone moves to Google Docs, or regulations enforce exchange of government documents in

[PHP] Re: Security/Development Question

2010-04-28 Thread Ross McKay
're storing the SQL queries so that they can show them later on, e.g. as text in a forum post, I think you have a major WTF on your hands! Please submit here! http://thedailywtf.com/Contact.aspx :) -- Ross McKay, Toronto, NSW Australia "The chief cause of problems is solutio

[PHP] Re: Malware Question

2010-04-28 Thread Ross McKay
ith, not just people who send them email invitations to exchange links. -- Ross McKay, Toronto, NSW Australia "I really hope they find a nice place, I hope they find it somewhere, I HOPE THEY GO AWAY" - Everclear -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php photo galery

2010-05-18 Thread Ross McKay
he ability to upload photos via a browser, I would also like thumb >nails, and the ability to have an alt text attribute with the photo >and a longer description of the picture, for accessibility reasons. >If anyone has anything similar to this please let me know. http://www.plogg

[PHP] Re: PHP: a fractal of bad design

2012-04-12 Thread Ross McKay
ople complain about and the ones nobody uses." -- Bjarne Stroustrup -- Ross McKay, Toronto, NSW Australia "The chief cause of problems is solutions" -Eric Sevareid -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Email Antispam

2012-04-17 Thread Ross McKay
on the page encoded with base64, and use client-side script to decode it. i.e. the encoded data is replaced with the decoded data, once on page load. Hook up the decode function on the browser-side to your page load scripts. No jQuery required :) https://gist.github.com/2409958 -- Ross

[PHP] Re: Email Antispam

2012-04-17 Thread Ross McKay
structured data, many are embedded in page content (I have a WordPress shortcode that encodes the email address for those). -- Ross McKay, Toronto, NSW Australia "Faced with a choice between the survival of the planet and a new set of matching tableware, most people would choose the tablew

[PHP] Re: Email Antispam

2012-04-18 Thread Ross McKay
r consultants) available to their clients. And they want the addresses to be shielded against harvesting for spam. As I said, I don't like doing it this way, but the client gets what they want after the options have been explained to them. -- Ross McKay, Toronto, NSW Australia "Nob

[PHP] Re: cyberweaponry

2012-05-31 Thread Ross McKay
was WordPress that must have been hacked (because the malware found was in scripts hidden in the various WP folders). They got awful busy after reading that link though. -- Ross McKay, Toronto, NSW Australia "A just machine to make big decisions Programmed by fellows with compassion and vision

[PHP] Re: PHP from ASP using AJAX?

2012-09-18 Thread Ross McKay
e same. http://snippets.webaware.com.au/snippets/integrating-classic-asp-with-wordpress-using-ajax/ ( http://goo.gl/rHlgF ) -- Ross McKay, Toronto, NSW Australia "Let the laddie play wi the knife - he'll learn" - The Wee Book of Calvin -- PHP General Mailing List (http://www.php.net/) To unsubscrib

[PHP] Re: Cross-platform IDE

2011-01-27 Thread Ross McKay
PHP, JS, HTML, XML and CSS. It's small and fast, so if you don't need all the bells and whistles of an Eclipse, Geany might suit you better. Worth a try at least. -- Ross McKay, Toronto, NSW Australia "It doesn't matter if the Rock wants to go get diamond rings or not!" -

[PHP] Re: Resizing an image

2011-03-30 Thread Ross McKay
om, regarding performance of imagecopyresampled vs imagecopyresized: http://au2.php.net/manual/en/function.imagecopyresampled.php#77679 http://au2.php.net/manual/en/function.imagecopyresampled.php#72606 Also check out ImageMagick, if your host provides it (or you can install it): http://au2.php.net/man

RE: [PHP] refreshing pages in the cache

2011-04-27 Thread Ross Hansen
You need to still put in the standard PHP tags as you would normally and it is just another line of code. e.g > To: php-general@lists.php.net > From: jim.gi...@albanyhandball.com > Date: Wed, 27 Apr 2011 21:33:16 -0400 > Subject: Re: [PHP] refreshing pages in the cache > > ok - I'm lost. Wh

RE: [PHP] refreshing pages in the cache

2011-04-27 Thread Ross Hansen
e: Wed, 27 Apr 2011 21:52:57 -0400 > Subject: Re: [PHP] refreshing pages in the cache > > So - it's not an html attribute - it's a PHP command that precedes ALL my > html headers? > > "Ross Hansen" wroteYou need to still put in the > standard PHP tags as

RE: [PHP] refreshing pages in the cache

2011-04-27 Thread Ross Hansen
You don't want to echo it as it isn't something that is going to HTML. it is native PHP. the correct command should be See how this goes. > To: php-general@lists.php.net > From: jim.gi...@albanyhandball.com > Date: Wed, 27 Apr 2011 22:12:23 -0400 > Subject: Re: [PHP] refreshing pages in the

RE: [PHP] refreshing pages in the cache

2011-04-28 Thread Ross Hansen
Your welcome, I am glad that it works and is doing what your after. > To: php-general@lists.php.net > From: jim.gi...@albanyhandball.com > Date: Thu, 28 Apr 2011 09:19:58 -0400 > Subject: Re: [PHP] refreshing pages in the cache > > Yes - that seems to be t

RE: [PHP] Upload size limit stays at 8MB

2011-05-05 Thread Ross Hansen
Hey, There is also an option for post_max_size = xM x being the number specified. This should be located in your php.ini file somewhere. check to make sure that this is set high enough else it could also be causing the issue. > To: php-general@lists.php.net > Date: Thu, 5 May 2011 21:51:26 -0

RE: [PHP] Upload size limit stays at 8MB

2011-05-06 Thread Ross Hansen
SHA1 > > On 05/05/2011 11:52 PM, Ross Hansen wrote: > > > > There is also an option for post_max_size = xM > > x being the number specified. > > This should be located in your php.ini file somewhere. check to make sure > > that this is set high enough else

[PHP] html formatting in mysql post

2011-05-06 Thread Ross Hansen
Hey Guys, I am using a form to post information to a MySQL table which is then echo(ing) back out to a web page. it will sort of be like facebook where you can post messages and stuff on peoples walls. The only issue is at the moment i can get the formatting to stay. When i echo the table out

RE: [PHP] html formatting in mysql post

2011-05-07 Thread Ross Hansen
ction?   your help is appreciated. > From: danbr...@php.net > Date: Fri, 6 May 2011 23:04:44 -0400 > To: hansen.r...@live.com.au > CC: php-general@lists.php.net > Subject: Re: [PHP] html formatting in mysql post > > On Fri, May 6, 2011 at

RE: [PHP] html formatting in mysql post

2011-05-07 Thread Ross Hansen
t; > On Sat, 2011-05-07 at 16:01 +0800, Ross Hansen wrote: > > > thanks for your responses, > > > > so i understand that this code is using an array, however i havn't really > > used arrays as i am a novice php coder. > > Should this code be used on t

RE: [PHP] Session question

2011-05-17 Thread Ross Hansen
Unless your adding more code to your included file it isn't worth having it as an include as there is more typing/text involved. For management purposes also it would also look ugly if you were just having one file purely for session_start(); > From: p...@computer.org > Date: Tue, 17 May 2011

Re: [PHP] Code should be selv-maintaining!

2011-08-31 Thread Ross McKay
t-curly-brace-placement-matters-an-example/ http://robertnyman.com/2008/10/16/beware-of-javascript-semicolon-insertion/ Sure, instances of the problem are minimal, but if you're in the habit of Dangerous Open Brace Placement then you just might fall afoul of it. Besides, my editor (Geany) folds code m

Re: [PHP] Code should be selv-maintaining!

2011-08-31 Thread Ross McKay
them, or by silly language defects like JavaScript's semicolon insertion). -- Ross McKay, Toronto, NSW Australia "Hold very tight please! Ting! Ting!" - Flanders and Swann -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: While on the topic of PHP Web Site Stats - SharePoint...

2011-09-19 Thread Ross McKay
f all websites, 0.3% of all CMS; i.e. wy behind the PHP-based CMS out there -- e.g. WordPress on 14.9% websites and 54.4% CMS) -- Ross McKay, Toronto NSW Australia "All we are saying Is give peas a chance" - SeedSavers -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] Any free online tests to test my PHP knowledge?

2011-09-22 Thread Ross Hansen
There is the w3sxools website that has a php quiz. Http://www.w3schools.com/php/default.asp This site has many other languages that offer quizes also - Reply message - From: "Mike Hansen" To: Subject: [PHP] Any free online tests to test my PHP knowledge? Date: Fri, Sep 23, 2011 3:51 am

Re: [PHP] Sequential access of XML nodes.

2011-09-26 Thread Ross McKay
$text = ''; break; case XMLReader::TEXT: case XMLReader::CDATA: // record value (or part value) of text or cdata node $text .= $xml->value; break; default: break; } } return $records; -- Ross McKay, Toronto, NSW Australia "Tuesday is Soylent Green day" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sequential access of XML nodes.

2011-09-28 Thread Ross McKay
Richard Quadling wrote: >It seems that the SimpleXMLIterator is perfect for me. >[...] Interesting, I forget that's there... I must have a play with it sometime. Thanks for resurfacing it :) -- Ross McKay, Toronto, NSW Australia "Let the laddie play wi the knife - he'll lea

[PHP] Re: Preferred Syntax

2011-12-14 Thread Ross McKay
ntain single quotes. So whilst either above option is fine for the specific context, I prefer HEREDOC when there's attributes like href. But what is "preferred" is rather dependent on the "preferrer". -- Ross McKay, Toronto NSW Australia "All we are saying Is giv

Re: [PHP] Re: Preferred Syntax

2011-12-15 Thread Ross McKay
<<$msg {$this->html($name)} HTML; } } $x = new X(); $x->output('silly "rockstar" name like <&>'); >[...] >This is why I like heredoc syntax over pretty much everything else. Concur! -- Ross McKay, Toronto, NSW Australia "Pay no atte

Re: [PHP] Re: Preferred Syntax

2011-12-17 Thread Ross McKay
l with this issue using their views >or template views. You don't have to use a framework if you do not >want to, that's perfectly fine. If it works, it works. But in the >end, it the separation of logic and html is essential to code >maintenance. Applause! :) -- Ross McKay,

[PHP] Re: http_referer. what's wrong with that?

2012-01-11 Thread Ross McKay
ike that? You only get an HTTP_REFERER when you link to a page from another page. If you go directly to the page, e.g. by typing / pasting the URL into the location bar, or linking from an email, then there is no HTTP_REFERER. -- Ross McKay, Toronto, NSW Australia "Let the laddie play wi the

[PHP] Re: sql injection protection

2012-01-17 Thread Ross McKay
re the data type is string, and an accepted >char length is big enough to create some havoc in the db, so be it, I >reject that input. Which may be fine in your application, but why stop legitimate data for no good reason? >My question even after all these are there still ways to break in

[PHP] Graphing

2012-03-18 Thread Ross Hansen
s to graph changing data from a mysql db. I also understand php might not be the best option due to the server load. Just want to get peoples thoughts and suggestions. Was so looking at jquery. Looking forward your responses. Regards Ross

[PHP] Re: CMS identification

2012-03-18 Thread Ross McKay
t, open the login page in a web browser and view source. It's likely that there will be a meta tag in the head that tells you what the CMS is. -- Ross McKay, Toronto, NSW Australia "Let the laddie play wi the knife - he'll learn" - The Wee Book of Calvin -- PHP General

RE: [PHP] Graphing

2012-03-20 Thread Ross Hansen
create them my self but that is more just because i enjoy trying to learn. Regards Ross > CC: php-general@lists.php.net > From: phps...@gmail.com > Date: Sun, 18 Mar 2012 11:27:23 -0400 > To: hansen.r...@live.com.au > Subject: Re: [PHP] Graphing > > > > On 2012-03-

[PHP] Re: To ?> or not to ?>

2012-04-03 Thread Ross McKay
ether or not you have a closing ?>, with or without additional white space. -- Ross McKay, Toronto, NSW Australia "The chief cause of problems is solutions" -Eric Sevareid -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] A more ecconomical way with control statements??

2005-03-07 Thread Ross Hulford
ent way to do this. The inputs are text boxes taking values from 0-9. Thanks Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] using javascript within php

2005-03-07 Thread Ross Hulford
I want to set focus on a text area with javascript if the entry by the user is not what I want. This is what i have so far. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] call anchor from php

2005-03-07 Thread Ross Hulford
Is it possible to call a named anchor from within a php script?? I need my page to go to the point in the page where the form is and bypass all the rubbish. Thanks y'all -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] using lists in php and sending

2005-03-08 Thread Ross Hulford
I have a list in php where the user can select 1 or more (rooms book in a b&b). The following code is part of the form. Single Standard Single EnSuite Double EnSuite Twin En

[PHP] incrementing a number from a text file

2005-03-09 Thread Ross Hulford
I want to read a number from an external (txt) file and increment it.then save the number back on the text file. I know this is possible but want a simple amd economical way to do this. Thanks, Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] PHP hangs when exec'ing SSH

2005-03-09 Thread Ross Becker
nd create more dependancies for my code when this should be doable with what is already on the system. Efficiency is not a concern in this case, either. Cheers Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP hangs when exec'ing SSH

2005-03-10 Thread Ross Becker
an demonstrate that it all works when PHP runs in CLI mode. --Ross Jamie Alessio wrote: I'm attempting to execute some things on remote servers using ssh, using a strictly limited account created for this express purpose. I set up passwordless key authentication from the user the web serve

[PHP] Re: PHP hangs when exec'ing SSH

2005-03-10 Thread Ross Becker
ly execute this to find out if they experience results which are the same or different. --Ross Jamie Alessio wrote: There is no output to stderr or stdout from the script being executed. All I care about are the side-effects of running this remote program. If something fails, a numeric error-code

Re: [PHP] Re: PHP hangs when exec'ing SSH

2005-03-10 Thread Ross Becker
der in order that I would get the same public/private key authentication under SSH as I do when the script runs as a web page. It is not involved in what the php code runs. Take a look at the bug report to see a completely reduced test-case which reproduces the problem I'm seeing. --Ross R

Re: [PHP] Re: PHP hangs when exec'ing SSH

2005-03-10 Thread Ross Becker
umeric return code) from SSH which I care about- there shouldnt be anything coming back via stdout or stderr. If there is, I'm happy to discard it. This SHOULD be a dead-nuts-simple case of exec the command and wait for it to return. --Ross Richard Lynch wrote: I'm really not s

[PHP] showing an image with php

2005-03-11 Thread Ross Hulford
I want to asssign an image to a variable and show it if certain conditions are met. E.g If condition is met { $myimage= retrieve image (images/myimage.jpg) echo $myimage } Have not used image creation before with php just dipping my toe in the water. Thanks R. -- PHP General Mailing Li

Re: [PHP] incrementing a number from a text file

2005-03-11 Thread Ross Hulford
2005 10:14 PM To: Ross Hulford Cc: php-general@lists.php.net Subject: Re: [PHP] incrementing a number from a text file >> I want to read a number from an external (txt) file and increment it.then >> save the number back on the text file. >> I know this is possible but want a si

Re: [PHP] Re: PHP hangs when exec'ing SSH

2005-03-11 Thread Ross Becker
tting the tty after returning from a system or whatever. --Ross Rasmus Lerdorf wrote: Ross Becker wrote: There's no output (besides the numeric return code) from SSH which I care about- there shouldnt be anything coming back via stdout or stderr. If there is, I'm happy to discard it

Re: [PHP] Re: PHP hangs when exec'ing SSH

2005-03-12 Thread Ross Becker
out some hope that this was my system configuration, and not something fundamental in how PHP or worse- SSH acted. Ross Rasmus Lerdorf wrote: Ross Becker wrote: I think you're probably right. My gut is telling me that this has to do with tty funkiness. I tried the batchmode option, but it did

[PHP] passing variables between pages without sessions

2005-03-13 Thread Ross Hulford
I am creating a form but instead of having a long form I want to break it down into a few stages but need to pass the variables bewteen the pages. I have done this before using sessions but would like to know if there is an alternative way to do this? R. -- PHP General Mailing List (http://w

[PHP] eregi expression for checking a domain

2005-03-13 Thread Ross Hulford
Does anyone know a working eregi expression for determining a domain is valid? don't need the http:// just looking for www.thedomain.com cheers, R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] password Boxes

2005-03-14 Thread Ross Hulford
Does anyone know how to change the style of password boxes so when the characters are entered an asterisk appears rather that a smal circle? Or is this just determed by the OS and uncangable with CSS or Javascript of PHP? R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Regex

2005-03-20 Thread Colin Ross
I'm trying to compress down a php-powered javascript file. In the file i have php run a bunch of loops and foreaches to build huge nested arrays for use in the javascript. Since this will be an often loaded page with ALOT of backend processing, I've decided to compress the file as much as I can and

Re: [PHP] How can I destroy parameters by page

2005-03-25 Thread Colin Ross
on a side note, for devs, i don't really like how you can override the values of the $_GET (or $_POST) array, seems like it could be a security threat. Also, with that ability, you can never tell (especially if you are making a mod, etc for a larger system) if what your dealling with is the ACTUAL

Re: [PHP] Pagination

2005-03-25 Thread Colin Ross
watch out for SQL injection attacks on that one though: what if the 'user' went to "page.php?start=1;SELECT * from `mysql`; On Thu, 24 Mar 2005 22:55:01 +0100, pavel <[EMAIL PROTECTED]> wrote: > > I am wanting to paginate records from a MySQL Database. > > I want there to be 5 records on a page,

Re: [PHP] How to sort that array?

2005-03-29 Thread Colin Ross
What I did in a situation like this (much more complicated though, with nested select boxes in a form) was use a database, and then created a php-created javascript file. The javascript file was buffered, and then cached (saved to a file) with a timestamp... So, I can limit the amount of times the

Re: [PHP] Session data disappearing?

2005-03-29 Thread Colin Ross
In edit_schedule.phps: if (isset($_POST['add_available'])){ $year = $_POST['year']; $year = $year['NULL']; $month = $_POST['month']; $month = $month['NULL']; $day = $_POST['day']; $day = $day['NULL']; $time = $_POS

Re: [PHP] PHP CODE TO DISPLAY ISP

2005-03-29 Thread Colin Ross
and least we forgot about all the users coming from behind a proxy farm with a different ip for each request.. AOL C On Mon, 28 Mar 2005 12:28:32 -0700, Leif Gregory <[EMAIL PROTECTED]> wrote: > Hello jenny, > > Monday, March 28, 2005, 9:36:07 AM, you wrote: > j> i am making a website in php

Re: [PHP] php + mysql: binary arrays

2005-03-29 Thread Colin Ross
oops.. how bout if i send it to the group too... > http://us4.php.net/manual/en/function.preg-split.php > > example for you: > > $groups = '0101000100101010001110010100111'; > $groups_array = preg_split('//', $str, -1, PREG_SPLIT_NO_EMPTY); > print_r($groups_array); > $groups_as_string = implode

Re: [PHP] NEWBIE: Can't Get My Loop Going. . .

2005-03-29 Thread Colin Ross
i was thinkin in more general term too, what about: $data =& readfile($file); /// etc, etc, etc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP 5 Status

2005-04-01 Thread Colin Ross
Is PHP 5 ready for production environments? Is it concidered stable, or is it just a matter of going a while with no new bugs discovered to get to stable.. Colin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP 5 Status

2005-04-02 Thread Colin Ross
ok, thanks for your input. now to make a roll-out plan for upgrading... Colin On Apr 1, 2005 1:17 PM, Jordi Canals <[EMAIL PROTECTED]> wrote: > > On Apr 1, 2005 8:30 PM, Colin Ross <[EMAIL PROTECTED]> wrote: > > > Is PHP 5 ready for production environments? Is it c

Re: [PHP] PHP 5 Status

2005-04-02 Thread Colin Ross
Now, as far as I know though, there are still issues with Apache 2 and PHP-libraries, correct? On Apr 2, 2005 11:38 PM, Colin Ross <[EMAIL PROTECTED]> wrote: > > ok, thanks for your input. > now to make a roll-out plan for upgrading... > Colin > > > On Apr 1,

Re: [PHP] sessions not being stored

2005-04-07 Thread Colin Ross
ser under which runs Apache > 2.0.48 > > --- On Thu 04/07, Colin Ross < [EMAIL PROTECTED] > wrote: > From: Colin Ross [mailto: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > Date: Thu, 7 Apr 2005 13:19:49 -0700 > Subject: Re: [PHP] sessions not being stored > > do

[PHP] inserting an auto incemented column in table already created

2005-04-29 Thread Ross Hulford
Hi, I have a table with 15 columns or so that has been inherited from an older db and am trying to insert an auto increment column (in mysql) without having to number it manually. This is fine when I add new colums via a form but the old entries have a null value Alternatively It has been con

Re: [PHP] Error suppression operator (@)

2005-05-04 Thread Colin Ross
Pretty much the only time i use it is form processing... so i don't get a bunch of errors when someone doesn't fill out a (non-required) field.. Also i use it to prefill form data is i have a session running, ie. " /> like others have mentioned... if there is no value, the form is blank, otherw

[PHP] Saving of buffers, from a security standpoint

2005-05-11 Thread Colin Ross
I am working on a bit of code for credit-card processing, so please keep in mind, security of the data is essential.. On part of it i wish to use a buffer, but i wonder if that data is saved anywhere on the running system (as a temp file, etc), or is it just held in the system's memory? My conce

Re: [PHP] Saving of buffers, from a security standpoint

2005-05-11 Thread Colin Ross
s kinda info in the same style that it saves session data (under /tmp) by default, one of the main reasons why session data should not be concidered all too secure Colin On 5/11/05, Richard Lynch <[EMAIL PROTECTED]> wrote: > > On Wed, May 11, 2005 10:02 am, Colin Ross said: &

Re: [PHP] Saving of buffers, from a security standpoint

2005-05-12 Thread Colin Ross
h, so maybe it's just me... > > PS Got no idea what ob_start() does to buffer your output... Wild Guess is > it just uses RAM, and if your HTML is too big to fit in RAM/swap, you are > screwed. > > On Wed, May 11, 2005 3:14 pm, Colin Ross said: > > at this point,

[PHP] $_SESSION <- Learning

2004-05-09 Thread Ross Bateman
x27;] = $row->user; then on my main page echo "logged in as " . $_SESSION['SESSION_UNAME'] . " "; Needless to say, no data is displayed. anybody able to point out what I am getting wrong here. It used to work fine before the old way with register_globals = on. SIDE

<    1   2   3   4   5   >