Re: [PHP] Tracking file download progress

2009-12-24 Thread kranthi
Just out of curiosity. Can you please tell me how you initiated the download? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Tracking file download progress

2009-12-25 Thread kranthi
> Thanks all, I've found the solution! PHP Backend + JQuery works great! Just out of curiosity. Can you please tell me how you initiated the download? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] output buffer

2009-12-29 Thread kranthi
most probable error in your case is the dev server has output buffering enabled while it is turned off on the live server. try phpinfo to verify -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Unable to get output from exec "ssh remote-server 'ping -c4 ip'"

2009-12-29 Thread kranthi
better try using ssh2_* functions http://www.php.net/manual/en/function.ssh2-tunnel.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] stream_socket_client via proxy

2010-01-10 Thread kranthi
Hi all, I am trying to use http://code.google.com/p/xmpphp/ package. It uses stream_socket_client to connect to XMPP servers. I am behind a proxy server so obviously this is not working. Tried proxychains but to no avail. Am I missing something obvious? Kranthi. -- PHP General Mailing List

Re: [PHP] Cookies & sessions

2010-01-19 Thread kranthi
> When I first started using sessions, I was alarmed to read a very similar > statement about > sessions, but I soon found that if I started my program with the statement > "session_start();" I could then set up, access, modify or clear any session > variable at > any time in my program. This is

[PHP] CLI behind proxy

2010-02-04 Thread kranthi
Hi all, I want to run fsockopen etc behind a proxy. proxychains (http://proxychains.sourceforge.net/) may be helpful, unfortunately the support for that is pretty bad. Please inform me of other alternatives KK.

Re: [PHP] CLI behind proxy

2010-02-04 Thread kranthi
I did'nt understand completely. But I noticed that if i do $opts = array('http' => array('proxy' => 'tcp://10.3.100.212:8080', 'request_fulluri' => true)); $context = stream_context_set_default($opts); fopen, file_get_contents, etc. are working fine, but fsockopen is not KK.

Re: [PHP] CLI behind proxy

2010-02-04 Thread kranthi
stream_socket_client("tcp://talk.google.com:5222") i m trying to use http://code.google.com/p/xmpphp/ actually -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] no-cache control

2010-04-06 Thread kranthi
you can do that by using .htacess in the required directory http://www.askapache.com/htaccess/apache-speed-cache-control.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] No notices for undefined index

2010-04-08 Thread kranthi
>> print $a[0]; // prints 5 >> print $a[100]; // Notice: Uninitialized string offset: 100 Yup, this should happen when 5 is treated as an array of characters. In other words as a string. $a = '5'; echo $a[0]; echo $a[100]; gives you the expected result regarding the original question, i think t

Re: [PHP] Forgot what to install

2010-04-08 Thread kranthi
you forgot httpd KK. On Fri, Apr 9, 2010 at 08:32, David McGlone wrote: > Hey guys, quick question. I had to re-install my Ubuntu, and I forgot > what package I needed so firefox will display the php files and not ask > me to if I want to download them. I've done installed PHP5, mysql, and > ph

Re: [PHP] 404 redirects "stolen" by provider

2010-04-09 Thread kranthi
header('HTTP/1.1 200 Ok'); in /subapp_members/search_user.php will do the job -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP execute very slow : PHP Version 5.2.6

2010-04-11 Thread kranthi
have you tried using a profiler like xdebug? or may be it is not a php issue at all.. i find https://addons.mozilla.org/en-US/firefox/addon/1843 to be helpful in these situations -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP & MYSQL sorting

2010-04-11 Thread kranthi
You can use javascript to trigger an onclick function every time a checkbox is selected. The onclick function can make an ajax call to a remote php script which can then make the database query.

Re: [PHP] need help w/ unfamiliar syntax

2010-04-11 Thread kranthi
guess you are looking for http://www.php.net/manual/en/language.types.string.php#language.types.string.parsing -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mail Function Problem

2010-04-12 Thread kranthi
PEAR's mail package does support authentication. http://email.about.com/od/emailprogrammingtips/qt/PHP_Email_SMTP_Authentication.htm In case you get a "Sent Successfully" message (but didn't get a mail in your inbox or spam folder) there is a problem with your SMTP server configuration. And >> The

Re: [PHP] Mail Function Problem

2010-04-12 Thread kranthi
thats weired... Mail.php contains the class Mail. So getting a "class not found" error is not possible... (require_once stops the script in case it can't find Mail.php) >> Do I need to move the Mail PEAR class to the same folder as my web folder ensure that C:/xampp/php/PEAR folder is added to your

Re: [PHP] Mail Function Problem

2010-04-12 Thread kranthi
when you install pear package Mail a file called Mail.php will be installed into C:/xampp/php/PEAR >> Mail.php contains the class Mail. So getting a "class not found" error is >> not possible.. are you sure you are doing require_once 'Mail.php' ? -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] changing NULL behavior in PHP arithmetic

2010-04-15 Thread kranthi
>> because arithmetic operations with "Unknown" operands should result to >> "Unknown" ... in PHP "Unknown" values are represented by NaN, not NULL http://php.net/manual/en/function.is-nan.php but what surprises me is is_nan(6/0) = (bool)false (along with a warning) >> Now PHP uses NULL as a 0 (

[PHP] Get Power Saving Settings of the Server

2010-04-19 Thread kranthi
Hi all, My PHP script is running as CLI. Can I get the Power Management Settings of the server ? I am using PHP 5.3.2 on Fedora 12 Machine (2.6.32.10-90.fc12.i686) KK. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Get Power Saving Settings of the Server

2010-04-20 Thread kranthi
>> Your server management software may provide a way to get this information >> either through the command line or through a network interface Using exec('gconftool-2 -g /apps/gnome-power-manager/timeout/sleep_display_ac') helped. Thanks -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] Any One See where this is going wrong?

2010-04-30 Thread kranthi
may be it is not the error with the code. The problem may be with some ' in the input. Print out the mysql error and/or the sql query to see what is going wrong. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] var_dump( (0 == 'heading') ) == TRUE ?!

2010-05-14 Thread kranthi
== operator type casts the string to integer before comparing so the comparison boils down to 0 == 0 which is true these rules also apply to the switch statement http://php.net/manual/en/language.operators.comparison.php but with === the typecasting does no occur -- PHP General Mailing List (htt

Re: [PHP] Versión del MySQL en PHP

2010-05-19 Thread kranthi
http://www.php.net/manual/en/function.mysql-get-server-info.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] user login and access + headers already sent

2010-07-15 Thread kranthi
i prefer using a template engine like smarty http://www.smarty.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] set different .htaccess rules

2010-07-15 Thread kranthi
i would use a single point of entry to solve this problem 1. keep the files outside your doc root 2. in the php file files.php check for an authorized user, if so allow the user to download the file the path http://site.com/files/we23h4hk234hjksdjrjkl23jfasdf will actually be http://site.com/files

Re: [PHP] login to protected directory by php

2010-08-15 Thread kranthi
i would configure apache to let php interpreter handle all kinds of extensions ( http://httpd.apache.org/docs/2.0/mod/mod_mime.html#addhandler ) even then u'll have go through all the steps pointed out by Ash. the only advantage of this method is more user friendly URL -- PHP General Mailing Lis

[PHP] array_walk_recursive pass by reference

2010-08-28 Thread kranthi
i have an array $parms = array('1' => 'a', 'b' => array(3 => 'test')); i want $mail = '1:a 3:test'; array_walk_recursive($parms, function($val, $key, &$mail) {     $mail .= ucwords($key) . ': '. ucwords($val) . "\n"; }, &$mail); The above function worked perfectly well but i am getting: Call-time

Re: [PHP] Hi

2010-09-06 Thread kranthi
use some thing like http://uploadify.com u can always check for the uploaded file extension/mime-type on the server side -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread kranthi
i m not sure if i usderstood your question completely. by database you mean something like phpmyadmin, right ? i would save the latest session id of the boss in a file, and every time an employee tries to log in, verify the time stamp of the session file in the tmp folder. and if the boss logs out

Re: [PHP] New to PHP and the list

2010-09-13 Thread kranthi
> Is MAX_FILE_SIZE passed to PHP as $MAX_FILE_SIZE? only if register_golbals is set to ON in php.ini. This is a very bad practice and should be avoided. Use $_POST['MAX_FILE_SIZE'] instead. But in this case dont use the post variable also. define a constant in your configuration file and use that c

Re: [PHP] PHP Email Question

2010-10-01 Thread kranthi
uperglobal array http://php.net/GLOBALS http://php.net/heredoc Kranthi. http://goo.gl/e6t3 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] file_get_contents() failing on CentOS.

2010-10-01 Thread kranthi
probably not the issue, but is the php engine behind a proxy server ? wget uses the environment variable, but PHP does not Kranthi. http://goo.gl/e6t3 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Syntax Error

2010-10-04 Thread kranthi
As pointed out echo $insertSQl should help you locate many trivial problems. But using PDO will avoid these kind of problems -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] file_get_contents() failing on CentOS.

2010-10-04 Thread kranthi
http_proxy or HTTP_PROXY i m not sure -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] New to PHP and struggling with the basics

2010-10-04 Thread kranthi
they should be something like error_log-[date] not sure about windows though >>However I have found that if I paste the html into my web page created by >>Serif WebPlus 10 I get the "html" line but not the "php" line. are you saying that you are getting the php code in your browser ? This is a P

Re: [PHP] New to PHP and struggling with the basics

2010-10-04 Thread kranthi
apache error logs will be helpful in this case. Their location varies depending upon your installation. But in any case they'll be insde your server directory (IIRC it is c:/Program Files/Apache Software Foundation/Apache by default) -- PHP General Mailing List (http://www.php.net/) To unsubscrib

Re: [PHP] file_get_contents() failing on CentOS.

2010-10-04 Thread kranthi
and if proxxy is the issue http://proxychains.sf.net/ will help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Unknown Table i field list

2010-10-11 Thread Kranthi Krishna
echo $query; before $result = mysqli_query($dbc, $query); might be of help to understand what is going wrong copy that query and execute in phpMyAdmin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Scripts running twice

2010-10-12 Thread Kranthi Krishna
apache log files will be of help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Google Calendar

2010-10-12 Thread Kranthi Krishna
The exact error message will help understand your situation Most probable reason is Zend is not included in your include path develop with error_reporting set to E_ALL & E_STRICT that will help you understand many trivial errors -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Google Calendar

2010-10-12 Thread Kranthi Krishna
in this case when you put a tab before the closing heredoc it is not an error in itself. Its equivalent to removing the closing heredoc. so PHP treats the rest of the code as part of the string. A Parse error is reported when ?> OR end of the file is reached -- PHP General Mailing List (http://w

Re: [PHP] No errors gets displayed, just a blank page

2010-12-07 Thread Kranthi Krishna
wats the setting of display_errors php.net/display_errors ? if you are not getting any output it might be because of a simple parse error (mismatched brackets, misplaced semicolon etc) or an exit/die command Kranthi. http://goo.gl/e6t3 -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] newbie basic realm protection - why don't the input usr/pass stick?

2010-12-07 Thread Kranthi Krishna
you script looks (and works) fine. so i dont think the problem is in your script I found firebug/live http headers firefox addons to be helpful in this situation see if your client is actually sending "Authorization Basic" header Kranthi. http://goo.gl/e6t3 -- PHP General Mailing

Re: [PHP] Flat PHP projects and Firebug

2012-04-12 Thread Kranthi Krishna
I never had a problem with FirePHP. Among other tools I have used, some gave "Headers already sent" problem. The rest failed in case of AJAX requests. AFAIR Breakpoints are used for debugging and are different from Logging. For debugging you may have a look at xDebug Kranthi. http://g

Re: [PHP] Re: Getting File Owner Name

2011-06-13 Thread Kranthi Krishna
this might be of use http://php.net/posix-getpwnam <http://php.net/manual/en/function.posix-getpwnam.php> Kranthi. http://goo.gl/e6t3

Re: [PHP] Linking A C Program Example to PHP

2011-07-11 Thread Kranthi Krishna
>> But the example will NOT work via the web browser on my Apache 2 >> (2.2.17) / PHP (5.3.5) Web Server! May be a problem with the permissions ? Kranthi. http://goo.gl/e6t3 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Headers already sent

2011-11-10 Thread Kranthi Krishna
Hi, > Perhaps your server is configured to have output buffering enabled by default Thanks. That was the problem. I spent a day trying to debug this. Kranthi. http://goo.gl/e6t3 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    1   2