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 contain

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

[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

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 c

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

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

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

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

2008-05-20 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. >>

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

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

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 tw

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

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 f

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 Regul

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

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 ex

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: > &g

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

2008-06-16 Thread Nitsan Bin-Nun
something 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 an

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,

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: 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 more js/Ajax issue... t

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

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

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 d

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)",$char

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 PRO

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

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: EOF; if (!isset($_POST['submitted'])) echo $formContainer; else { echo ""; var_dump($_GET); echo "\n\n\n"; var_dump($_POST); echo ''; echo $formContainer; } ?> HTH, Nitsan 2008/7/31 Robert Cummings <[EMAIL PROTEC

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: 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 to find our about concatenating wit

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 attac

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

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

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 program

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 ha

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

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

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

<    1   2