Re: [PHP] submitting forms with ajax

2007-11-16 Thread Shiplu
Why dont you use json as server response? Then manipulate it by own javascript. You can use jquery $.getJSON function to do the ajax part for you. On 11/16/07, Shiplu [EMAIL PROTECTED] wrote: Why dont you use json as server response? Then manipulate it by own javascript. You can use jquery

Re: [PHP] submitting forms with ajax

2007-11-16 Thread Shiplu
Why dont you use json as server response? Then manipulate it by own javascript. You can use jquery $.getJSON function to do the ajax part for you. On 11/16/07, samantha_o [EMAIL PROTECTED] wrote: Hi, i would like to submit forms with ajax, using jquery and then load the next page. I had

[PHP] scandir() in automount/autofs

2008-01-21 Thread shiplu
I configured autofs in my fedora so that when I plug any usb stick in /dev/sda1 it automatically mounts in /mnt/auto/usb0 There is two lines where the problem arise. $util-run_command(ls -1 /mnt/auto/usb0 | wc -l);// it shows 13 when I plug my usb stick. $list = scandir(/mnt/auto/usb0 ); //

Re: [PHP] scandir() in automount/autofs

2008-01-22 Thread Shiplu
shiplu ezt írta: I configured autofs in my fedora so that when I plug any usb stick in /dev/sda1 it automatically mounts in /mnt/auto/usb0 There is two lines where the problem arise. $util-run_command(ls -1 /mnt/auto/usb0 | wc -l);// it shows 13 when I plug

Re: [PHP] including files outside of document root

2008-01-22 Thread shiplu
On Jan 22, 2008 4:21 PM, Daniel Brown [EMAIL PROTECTED] wrote: On Jan 22, 2008 3:57 PM, Jason Pruim [EMAIL PROTECTED] wrote: Hi everyone, Hi, Jason! Been doing some reading on security and have decided that I should be storing my include files outside of the document root... Which I

Re: [PHP] setcookie

2008-03-12 Thread Shiplu
Even you cant put a space before ?php tag. the following code will throw the same error. | ?php | setcookie(); | ? Because I prepend a space for each line But this will be okay |?php | setcookie(); | ? This is a very common mistake and very very hard to find. On Wed, Mar 12, 2008 at 7:53 AM,

[PHP] Capturing shell command output.

2007-08-18 Thread shiplu
HI, I am working on a PHP project that interacts with command line utilities. My php is running by apache. Means I am not running any php CLI. here is the function that I am using for capturing command output. function run_command($comamnd){ $ret=`$command 1 COMMAND.OUT 21`;

Re: [PHP] Re: Declare variables in advance question

2007-08-21 Thread shiplu
use #php -s command to indend your source file On 8/21/07, Colin Guthrie [EMAIL PROTECTED] wrote: nitrox . wrote: I want to declare these variables Game_id and Member_id in advance. Following the suggestionfrom one of my books can I do something like this: $expected = array('Game_id',

Re: [PHP] Capturing shell command output.

2007-08-27 Thread shiplu
, August 18, 2007 3:26 pm, shiplu wrote: HI, I am working on a PHP project that interacts with command line utilities. My php is running by apache. Means I am not running any php CLI. here is the function that I am using for capturing command output. function run_command($comamnd

Re: [PHP] c++ and php! search for a brigde

2007-08-28 Thread shiplu
On 8/28/07, Gevorg Harutyunyan [EMAIL PROTECTED] wrote: Barev David, I think this is solution 1. C/C++ updates database (MySQL or other) 2. There is some PHP file that is viewing your DB info(printing static info) 3. There is other PHP file that is using AJAX for interactive update of

Re: [PHP] why?

2007-08-28 Thread shiplu
On 8/28/07, mike [EMAIL PROTECTED] wrote: On 8/28/07, Stut [EMAIL PROTECTED] wrote: In addition the OP is running IIS so this is all kinda less than helpful to him. yeah, i didn't say this would, but it should be able to be ported to a PHP module by someone i would think. i mean if

Re: [PHP] Regular expression - URL validator

2007-08-28 Thread shiplu
On 8/28/07, Wagner Garcia Campagner [EMAIL PROTECTED] wrote: Thanks Jim, Your sugestion worked perfect for me!! I have another question: After i validate this URL i want to put a link with this URL in my page. The problem is that if the URL is like (www.aol.com), when i create the link,

Re: [PHP] How to run and terminate C++ program(*.exe) with PHP?

2007-08-29 Thread shiplu
On 8/29/07, Aram Shatakhtsyan [EMAIL PROTECTED] wrote: How to run C++ program(*.exe) with PHP, and then terminate it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php PHP can do anything. But the matter is where the host permits to do

[PHP] mail() takes too much time

2007-09-02 Thread shiplu
Hello everybody, I am maintaining a social network site. there each user can send other mail. these mails are not real mail rather message entry to database. I added a new feature so that every message is sent to me (admin/webmaster) via email (real e-mail). I used mail function. THis is a simple

[PHP] PHP Debugger

2007-09-04 Thread shiplu
Hello, i need a good php debugger. It should provide the facility of step by step execution in real time. Is there any? Do any of you know about this? I am having a bug. I can't trace where it is. -- shout at http://shiplu.awardspace.com/ Available for Hire/Contract/Full Time

Re: [PHP] Help Call Javascript Methods Inside PHP

2008-05-20 Thread Shiplu
On 5/20/08, Shelley [EMAIL PROTECTED] wrote: Hi all, How can I call a javascript method inside PHP? That is: Suppose there is a js file: http://someurl/somejs.js There are some js methods in that js file, I want to include that js into PHP and call its methods. Is it possible? If it is,

Re: [PHP] Function not in the documentation

2008-05-20 Thread shiplu
On Tue, May 20, 2008 at 8:24 AM, Christoph Boget [EMAIL PROTECTED] wrote: I ran across a PHP function, strip_illegal_chars(), but can't seem to find anything about it in the documentation. Does anyone know precisely what it does? Or where I can find actual documentation for that

[PHP] PHPMailer not working but Squirell mail works

2008-06-13 Thread Shiplu
Hi, In my web server, I cant send mail by PHPMailer. But If I login by the squirellmail webclient my hosting provider gave, it sends email promptly. Can anyone tell me what could be the reason? -- Shiplu http://talk.cmyweb.net

Re: [PHP] a questoin about the # char

2008-06-13 Thread Shiplu
On Thu, Jun 12, 2008 at 8:18 PM, Sebastian Camino [EMAIL PROTECTED] wrote: Hello, I want to know what the # char does. On a website I was working at, I tried to open a file with a # in it's name and I got an error. So I'd really appreciate any help to know how to avoid the error and what

Re: [PHP] PHPMailer not working but Squirell mail works

2008-06-13 Thread Shiplu
On Fri, Jun 13, 2008 at 12:00 PM, Boyd, Todd M. [EMAIL PROTECTED] wrote: -Original Message- From: Shiplu [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2008 10:55 AM To: PHP General list Subject: [PHP] PHPMailer not working but Squirell mail works Hi, In my web server

[PHP] Capture homepage screenshot

2008-06-13 Thread Shiplu
. The problem with this solution is, I have to run X, Firefox in my web server, which doesn't look efficient for a server. I wanna know, is there any other way to achieve this? without creating a screen shot server. Thanks Shiplu http://talk.cmyweb.net/

Re: [PHP] Capture homepage screenshot

2008-06-13 Thread Shiplu
On Fri, Jun 13, 2008 at 5:01 PM, Daniel Brown [EMAIL PROTECTED] wrote: On Fri, Jun 13, 2008 at 4:56 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: it took me longer than i thought too. the main issues are performance ones. My main issues are paid projects taking precedence over non-paid.

Re: [PHP] losing mysql connection during cron job

2008-06-18 Thread Shiplu
The script cycle is, symbolically: foreach (recipients as batch) { mail() using batch of recipients; mysql_query() update table; sleep(60); } final mysql_query() update table as complete; why don't you edit your

Re: [PHP] Associative Arrays

2008-06-19 Thread Shiplu
On Thu, Jun 19, 2008 at 8:55 PM, VamVan [EMAIL PROTECTED] wrote: Hi, How to create an associative array of this kind in PHP? return array( 12345 = array( 'mail' = '[EMAIL PROTECTED]', 'companyName' = 'Asdf Inc.', ), 54321 = array( 'mail' = '[EMAIL PROTECTED]',

[PHP] Remote File download is very slow

2008-08-25 Thread Shiplu
just put the method body. Can any one help me on increasing the speed? Thanks in Advance -- http://talk.cmyweb.net/ http://twitter.com/shiplu

[PHP] Re: Remote File download is very slow

2008-08-25 Thread Shiplu
); curl_exec($ch); curl_close($ch); } fclose($this-lfp); _ -- Blog: http://talk.cmyweb.net/ Follow me: http://twitter.com/shiplu

Re: [PHP] Remote File download is very slow

2008-08-25 Thread Shiplu
: http://twitter.com/shiplu

Re: [PHP] Remote File download is very slow

2008-08-25 Thread Shiplu
/ Follow me: http://twitter.com/shiplu

Re: [PHP] Remote File download is very slow

2008-08-25 Thread Shiplu
/ Follow me: http://twitter.com/shiplu

Re: [PHP] Javascript mailing list

2008-08-30 Thread Shiplu
May be jsninja has mailing list. I am fond of jquery. so i recommend it too. -- Blog: http://talk.cmyweb.net/ Follow me: http://twitter.com/shiplu

[PHP] how to write good code

2008-08-30 Thread Shiplu
I wanna know how to write good code in php. Not oop stuff. I wanna know how to write a good php code file. documentation, comments. indentation etc. what are the good practices?? -- Blog: http://talk.cmyweb.net/ Follow me: http://twitter.com/shiplu

[PHP] Re: how to write good code

2008-09-01 Thread Shiplu
Thanks Eric, Diogo, Ross and specially Christopher for this long article. I have started reading those articles. And I hope to collect those books too. -- Blog: http://talk.cmyweb.net/ Follow me: http://twitter.com/shiplu

Re: [PHP] Google Chrome

2008-09-02 Thread shiplu
Google Chrome is not released yet, is it? Didn't get any download link. :-S -- A K M Mokaddim http://talk.cmyweb.net http://twitter.com/shiplu Stop Top Posting !!

[PHP] Regular Expression Backreference in subpattern.

2008-09-27 Thread Shiplu
any idea? -- Blog: http://talk.cmyweb.net/ Follow me: http://twitter.com/shiplu -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Regular Expression Backreference in subpattern.

2008-09-27 Thread Shiplu
On 9/27/08, Nathan Rixham [EMAIL PROTECTED] wrote: Shiplu wrote: The string is tdcharge/tdtd100/td. I want and array( charge=100). I am using this regular expression, '/td([^]+)\/tdtd(?P\1\d+)\/td/'. But its not working.. I get this error., PHP Warning: preg_match

Re: [PHP] Re: Regular Expression Backreference in subpattern.

2008-09-27 Thread Shiplu
://twitter.com/shiplu -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Regular Expression Backreference in subpattern.

2008-09-27 Thread Shiplu
://talk.cmyweb.net/ Follow me: http://twitter.com/shiplu -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Regular Expression Backreference in subpattern.

2008-09-27 Thread Shiplu
On 9/27/08, Nathan Rixham [EMAIL PROTECTED] wrote: Shiplu wrote: The string is tdcharge/tdtd100/td. I want and array( charge=100). I am using this regular expression, '/td([^]+)\/tdtd(?P\1\d+)\/td/'. But its not working.. I get this error., PHP Warning: preg_match

Re: [PHP] Re: Regular Expression Backreference in subpattern.

2008-09-27 Thread Shiplu
Sorry The previous code was wrong, Its the correct version, $x = a b;c d;e f;; preg_match('/(?Pkeys\w) (?Pvalues\w)/',$x,$m); print_r($m); Now I am using backrefrence \1 in in ?P option like (?P\1\d+). and I got the error. -- Blog: http://talk.cmyweb.net/ Follow me: http://twitter.com/shiplu

Re: [PHP] Variable Argument List

2008-11-17 Thread Shiplu
: http://talk.cmyweb.net/ Follow me: http://twitter.com/shiplu -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Accented character in Regex.

2008-11-17 Thread Shiplu
How to match accented characters by preg match?? I need to match Sin garantía by /([^]+)/ but its capturing only Sin garant Any idea? -- Blog: http://talk.cmyweb.net/ Follow me: http://twitter.com/shiplu -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Curl with asp pages....

2008-11-28 Thread shiplu
and response packet from there. Make a format and use it with CURL. Thats it. So Simple. You never gonna need to know who is generating the site, PHP or ASP.NET. -- A K M Mokaddim http://talk.cmyweb.net http://twitter.com/shiplu Stop Top Posting !!

Re: [PHP] Curl with asp pages....

2008-12-07 Thread shiplu
On Sun, Dec 7, 2008 at 8:22 AM, ioannes [EMAIL PROTECTED] wrote: shiplu wrote: When you are dealing with curl, anything can be done as long as its a HTTP request.Its all about sending HTTP headers and content. To parse HTML content you can use HTML parser. Regular expression may not work

Re: [PHP] usort for sorting an array of objects

2008-12-10 Thread Shiplu
may be you can design a class. interface ISortable{ public sort(); public compare($a,$b); } SortableList implements ISortable { } -- Blog: http://talk.cmyweb.net/ Follow me: http://twitter.com/shiplu -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] usort for sorting an array of objects

2008-12-10 Thread Shiplu
PHP is a scripting language. Everytime the compiler has to parse the source. You can not except true OOP performance. OOP behavior is okay. If performance is the main factor, an C extension will do that. -- Blog: http://talk.cmyweb.net/ Follow me: http://twitter.com/shiplu -- PHP General

Re: [PHP] Curl with asp pages....

2008-12-17 Thread shiplu
On Wed, Dec 17, 2008 at 6:28 AM, ioannes ioan...@btinternet.com wrote: shiplu wrote: On Sun, Dec 7, 2008 at 8:22 AM, ioannes ioan...@btinternet.com wrote: shiplu wrote: When you are dealing with curl, anything can be done as long as its a HTTP request.Its all about sending HTTP headers

[PHP] (auto) session expire

2009-01-05 Thread Shiplu
at the very beginning of my application. APP_SESSION_TIMEOUT has value 10 which is in minutes. The problem is it works good in FF3. But not in IE. Any Idea how to resolve it? or any standard way to fix it? -- Blog: http://talk.cmyweb.net/ Follow me: http://twitter.com/shiplu -- PHP General Mailing

[PHP] imagettftext() and East Asian Font rendering

2009-12-02 Thread shiplu
, talk.cmyweb.net Follow me, twitter.com/shiplu Innovation distinguishes bet ... ... (ask Steve Jobs the rest) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Use specific IP for outbound traffic.

2009-12-04 Thread shiplu
it can be done by changing the routing table. I think this technique has a problem. If one script changes the gate way to its own IP other script will be using that IP too. Is there any way to achieve this without changing the routing table gloablly? -- Shiplu Innovation distinguishes bet ... ... (ask

Re: [PHP] Learning PHP

2009-12-12 Thread shiplu
talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Regexp and Arrays

2010-01-02 Thread shiplu
There can be a problem. But do you see a problem?? if yes. what is it? May be we can find the solution. -- Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask

Re: [PHP] Subversion Ubuntu client

2010-01-22 Thread shiplu
kdesvn, Its great. Don't know about GTK. But there should be. You can find all the subversion related package list by this following command (without $ sign) $ apt-cache search subversion -- Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers

Re: [PHP] memory efficient hash table extension? like lchash ...

2010-01-23 Thread shiplu
. A good algorithm can solve your problem anytime. ;-) -- Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest) -- PHP General Mailing List (http

Re: [PHP] Php-cli, scripts freeze on exit

2010-01-24 Thread shiplu
. I've created a little working example: #!/usr/bin/php ? echo 'hellu'; exit(0); ? What if you dont use any exit(0) ?? -- Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet

Re: [PHP] If the first four characters are 0000, then do {}

2010-01-26 Thread shiplu
Another technique could be. $s = $mydata-restored; if($s[0]==$s[1] $s[1]==$s[2] $s[2]==$s[3] $s[3]==0){ do_work(); } But I think you got the best solution already. -- Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http

Re: [PHP] If the first four characters are 0000, then do {} - timing tests

2010-01-26 Thread shiplu
Ran this code (http://pastie.org/795983) The result is, array of 10,000 Array ( [[]] = 5.66168689728 [strpos] = 5.70796895027 [substr] = 5.92751288414 [preg_match] = 6.21515512466 ) -- Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST

Re: [PHP] Re: Hi list --- justa simple question

2010-02-07 Thread shiplu
the feed aggregator module in drupal but not for drupal , for any website There may be an out of box solution. You can google for it. If you dont find any you have to write it in plain php. -- Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers

Re: [PHP] $_POST vs $_REQUEST

2010-02-22 Thread shiplu
'] will make $_REQEUST['var3'] available to you which is not what you want. Correct me if I am wrong. -- Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs

Re: [PHP] How to get the 'return type' of a function?

2010-02-23 Thread shiplu
think PHP doesnt support it. In ReflectionParameter class you'll see there is no parameter type too. May be this is because PHP is loosely typed language. -- Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group

Re: [PHP] Load simulation tests

2010-03-08 Thread shiplu
You can use siege in command line for web server stress testing. There are other tools. I forget it. Just look at the Performance section in http://talks.php.net/ There are some slides of Rasmus Lerdorf about these on http://talks.php.net/ which are very helpful. -- Shiplu Mokaddim My

Re: [PHP] Load simulation tests

2010-03-08 Thread shiplu
Here is the presentation http://talks.php.net/show/w2e09 -- Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest) -- PHP General Mailing List

Re: [PHP] CodeBubbles -- the coolest IDE innovation since since syntax highlighting and intellisense

2010-03-12 Thread shiplu
Its very good if you have a big monitor. I have one. Its quite good for me. Problem is its for Java. Not PHP :( I thought its for PHP as this is PHP list. -- Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group

Re: [PHP] Splitting a string ...

2010-03-15 Thread shiplu
}[/])?(?Pusername$user_name)(@$email_domain)?~; preg_match($regexp, $text, $matches); print_r($matches); // $matches['username'] will contain username. -- Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust

Re: [PHP] Temporary failure in name resolution - fsockopen()

2010-03-25 Thread shiplu
For faster dns lookup you can install dnsmasq package and make the local server cache. May be that'll solve your problem and the server will be faster. Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust

Re: [PHP] bug tracking system

2010-03-28 Thread shiplu
I want to add with Andre. I am looking for a free hosted bug tracking solution. I can not afford to host it in my web server. So is there any free one?? It should not be public. Only me and my clients will be able to see it. Thanks -- Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me

Re: [PHP] $_SERVER['PHP_AUTH_USER'] has gone

2010-04-04 Thread shiplu
You can use, http://php.net/getallheaders function and parse the authentication header. For basic authentication, username and password are kept base64 encoded and separated by a : Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http

Re: [PHP] No notices for undefined index

2010-04-08 Thread shiplu
', '1'); $a = 5; print $a[1]; print $a['test']; $a = array(); print $a[1]; print $a['test']; -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Sent from my mobile device Shiplu

Re: [PHP] Forgot what to install

2010-04-08 Thread shiplu
/) To unsubscribe, visit: http://www.php.net/unsub.php -- Sent from my mobile device Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest

Re: [PHP] Want a answer about php-cgi

2010-04-21 Thread shiplu
Did you try --with-fastcgi or --enable-fastcgi Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest) On Wed, Apr 21, 2010 at 5:17 PM

Re: [PHP] replying to list (I give up)

2010-04-21 Thread shiplu
The reply-to header should be changed to php-gene...@lists.php.net. I experience many dev list that are configured this way. So, in my gmail i change my habit to press a instead of r. Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http

Re: [PHP] What's your game? (X-PHP)

2010-04-25 Thread shiplu
King Of Fighters (Series), Tom Raider (Series), Grand Theft Auto (Series), Max Payne, Max Payne II, Prince Of Persia (Series), Sudoku Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation

Re: [PHP] auto indentation

2010-04-27 Thread shiplu
There is a command indent in your kde. Check the manual Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest) -- PHP General Mailing List (http

Re: [PHP] Two color rows in table inside while iteration

2010-04-29 Thread shiplu
$a=0; while (++$a, $row=mysql_fetch_...){ echo tr class=‌‌\alternate-row-.($a%2).\... } Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest

[PHP] PHP Encoder like IonCube

2010-05-09 Thread shiplu
Is there any php encoder like IonCube ? Looking for an opensource solution. My main target is to deliver encoded php codes so that it can not be re-engineered. Shiplu Mokadd.im My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group

Re: [PHP] PHP Encoder like IonCube

2010-05-10 Thread shiplu
. If thats the case its okay. Sometimes an obfuscated code is enough to protect it. As far I remember I heard somewhere it can be achieved by e-accelerator somehow. How is it possible? Shiplu Mokadd.im My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http

[PHP] Re: PHP Encoder like IonCube

2010-05-10 Thread shiplu
:42 +0600, shiplu wrote: On Mon, May 10, 2010 at 6:28 AM, donald sullivan don...@nixspot.com wrote: bcompiler is available, but with the correct tools data can still be extracted. http://php.net/manual/en/book.bcompiler.php Its not a problem if data can still be extracted. But I guess

Re: [PHP] regexp questions

2010-05-10 Thread shiplu
For example, the following regex doesn't work. return (bool) preg_match('/^[\pL\pN\pZ\p{Pc}\p{Pd}\p{Po}]++$/uD', (string) $str); Shiplu Mokadd.im My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation

Re: [PHP] Re: regexp questions

2010-05-11 Thread shiplu
I think the error is related to changed described here. http://www.pcre.org/changelog.txt Shiplu Mokadd.im My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest

Re: [PHP] Re: regexp questions

2010-05-11 Thread shiplu
oops! Please see the change log for version 8.00 on http://www.pcre.org/changelog.txt Shiplu Mokadd.im My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest)

Re: [PHP] PHP Encoder like IonCube

2010-05-11 Thread shiplu
I dont own a windows computer. I found phpcoder.sf.net. it uses eaccelerator to encode. This is good. But the problem is latest version of e-accelerator discontinued the encoder. So may be, an older version will do it. Didn't configured it yet. Shiplu Mokadd.im My talks, http://talk.cmyweb.net

Re: [PHP] PHP Encoder like IonCube

2010-05-12 Thread shiplu
Can you paste a sample encoded version of a php file on pastie.org? Shiplu Mokadd.im My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest) -- PHP General

Re: [PHP] PHP Encoder like IonCube

2010-05-12 Thread shiplu
It just obfuscates. Long ago I created a decoder for this type of encoder. Every day I got 100s of decoding requests. After changing my domain and hosting company I didn't upload it yet. I think bcompiler is better. Shiplu Mokadd.im My talks, http://talk.cmyweb.net Follow me, http://twitter.com

Re: [PHP] editing a file

2010-05-24 Thread shiplu
You can use shell commands. Like sed, replace etc .. Shiplu Mokadd.im My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest) -- PHP General Mailing List (http

Re: [PHP] Set up MySQL + Apache 2.2.4 on Win XP.

2010-06-01 Thread shiplu
application. Shiplu Mokadd.im My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Set up MySQL + Apache 2.2.4 on Win XP.

2010-06-01 Thread shiplu
= 3306 Change is to port= 3307 or whatever port you like. Then restart mysql. But remember, all you php app need to connect mysql through that 3307 port which is not standard. So mysql_connect() functions params should be tweaked. Shiplu Mokadd.im My talks, http

Re: [PHP] Set up MySQL + Apache 2.2.4 on Win XP

2010-06-02 Thread shiplu
Actually you just restore your NS schema in the new EasyPHP stack. Shiplu Mokadd.im My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest) -- PHP General

Re: [PHP] Re: stripping first comma off and everything after

2010-06-18 Thread shiplu
I'll use, list($data) = explode(,,$entries[$i][dn]); Shiplu Mokadd.im My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest) -- PHP General Mailing List (http

[PHP] complex unf8 indic script rendering and cairo

2010-07-02 Thread shiplu
rendering that'll be great. Thanks Shiplu Mokadd.im My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest) -- PHP General Mailing List (http://www.php.net

Re: [PHP] curl

2010-07-04 Thread shiplu
# yum install php4-curl or # yum install php-curl Shiplu Mokadd.im My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest) -- PHP General Mailing List (http

Re: [PHP] interface name file

2010-07-08 Thread shiplu
I use naming convention for interface. If an object can be cached, I create an interface I+Cache+able = ICachable. So a sample class would be named as ASampleClass.php And the Interface would be ICachable.php This is a well known interface naming convention. Shiplu Mokadd.im My talks, http

Re: [PHP] integrating lib (C++) into php

2010-07-15 Thread shiplu
Sure. All you have to do is write a php extension. Shiplu Mokadd.im My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest) -- PHP General Mailing List (http

Re: [PHP] Converting a javascript calculating page to a PHP one

2010-07-17 Thread shiplu
You can use SpiderMoneky of Mozilla or V8 of Google to execute the js. Later you can also create a php extension to call your lib. The flow will be like this, PHP -- PHP_V8_WRAPPER -- V8 -- EXECUTE_JS Shiplu Mokadd.im My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST

Re: [PHP] Determining the similarity between a user supplied short piece of text (between 5 and 15 characters) and a list of similar length text items.

2010-07-17 Thread shiplu
be different. As a developer I am not sure actually what function in php or mysql serves the purpose. Shiplu Mokadd.im My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest

Re: [PHP] MySQL Query Puzzle

2010-07-19 Thread shiplu
Use distinct. SELECT DISTINCT COLUMN1, COLUMN2 FROM ... ... Shiplu Mokadd.im My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest) -- PHP General Mailing

Re: [PHP] how do you upload to a 3rd-party remote server?

2010-08-06 Thread shiplu
You have to maintain a queue if I understand it properly. PHP page will send request on one end of queue. And the server side cron will process from other end. Cron will upload it to ftp. Now you can implement a queue using database table or you can just use a file. Shiplu Mokadd.im My talks

Re: [PHP] version_compare

2010-09-30 Thread shiplu
version_compare() return true, yet the filter_var() be undefined? Because that's what is happening. Thank you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Shiplu Mokadd.im My talks, http://talk.cmyweb.net Follow me, http

Re: [PHP] PHPExcel with large files (27,000+ rows)

2010-10-04 Thread shiplu
variable that contains big object if its not necessary. 2. Use unset when applicable 3. Read chunk by chunk. 4. Profile it to find the exact place where you are wasting memory. Optimizing that little portion of code can improve memory performance. -- Shiplu Mokadd.im My talks, http

Re: [PHP] What other languages do you use?

2010-10-08 Thread shiplu
At home I always speak in Bangla. But at work I have to speak in English. I watch Hindi movies well. So I understand Hindi too. I used, C Java C++ C# ActionScript Javascript Perl PHP Bash LISP Currently I am working in LISP C C++ At home I play with Bash, Javascript, PHP, C -- Shiplu

Re: [PHP] Re: use of ini vs include file for configuration

2010-11-11 Thread shiplu
For configuration, I used to use .php file earlier. I just used array syntax to keep the config values. But now I use json syntax. Its easy like xml. Ini file is much more user friendly than json though. -- Shiplu Mokadd.im My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu

[PHP] Performance Improvement on Calling C++ executable from PHP

2010-12-19 Thread shiplu
. Create a standalone multi-threaded server that calls a.out and php calls that server. 2. Call a.out as a CGI and convert it that way. Any ideas? -- Shiplu Mokadd.im My talks, http://talk.cmyweb.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

  1   2   >