[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
', 'orld', '!'); for($i = 0, $ln = sizeof($a); $i $ln; ++$i) { echo $a[$i]; } ? -- Paul Halliday http://www.squertproject.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Regards *Ryan Cunningham* Owner Construct Media Web

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

[PHP] gzdeflate and file_get_contents memory leak?

2011-01-09 Thread Ryan Reading
, the 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 rene7...@gmail.com wrote: On Mon, May

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

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 rquadl...@googlemail.com wrote: On 13 April 2010 17:25, Ryan Sun

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,

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 simples...@gmail.com wrote: On Fri, Apr 16,

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 a...@ashleysheridan.co.uk wrote: On Tue, 2010-04-13 at 23:01 -0600, Ashley M. Kirchner wrote: I have the following scenario:      $array1 =

[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

[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 nrix...@gmail.com wrote: Ryan Sun wrote: As we all know, __call() can overload non-accessible methods, eg. Class User {     public function __call($name, $args

[PHP] Re: how to overload accessible methods

2010-04-13 Thread Ryan Sun
wrote: Ryan Sun wrote: I'm writing an abstract parent class which only contain a validate method, other developers will extend this class and add many new public methods, every new methods will need to perform a validate first.  Won't it be good if validate get called automatically before every

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

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 webi...@gmail.com wrote: Hi, My insert statements on this web page don't execute. The select statements do work. This tells me that the database

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 rpj...@crashcourse.ca 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

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

[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
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 for delivering

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

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 biprel...@gmail.com wrote: Hi, I'm

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=300w=250 and you will just check if you have their domain on your list I'm not sure if there is better one but

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 a...@ashleysheridan.co.ukwrote: On Fri, 2010-02-12 at 18:25 -0500, Ryan Sun wrote: authenticate by remote domain name or remote ip $_SERVER['HTTP_REFERER

[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) {   

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 rquadl...@googlemail.com wrote: On 9 February 2010 15:42, Ryan Sun ryansu...@gmail.com wrote

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

2010-02-06 Thread Ryan S
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/) To unsubscribe, visit: http

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

2010-02-06 Thread Ryan S
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/) To unsubscribe, visit: http://www.php.net

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

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 =

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

2010-02-03 Thread Ryan S
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.

[PHP] DOM TextArea (and dom chart please)

2010-02-02 Thread Ryan S
or a resource that i can use to get started using this? 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://www.php.net

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 chart for php, the

Re: [PHP] Magento shopping cart

2010-02-02 Thread Ryan Sun
(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 s...@bigskypenguin.com 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 using

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

[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

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

2010-01-27 Thread Ryan Park
: On 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();

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 deal...@gmail.comwrote: 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

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 rob...@interjinn.comwrote: Parham Doustdar wrote: Hello there, A friend called me today and was wondering what happens if the ID

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,

[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

Re: [PHP] Foreign Characters Break in MySQL

2010-01-21 Thread Ryan Park
', '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'm currently trying to use PHP to insert foreign characters into one of the mysql database

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 ang...@zlogic.co.zawrote: Thanks guys, yes in general we will go with a lookup for each country, it wont be accurate

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 and...@packetstorm.comwrote: How do I call PHP code that will run server side, from javascript code that is running client side? I have a lot of

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

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 rpdw...@earthlink.net 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 =

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 linuxmanmi...@gmail.comwrote: http://framework.zend.com/manual/en/coding-standard.html#coding-standard.overview.scope This document provides

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 li...@cmsws.com wrote: Kirby Bakken wrote: None of the servers I run on have PHP

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 s...@bigskypenguin.com 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

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, form name=ticket_form onsubmit=this.submit.disabled=true; On Tue, Dec 1, 2009 at 4:06 PM, Skip Evans s...@bigskypenguin.com wrote: Hey all, You probably remember me asking about disabling a submit button

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) http://www.openssl.org/docs/apps/openssl.html#. *-passout arg* pass phrase source to encrypt

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 been

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

2009-08-26 Thread Ryan Cavicchioni
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
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, Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2009-08-24 Thread Ryan Cavicchioni
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
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 Cavicchioni -- PHP General Mailing List (http

Re: [PHP] php move_uploaded_file() filesize problem

2009-08-24 Thread Ryan Cavicchioni
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

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

[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

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: ?php /** * This class encapsulates an iterator that iterates over all the files in a * directory recursively. Only files that don't begin with a '.' are included * in this iteration. This

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

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

2009-01-26 Thread Ryan S
and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-) - Original Message From: Nitsan Bin-Nun nitsa...@gmail.com To: Ryan S gen...@yahoo.com Cc: php php php-general@lists.php.net Sent: Monday, January 26, 2009 6:39:19 PM Subject: Re: [PHP] Kinda 0

[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 pResponse: , $response, /ppReturn Value: , $retval; The $retval is returning code 127 -

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

2008-12-08 Thread Ryan S
is 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
Snippy Any advise is also most welcome. 'Advise' is a verb. 'Advice' is a noun. No charge. /Snippy 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:

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 words

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

Re: [PHP] index search

2008-10-24 Thread Ryan S
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
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. - Creativity is great

Re: [PHP] Mysql search

2008-10-22 Thread Ryan S
clipp 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. /clipp Did some searching based on your tip, got what i was looking for, just didnt

[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

[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
that there IS 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

[PHP] searching by tags....

2008-10-14 Thread Ryan S
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

[PHP] Little regex help please...

2008-10-13 Thread Ryan S
]: Unknown modifier 't' 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

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: ?php $data = file_get_contents(http://www.youtube.com/watch?v=oQ2dKXGAjNg;);

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

[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: ?php class Foo { public static $bar_instance; }

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

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

2008-08-24 Thread Ryan S
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 php-general@lists.php.net Sent: Monday, July 14, 2008 3:31:43 PM Subject: Re: [PHP] Freelance PHP development

Re: [PHP] Freelance PHP development in India

2008-07-14 Thread Ryan S
snip 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 /snip I'm guessing because he wants a REAL cheap solution... what you (probably) charge for 5-7hrs work would probably

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
examples and i'll work from there? snip Google had an pie chart thingie, check the archives of this list. /snip 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

[PHP] O-T What are we going to do about the O-T thread that asks the question: What we are going to do about those OT's?

2008-06-24 Thread Ryan S
Sorry, had to ask :o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Monitor a WP website

2008-06-24 Thread Ryan S
Hey, Is there a way to check if a new post has been submitted on your favourite wordpress site? Heres what i am trying to do: do a fopen http://ezee.se/articles-blog/ via CRON every x minutes if a new post has been submitted, i mail someone... but am not just looking to do this for this one

Re: [PHP] Monitor a WP website

2008-06-24 Thread Ryan S
Hey Eric, Stut, Maybe you should start by trying to utilize the RSS feed. Went to that option at first too... but have a quick look around, there are many sites that for some reason dont have this feature turned on, and for them... the only option i think is to read the page... unless I am

Re: [PHP] Monitor a WP website

2008-06-24 Thread Ryan S
been posted. Clarifications, Ryan? /clippity Hey, This is strange, I didnt get Tedds message but only got to read it through yours. Sorry for the mixup, yes, was thinking of making something like this and offer it for free, its a bit of both: what you and Tedd said. I want to check if a new

  1   2   3   4   5   6   7   8   9   10   >