Re: [PHP] Resampling images -- need lock ?

2009-04-20 Thread kranthi
yeh. if u want it to be on server side that is a good approach. but i feel it'll be very easy to do it with javascript... but what i did not understand is: what should happen if the user clicks ROTATE second time(when the script completed rotating say 5 images)? -- PHP General Mailing List (http

Re: [PHP] Resampling images -- need lock ?

2009-04-20 Thread kranthi
then u'll b needing a lock (a shared resource like a SESSION var will do) even if u do it by javascript -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help me debug this

2009-04-20 Thread kranthi
i find var_dump useful in these situations, and for error reporting try trigger error. http://php.net/manual/en/function.trigger-error.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Unable to send mail from PHP to AT&T e-mail address

2009-04-21 Thread kranthi
of u are sure that the mail was not received as spam... check the log files of the mail server on the server to be sure that the mail actually reached the mail server from the http server -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: checkboxes

2009-04-21 Thread kranthi
yeh an onclick event handler is required to achieve this. but as Shawn has suggested radio buttons are better in this case. but then again if u want to disable/greyout the other input(like textboxes, other than the radio button itself) u'll hav to use onclick event handler for the radio buttons -

Re: [PHP] MAIL Error

2009-04-21 Thread kranthi
Kranthi. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: checkboxes

2009-04-22 Thread kranthi
i find var_dump, trigger_error really useful in situations like these. just do var_dump($_POST); var_dump($_GET); in the action{.php} script and u'll find a good deal of useful information -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [php] embedding excel chart/graph

2009-04-24 Thread kranthi
y specifically an excel chart ? see http://teethgrinder.co.uk/open-flash-chart/ Kranthi. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [php] graph with two or more input display

2009-04-24 Thread kranthi
http://pchart.sourceforge.net/documentation.php?topic=exemple8 but may be a 2-D graph will be more simpler to understand http://teethgrinder.co.uk/open-flash-chart/gallery-bar-4.php Kranthi. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SMTP mail server

2009-04-24 Thread kranthi
if u cant change the configuration settings of php.ini use http://pear.php.net/package/Mail alternatively u can also hav ini_set on top of every page. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SMTP mail server

2009-04-24 Thread kranthi
ini_set("SMTP", "mail.host.com"); ini_set("smtp_port", 25); http://ca2.php.net/manual/en/mail.configuration.php http://ca2.php.net/manual/en/function.ini-set.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Formating Numbers

2009-04-25 Thread kranthi
pl post the desired result, the functions if u r trying to get $ 34,567.25 i dont understand y this is not working for u... http://php.net/manual/en/function.number-format.php#88486 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: RES: [PHP] inexplicable behaviour

2009-04-25 Thread kranthi
for the script to work. the script should work even if u replace $Count1 = $Count++; with $Count++; Kranthi. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How can I detect an exception without using try/catch?

2009-04-25 Thread kranthi
destroy the object if the exception is caught) Kranthi. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] intval

2009-05-09 Thread kranthi
g(3) "Jan" int(0) bool(true) but i m expecting string(3) "Jan" int(0) bool(false) ny ideas y this is happening?? Kranthi. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] intval

2009-05-09 Thread kranthi
thanks for the reply... just happened to see http://php.net/ternary which explains the above result i want to explicitly type cast all the numbers passed via post (by default they are strings) is_numeric() is a option, but it will not be possible to differentiate between int and float. $_POST['mo

Re: [PHP] intval

2009-05-09 Thread kranthi
k i ended up with this code its giving me array(5) { [0]=> int(1) [1]=> int(100) [2]=> float(100.1) [3]=> float(100.123) [4]=> &string(1) "a" } what does &string mean ?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] intval

2009-05-09 Thread kranthi
if that is the case & should appear before all the other variables as well and. is giving me array(5) { [0]=> int(1) [1]=> int(100) [2]=> float(100.1) [3]=> float(100.123) [4]=> string(1) "a" } ny idea y this difference arises? -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] Help with PHP processing form checkboxes needed :-(

2009-05-18 Thread kranthi
1. every time the form is submitted.. generate the list of all the check boxes which are checked and overwrite the previous value in the database. 2. get the list of all entries from the database see if the corresponding check box is checked.. if so leave it as it is, if not remove it... this dep

[PHP] reference variables

2009-05-22 Thread kranthi
same is the case when i replace $a2[0] = 3; with $a1[0] = 3; $x = 3; Kranthi.

Re: [PHP] Re: reference variables

2009-05-22 Thread kranthi
thank you for the reply. i had a small misunderstanding regarding variable reference...now its clear but.. the output of is array(1) { [0]=> &int(1) } while for it is int(1) can u tell me what & signifies here??

Re: [PHP] session.auto_start

2009-05-22 Thread kranthi
1. If you do turn on session.auto_start then you cannot put objects into your sessions since the class definition has to be loaded before starting the session in order to recreate the objects in your session. but the official php manual suggests a workaround... http://in2.php.net/manual/en/intro.s

Re: [PHP] SECURITY PRECAUTION BEFORE SUBMITTING DATA IN DATABASE

2009-05-22 Thread kranthi
not related to SQl but u may want to look at http://php-ids.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] DOM Source of Selection

2009-05-22 Thread kranthi
http://www.jonasjohn.de/lab/htmlsql.htm ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] fgets function for very large files

2009-05-23 Thread kranthi
i accept the fact that PMA is full of security holes, and it should not be used on production server. but it does not mean that we can never use it on a development server probably you may have a bit of trouble while moving from development server to production server. but u can always export y

[PHP] conditional classes

2009-05-23 Thread kranthi
is this a bad practice? i want to create a database class, with a particular definition when server supports PDO and a different definition if the server does not comments please. Kranthi. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] conditional classes

2009-05-24 Thread kranthi
thanks for the comments, what i m planning to do is function _autoload($class) { if($class == 'Database') { if(class_exis('PDO') { include_once('Database_PDO.php'); } else { include_once('Database.php'); } } where in Database_PDO.php contains class Database extends PDO { }

Re: [PHP] General Web Development Editor/IDE

2009-05-24 Thread kranthi
one of the most frequently asked question... assuming your platform is windows.. my recommendation is a combo of phpDesigner and CS4. phpDesigner is best IDE i hav seen till date (for PHP), but its not suited do ny CSS/HTML coding Notepad++ will be helpful to debug HTML errors(like closing tags

Re: [PHP] fgets function for very large files

2009-05-24 Thread kranthi
1. open that in a text editor 2. copy a few lines 3. create a new text file 4. paste the copied lines 5. save with the extension .csv but i doubt this process works i faced exactly same problem few months back and i found http://www.tech-recipes.com/rx/2345/import_csv_file_directly_into_mysql/ to

Re: [PHP] conditional classes

2009-05-24 Thread kranthi
ohh. sorry. what i intend to write is __autoload function... http://in.php.net/autoload moreover __autoload function is highly useful(especially when i hav one class per file) and i use it nearly every time i use a class. i dont think the scope of class definition 'included' within a function is

Re: [PHP] templating engine options

2009-05-24 Thread kranthi
i use smarty (a templating engine) for two important reasons... 1. in most of my projects, templates are designed by a third party and i dont want them to access all my php variables. 2. smarty is meant to do html coding and in many cases i can get the job done in single sentence, while it takes 3

Re: Re: [PHP] change server time

2009-05-24 Thread kranthi
what do you mean by "..does not change the server time permanently..." as far as i can understand you want your wamp server to take the time specified by your operating sys. as a mater of fact it is doing that. but it is not taking the timezone specified by your operating system. http://us2.php.n

Re: [PHP] Re: Background Process

2009-05-26 Thread kranthi
would be best for you if you considered alternative options. for example you can make an AJAX request to the second file. Kranthi. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] html and password management

2009-05-26 Thread kranthi
seems more of a firefox question than a PHP question... just replace with https://developer.mozilla.org/en/How_to_Turn_Off_form_Autocompletion -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why does PHP have such a pain in the a$$ configuration file?

2009-05-28 Thread kranthi
phpinfo() will help you to find the differences in the configuration... i do this every time i move to a new host(before uploading any other files to the server, of course i delete it afterward) and change my pages accordingly. most of the configuration settings in php.ini can be overridden by ini

Re: [PHP] Re: Displaying images

2009-05-28 Thread kranthi
I suggest you use firebug https://addons.mozilla.org/en-US/firefox/addon/1843 coming back to your case.. 1. use the inspect function of firebug to check if the is displaying correctly. 2 then use the net tab of firebug to see if the image is actually downloaded from the server. 3. open the link

Re: [PHP] Create multipart email

2009-05-28 Thread kranthi
i have been using PEAR Mail. major reason being nearly all of my web hosts have this supported (pre-installed) Kranthi. On Thu, May 28, 2009 at 17:29, Phpster wrote: > > Use phpmailer, makes it simple > > Bastien > > Sent from my iPod > > On May 28, 2009, at 4:47,

Re: [PHP] Re: PHP, OOP and AJAX

2009-05-28 Thread kranthi
i never faced such a problem and i can assure you that it will never happen. try... main.php second.php test call main.php via AJAX and see the responseText. many things can go wrong in your coding. dont come to the conclusion that this particular thing is not working. i recommend you firebug

Re: [PHP] Create multipart email

2009-05-28 Thread kranthi
ohh.. what i meant is most of my web hosts hav it pre-installed (copy of that file in their include dir) so that i'll not hav to upload it again and thereby save some web space -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Google Calendar Integration

2009-06-06 Thread kranthi
and you have a complete set of documentation at http://code.google.com/apis/calendar/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to extract fields from associative array into different variables

2009-06-16 Thread kranthi
you dont have an alternative. you will have to loop because mysql_fetch_* functions fetch only one row at a time. you can use variable variables to achieve the above result (you will not require this if u use list() or extract() functions) http://us.php.net/manual/en/language.variables.variable.ph

Re: [PHP] populate form input option dropdown box from existing data

2009-06-16 Thread kranthi
the above post points to a 404 page any ways as suggested above in_array() will do the trick for you. i prefer using a template engine like smarty.. http://www.smarty.net/manual/en/language.function.html.options.php One line of code and you are done -- PHP General Mailing List (http://www.p

Re: [PHP] supplied argument errors

2009-06-23 Thread kranthi
the code works? the above warnings suggest that ter is a mysql syntax error. moreover the documentation of mysql_affected_rows suggests that u should supply a valid recource identifier but not a mysql result resource. i.e., the above should be mysql_affected_rows($db)

Re: [PHP] Progressbar

2009-06-24 Thread kranthi
you can give this a try http://www.uploadify.com/ a jquery plugin.

Re: [PHP] open source event calendar

2009-07-10 Thread kranthi
that depends upon your need.embedding google calendar is best for starters

Re: [PHP] HTTP headers and include()

2009-07-10 Thread kranthi
a single line break after the closing ?> will not cause this problem. PHP interpreter will neglect a single line break after ?> a good debugger like xdebug will be helpful in this case. u can also see the source code of the file to locate the output. any thing before php warning is the output befor

Re: [PHP] Re: SESSION variables: How much is too much?

2009-07-10 Thread kranthi
I prefer to reduce SESSION usage as much as possible. but I dont hesitate to use them if need arises. Points to note - Execution time: Only session_id is stored on the client's computer, and the actual data is stored on the server. so it will take nearly same time to process 100 session v

Re: [PHP] mysterious " f " character appearing. Why??

2009-07-10 Thread kranthi
I faced the same problem many times. The reason turned out to be an additional character outside tags. HTML formating software like Dreamweaver, HTML Tidy, Notepad++ will be helpful in these cases. Above all use HTML Validatior extension for firefox. Any ways this question has got nothing to do wi

Re: [PHP] Need Help.

2009-07-14 Thread kranthi
Hi Girish, 1. You cannot modify the browser Back button (any thing on the client's computer for that matter). 2. I strongly oppose the use of Cookies for tracking the user login, due to security reasons. Cookies are saved on the client's computer and he/she can easily modify the information presen

[PHP] parallel execution

2009-07-18 Thread kranthi
Code: passthru('firefox &'); echo '1'; I am expecting 1 to be echoed while firefox is running. but that is not the case. ny ideas how i can make this work ? Kranthi. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] why does PHP parse "*.html" files in one subdir/ but not in another?

2009-07-18 Thread kranthi
i never used x-mapp-php5, but most of a forums say it is specific to 1and1 hosting service. php recommends application/x-httpd-php http://us2.php.net/manual/en/install.unix.apache2.php try adding AddType application/x-httpd-php .html in your root htaccess if that dosent help you'll have to add th

[PHP] scandir() permissions

2009-07-26 Thread kranthi
code: http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Formatting plain text file

2009-07-30 Thread kranthi
\n"; } wont this do ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] clean url problem .htaccess

2009-08-01 Thread kranthi
mod_rewrite is the best solution available to your case. more over if you are sure that your host supports .htaccess, there is very little chance that they will block mod rewrite alone. you can confirm that by phpinfo. look in apache2handler-> Loaded Modules section (this does not tell you if .hta

Re: [PHP] Radio buttons problem

2009-08-06 Thread kranthi
you will have to manually maintain the number in the bracket. but you can try using a template engine like smarty, and use a for loop to take care of the numbers in the brackets -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Displaying user data and picture

2009-08-06 Thread kranthi
("Content-type:..') in display_img.php >> however with a .png extention to get the browser displaying the picture. thats not required as long as you have correct Content-type header Kranthi. On Fri, Aug 7, 2009 at 05:38, Michael A. Peters wrote: > Ben Dunlap wrote: >>> >

Re: [PHP] Radio buttons problem

2009-08-07 Thread kranthi
you dont seem to understand how radio buttons work. they treat name="sex[][]" as a single group. and you can select only one element in that group. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] is there a better way to know from which php file the request comes from ??

2009-08-17 Thread kranthi
HTTP_REFERRER is transparent, but if can be messed with very easily. I prefer use of $_SESSION vars if security is needed in my application (epically when a page is shown after a POST request) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] to a css file requires .css ???

2009-08-17 Thread kranthi
A browser will always parse tag regard less of the extension. the only condition is that the file should provide a mine type 'text/css' for css files. https://developer.mozilla.org/en/Incorrect_MIME_Type_for_CSS_Files -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Another date exercise

2009-08-17 Thread kranthi
dont you think http://in3.php.net/strtotime is a solution to your problem ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cannot exec in my own directory

2009-08-17 Thread kranthi
see if can run the same php file via CLI. does script.sh run without any problems ? then, probably something linke SELinux is preventing httpd from running scripts. you have to contact your system administrator to get this fixed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

Re: [PHP] Cannot exec in my own directory

2009-08-17 Thread kranthi
Did you check SELinux options ?? I have a similar problem. For some unknown reason scan_dir() is not able to read /home/user when run as Apache module. but the CLI is giving expected results. I did not find any work around, but had to read /var/www which is the home directory of 'apache' (this is

Re: [PHP] Cannot exec in my own directory

2009-08-17 Thread kranthi
>> That's a potential security flaw waiting to happen. A script like this >> shouldn't be kept in a web-accessible directory. /var/www is not the document root. document root is /var/www/html so I dont think there's a problem. >> /var/www (usually your server root) I am mistaken regarding this. f

Re: [PHP] Re: PHP and CGI

2009-08-18 Thread kranthi
try adding AddType application/x-httpd-php .pl --> or whatever extension your perl script has -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Undefined Offset Error with Pagination and Sessions

2009-08-18 Thread kranthi
may be you can use a couple of var_dumps to see what's happening behind the screens. and... use a debugger like xdebug.. it'll be of help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] getting the search words from a google query

2009-08-18 Thread kranthi
can you provide a sample URL that you have in your mysql database ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SESSIONS lost sometimes

2009-08-20 Thread kranthi
The original problem.. >> server is losing session variables. I dont think PHP is not good at unset() ing variables while the script is executing. general logger will be of use in this case (especially when cant reproduce the problem every time). PEAR, Zend, FirePHP, files... any thing will do...

Re: [PHP] SESSIONS lost sometimes

2009-08-20 Thread kranthi
>> I imagine redirects couldn't be the cause of the problem, right? Thanks, this is really a life saver.. I never used session_write_close() before any redirects... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Extract column names from a (my)SQL query

2009-08-20 Thread kranthi
this might be some help... http://stackoverflow.com/questions/283087/php-mysql-sql-parser-insert-and-update -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] unset( $anobject) does not invoce __destruct()

2009-08-24 Thread kranthi
unset($obj) always calls the __destruct() function of the class. in your case clearly you are missing something else. Probably unset($anobject) is not being called at all ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Date +30 comparison

2009-09-01 Thread kranthi
i prefer http://in3.php.net/strtotime it supports loads of other formats as well (including +30 days and 8/26/2009) above all it returns unix time stamp which can be used directly with date(). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RE: [Formaldehyde] The Most Basic Ajax - PHP Error Debugger

2009-09-11 Thread kranthi
I dont think I understood you completely.. Javascript debugger: Something you use to debug javascript. but Formaldehyde dosent make any seance if xhr object is not used. PHP Debugger: We cant use Formaldehyde to debug errors in every single PHP script. I am talking about pages called directly via

Re: [PHP] RE: [Formaldehyde] The Most Basic Ajax - PHP Error Debugger

2009-09-12 Thread kranthi
> @Andera May be you should consider using application/json as the > content type instead of text/plain. > The Response text given by  Formaldehyde cannot be understood manually > (for example if I use jQuery.load()). > Had the content type been application/json firebug parses it by default my mis

Re: [PHP] Odd Endless Loop with Explorer 8 (pc)

2009-09-12 Thread kranthi
> '; ?> may b u should have '; ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Curl output

2009-10-02 Thread kranthi
using the http://www.w3schools.com/TAGS/tag_base.asp but I am not sure if base tag works outside try... before curl_init() where URL is parsed using PHP's parse_url() function on http://example.com in either case if there are any external js/css files cURL wont fetch external files(and if t

Re: [PHP] Self-Process php forms or not?

2009-10-02 Thread kranthi
I try to avoid the use of hidden form elements as much as possible, especially for tracking whether a user has submitted a form or not... I use name="submit" for the submit button instead, that will pass the value of the submit button to the action script. above all i use a template engine, smart

Re: [PHP] Incorrect _SERVER['SERVER_PORT'] returned??

2009-10-02 Thread kranthi
i dont have any idea about your problem, but just an idea have you used https://localhost in the browser while trying to check _SERVER['SERVER_PORT'] ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RE: WYSIWYG editor to change textarea

2009-10-02 Thread kranthi
I would recommend using an open framework like yui/dojo/jquery for ALL your javascript needs..(i personally prefer jquery) each of the above mentioned frameworks have wysiwyg editors of their own. try using http://code.google.com/p/jwysiwyg/ i doubt it will conflict with your javascript with compa

Re: [PHP] Self-Process php forms or not?

2009-10-02 Thread kranthi
>> That only works if the user clicks on that submit button. If the user >> hits the enter key in a text input, the form is submitted but the submit >> input variable is not set. That is why an hidden input is a safer solution. i doubt that, because i use the above mentioned method in nearly all o

Re: [PHP] Self-Process php forms or not?

2009-10-02 Thread kranthi
and yes i forgot to mention... i avoid hidden form elements because they can be modified very easily and hence pose a security threat. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Self-Process php forms or not?

2009-10-02 Thread kranthi
ill use the first submit field it >> finds I believe. Cant agree with you on this though. as far as i know using name="" (names of the two buttons may/may not be unique) is the only way to track form submission for forms with multiple submit buttons. Please point out if you

Re: [PHP] Curl output

2009-10-02 Thread kranthi
/10/2009, Ashley Sheridan wrote: > On Fri, 2009-10-02 at 12:51 +0530, kranthi wrote: >> using the > relative.. >> http://www.w3schools.com/TAGS/tag_base.asp >> but I am not sure if base tag works outside >> >> try... before curl_init() >> where URL

Re: [PHP] Curl output

2009-10-02 Thread kranthi
>> I've read that the upcoming Firefox 4 may have some features built in >> for this sort of thing, and there are plugins out there for most >> browsers that can do this as an added layer of security. Sorry but I could not understand what you meant by "this" coming back to original problem... you

Re: [PHP] Header problem

2009-10-03 Thread kranthi
Thats a lot of headers to read.. At a first glance I can see that you did not specify a content-length header. this is a must and must be equal to the size of the file in bytes -- Kranthi. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: php exception handling

2009-10-12 Thread kranthi
cant http://us3.php.net/manual/en/function.set-exception-handler.php be used ? getMessage()); } set_exception_handler('exception_handler'); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Get rid of warning massage

2009-10-20 Thread kranthi
http://php.net/manual/en/language.operators.errorcontrol.php ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php mail() function

2009-10-22 Thread kranthi
i faced the same problem quite a few times. the general email route is php script -> sender smtp server -> receiving mail server in your case path 2 is broken. meaning port 25 is blocked by your ISP the work around is: 1. see if your ISP provides you with an SMTP account that is not blocked (OR)

Re: [PHP] Is there any way to get all the function name being called in a process?

2009-10-23 Thread kranthi
even APD is not up to the task xdebug trace http://devzone.zend.com/article/2871 is sufficient, but the output will be in a separate file. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php mail() function

2009-10-23 Thread kranthi
i never worked with postfix, but form my experience with hmail server i can say that you need to relay through a mail account of ISP(not the server itself) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sessions seems to kill db connection

2009-10-23 Thread kranthi
>> Db error: Access denied for user 'www-data'@'localhost' (using password: NO) >> WTF? I´m not using a user called www-data for MySQL connections, but apache >> runs as this user in the case where $test is true there is an open mysql connection, but when $test is false there is no open connecti

Re: [PHP] RewriteRule to hide PHP vars in URL

2009-10-25 Thread kranthi
http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#RewriteCond

Re: [PHP] PHP APACHE SAVE AS

2009-11-27 Thread kranthi
as jim stated you'll get a "undefined function" error if php_mysql extension is not loaded. in this case probably the MySql server is not running, or not running on the default port (most likely the former) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

Re: [PHP] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-09 Thread kranthi
may be unrelated to your problem... but are you behind a proxy? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Upload dir

2009-12-10 Thread kranthi
; string '/tmp/phpbSZ6WP' (length=14) var_dump(file_exists($_FILES['file']['tmp_name'])); gives me (/tmp has permissions drwxrwxrwt and i never used file_move_upload or any similar functions) boolean false am I missing something here? Kranthi. -- PHP General

Re: [PHP] Upload dir

2009-12-10 Thread kranthi
i doubt i can use ini_set in this scenario http://us3.php.net/manual/en/ini.core.php#ini.upload-tmp-dir -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Upload dir

2009-12-11 Thread kranthi
my mistake didn't use move_uploaded_file to see if the uploading is working or not in the first case but i could not understand why 1. ini_get() is giving correct value while $_FILES['file']['tmp_name'] is ignoring that. 2. move_uploaded_file($_FILES['file']['tmp_name'], 'file.php');

Re: [PHP] sending email with php

2009-12-23 Thread kranthi
another point worth noting... most of the major email clients does not display external css/images by default. The user will have to grant permission explicitly.

Re: [PHP] sending email with php

2009-12-23 Thread kranthi
No. You must have noticed gmail saying "images are blocked from .. ". This is done to prevent spammers from knowing if your email is authentic or not. Moreover you must have also noticed that all the news letters have a link pointing to a web page version of the newsletter.

Re: [PHP] Tracking file download progress

2009-12-24 Thread kranthi
I dont think the problem in discussion has a solution. Your idea can probably work but I could not understand how $_REQUEST['compleated'] variable is populated. However it suffers from 2 problems. 1. It consumes a lot of unnecessary bandwidth. 2. How are you going to initiate the download ? That

Re: [PHP] Form validation issue

2009-12-24 Thread kranthi
The javascript function formValidator() must return false if any errors are formed. >>The PHP only runs if the fields are set by testing using ‘isset”. You should definitely have a better validation than that. Remember that all users dont have javascript enabled. Moreover it is very easy to modify

  1   2   >