[PHP] FW: No Subject

2013-03-16 Thread Ryan S
http://www.coachholidays.co.uk/ramlm/hfoqauyyvomdvio.kaxkucbebccxpzq

Re: [PHP] Need Part-time Coder

2011-12-27 Thread Ryan Cunningham
a more detailed reply ;) > >> > >> > > > > $a = array('he', 'llo', ' ', 'w', 'orld', '!'); > for($i = 0, $ln = sizeof($a); $i < $ln; ++$i) { echo $a[$i]; } > ?> > > -- > Paul Hall

Re: [PHP] is there a static constructor?

2011-03-30 Thread Ryan
There is such thing, but its not called static constructor, its called singleton pattern class SingletonA { public static instance; public SingletonA(){} public static function getInstancce() { if(self::instance != null) { return self::instanc; } return new Singleton

[PHP] gzdeflate and file_get_contents memory leak?

2011-01-09 Thread Ryan Reading
script no longer experiences memory problems. Is this behavior as designed for these two functions (because PHP scripts are usually short lived)? Is there a way to get them to release memory? Is there something I'm missing? Thanks. -- Ryan -- PHP General Mailing List (http://www.php.net

[PHP] a question about user and permission on linux

2010-10-31 Thread Ryan Sun
which user it is executed as when request a php script on browser?(suppose we are on a shared LAMP hosting) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] editing a file

2010-05-24 Thread Ryan Sun
yea, file_get_contents and file_put_contents are the easiest, but play with caution when dealing with large files, 'cause it loads the whole file into memory, fopen() fread() fwrite() can be used for large files. On Mon, May 24, 2010 at 5:56 PM, Rene Veerman wrote: > On Mon, May 24, 2010 at 11:16

Re: [PHP] localize string (date)

2010-05-21 Thread Ryan Sun
Its either ur title is misleading or I'm misunderstanding is this what u want? $subject = "21-05-2010 Ideo urbs Venerabile superb post 12-02-2010 efferatarum latasque 12-02-10 leges gentium cervicis oppressed and fundamenta libertatis retinacula sempiterne Frugi velut parens and prudent and dives

Re: [PHP] How to get input from socket client

2010-05-20 Thread Ryan Sun
Thanks for your reply > First, I don't think feof() will do what you think it does. I > wouldn't expect it to show up until after the other end has actually > closed the connection. I found unread_bytes in stream_get_meta_data should be more reliable > TCP is a stream protocol, there > are no gu

[PHP] How to get input from socket client

2010-05-10 Thread Ryan Sun
Stream and networking programming seems like a rock on the way to ZCE for most people, so I'm learning some socket examples before I sit in the room for exam. Here is the script for server http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP and schedules tasks/events

2010-04-16 Thread Ryan Sun
you can setup a schedule table in db and have a cron php script check the db every time and send email if the current time is around the scheduled_at time and close the schedule after you send the email On Fri, Apr 16, 2010 at 5:35 PM, Adam Richardson wrote: > On Fri, Apr 16, 2010 at 5:15 PM, Don

Re: [PHP] Include security?

2010-04-16 Thread Ryan Sun
if allow_url_include is turned off, you don't have to worry much about http, if '.' is a invalide char, you can't include *.php... the include path probably should be the inc(whatever the name) folder(not accessible from web) instead of the web root and '..' should be disallowed On Fri, Apr 16, 20

Re: [PHP] Re: how to overload accessible methods

2010-04-16 Thread Ryan Sun
thanks for all your reply, since all these classes have main entry in cron.php, I have moved validation there. Richard, your solution seems interesting, maybe I can use it later :) On Thu, Apr 15, 2010 at 4:46 AM, Richard Quadling wrote: > On 13 April 2010 17:25, Ryan Sun wrote: >>

Re: [PHP] Array differences

2010-04-14 Thread Ryan Sun
Maybe this one works? array_diff(array_unique($array1 + $array2), array_intersect($array1, $array2)) On Wed, Apr 14, 2010 at 4:39 AM, Ashley Sheridan wrote: > On Tue, 2010-04-13 at 23:01 -0600, Ashley M. Kirchner wrote: > >> I have the following scenario: >> >> >> >>      $array1 = array("12", "3

[PHP] Re: how to overload accessible methods

2010-04-13 Thread Ryan Sun
acked page(we write the name of methods directly in to schedule table). Using private methods will solve the problem but since we write public methods for all the other cron classes, I just want to keep the style to make less confusion. On Tue, Apr 13, 2010 at 12:11 PM, Nathan Rixham wrote: >

[PHP] Re: how to overload accessible methods

2010-04-13 Thread Ryan Sun
that they don't have to write more code and they won't miss this validate? On Tue, Apr 13, 2010 at 11:46 AM, Nathan Rixham wrote: > Ryan Sun wrote: >> As we all know, __call() can overload non-accessible methods, >> eg. >> Class User >&g

[PHP] how to overload accessible methods

2010-04-13 Thread Ryan Sun
As we all know, __call() can overload non-accessible methods, eg. Class User { public function __call($name, $args) { //validate user $this->_validate(); $this->_{$name}($args); } private function _validate() { // } private functi

Re: [PHP] Sort two coupled arrays {my solution]

2010-04-07 Thread Ryan Sun
rsort(array_combine(array2, array1)); you should expect array( 'Personal Email' => 75, 'USPS mail' => 40, 'Personal Phone' => 31, 'Web site' => 31, 'Text Message' => 31 ) logically, the items are your key but not the count of votes On Wed, Apr 7, 2010 at 6:29 PM, tedd wrote: > At 5:3

Re: [PHP] Database vs. Array

2010-03-16 Thread Ryan Sun
Maybe you want to optimize your script first, and I don't think read entire data set into array would save you much time. Don't create new variables when its unnecessary, cache data when its necessary, try memcached, and I think heavy php cli scripts are always likely to resume a lot of resource

Re: [PHP] best way to set up an include path for a multi-level project?

2010-03-16 Thread Ryan Sun
On Tue, Mar 16, 2010 at 1:57 PM, Robert P. J. Day wrote: > > and all PHP scripts would start off with something like: > > set_include_path(get_include_path() . PATH_SEPARATOR . getenv('PROJ_DIR')); > just utilize include_path directive in php.ini -- PHP General Mailing List (http://www.php.net/

Re: [PHP] PHP MySQL Insert Statements

2010-03-16 Thread Ryan Sun
Always make sure your dynamic sql string in php code are as expected var_dump($sql) before query On Thu, Mar 11, 2010 at 10:13 PM, Martine Osias wrote: > Hi, > > My insert statements on this web page don't execute. The select statements > do work. This tells me that the database connection is wor

[PHP] long polling solution for LAMP with limited privilege

2010-03-15 Thread Ryan Sun
I wonder if you guys have a long-polling(http://meteorserver.org/interaction-modes/) solution for a shared hosting(eg. hostmonster) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] xoops

2010-03-04 Thread Ryan Cunningham
etc -- -- Regards Ryan Cunningham 1 352 624 3262 constructme...@gmail.com www.constructmedia.com The information contained in this message may be privileged, confidential, and protected from disclosure. If the reader of this message is not the intended recipient, or any employee or agent responsible

[PHP] how to download files require login

2010-03-01 Thread Ryan Sun
For URLs like 'http://download.fotolia.com/DownloadContent/1/h7G0bWGsGof8VvSqw32xFZ0KvD5eqbvN', it requires user login to download. Then how do I download it remotely via php server if I have the username and password in hand? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vis

Re: [PHP] Help preserving sentence structure

2010-02-26 Thread Ryan Sun
http://us.php.net/manual/en/function.htmlentities.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] FTP Site

2010-02-16 Thread Ryan Sun
I think you will need the help from a client side app, like java applet or flash, php can transfer file from your web server to your ftp server but people will have difficulty uploading file via bare browser On Tue, Feb 16, 2010 at 3:12 PM, Ben Miller wrote: > Hi, > > > > I'm building a site for

Re: [PHP] How to secure this

2010-02-12 Thread Ryan Sun
In that case, referer is for authentication, and id is for authorization, I think On Fri, Feb 12, 2010 at 6:23 PM, Ashley Sheridan wrote: > On Fri, 2010-02-12 at 18:25 -0500, Ryan Sun wrote: > > authenticate by remote domain name or remote ip > > $_SERVER['HTTP_REFERER

Re: [PHP] How to secure this

2010-02-12 Thread Ryan Sun
authenticate by remote domain name or remote ip $_SERVER['HTTP_REFERER'] then your clients will not have to put their username/password in clear text http://www.mydomain.com?h=300&w=250 and you will just check if you have their domain on your list I'm not sure if there is better one but " 'HTTP_

Re: [PHP] create archive file in memory with zipArchive class

2010-02-09 Thread Ryan Sun
thanks, Richard, maybe you are right, the actual file name is not my job I changed it to 'php://temp' but its still the same, nothing has been changed... On Tue, Feb 9, 2010 at 11:13 AM, Richard Quadling wrote: > On 9 February 2010 15:42, Ryan Sun wrote: >> I want to gene

[PHP] create archive file in memory with zipArchive class

2010-02-09 Thread Ryan Sun
I want to generate credential zip file for user on the fly with zipArchive and render it for download, so I created following code - $zip = new ZipArchive(); $filename = '/tmp/xxx.zip'; if ($zip->open($filename, ZIPARCHIVE::CREATE)!==TRUE) {  

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

2010-02-06 Thread Ryan S
@Al, > have you looked at the Pear html_QuickForm2 set? Actually nope, whats it about? just did a google search and found it on the php site but no example code around so dont really have a clue. @Ash, Pastebin! Of course, why didnt i think of that... will do! Actually, just did so that i wou

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

2010-02-06 Thread Ryan S
the results to a file which is going to be used as a template in other scripts. Thanks! Ryan

[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

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

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

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

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

[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] exception throw from __autoload could not be catched on php 5.3.1

2010-01-28 Thread Ryan
于 2010-1-29 13:19, Ashley Sheridan 写道: > On Fri, 2010-01-29 at 13:02 +0800, Eric Lee wrote: > > >> Hi php-dev pros, >> >> I got an issue about catching exception throw from __autoload on php 5.3.1. >> >> The manual state that exception throw from __autoload could be catched with >> try.. catch s

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();

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

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

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

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

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] 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] 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] 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] 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] 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] 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] 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] 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] string concatenation with fgets

2009-11-24 Thread ryan
Is this what you want $file = fopen("test.txt", "r"); while (!feof($file)) { $line = trim(fgets($file)); print $line."sometext\n"; } fclose($file); outputs asometext bsometext csometext Ref to http://us3.php.net/manual/en/function.fgets.php. "Reading ends when /length/ - 1 bytes have

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

[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

[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

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

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

[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

[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

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] 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] Re: Replacing with f*ck and f*cking

2008-10-27 Thread Ryan S
Thanks for all your input guys! > Scunthorpe LOL! Never heard of the place but ...f**k i think i am a geek for finding it funny! Reminds me of quite few people tho... Cheers! R 2008/10/26 Colin Guthrie <[EMAIL PROTECTED]>: > Ashley Sheridan wrote: >> >> What you really need to watch out for is

[PHP] Replacing with f*ck and f*cking

2008-10-25 Thread Ryan S
Hey! I'm just trying to replace some of the more bad words with their slightly censored counterparts like so $bad_words = array(/*Well you know the words so am not going to write them here*/); $bad_words_replacements = array("f*ck", "f*cking"); $comment = str_replace("$bad_words",$bad_words_repl

Re: [PHP] index search

2008-10-24 Thread Ryan S
a useless post for me because the 0-9 part was not solved in my head but a lot of interesting replies as to how to do it. Thanks everyone! /Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] index search

2008-10-23 Thread Ryan S
using LIKE is not working for me because its catching alphabets from the middle of the word as well. Also how to do 0-9? do i have to have 10 if() conditions for that? Ideas and suggestions welcome. Thanks! Ryan -- - The faulty interface lies between the chair and the keyboard. - Creati

Re: [PHP] Mysql search

2008-10-21 Thread Ryan S
> Am hoping someone out there can recommend a better script or maybe share some > of your own code? > > Any help would be appreciated. Do it right... read up on MySQL's fulltext matching. Cheers, Rob. Did some searching based on your tip, got what i was looking for, just didnt know wher

[PHP] Mysql search

2008-10-21 Thread Ryan S
/125901/ but when i tried to run it I am just getting a blank page, no errors or anything. Am hoping someone out there can recommend a better script or maybe share some of your own code? Any help would be appreciated. Thanks, Ryan -- - The faulty interface lies between the chair and the

[PHP] Convert video to FLV like youtube

2008-10-18 Thread Ryan S
Hey! Been googleing for a way to convert video to flv just like youtube and came accross the flv SDK kit, unfortunately it seems to only support C++, Delphi and C# Have any of you guys come accross a php script that does this? any links, pointers and code would be appreciated. TIA, R -

[PHP] Re: Brain dead... write image to file

2008-10-15 Thread Ryan S
hope for humanity, coz there are a lot of good folk still out there. Ok, a bit dramatic... but still not thinking too straight, gotta refill my cup! Thanks and tcare ppl! /Ryan -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster

[PHP] Brain dead... write image to file

2008-10-15 Thread Ryan S
Hey all, am feeling a bit brain dead, pulled an all nighter and would appreciate some help as have already wasted over 2hrs on this :( just not thinking straight. I got this script off the net, cant even remember where :( its basically to resize an uploaded image (i have a script that does exact

[PHP] searching by tags....

2008-10-14 Thread Ryan S
links would be appreciated. TIA. Cheers! 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://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Little regex help please...

2008-10-13 Thread Ryan S
Thanks guys, I appreciate the help. Cheers! R -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Little regex help please...

2008-10-13 Thread Ryan S
Hey Todd, Eric, Thanks for replying. > I don't believe you need both the / and the # for delimiters in your > RegEx. Try using just # (since / is actually going to be in the text > you're searching for) like this: > > $data = > file_get_contents("http://www.youtube.com/watch?v=oQ2dKXGAjNg";); >

[PHP] Little regex help please...

2008-10-13 Thread Ryan S
#x27; in C:\wamp\www\ezee\tests\get _remote_title.php on line 3 TIA, 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://www.p

Re: [PHP] Using Static Class Variables to Access Globally

2008-09-23 Thread Ryan Panning
Nathan Nobbe wrote: in many cases, people like to drive client code through methods, which, given the current set of language features in php, could be reason to favor a singleton w/ __get() & __set() methods defined. you still have the same 'global' scope, except that the data doesnt have to be

[PHP] Using Static Class Variables to Access Globally

2008-09-23 Thread Ryan Panning
The typical way to access a variable or instance from inside a function/method is to either declare it a global variable or pass it as a argument. Is there any reason why someone shouldn't use static class variables to do this? Ex: do_something(); } foo_bar(); ?> Crude example but imagine th

Re: [PHP] RE: Sale 79% OFF !!!

2008-08-24 Thread Ryan S
uld be the one Tedd! Can you give me mroe details of the scam? Is it like the ones we get via email everyday or different? Cheers! Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Scripts for removing Reg entries

2008-08-07 Thread Perkins, Ryan
exists and if it does delete it. Also, is there a way to script removing items that have been pinned to the start menu? Ryan Perkins Dept. of Employee Trust Funds Operations/ Help Desk 608.266.2080 This email message and any attachments may contain information that is confidential, privileged

Re: [PHP] Freelance PHP development in India

2008-07-16 Thread Ryan S
No apologies necessary, good luck! Cheers! R - Original Message From: Denis L. Menezes <[EMAIL PROTECTED]> To: Ryan S <[EMAIL PROTECTED]>; Wolf <[EMAIL PROTECTED]> Cc: PHP General Sent: Monday, July 14, 2008 3:31:43 PM Subject: Re: [PHP] Freelance PHP developm

Re: [PHP] Freelance PHP development in India

2008-07-14 Thread Ryan S
> Dear friends. > > I am looking for freelance web developers in India. > > Can contact me? > Why just in India? There are a number of us available via the world. Wolf I'm guessing because he wants a REAL cheap solution... what you (probably) charge for 5-7hrs work would probably be t

Re: [PHP] Most popular per month

2008-07-13 Thread Ryan S
Thanks Brady, Wolf, Bernhard! Will write back if i hit a wall but I think your explanations and links should take me all the way. Cheers! Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Most popular per month

2008-07-12 Thread Ryan S
i'll work from there? Google had an pie chart thingie, check the archives of this list. Thanks! Will do! Cheers! Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Most popular per month

2008-07-11 Thread Ryan S
appreciated. Also, if i am not mistaken there was some charting software to display this kind of data in pie and line charts... anybody know what i am talking about? because i cant find such a link in my bookmarks. Thanks in advance, Ryan -- PHP General Mailing List (http://www.php.net

[PHP] Static Member Overloading

2008-07-03 Thread Ryan Panning
Does anyone know if static member overloading was added in PHP 5.3? I noticed that static method overloading was (__callStatic). Thought I'd ask here before attempting to ask in the internals. Ex: __setStatic() __getStatic() __isset() __unset() -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Monitor a WP website

2008-06-24 Thread Ryan S
Ryan, That feed is indeed XML. Ooookay! I think i see where my confusion was coming in opening the "http://www.ballzbollywood.com/feed/"; in FF3 automatically parses it in a way... as does it in IE7... but opera is giving me the "raw" feed and it makes sense aga

Re: [PHP] Monitor a WP website

2008-06-24 Thread Ryan S
Okay, then get_file_contents(), parse between the tags that would contain the stuff you want to monitor, hash, store that, and do what I said. So far yours has been the best solution Tedd, thanks! Cheers! R -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

  1   2   3   4   5   6   7   8   9   10   >