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
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
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
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
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
-
Kranthi.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
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
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
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
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
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
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
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
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
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
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
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
same is the case when i replace
$a2[0] = 3; with
$a1[0] = 3;
$x = 3;
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??
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
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
http://www.jonasjohn.de/lab/htmlsql.htm ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
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 {
}
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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)
you can give this a try http://www.uploadify.com/ a jquery plugin.
that depends upon your need.embedding google calendar is best for starters
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
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
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
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
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
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
code:
http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
\n";
}
wont this do ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
("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:
>>>
>
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
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
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
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
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
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
>> 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
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
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
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
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...
>> 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
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
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
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
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
> @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
> '; ?>
may b u should have
'; ?>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
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
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
>> 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
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
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
/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
>> 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
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
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
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
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)
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
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
>> 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
http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#RewriteCond
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
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
; 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
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
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');
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.
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.
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
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 - 100 of 149 matches
Mail list logo