Re: [PHP] Replacing template variables with values?

2001-08-01 Thread Ryan Fischer
but if the above works, think what *THIS* would do! > $message = '";exec("/usr/bin/rm -rf /");'; The e-mail script is for administration, so it's password protected. Do you still see a problem? Do you have any better ideas? -- -Ryan :: ICQ - 595003 :: GigaBoard - http:

Re: [PHP] Re: Hmmm?

2001-08-03 Thread Ryan Fischer
se" at that point. Where you simply want to skip the rest of the if block if the condition isn't true, and continue on with the rest of your script. Then, using an else isn't what you want to do. -- -Ryan :: ICQ - 595003 :: GigaBoard - http://www.gigaboard.net/ -- PHP General

[PHP] Installation error..

2001-08-03 Thread Ryan Christensen
.. which should clear out the previous config, right?) Thoughts? Ryan -- 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]

RE: [PHP] Re: Installation error..

2001-08-04 Thread Ryan Christensen
Yup, I did. I actually later found out that all I had to do was remove the old libphp4.so file, THEN recompile. Thanks anyways, Ryan > -Original Message- > From: James Tan [mailto:[EMAIL PROTECTED]] > Sent: Saturday, August 04, 2001 5:35 AM > To: [EMAIL PROTECTED] >

[PHP] Problem with require(), determining context.

2001-08-06 Thread Ryan Fischer
T is OK. So basically, I want to detect if the file is being required or called on its own. At least, that's what it sounds like I want to do from my above explanation. Any ideas how I can accomplish this? Thanks! :) -- -Ryan :: ICQ - 595003 :: GigaBoard - http://www.gigaboard.net/

RE: [PHP] MySQL connection

2001-08-07 Thread Ryan Christensen
I'm curious as to how the "hacker" would see all this information (the username.. password, etc..) just by going to a site where the SQL backend was down? Ryan > -Original Message- > From: BRACK [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 07, 2001 12:36 P

RE: [PHP] close browser

2001-08-07 Thread Ryan Christensen
Pretty sure it can, it just prompts the user before it is closed.. (otherwise JS would have a BIT too much power :) Ryan > -Original Message- > From: Tyler Longren [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 07, 2001 1:12 PM > To: [EMAIL PROTECTED] > Cc: [

[PHP] Rewriting a textfile for import into a db..

2001-08-07 Thread Ryan Christensen
h one.. Perl I'm guessing would be easiest) that can turn each line in the text file from: 123|blah|foo|bar|etc To be formatted like: INSERT INTO Table VALUES (123,'blah','foo','bar','etc'); Thanks in advance.. any help would be appreciated! Ryan

FW: [PHP] Rewriting a textfile for import into a db..

2001-08-07 Thread Ryan Christensen
BY '\n' .. for anyone who might have been looking for the same thing. Thanks! Ryan > -Original Message- > From: Ryan Christensen [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 07, 2001 3:34 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Rewriting a textfile fo

Re: [PHP] close browser

2001-08-07 Thread Ryan Fischer
You wrote: > Can anybody tell me what the code to close the browser is? ALT+F4. ;) -- -Ryan :: ICQ - 595003 :: GigaBoard - http://www.gigaboard.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM

Re: [PHP] close browser

2001-08-07 Thread Ryan Fischer
You wrote: > > You wrote: > > > Can anybody tell me what the code to close the browser is? > > > > ALT+F4. ;) > PHP cannot execute client side actions, afaik. > > - k 'Twas a joke. See the winky smilie? You may all laugh now. ;) --

Re: [PHP] How to get the query string?

2001-08-13 Thread Ryan Fischer
oes not work: > > for ($a=1;$a<=sizeof($HTTP_POST_VARS);$a++){ > echo "$a. ".$HTTP_POST_VARS[$a].""; > } Use: print_r($HTTP_POST_VARS); -or- foreach($HTTP_POST_VARS as $k => $v){ echo "$k => $v\n"; } -or- while(list($k, $v)

Re: [PHP] IE Download twice from DB - MAJOR disaster to db users

2001-08-13 Thread Ryan Fischer
amazing how many people are rude ! I see nothing rude about his post. Your's on the other hand ... well, let's just say that telling someone to "stfu" and then insisting that they're rude and need to learn how to behave is both ironic, sad, and a bit amusing

Re: [PHP] a bit off the list but should be easy

2001-08-15 Thread Ryan Fischer
cared about it because it was optional after all. ;) /digression -- -Ryan :: ICQ - 595003 :: GigaBoard - http://www.gigaboard.net/ -- 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]

[PHP] Session expiration detection and handling

2001-08-20 Thread Ryan Mahoney
I am interested in detecting when the session expires and displaying a "your session has expired..." page. If anyone can recommend how to do this or recommend a tutorial it would be greatly appreciated! Thanks! -r --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system

Re: [PHP] If-statement

2001-08-29 Thread Ryan Fischer
You wrote: > Is it possible to write this shorter: > > if ($Var != "No1" && $Var != "No2" && $Var != "No3") { > code > }; if(!ereg("^No[1-3]$", $Var)){ // code } -- -Ryan :: ICQ - 595003 :: GigaBoard - http://www.

Re: [PHP] Assign multiple variables from mysql_fetch_row() call

2001-09-04 Thread Ryan Fischer
list context a lot in PHP and Perl, and I prefer Perl's way of doing it *because* it allows you to be as verbose or terse as you like. PHP, unfortunately, doesn't give you that freedom. -- -Ryan :: ICQ - 595003 :: GigaBoard - http://www.gigaboard.net/ -- PHP General Mailing List

Re: [PHP] Assign multiple variables from mysql_fetch_row() call

2001-09-05 Thread Ryan Fischer
rds make no real difference, because when I see ($foo, $bar), I know it's a list. I don't need a list() operator to know that. ;) -- -Ryan :: ICQ - 595003 :: GigaBoard - http://www.gigaboard.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PRO

Re: [PHP] Assign multiple variables from mysql_fetch_row() call

2001-09-05 Thread Ryan Fischer
erl5.6/pod/perldata.html > > I said "what" not "where". I still maintain that if you don't know where > to look, () is not an easy thing to search for. Sure it is. Lists or list context. () is not that hard to determine what it means. At least, not ne

Re: [PHP] Assign multiple variables from mysql_fetch_row() call

2001-09-05 Thread Ryan Fischer
ds thinking is what causes problems in the first place. :\ -- -Ryan :: ICQ - 595003 :: GigaBoard - http://www.gigaboard.net/ -- 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]

Re: [PHP] Assign multiple variables from mysql_fetch_row() call

2001-09-05 Thread Ryan Fischer
e same can be said for PHP. Some people don't take the time to write readable code, no matter what the language. Because of this universality, that makes it a rather moot point. -- -Ryan :: ICQ - 595003 :: GigaBoard - http://www.gigaboard.net/ -- PHP General Mailing List (http://ww

Re: [PHP] insert space to a string (newbie)

2001-09-08 Thread Ryan Fischer
You wrote: > I have a simple question... > How can a space inserted to a string after the 3rd char ?? > > washington ->> was hington $str = 'washington'; $str = ereg_replace('^(.{3})(.*)$', '\\1 \\2', $str); -- -Ryan :: ICQ - 595003 ::

[PHP] CheckBoxes and Arrays

2001-09-11 Thread Ryan Stephens
submit the form a comma delimited string would be created (an array even not sure what it is). How would i loop through this list and break it apart so i can delete each record from the database that was selected. Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] instant session expiration problem

2001-09-30 Thread Ryan Mahoney
nyone know how to resolve this problem? Thanks in advance for any help you can provide! Please e-mail me directly. Ryan Mahoney --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.251 / Virus Database: 124 - Release Date: 4/26/01 --

[PHP] backslashes

2004-08-27 Thread Ryan Schefke
Hi, I have a jump box that sends the following value to the page. Show Thank You Notes "Not Sent" Then, the below query is run: $query = "SELECT name, event, description, cash, action, thankyou FROM gifts WHERE customerID='$passid' $sort"; My problem is with the \'No

[PHP] Dissappearing instance variables; Bug or Feature?

2004-09-17 Thread Ryan Briones
ass Two { var $one = null; function Two( &$one ) { $one->set( 'foo', 1 ); } } $obj = new One; ?> OUTPUT: one Object ( [test] => Array ( [foo] => 1 ) ) Any Ideas? Ryan Briones -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Need help with a regular expression

2004-09-30 Thread Ryan Dingman
uot; in the middle of your pattern, you should get what you are looking for. Hope this helps. ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Request to bash/jump/screw my code

2008-12-08 Thread Ryan S
at http://ezee.se/funnies/index.php Any advise is also most welcome. Thanks in advance! Ryan -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-) -- PHP General Mailing List (http

Re: [PHP] Request to bash/jump/screw my code

2008-12-08 Thread Ryan S
> Any advise is also most welcome. 'Advise' is a verb. 'Advice' is a noun. No charge. LOL! Thanks! Got caught by the grammar and typo police but no ticket! Must be my lucky day! Cheers! R -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

[PHP] system() Question

2008-12-28 Thread Ryan O'Sullivan
Hello all, I am using system to convert some files using a binary in linux. My code looks like this: $response = system('gpsbabel -p "" -r -t -i gpx -f "test.gpx" -o kml -F "test2.kml"', $retval); echo "Response: ", $response, "Return Value: ", $retval; The $retval is returning code

[PHP] Kinda 0.T... php site and maintenance

2009-01-26 Thread Ryan S
Hey, Got a question for you guys who make a lot of personal sites. I got a US client who wants me to make a personal site, 4-7 "sections" (eg: about me, photos, whats new etc) and have to put a yearly maintenance $$ amount... I thought i'll make most of the stuff using php rather than plain htm

Re: [PHP] Kinda 0.T... php site and maintenance

2009-01-26 Thread Ryan S
etween the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-) - Original Message From: Nitsan Bin-Nun To: Ryan S Cc: php php Sent: Monday, January 26, 2009 6:39:19 PM Subject: Re: [PHP] Kinda 0.T... php site and maintenance

Re: [PHP] Kinda 0.T... php site and maintenance

2009-01-28 Thread Ryan S
@Bastien, Stuart: Thanks for your input guys, was very useful and appreciate it. cheers! R -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RecursiveDirectoryIterator and foreach

2009-02-23 Thread Ryan Panning
I have discovered that when I foreach over a RecursiveDirectoryIterator (see example below) the $item actually turns into a SplFileInfo object. I would expect it to be a RecursiveDirectoryIterator. How do I do a hasChildren() on SplFileInfo? However, if I change it to a non-recursive, Director

[PHP] Re: RecursiveDirectoryIterator and foreach

2009-02-23 Thread Ryan Panning
Ryan Panning wrote: I have discovered that when I foreach over a RecursiveDirectoryIterator (see example below) the $item actually turns into a SplFileInfo object. I would expect it to be a RecursiveDirectoryIterator. How do I do a hasChildren() on SplFileInfo? However, if I change it to a

Re: [PHP] RecursiveDirectoryIterator and foreach

2009-02-23 Thread Ryan Panning
Nathan Nobbe wrote: if youre trying to do recursive iteration whereby you 'flatten' the tree structure, drop the RecursiveDirectoryIterator into a RecursiveIteratorIterator (its for iterating over RecursiveIterators), then you dont have to bother w/ calling hasChildren() at all. you probly also

Re: [PHP] RecursiveDirectoryIterator and foreach

2009-02-23 Thread Ryan Panning
Philip Graham wrote: Here's a RecursiveDirectoryIterator class I've written and find quite useful: mailto:phi...@lightbox.org";>Philip Graham */ class Util_RecursiveFileIterator implements Iterator { CONST SHOW_DOT_FILES = true; private $_basePath; private $_curDirIter; private

Re: [PHP] PHP pages won't open correctly on my server.

2009-08-24 Thread Ryan Cavicchioni
o parse certain extensions as PHP) in the PHP installation documentation. http://www.php.net/manual/en/install.unix.apache2.php Regards, -- Ryan Cavicchioni -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php move_uploaded_file() filesize problem

2009-08-24 Thread Ryan Cavicchioni
eports the new local > value (128 MB) according to the .htaccess, but the script fails silently > with no errors every time I try to upload a file greater than 32 MB. Have > any of you had the same problem? Hello, What is 'memory_limit' set at Regards, --Ryan Cavicchi

Re: [PHP] php move_uploaded_file() filesize problem

2009-08-24 Thread Ryan Cavicchioni
ing-large-files-with-php/ He suggests also looking at the script timeout and the 'max_input_time' ini setting. Regards, --Ryan Cavicchioni -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] downloading winword & mp3 files the fancy way through a browser

2009-08-26 Thread Ryan Cavicchioni
c";; Try using a local filepath instead of a URL. Example: $filepath = "/path/to/file/"; Regards, Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] downloading winword & mp3 files the fancy way through a browser

2009-08-26 Thread Ryan Cavicchioni
verify that the web server has permissions to the files that php is trying to open. Internet Explorer 8 seems to have a problem with the filename parameter in the Content-disposition header being enclosed in quotes. It would just dump the binary data in the page when I was testing this. Regards

Re: [PHP] newbie question regarding URL parameters

2007-01-05 Thread Ryan Fielding
Robert Cummings wrote: On Fri, 2007-01-05 at 20:57 -0500, Jim the Standing Bear wrote: Hello, I have a newbie question regarding URL parameters. The PHP script I wrote need to read parameters passed in from a URL, so as an example http://my.domain/myscript.php?name=me&age=27 and my script

[PHP] Extending session timeouts manually

2007-01-10 Thread Ryan Fielding
I'm using a session to save cart contents within a store, and this session follows the user as they proceed through the checkout. My problem is, if a customer orders say 10 items, they have the option to input 10 different addresses that these items will be delivered to. I've noticed that some

Re: [PHP] Extending session timeouts manually

2007-01-10 Thread Ryan Fielding
Chris wrote: Ryan Fielding wrote: I'm using a session to save cart contents within a store, and this session follows the user as they proceed through the checkout. My problem is, if a customer orders say 10 items, they have the option to input 10 different addresses that these items wi

Re: [PHP] Extending session timeouts manually

2007-01-10 Thread Ryan Fielding
Ryan Fielding wrote: Chris wrote: Ryan Fielding wrote: I'm using a session to save cart contents within a store, and this session follows the user as they proceed through the checkout. My problem is, if a customer orders say 10 items, they have the option to input 10 different addresses

Re: [PHP] Extending session timeouts manually

2007-01-10 Thread Ryan Fielding
Ryan Fielding wrote: Chris wrote: Ryan Fielding wrote: I'm using a session to save cart contents within a store, and this session follows the user as they proceed through the checkout. My problem is, if a customer orders say 10 items, they have the option to input 10 different addresses

Re: [PHP] Extending session timeouts manually

2007-01-10 Thread Ryan Fielding
Chris wrote: Ryan Fielding wrote: Ryan Fielding wrote: Chris wrote: Ryan Fielding wrote: I'm using a session to save cart contents within a store, and this session follows the user as they proceed through the checkout. My problem is, if a customer orders say 10 items, they have the o

[PHP] Anybody have any experience with outsite-in? [Quite a bit 0T]

2007-01-11 Thread Ryan A
ds, but my company wants to go with this... needless to say I am in NO way connected to outsite-in.com and i have *nothing* to gain if you visit their site, buy anything from them, shoot them, kiss them or whatever. :) Thanks! Ryan -- - The faulty interface lies between the chair and th

Re: [PHP] Anybody have any experience with outsite-in? [Quite a bit 0T]

2007-01-13 Thread Ryan A
Skip Evans <[EMAIL PROTECTED]> wrote: Hey all, When you say it lets you run it off a CD does that mean the CD is totally self contained, as in you can pop it into any machine, sans web server DB, etc, and it runs just peachy? Skip Yep, thats what its supposed to do... -- - The faulty

Re: [PHP] Anybody have any experience with outsite-in? [Quite a bit 0T]

2007-01-13 Thread Ryan A
he one mentioned below, though. Satyam - Original Message - From: "Skip Evans" To: "Ryan A" Cc: "php php" Sent: Thursday, January 11, 2007 10:35 PM Subject: Re: [PHP] Anybody have any experience with outsite-in? [Quite a bit 0T] > Hey all, > > When

[PHP] Storing values in arrays

2007-01-17 Thread Ryan A
write all the usernames that logged in to disk every 1 minute. Ideas? suggestions? starting points or a link to a specific spot in the manual with a RTFM would be appreciated :) Thanks in advance, Ryan -- - The faulty interface lies between the chair and the keyboard. - Creativity is great

Re: [PHP] Storing values in arrays

2007-01-17 Thread Ryan A
Robert Cummings <[EMAIL PROTECTED]> wrote: On Wed, 2007-01-17 at 00:35 -0800, Ryan A wrote: > Hi, > > I think its easier to explain what I want to do.. so here goes: > I want to store values in arrays for one minute and then write them to file. > > For example, eve

Re: [PHP] Storing values in arrays

2007-01-17 Thread Ryan A
> Hey! > Thanks for replying. > > Instead of CRON i was thinking of having a file created and check the > creation time everytime someone logged in... if its less than 1 min > then don't do anything, if 1 min or more old... write file... But then it wouldn't be written to disk every one minute

Re: [PHP] Storing values in arrays

2007-01-18 Thread Ryan A
tedd <[EMAIL PROTECTED]> wrote: At 7:15 AM -0800 1/17/07, Ryan A wrote: >True, but thats not the most important part... I guess I wrote it >wrong, I meant that it should not write to disk before 1 minute... >anyway... about the "array saving" any ideas? > >Th

Re: [PHP] Storing values in arrays

2007-01-18 Thread Ryan A
Robert Cummings <[EMAIL PROTECTED]> wrote: On Wed, 2007-01-17 at 07:15 -0800, Ryan A wrote: > > Hey! > > Thanks for replying. > > > > Instead of CRON i was thinking of having a file created and check the > > creation time everytime someone logged in... if i

Re: [PHP] OT - Leaving

2007-01-24 Thread Ryan A
Who the f*/k are you? and why should we remember you Hehe just kidding, you may have not posted a lot in the last year but you have helped me many times before thatwhich I really appreciate. Thanks for your help mate, and I hope you have success in whatever you decide to do. Cheers! R

Re: [PHP] OT - Leaving

2007-01-24 Thread Ryan A
FYI, for the noobs, the John and Jason referenced in the email are John Holmes and Jason Wong. Yep, two of the "big" guys without who... many would have taken a muchh longer path to learning php, including me. I dont know if theres a "list heroes" list, but if there is... John is def mine. Al

[PHP] Rory Browne from this php list (0.T)

2007-01-27 Thread Ryan A
send me/setup the software but then I did not get any word from him after multiple emails in the days since, am wondering if something bad happened to him... (hope not) Does anyone know Rory Browne's phone number or any other contact details? Thanks, Ryan -- - The faulty interface

[PHP] Reading from the htpasswd file

2007-02-02 Thread Ryan A
Hey, *** Warning: feeling a bit braindead today after working long hours yesterday so please excuse if some parts are crappy*** I have a pal who uses a htpasswd file for access to his site.. rather than using basic_auth he wants to change it to form based _without_ a DB (ie user comes to his s

Re: [PHP] Reading from the htpasswd file

2007-02-03 Thread Ryan A
preg_* statements leave me pretty much clueless... I know, I should learn) If you (or anybody) wants to chip in any additional advise snippets, please go ahead. Cheers! R Richard Lynch <[EMAIL PROTECTED]> wrote: On Fri, February 2, 2007 8:17 am, Ryan A wrote: > I have a pal who uses a

[PHP] JS prompt -> php

2007-02-07 Thread Ryan A
you? Thanks! Ryan -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-) - Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta.

Re: [PHP] Text Editor for Windows?

2007-02-07 Thread Ryan Fielding
Stephen wrote: I am finding that notepad is lacking when correcting syntax errors in my php code. No line numbers. What can people recommend for use under Windows? Thanks Stephen I like UltraEdit. Has everything i need and then some. syntax Highlighting, code folding, variable completion

Re: [PHP] JS prompt -> php

2007-02-08 Thread Ryan A
Hey Tedd, Thanks for replying. The problem is, I know how to do this via a drop down select box and a text box... I want to do this via a javascript prompt, which is where I am getting stumped. Cheers! R tedd <[EMAIL PROTECTED]> wrote: At 5:11 AM -0800 2/7/07, Ryan A wrote: >Hey all!

Re: [PHP] Re: JS prompt -> php [become 0T]

2007-02-10 Thread Ryan A
].value; var textBox = document.forms[0].sec_name;user_section = textBox.value; kindly show me how to get the value from a javascript prompt box, the force is with me but the JS DOM is from the dark side :D Cheers! R Colin Guthrie <[EMAIL PROTECTED]> wrote: Ryan A wrote: > Quick

Re: [PHP] New Menu Bar - Can people test it for me?

2007-02-22 Thread Ryan A
Win2000pro and FF works fine... IE6.0 does not work... Hope that helps. Cheers! R Chris Ditty <[EMAIL PROTECTED]> wrote: Works fine on FF/XP Looks nice btw. (sorry for the dup post Nemeth) On 2/21/07, Németh Zoltán wrote: > works on linux/firefox and xp/ie7 > > greets > Zoltán Németh > > 200

[PHP] Matching logins to an old htpasswd file

2007-03-03 Thread Ryan A
are "test:test" but it gets encoded into "test:dGRkPurkuWmW2" so how do I try to match the data I get from the POST "pw" field when that will come in as normal text? Any example code, links (even a RTFM+URL) would be appreciated. Thanks! Ryan -- - The faulty

[PHP] Quick question, a little 0T i guess... BASIC_AUTH or forms

2007-03-04 Thread Ryan A
Hey all! Quick question, one of our sites already uses BASIC_AUTH to take the username and pass from clients, we were thinking of instead doing it via a login form (so we can also add a CAPTCHA later...if needed) what I would like to know is, by using a login form instead of a BASIC_AUTH are w

Re: [PHP] Quick question, a little 0T i guess... BASIC_AUTH or forms

2007-03-04 Thread Ryan A
s added an extra no-brainer hurdle for them to get over. At the end of the day the best way to secure data being transferred from client to server is to use SSL. -Stut > On 3/4/07, *Stut* > wrote: > > Ryan A wrote: > > Quick question, one of our sites already uses BAS

[PHP] Array help

2007-03-04 Thread Ryan A
Hi! I have a login/password file with these kind of values: user1:pass1 user2:pass2 cat:dog love:hate I have opened the file and put it into an array with this code: (thanks to richard lynch from this list for idea and code snippets) $file = file_get_contents('a.htpasswd'); preg_match_all('/(

Re: [PHP] Array help

2007-03-04 Thread Ryan A
why I am trying to avoid a for() or while() loop. Thanks! Ryan Stut <[EMAIL PROTECTED]> wrote: Ryan A wrote: > I have a login/password file with these kind of values: > user1:pass1 > user2:pass2 > cat:dog > love:hate > > I have opened the file and put it into an a

Re: [PHP] Array help

2007-03-04 Thread Ryan A
Hey! Thanks Stut, Tijnema. I'll test out the ideas you guys contributed to me.. after I finish a working copy will ask you guys to give it a look over ;) @Stut: The list is not in alphabetical order.. and 2, I have no idea of the size of the file (for the regex suggestion) but I am guessing it

Re: [PHP] Troubles from the newb again

2007-03-09 Thread Ryan Fielding
Robert Cummings wrote: On Sat, 2007-03-10 at 15:31 +1030, Jeff Taylor wrote: Hey everyone, Newb back again - Im trying to populate my arrays, but getting this error again: Warning: Illegal offset type in This usually means that you are using a non-scalar value as an index. Use var_dump

Re: [PHP] Create client certificate with openssl

2009-11-25 Thread Ryan Sun
check these options *-pass arg, -passin arg* the PKCS#12 file (i.e. input file) password source. For more information about the format of *arg* see the *PASS PHRASE ARGUMENTS* section in * openssl*(1) . *-passout arg* pass phrase source to encrypt a

Re: [PHP] Disabling button onclick in IE

2009-12-01 Thread Ryan Sun
Andrew is right, another solution is to move your code from onclick to onsubmit event, On Tue, Dec 1, 2009 at 4:06 PM, Skip Evans wrote: > Hey all, > > You probably remember me asking about disabling a submit button when it is > clicked to prevent double clicks submitting a form for CC process

Re: [PHP] Powerpoint from PHP?

2009-12-02 Thread Ryan Sun
php on windows server may have the capability... On Wed, Dec 2, 2009 at 11:30 AM, Skip Evans wrote: > Yeah, from Googling around I'm getting the impression there is not a PHP > library capable of doing this. I guess the next best thing we can do is just > let them download files with collections

Re: [PHP] json_last_error

2009-12-04 Thread Ryan Sun
json_decode (PHP 5 >= 5.2.0, PECL json >= 1.2.0) so json_decode will be avaliable for php 5.2.0+ php is open source, I believe you can get an idea from their C source On Fri, Dec 4, 2009 at 2:16 PM, Jim Lucas wrote: > Kirby Bakken wrote: > > None of the servers I run on have PHP 5.3, and I hav

Re: [PHP] Question about using JSON_ENCODE()

2010-01-08 Thread Ryan Sun
Yup, you put result in an array $result = array('status' => 'good'); and return encoded string return Json_Encode($result); your client will get a string '{"status": "good"}' and you use your client tech(eg. javascrpt) to decode this string and finall get an object On Fri, Jan 8, 2010 at 3:43 PM

Re: [PHP] POLL: To add the final ?> or not...

2010-01-08 Thread Ryan Sun
if you use the newest PDT, you will find that a new php file has no final ?> I vote for your co-worker [?] On Fri, Jan 8, 2010 at 3:49 PM, LinuxManMikeC wrote: > > http://framework.zend.com/manual/en/coding-standard.html#coding-standard.overview.scope > "This document provides guidelines for code

Re: [PHP] Formatting Decimals

2010-01-11 Thread Ryan Sun
$newprice = sprintf("$%.2f", 15.109); On Sun, Jan 10, 2010 at 8:36 PM, Rick Dwyer wrote: > Hello List. > > Probably an easy question, but I am not able to format a number to round up > from 3 numbers after the decimal to just 2. > > My code looks like this: > > $newprice = "$".number_format($ol

Re: [PHP] Display just 1 record in a query

2010-01-12 Thread Ryan Sun
though you can fetch twice to get the 2nd row $row_cur = mysql_fetch_assoc($cur); //skip 1st row $row_cur = mysql_fetch_assoc($cur); echo $row_cur['tid']; you should really modify your sql statement, like 'select xxx from xx order by xx limit 1, 1' (limit 1,1 retrieve your 2nd row if you are usin

Re: [PHP] PHP and javascript

2010-01-15 Thread Ryan Sun
I don't think you can call php cli from client javascript unless you have a wrapper http interface On Fri, Jan 15, 2010 at 2:07 PM, Andres Gonzalez wrote: > How do I call PHP code that will run server side, from javascript code that > is running client side? > > I have a lot of PHP server side co

Re: [PHP] integrating shipping with shopping cart site - OT

2010-01-20 Thread Ryan Sun
Just use the shipping rate web service of your client's shipping carrier why border building a custom shipping rate calculator On Wed, Jan 20, 2010 at 10:24 AM, Angelo Zanetti wrote: > Thanks guys, yes in general we will go with a lookup for each country, it > wont be accurate but in future we ca

[PHP] Foreign Characters Break in MySQL

2010-01-21 Thread Ryan Park
Hello I'm currently trying to use PHP to insert foreign characters into one of the mysql database tables.mysql_query() worked seamlessly, but when I check the inserted data on phpMyAdmin it shows the foreign characters in broken letters, like this ì‹œíŒ <- jibberish...The foreign characters sho

Re: [PHP] Foreign Characters Break in MySQL

2010-01-21 Thread Ryan Park
#x27;, 'xe_default', '자유게시판 ', '', 'N', '', 'Y', '', '', UNIX_TIMESTAMP());"; mysql_query($sql) or die(mysql_error()); mysql_close(); ?> On 1/21/2010 5:19 PM, Jim Lucas wrote: Ryan Park wrote: Hello I&

Re: [PHP] Foreign Characters Break in MySQL

2010-01-22 Thread Ryan Park
Thank you all for the helpful comments. I've finally solved the problem through sql command "set name." On 1/22/2010 1:53 AM, Michael A. Peters wrote: Ashley Sheridan wrote: You're also forgetting one of the most important elements of this. If you're displaying the characters on a web page,

Re: [PHP] MySQL ID -- what happens when you run out of range?

2010-01-25 Thread Ryan Sun
For such a large data set, they would split into several sub tables, otherwise the performance will be horrible On Mon, Jan 25, 2010 at 3:39 PM, Robert Cummings wrote: > Parham Doustdar wrote: > >> Hello there, >> A friend called me today and was wondering what happens if the ID colomn >> of an M

Re: [PHP] Creating an Entire .html page with PHP

2010-01-26 Thread Ryan Sun
Isn't there a framework doing that? On Mon, Jan 25, 2010 at 8:00 PM, deal...@gmail.com wrote: > Hi Folks, > > I would like to create an entire .html page gathered from database content > mixed with html etc. and be able to save the page... > > > like: > > --- save all this pre made content as .ht

[PHP] Question on XML/XSL/PHP/MySQL

2010-01-27 Thread Ryan Park
Hypothetically say that I have MySQL with petabytes of data. I want to use XSL as my template language. But in order to use XSL, I need to make XML filled with petabytes of data. This does not sound elaborate way to use XSL/XML; I would rather use PHP/MySQL/Smarty. Is there a way around this so

Re: [PHP] Question on XML/XSL/PHP/MySQL

2010-01-27 Thread Ryan Park
Wed, 2010-01-27 at 03:31 -0800, Ryan Park wrote: Hypothetically say that I have MySQL with petabytes of data. I want to use XSL as my template language. But in order to use XSL, I need to make XML filled with petabytes of data. This does not sound elaborate way to use XSL/XML; I would rather use

Re: [PHP] Multiple Class Inheritance

2010-01-27 Thread Ryan Sun
1, you can implement multiple interfaces 2, you may want to return object instead of extending classes, eg. class Small_Class_Abstract { public function getFormGeneration() { return new Form_Generation(); } } class Small_Class_A extends Small_Class_Abstract { } $A = new Small_Class_A();

[PHP] DOM TextArea (and dom chart please)

2010-02-02 Thread Ryan S
uot;DOM chart" for php, the only ones i have been able to find via google are for javascript like this one: http://www.hscripts.com/tutorials/javascript/dom/textarea-events.php and that chart does not help much. Does anyone have a PHP DOM chart or a resource that i can use to get starte

Re: [PHP] DOM TextArea (and dom chart please)

2010-02-02 Thread Ryan S
>// I have even tried this instead of the above: > >foreach ($inputs2 as $input2) { >if(!$input2->getAttribute("defaultValue")=="") { >$input2->setAttribute("defaultValue","it works!"); >} >} > >but no joy. > >I'm betting its pretty simple but i dont have a "DOM c

Re: [PHP] Magento shopping cart

2010-02-02 Thread Ryan Sun
ystem (magento had published a book for designer), or you can leave this job to your developer... On Tue, Feb 2, 2010 at 6:04 PM, Skip Evans wrote: > Hey all, > > So I'm more comfortable all the time with using Magento, more I read, and > Ryan said, "Its great, I have been usi

Re: [PHP] DOM TextArea (and dom chart please)

2010-02-03 Thread Ryan S
> I think what you are looking for is $input2->textContent in PHP. Hey Andrew (and everyone else was was kind enough to write back) ! Found the solution, this is what i am using (and it works!), and i hope it helps anyone else who finds themselves in the spot i found myself $inputs2 = $dom->

[PHP] Thinking of moving to .NET because of standalone... any suggestions?

2010-02-03 Thread Ryan S
quot; for years.. looks like my luck has run out... Thanks, Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Thinking of moving to .NET because of standalone... any suggestions?

2010-02-03 Thread Ryan S
Thanks for the reply Michael, Robert and Jochem, makes sense, a native windows app is going to look more in place than any of the demos and graphics i have seen of GTK. Was also looking at GTK-Builder, unfortunately you really have to hunt for each scrap of new info - which is why I'm guessing

Re: [PHP] Thinking of moving to .NET because of standalone... any suggestions?

2010-02-03 Thread Ryan S
Thanks for the links and advise guys! Of all I found this most interesting as it would run native: >check out http://www.php-compiler.net/doku.php unfortunately I think this project is dead or at best stagnant because the server is slower than a 99 year old on weed and forums link dead. Docume

[PHP] Help with regex (search/replace) please

2010-02-06 Thread Ryan S
ontain the idea is that i would use the contents of $fetch to add some code before the end just before the greater than symbol, and do a str_replace(). What do you think? Critique of my logic above too is welcome! Thanks! Ryan -- PHP General Mailing List (http://www.php.net/) T

[PHP] Help with regex (search/replace) please

2010-02-06 Thread Ryan S
ontain the idea is that i would use the contents of $fetch to add some code before the end just before the greater than symbol, and do a str_replace(). What do you think? Critique of my logic above too is welcome! Thanks! Ryan -- PHP General Mailing List (http://www.php.net/) T

<    2   3   4   5   6   7   8   9   10   11   >