Re: [PHP] relative linking in php

2008-03-22 Thread Nitsan Bin-Nun
Oops, I didnt post it to the list, copy is attached. On 22/03/2008, Nitsan Bin-Nun [EMAIL PROTECTED] wrote: Hi Sudhakar, There are 2 solutions, You can change the form tag to something like: form action=?php echo $_SERVER[PHP_SELF]; ?*#errorsArea* method=POST id=test2 name

Re: [PHP] Multi sessions - IE

2008-04-04 Thread Nitsan Bin-Nun
*im really sorry for interupting* The session.use_trans_sid setting automaticly adds sid=**(32-chars-sess-id)** to the url's of the website, it should solve your problem try to use it if you have an access to php.ini otherwise, my suggestion is to forward a compiled (coded or something like

Re: [PHP] Dynamic dropdown lists (select)

2008-04-04 Thread Nitsan Bin-Nun
After reading the rest of the conversation, I think the best solution is the next thing: First, if I got this correct, you can extract the makes select-element from the mysql using a query? if so, then extract it and host is in a temp variable. The next thing is writing down a js code, that

Re: [PHP] Multi sessions - IE

2008-04-04 Thread Nitsan Bin-Nun
to the adding form and submit the request, the item will be added cause of the active session at the next tab ;) the solution for this is using tokens (ask and ill explain). On 04/04/2008, Thiago Pojda [EMAIL PROTECTED] wrote: -Mensagem original- De: Nitsan Bin-Nun [mailto:[EMAIL

[PHP] Recommended PHP Editors?

2008-04-07 Thread Nitsan Bin-Nun
Hi, I'm working with serveral PHP editors, each has it own restrictions. So umm, What editors do you recommend and what special functions and dis/adventages they have (maybe im overkilling my own back). Thanks In Advance, Nitsan

Re: [PHP] Check RAW data

2008-04-21 Thread Nitsan Bin-Nun
On IE 5.5 and 6.x you can inject JS through PNG's As I remember, they patched it at 7.x On 20/04/2008, Richard Heyes [EMAIL PROTECTED] wrote: I mean, if you already specified it as a PNG image with header(), how do you execute Javascript/malicious code, as the browser will render it as a

Re: [PHP] AJAX and PHP

2008-04-21 Thread Nitsan Bin-Nun
Hi Alain, You can create a mini-db with XML, that contains translations for each of the words you need (if there are 10 words, 50 langs, you got 500 records.. small and useful). HTH, Nitsan On 21/04/2008, Alain Roger [EMAIL PROTECTED] wrote: Hi, i'm playing around with AJAX and PHP to create

Re: [PHP] php framework vs just php?

2008-04-22 Thread Nitsan Bin-Nun
Umm hell yes? I don't use frameworks, its an awsome thing, but I don't like them. But if I'm not using any framework at all, the least I do is writing the application object-oriented'ly. Regards, Nitsan On 22/04/2008, paragasu [EMAIL PROTECTED] wrote: honestly, i never used any framework to do

Re: [PHP] web based chat app

2008-05-01 Thread Nitsan Bin-Nun
umm sorry for interupting but RTFM / STFM? btw, if you dont need history you can write an webby irc client On 01/05/2008, paragasu [EMAIL PROTECTED] wrote: you build one. Thats the point of it wasn't it eh? A friend and I made a chat with jabber throught second life (the game) and a

Re: [PHP] web based chat app

2008-05-03 Thread Nitsan Bin-Nun
can change the background and the whole look to feat your website, also the language, even Hebrew is supported :D HTH, Nitsan On 03/05/2008, paragasu [EMAIL PROTECTED] wrote: On Fri, May 2, 2008 at 4:42 AM, Nitsan Bin-Nun [EMAIL PROTECTED] wrote: umm sorry for interupting but RTFM

Re: RES: [PHP] Help Call Javascript Methods Inside PHP

2008-05-21 Thread Nitsan Bin-Nun
I was surprised it didnt came up before. As Tedd said, try to ajax-up your javascript On 20/05/2008, tedd [EMAIL PROTECTED] wrote: At 11:41 AM -0300 5/20/08, Thiago Pojda wrote: That way you can conditionally send some JS to client, but running actual JS in PHP is not possible. While

Re: [PHP] echo returnArray()['a']; // workaround

2008-05-24 Thread Nitsan Bin-Nun
Nice trick, I will remember this one. Thanks for sharing, Nitsan On 23/05/2008, Nathan Nobbe [EMAIL PROTECTED] wrote: On Fri, Feb 29, 2008 at 12:16 AM, Nathan Nobbe [EMAIL PROTECTED] wrote: wow, im going to have to stare at some of those and play around with them as soon as im half awake

Re: [PHP] Regex in PHP

2008-06-04 Thread Nitsan Bin-Nun
I can't find any good reason for regex in this case. you can try to split it with explode / stristr / create a function by your own which goes over the string and check when a @ is catched, something like: function GetDomainName ($a) { $returnDomain = ; $beigale = false; for ($i = 0; $i

Re: [PHP] Regex in PHP

2008-06-04 Thread Nitsan Bin-Nun
at least he have some humer ;-) On 04/06/2008, Robert Cummings [EMAIL PROTECTED] wrote: On Wed, 2008-06-04 at 10:56 -0600, Nathan Nobbe wrote: On Wed, Jun 4, 2008 at 10:26 AM, Robert Cummings [EMAIL PROTECTED] wrote: Nope, case insensitive is slower since you must make two tests for

Re: [PHP] Dynamic form changes without refresh

2008-06-07 Thread Nitsan Bin-Nun
Try to pull this algorithm into a function, then add it to the onLoad attribute of your body element, so on the each load it call the function which calls it self each X seconds interval (use the functions mentioned by Todd) On 05/06/2008, Mayer, Jonathan [EMAIL PROTECTED] wrote: Hiya all, I

Re: [PHP] How to structure code for forms

2008-06-08 Thread Nitsan Bin-Nun
Exectly, I fall in love with zend_form but you can use cakephp or joomla and etc HTH On 08/06/2008, Nirmalya Lahiri [EMAIL PROTECTED] wrote: --- On Sun, 6/8/08, Ethan Whitt [EMAIL PROTECTED] wrote: From: Ethan Whitt [EMAIL PROTECTED] Subject: [PHP] How to structure code for forms To:

Re: [PHP] regular expression to find body text in mobile

2008-06-11 Thread Nitsan Bin-Nun
I'm confused. PHP runs on the server, so it shouldn't be a problem at all to run regex search/reaplce/match/whatever on mobile phone internet, maybe you are talking on JS regex? Nitsan On 11/06/2008, Yui Hiroaki [EMAIL PROTECTED] wrote: Doese any know how to find text in mobile using Regular

Re: [PHP] Redirect after pdf / file download

2008-06-12 Thread Nitsan Bin-Nun
You are totally in the wrong way. I would use an a tag and onclick property for opening the PDF in popup relocating the current page HTH Nitsan On 12/06/2008, Yashesh Bhatia [EMAIL PROTECTED] wrote: Hello: I'm trying to emulate a problem i'm trying to solve as follows. 1 - user enters

Re: [PHP] How to prevent DoS on PHP script?

2008-06-16 Thread Nitsan Bin-Nun
I think you can handle this with 2 pages, the first is checking whether the user is permitted to upload or not and if so passing him to the upload form with a simple (bool) $_SESSION variable which indicates his permissions. If you will try to access the second page and the $_SESS variable won't

Re: [PHP] How to prevent DoS on PHP script?

2008-06-16 Thread Nitsan Bin-Nun
Okay, I got the idea, I think you can use PHP to write .htaccess file for IP blocking or something like that (shared hosts allow this and I'm pretty sure that Apache .htaccess are able to manage IP blocking). HTH, Nitsan On 16/06/2008, Jim Lucas [EMAIL PROTECTED] wrote: Nitsan Bin-Nun wrote

Re: [PHP] How to prevent DoS on PHP script?

2008-06-16 Thread Nitsan Bin-Nun
like this before. On 16/06/2008, Jim Lucas [EMAIL PROTECTED] wrote: Nitsan Bin-Nun wrote: Okay, I got the idea, I think you can use PHP to write .htaccess file for IP blocking or something like that (shared hosts allow this and I'm pretty sure that Apache .htaccess are able to manage IP

Re: [PHP] mkdir() Cannot Create Directories

2008-06-17 Thread Nitsan Bin-Nun
As far as I remember, when I was on shared windows I had something similar (no access to upload/create folders), the tech guy at the company i was hosting at changed something in my privileges and it solved it. You may have no creating privileges. On 17/06/2008, Wei, Alice J. [EMAIL PROTECTED]

Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable

2008-06-19 Thread Nitsan Bin-Nun
Hehe, for you it is a matter of choice, In 2 years from now I will start my service duty at the combat - we have to serv - this is mandatoy in Israel. Regards, Nitsan On 19/06/2008, Jason Pruim [EMAIL PROTECTED] wrote: On Jun 19, 2008, at 11:35 AM, Daniel Brown wrote: On Thu, Jun 19, 2008

Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable

2008-06-19 Thread Nitsan Bin-Nun
Dan i'm 16 years old, currently my monthly salary (working as php freelancer) almost catching my dad's and he is living good. In 2 years from now I have to serv, probably at the battle field (I'm healthy qualified) and usualy the place where guys like me being send to includes additional 2 years -

Re: [PHP] download file from an ajax request

2008-06-20 Thread Nitsan Bin-Nun
I believe that you don't even have to program it, try to use: iframe src='xxx.php'/iframe And include download headers on the php file - as far as i remember it should popup a save as dialog. Regards, Nitsan On 20/06/2008, pere roca ristol [EMAIL PROTECTED] wrote: yes Iv, surely this is a

[PHP] (*OT) What we are going to do about those OT's?

2008-06-20 Thread Nitsan Bin-Nun
Someone had to start some thread like this.. I think we should create another list for those OT's as Daniel suggested. Any ideas? Regards Shabat Shalom, Nitsan btw I cant see any reasonable cause to avoid OT's in the general list, but if you think its not related, so it will be better to solve

Fwd: [PHP] How to make a Auto View and a Download Link for PDF?

2008-06-22 Thread Nitsan Bin-Nun
Oops -- Forwarded message -- From: Nitsan Bin-Nun [EMAIL PROTECTED] Date: 21 Jun 2008 19:23 Subject: Re: [PHP] How to make a Auto View and a Download Link for PDF? To: Michelle Konzack [EMAIL PROTECTED] I am not 100 percent sure that i have understood your idea, but if i did you

Re: [PHP] Variables in forms

2008-06-23 Thread Nitsan Bin-Nun
Can you send us some of the code so we would be able to help you? On 23/06/2008, Ron Piggott [EMAIL PROTECTED] wrote: Jim what you sent is very helpful. I had an error message when I submitted the form with a POST your_cleaning_function gave me this error: Fatal error: Call to

Re: [PHP] Re: Re: Re: Military Service WAS [PHP] Capitalization of variable

2008-06-23 Thread Nitsan Bin-Nun
What wierd things have you read? I'm agreeing with Dotan, I dont know how things going these days in the Israeli army, but if you are looking at the history, it proves what Dotan said, whenever we had no technolgy, no development we were still able to strike out the enemy. I guess any of us can't

Re: [PHP] Monitor a WP website

2008-06-24 Thread Nitsan Bin-Nun
RSS parsing is like anything else.. I believe you can create a database which will contain URL customized regex to scrape the information from the website. I dont have other ideas, thats what just poped in my mind. HTH, Nitsan On 24/06/2008, Ryan S [EMAIL PROTECTED] wrote: Hey Eric, Stut,

[PHP] How to check if $string contains Hebrew characters?

2008-06-25 Thread Nitsan Bin-Nun
Hi, I have a $string and i want to know if it contains Hebrew characters in it, I wrote the following: function containHebrewChars ($string) { $chars = אבגדהוזחטיכלמנסעפצקרשת; // ABC of hebrew chars (AlefBet) $chars = preg_replace(/([\xE0-\xFA])/e,chr(215).chr(ord(\${1})-80),$chars); //

Re: [PHP] Re: Fwd: How to make a Auto View and a Download Link for PDF?

2008-06-27 Thread Nitsan Bin-Nun
Great. Cheers, Nitsan On 25/06/2008, Michelle Konzack [EMAIL PROTECTED] wrote: Hi Nitsan, Am 2008-06-22 22:09:38, schrieb Nitsan Bin-Nun: Oops :-) -- Forwarded message -- From: Nitsan Bin-Nun [EMAIL PROTECTED] Date: 21 Jun 2008 19:23 Subject: Re: [PHP] How

Re: [PHP] Strategy to protect images

2008-07-01 Thread Nitsan Bin-Nun
Umm have you ever thought about watermark-ing it? (In case its not a part of your website or something..) On 01/07/2008, Stefano Esposito [EMAIL PROTECTED] wrote: On Sun, 15 Jun 2008 13:48:28 +0200 Stefano Esposito [EMAIL PROTECTED] wrote: Hi all, i have to forbid users of my site to

Re: [PHP] Web2.0 style tags - where to start?

2008-07-30 Thread Nitsan Bin-Nun
From my experience with Codeigniter, thats one of the best php frameworks I have ever seen. It functionality is awesome, you can integrate your own modifications to the IC core without any problems at all, for more confortable you even don't have to use a template system (but I'm pretty sure that

Re: [PHP] Using $_GET for POST

2008-07-30 Thread Nitsan Bin-Nun
Umm I suggest you try this code: index.php: ?php $formContainer = EOF form ACTION=index.php?this=isawsome=dontyou=think METHOD=POST input type='text' name='check' value='' /br / input VALUE=submit name='submitted' TYPE=submit/form EOF; if (!isset($_POST['submitted']))

Re: [PHP] Re: concatenating with . or ,

2008-08-25 Thread Nitsan Bin-Nun
Gosh, what a smart ass! The comma can also concatenate string! You may want to run the following lines: ?php $a = 3; $b = 5; echo $a, abc, $b; ? Regards, (I'm actually crying right now for guys like who showoff too much..) Nitsan 2008/8/25 Colin Guthrie [EMAIL PROTECTED] Govinda wrote: easy

Re: [PHP] AJAX and PHP

2008-10-04 Thread Nitsan Bin-Nun
It depends how much stuff you have in the first div, it there are a lot of images and the user will have to load them again (in case there is no cache) and you care for the traffic those images cost - it would be better to use AJAX. But generally - they both okay, I personally would use reload of

Re: [PHP] web shot script

2008-10-18 Thread Nitsan Bin-Nun
In general thats what I would do: Install firefox on the server, Open FF, take a screen shot, paste it to whatever graphic editor you have, Save the current image to a directory (This idea can be done in PHP, more than that, I have already wrote it, if I were able to find it I would have been

Re: [PHP] Convert video to FLV like youtube

2008-10-18 Thread Nitsan Bin-Nun
Straightforward and useful, I have added it to the videos conversion snippets directory ;) Sokot Sameh, Nitsan Bin-Nun On Sat, Oct 18, 2008 at 10:45 PM, Dotan Cohen [EMAIL PROTECTED] wrote: 2008/10/18 Ryan S [EMAIL PROTECTED]: Hey! Been googleing for a way to convert video to flv just

[PHP] Best way to recieve image from url?

2008-10-19 Thread Nitsan Bin-Nun
Hi, I have this function: function saveImageFromUrl($image_url, $image_save) { $contents = file_get_contents($image_url); $fp = fopen($image_save, 'w'); fwrite($fp, $contents); fclose($fp); } As you can see it fetches the images contents and write

Re: [PHP] Remote Developer Wanted

2008-10-21 Thread Nitsan Bin-Nun
I'm 16 years old and have a steady income for the last 3 month as PHP developer company in Israel which pays me almost doubled then your high rate (if you convert it from Israeli Shequl to $). I wouldn't work for less than 20$ per hour - that's for sure. I don't think your will find a good

Re: [PHP] export data to a ms excel file using php

2008-10-22 Thread Nitsan Bin-Nun
And what about users who use office version 2003 (which do NOT support .xml charts) You can google a bit, I'm pretty sure I have already encountered a class for this case at Manuel's site (phpclasses). Nitsan On Wed, Oct 22, 2008 at 9:00 PM, Ashley Sheridan [EMAIL PROTECTED]wrote: On Wed,

Re: [PHP] Regex validation

2008-10-28 Thread Nitsan Bin-Nun
Good to know filter_var() exists in PHP5 Unless you have PHP5 you better validate the string in the way of checking if it is fit's to your allowed characters and not checking if it contains the NOT allowed charaters. You better use: [a-z0-9A-Z\_\.]+ instead of [^\)\(\*\[EMAIL PROTECTED] and I

Re: [PHP] Yahoo/Gmail/Hotmail Contacts API

2008-10-31 Thread Nitsan Bin-Nun
I would suggest trying Manuel's website (phpclasses). HTH, Nitsan On Fri, Oct 31, 2008 at 6:25 PM, Feris [EMAIL PROTECTED] wrote: Hi All, I noticed that social networking sites can retrieve our contacts using an authenticated session. Is there any open source PHP API to achieve the same

Re: [PHP] Random number generator

2008-11-05 Thread Nitsan Bin-Nun
Umm I must notify you, just in case you don't know this, that you have to be aware of the fact that the humanity haven't found a way to get a random number (yet. they are working on it while I'm writing this..) (; On Wed, Nov 5, 2008 at 9:43 PM, Gary M. Josack [EMAIL PROTECTED] wrote: WEISD

[PHP] Parsing out excel's .xls textboxes?

2008-11-13 Thread Nitsan Bin-Nun
Hi, I have an excel parser I found out on the net a while ago. It does a really great job untill now. I need to parse out an excel file (.xls) with excel's textboxes in it, I want to fetch the textboxes content from the .xls somehow. I have no idea where to look out for this, I have even

Re: [PHP] Parsing out excel's .xls textboxes?

2008-11-13 Thread Nitsan Bin-Nun
It is binary file, saved from office 2003. There is no way of changing the office version (so I can save it as .xml of something) so I have to figure out how to parse these textboxes. Nitsan On 11/14/08, Ashley Sheridan [EMAIL PROTECTED] wrote: On Fri, 2008-11-14 at 00:45 +0200, Nitsan Bin-Nun

Re: [PHP] FirePHP -- pretty cool

2009-01-11 Thread Nitsan Bin-Nun
I'm using FireBug 24/7/365 and I also knew FirePHP before but I never tried it or had any experience with it that I can share. There are any other options and functions that FirePHP gives which not require you to involve changing your code? Nitsan On Sun, Jan 11, 2009 at 6:46 PM, Skip Evans

Re: [PHP] What's the best way to rotate, resize, and thumbnail?

2009-01-15 Thread Nitsan Bin-Nun
Umm I don't think there is any benchmark tests that will suit your case, it really depends on what you are going to do to the image. I suggest you to benchmark and measure these things, I also know codeigniter has a built-in image editing class, and as far as I remember you can choose in your

Re: [PHP] Military - Standard times

2009-01-21 Thread Nitsan Bin-Nun
Umm I don't think there is a better option, you probably can return the output straight: function standardToMilitary($t) { return strftime('%R', strtotime($t)); } function militaryToStandard($t) { return strftime('%r', strtotime($t)); } But it doesn't really matter. On Wed, Jan 21,

Re: [PHP] Dirty Button

2009-01-25 Thread Nitsan Bin-Nun
Since you are using JS why not just update the content straight away? (ajax/etc) On Sun, Jan 25, 2009 at 7:55 PM, tedd tedd.sperl...@gmail.com wrote: Hi gang: I had a problem and solved it -- here's the write-up: http://www.webbytedd.com/b/update-select/index.php What do you think of the

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

2009-01-26 Thread Nitsan Bin-Nun
I have just quitted from my partial time job at the company. I did some personally sites like that for 2 banks here in Israel. When I do something like that I usually basing the whole thing on the known blogging platform WordPress, it has a massive power inside of it, the templating system is

[PHP] Database Tables Relation Issue

2009-01-30 Thread Nitsan Bin-Nun
unique visitors/DAY ;) -- ? Nitsan Bin-Nun Web Applications Developer nit...@binnun.co.il 972-52-5722039

Re: [PHP] Database Tables Relation Issue

2009-01-30 Thread Nitsan Bin-Nun
, 2009 at 4:10 PM, Bastien Koert phps...@gmail.com wrote: On Fri, Jan 30, 2009 at 8:37 AM, Andrew Ballard aball...@gmail.comwrote: On Fri, Jan 30, 2009 at 3:38 AM, Nitsan Bin-Nun nit...@binnun.co.il wrote: Hi there, I'm working on something similar to mailing list in which every registered

[PHP] PHP Enclosing Tags? Do You Close Your PHP Declarations?

2009-01-30 Thread Nitsan Bin-Nun
handling. Do you close your PHP ?php tags? (at least I closed them here :P look down) -- ? Nitsan Bin-Nun Web Applications Developer nit...@binnun.co.il 972-52-5722039

Re: [PHP] frameworks

2009-01-30 Thread Nitsan Bin-Nun
comes with its own learning curve from easy to steep... downloaded several and play with them to work out what fits your needs -- Bastien Cat, the other other white meat -- ? Nitsan Bin-Nun Web Applications Developer nit...@binnun.co.il 972-52-5722039

Re: [PHP] frameworks

2009-01-30 Thread Nitsan Bin-Nun
at 9:26 PM, Skip Evans s...@bigskypenguin.com wrote: Nitsan Bin-Nun wrote: I usually uses CI, just because it is written in PHP4 and in about 50% of the servers in Israel there is no PHP5 :X I am just curious. Why is PHP 5 so rare there? -- Skip Evans

Re: [PHP] Boolean Assignment Operator

2009-02-02 Thread Nitsan Bin-Nun
It actually will return FATAL ERROR or something like that since you didn't echo'ed variables or string ;) On Mon, Feb 2, 2009 at 3:03 PM, Edmund Hertle edmund.her...@student.kit.edu wrote: 2009/2/2 Gavin Hodge gavin.ho...@gmail.com Hi, I'm fairly new to PHP, having migrated from the

Re: [PHP] Heredoc inside eval?

2009-02-14 Thread Nitsan Bin-Nun
For instance you have: htmlbla?php echo abcd;?/bla/html The simplest way to eval() it is to use: eval(? . $string_of_html_and_php . ?php); And for what you asked, try this one: eval(\$html = hds $html; hds;); It might work. HTH, Nitsan On Sat, Feb 14, 2009 at 3:58 PM, Michael

Re: [PHP] Heredoc inside eval?

2009-02-14 Thread Nitsan Bin-Nun
I haven't figured from your sayings if my solutions worked? I haven't tested them so I thought you would check them out ;) Nitsan On Sat, Feb 14, 2009 at 6:59 PM, Michael N. Madsen m...@criion.net wrote: Sorry for not including a a code example of the template. html ..

Re: [PHP] Browser timeout

2009-02-27 Thread Nitsan Bin-Nun
Hi Daniel, Can you supply more information regarding this script? what it does? Regards, Nitsan דרך אגב נחמד לראות פה עוד ישראלים שבת שלום

Re: [PHP] www.soongy.com

2009-03-01 Thread Nitsan Bin-Nun
There is no need to go that far, try to google a bit about swfupload. In short, this is a flash javascript component that give's you the ability to maintain the upload, get the current speed, get the current amount of uploaded data, etc. It is very simple and works like a charm on a dedi server.

Re: [PHP] upload progress (was www.soongy.com)

2009-03-02 Thread Nitsan Bin-Nun
I have just been wondering for the 20 zillion time why does people always stick together 20 and zillion? you can't just use zillion times? is that not enough for you? On Mon, Mar 2, 2009 at 10:26 PM, Michael A. Peters mpet...@mac.com wrote: mike wrote: On Mon, Mar 2, 2009 at 7:45 AM, Boyd,

[PHP] Unexplained Issue Using Regex

2009-03-06 Thread Nitsan Bin-Nun
Hi lista, I have been trying to figure this out for the last couple of hours but I'm lack of luck. Take a look at these regex's, the string that was inputed into the preg_replace (using Uis modificators) and the results: (the lists have correspondence to each other) ORIGINAL STRING

Re: [PHP] Unexplained Issue Using Regex

2009-03-06 Thread Nitsan Bin-Nun
, '/'), 1, strlen(strrchr($string, '/'))); ? OUTPUT: C:\php test.php http://www.zshare.net/video/541070871c7a8d9c HELLYES-541070871c7a8d9c HELLYES-541070871c7a8d9c HELLYES-541070871c7a8d9c C:\ On Fri, Mar 6, 2009 at 2:32 PM, Nitsan Bin-Nun nit...@binnun.co.il wrote: Hi lista, I have

Re: [PHP] Unexplained Issue Using Regex

2009-03-06 Thread Nitsan Bin-Nun
issue and not going in another way this would be very appreciated. Thank you again for trying to help. On Fri, Mar 6, 2009 at 11:40 PM, Jim Lucas li...@cmsws.com wrote: Nitsan Bin-Nun wrote: Hi lista, I have been trying to figure this out for the last couple of hours but I'm lack of luck

Re: [PHP] Unexplained Issue Using Regex

2009-03-06 Thread Nitsan Bin-Nun
and I'm sure there a way better solutions to this problem. On Fri, Mar 6, 2009 at 11:53 PM, haliphax halip...@gmail.com wrote: On Fri, Mar 6, 2009 at 3:44 PM, Nitsan Bin-Nun nit...@binnun.co.il wrote: I'm not looking for other ideas, the main thing here is that I have about 30-100 regex's

Re: [PHP] Unexplained Issue Using Regex

2009-03-06 Thread Nitsan Bin-Nun
Got it, thank you Todd. I usually tend to use string based functions instead of regex, but sometimes regex is a better option. On Sat, Mar 7, 2009 at 12:16 AM, haliphax halip...@gmail.com wrote: On Fri, Mar 6, 2009 at 4:01 PM, Nitsan Bin-Nun nit...@binnun.co.il wrote: On Fri, Mar 6, 2009

Re: [PHP] Unexplained Issue Using Regex

2009-03-07 Thread Nitsan Bin-Nun
...@iamjochem.com wrote: Nitsan Bin-Nun schreef: Hi lista, I have been trying to figure this out for the last couple of hours but I'm lack of luck. Take a look at these regex's, the string that was inputed into the preg_replace (using Uis modificators) and the results: (the lists have

Re: [PHP] Unexplained Issue Using Regex

2009-03-07 Thread Nitsan Bin-Nun
without any cost. Visit : www.ubuntu.com -- On Sat, Mar 7, 2009 at 3:46 PM, Nitsan Bin-Nun nit...@binnun.co.ilwrote: There is no reason to share the code because it happens with almost ALL the regex's I'm using :( But I worked

Re: [PHP] Database Abstraction Class

2009-03-07 Thread Nitsan Bin-Nun
I'm personally using CI DB abstraction layer, also used zend_db, they both good but as Eric said, I think PDO is a better option. On Sat, Mar 7, 2009 at 7:34 PM, Eric Butera eric.but...@gmail.com wrote: On Sat, Mar 7, 2009 at 8:04 AM, Michael A. Peters mpet...@mac.com wrote: In some earlier

Re: [PHP] Long Execution Time - Safe Mode

2009-03-08 Thread Nitsan Bin-Nun
I don't know if it will work but it definitely worth's a shoot.. try to create a recursive call from your php page to the same php page, then in each call make let's say umm 10 edits, using this method you will probably be able to bypass the server's limitations, but I had never tested it so I

Re: [PHP] GeoIP?

2009-03-15 Thread Nitsan Bin-Nun
Take a look at this: http://www.maxmind.com/app/geolitecountry Use indexes, I think the checkup won't take long. HTH, Nitsan On Sun, Mar 15, 2009 at 3:06 PM, tedd tedd.sperl...@gmail.com wrote: At 1:52 PM +0100 3/15/09, Michelle Konzack wrote: Hello, I am in creation of a WaveLAN service

Re: [PHP] Re: GeoIP?

2009-03-15 Thread Nitsan Bin-Nun
Hi Michelle, Try to use sqlite instead of any other database. It will be better I guess. Regards, Nitsan On Sun, Mar 15, 2009 at 9:08 PM, zerof ze...@terra.com.br wrote: Michelle Konzack escreveu: Hello Nitsan, Am 2009-03-15 15:39:26, schrieb Nitsan Bin-Nun: Take a look at this: http

Re: [PHP] So called PHP Expert

2009-03-20 Thread Nitsan Bin-Nun
Hi Daniel, Please keep these things out of the list. I'm sure that you want to have programming related stuff going on this list instead of discussions about telling someone lessons in life. We all do want the same, we want to have php related questions and discussions (also some funny and humor

[PHP] Frameworks Which Have A Bake Function?

2009-03-22 Thread Nitsan Bin-Nun
Hi Guys, I have been using cakephp for a while as a development framework. I'm also thinking for a while to use another framework and leave cakephp alone (too much babbling.. it takes too much time until you get to the code itself..), now I have decided to move on and here comes my question. Do

Re: [PHP] Frameworks Which Have A Bake Function?

2009-03-22 Thread Nitsan Bin-Nun
, they both will take a db structure - models. Symfony might be worth looking at, you can tell it to create a basic view/controller for them as well. Graham On Mar 22, 2009, at 11:52 AM, Nitsan Bin-Nun wrote: Hi Guys, I have been using cakephp for a while as a development framework. I'm

Re: [PHP] Regex

2009-03-26 Thread Nitsan Bin-Nun
To filter out everything which is not A-Z, a-z and 0-9 try this regex: $str = preg_replace(#[^a-zA-Z0-9]+#is, , $str); On Thu, Mar 26, 2009 at 10:23 PM, jesse.ha...@arvatousa.com wrote: Hi, Brand new to regex. So I have a cli which runs a regex on users input, to make sure that only 0-9

Re: [PHP] Regex

2009-03-26 Thread Nitsan Bin-Nun
. Valencia, CA 91355 http://arvatodigitalservices.com jesse.ha...@arvatousa.com Tel. +1 (661) 702-2727 Fax. +1 (661) 775-6478 -- *From:* nit...@binnun.co.il [mailto:nit...@binnun.co.il] *On Behalf Of *Nitsan Bin-Nun *Sent:* Thursday, March 26, 2009 1:44 PM

Re: [PHP] Regex

2009-03-26 Thread Nitsan Bin-Nun
: preg_replace(): Compilation failed: nothing to repeat at offset 17 Thanks, Jesse Hazen -- *From:* nit...@binnun.co.il [mailto:nit...@binnun.co.il] *On Behalf Of *Nitsan Bin-Nun *Sent:* Thursday, March 26, 2009 1:58 PM *To:* Hazen, Jesse, arvato

Re: [PHP] what to use instead of foreach

2009-04-13 Thread Nitsan Bin-Nun
var_dump(implode(br /, $array) . br /); On Mon, Apr 13, 2009 at 7:07 PM, PJ af.gour...@videotron.ca wrote: Hi Leon thanks. It sure is complicated. Jim Lucas example did the trick very nicely (in my other post - extract varying data from array with different formatting but here I am

Re: [PHP] multi-dimensional arrays

2009-04-13 Thread Nitsan Bin-Nun
$string = xxx xx x xx xxx xxx xx x xx xxx; $t = explode(\n, $string); foreach ($t as $k = $v) $t[$k] = explode( , $v); var_dump($t); On Mon, Apr 13, 2009 at 8:55 PM, Andres Gonzalez and...@packetstorm.comwrote: Hi, I am learning PHP and have a simple question. I

Re: [PHP] multi-dimensional arrays

2009-04-13 Thread Nitsan Bin-Nun
Just wondering, there is callback version of preg_match_all() ? if so you could have done it in one line I think.. On Mon, Apr 13, 2009 at 9:52 PM, Andres Gonzalez and...@packetstorm.comwrote: I was having the same problem. The second way was what I was looking for. Thank you so much for your

Re: [PHP] alt() - unknown function?

2009-04-16 Thread Nitsan Bin-Nun
alt sounds like alternator ;) On Wed, Apr 15, 2009 at 10:00 PM, Paul M Foster pa...@quillandmouse.comwrote: On Wed, Apr 15, 2009 at 03:23:19PM +0100, Tom Calpin wrote: Hi all, I've just started looking at the code of an e-commerce site we are taking over the development of, that

[PHP] Need Your Help :) I'm Just About Creating File Uploading Service

2009-04-16 Thread Nitsan Bin-Nun
Hi List, I have been thinking for a while about setting up my own rapidshare.comclone, Few days back I went really serious with this and came up with some ideas. This is where I need your help, my partner and I have been thinking about the system that the website should run on. We came to

Re: [PHP] Need Your Help :) I'm Just About Creating File Uploading Service

2009-04-16 Thread Nitsan Bin-Nun
What is Amazon SSS?? On Thu, Apr 16, 2009 at 8:59 PM, Leonard Burton leonardbur...@gmail.comwrote: Why not use something like Amazon SSS and not worry about a lot of the details? On Thu, Apr 16, 2009 at 2:29 PM, Nitsan Bin-Nun nit...@binnun.co.il wrote: Hi List, I have been thinking

Re: [PHP] Need Your Help :) I'm Just About Creating File Uploading Service

2009-04-16 Thread Nitsan Bin-Nun
My bad, I'm sending a copy to the list. On Thu, Apr 16, 2009 at 9:37 PM, Nitsan Bin-Nun nit...@binnun.co.il wrote: Actually I don't much care for that, IMO 700MB~ is way too big for HTTP, I thought of giving away FTP links for download, but I have thought of the following: * First

Re: [PHP] Need Your Help :) I'm Just About Creating File Uploading Service

2009-04-16 Thread Nitsan Bin-Nun
You are definitely right, but there is one thing that you didn't knew and I'm sure that you didn't take into account - usually the files on the server will be DVD rip's that are typically 700MB~ in size, every second movie that people will download will contain some interrupted pieces, although

Re: [PHP] Need Your Help :) I'm Just About Creating File Uploading Service

2009-04-16 Thread Nitsan Bin-Nun
Neh, we don't have plenty of these in Israel, don't count it in as an issue. Serving the files won't be an overkill for my harddrive / cpu usage / anything else? There is a better way to serve the files with/without PHP and keeping them outsite of the HTTP root? Thanks in Advance, Nitsan On

Re: [PHP] Need Your Help :) I'm Just About Creating File Uploading Service

2009-04-16 Thread Nitsan Bin-Nun
PM, Michael A. Peters mpet...@mac.com wrote: Nitsan Bin-Nun wrote: Neh, we don't have plenty of these in Israel, don't count it in as an issue. Serving the files won't be an overkill for my harddrive / cpu usage / anything else? There is a better way to serve the files with/without PHP

[PHP] Creating A Chat?

2009-04-20 Thread Nitsan Bin-Nun
Hi Guys, I have created few chats in the past, but I'm trying to create a new one which saves on HTTP requests and do not become an overkill to the server as more users get in. The chat is a one on one, I'm trying to achieve this: * A user sends a message * The message is not saved/save

Re: [PHP] how to determine if a mysql query returns an empty set?

2009-04-23 Thread Nitsan Bin-Nun
mysql_num_rows() maybe? if not I probably haven't understood your question. On Thu, Apr 23, 2009 at 8:12 PM, Adam Williams awill...@mdah.state.ms.uswrote: Is there a way to determine if a mysql query returns an empty set? I am selecting 10 results at a time with a limit statement and need to

Re: [PHP] Change color of anything in double/single quotes

2009-04-26 Thread Nitsan Bin-Nun
That's what I was just about saying, in addition try to add the HTML entities to the regular expression as well: $string = preg_replace('/(?: #34;|)(.*?)(?: #34;|)/', 'font color=color\\1/font', $string); Also if you don't to get caught by the HTML validator you better surround the color name

Re: [PHP] I need ideas for things to code

2009-04-27 Thread Nitsan Bin-Nun
IMO all you need is a cellphone with some normal calendar features. I do also tend to use Google Calendar from time to time to text me whenever something shows up on the board. Google Apps is also very useful for email managing, etc. HTH, Nitsan On Mon, Apr 27, 2009 at 10:29 PM, Govinda

Re: [PHP] Hebrew Directory Names

2009-05-28 Thread Nitsan Bin-Nun
i have tried this: ?php if (!defined('THROUGH_INDEX')) die('Sorry mate!'); $default_locale = setlocale(LC_ALL, 'en_US.UTF-8'); ini_set('default_charset', 'UTF-8' ); $_GET['folder'] = preg_replace(/([\xE0-\xFA])/e,chr(215).chr(ord(\${1})-80),$_GET['folder']); $dirname =

Re: [PHP] Hebrew Directory Names

2009-05-29 Thread Nitsan Bin-Nun
Your point is right but these code point does not exist in the subject string so this isn't the issue here. I'm really stuck at this one :S Thank you again for trying to help! On Fri, May 29, 2009 at 2:40 PM, Tom Worster f...@thefsb.org wrote: On 5/28/09 2:06 PM, Nitsan Bin-Nun nit

[PHP] How To Limit FIle Uploader Against Hijackers?

2009-05-30 Thread Nitsan Bin-Nun
Hi I have wrote a file uploader in PHP, and I don't want people to hijack it (get direct links, download whenever they want, etc). Currently I have placed the uploaded files one directory up from the www root, and I'm hosting the files mime type in order to serve them on the fly. I'm trying to

Re: [PHP] Pointer for csv files

2009-05-30 Thread Nitsan Bin-Nun
http://il.php.net/manual/en/function.file.php http://il.php.net/manual/en/function.str-getcsv.php http://il.php.net/fgetcsv You can go through the lines and start buffering them when you get to 400, and stop the buffer and continue; the loop when you reach line 1400. On Sat, May 30, 2009 at

Re: [PHP] How To Limit FIle Uploader Against Hijackers?

2009-05-30 Thread Nitsan Bin-Nun
On Sat, May 30, 2009 at 3:26 PM, Michael A. Peters mpet...@mac.com wrote: Nitsan Bin-Nun wrote: Hi I have wrote a file uploader in PHP, and I don't want people to hijack it (get direct links, download whenever they want, etc). Currently I have placed the uploaded files one directory up

Re: [PHP] How To Limit FIle Uploader Against Hijackers?

2009-05-30 Thread Nitsan Bin-Nun
That's the verification that my layer does. I'm not sure whether that's enough or not. On Sat, May 30, 2009 at 4:43 PM, Michael A. Peters mpet...@mac.com wrote: Nitsan Bin-Nun wrote: On Sat, May 30, 2009 at 3:26 PM, Michael A. Peters mpet...@mac.commailto: mpet...@mac.com wrote: Nitsan

  1   2   >