So I'm using PHP+MySQL to deliver database contents in XML to a JavaScript.
$xml = "<?xml version='1.0' encoding='utf-8'?><confessions><pending>";
$pending = $m->MySqlHandler->Query("SELECT id, gender, age, confession, date_posted FROM confessions WHERE publish = 0");
foreach ($pending->Rows as $pr)
{
list($id, $gender, $age, $confe...
It's from the comment under this answer,but I really don't figure out what he means:
http://stackoverflow.com/questions/2211919/how-to-change-from-mysql-to-pdo-using-prepared-statements-in-php/2211992#2211992
...
Hello
I have a upload box which is used to upload image. I want to restrict the user to upload a particular sized image. Such as, user can't upload a image which is larger than the allowed width, height. If someone tries to select such, then i want to show him a message on client side using javascript before uploading the image.
So ca...
I can get it to remove all the question marks with the code below:
preg_replace('/(\?+)/', '', $string)
No matter what I seem to do I can't get it to also remove all the minus signs as well. Everything I try just breaks the whole regex.
...
For some reason when I use PHP's mail function, a email can be sent two, three even more times. I am using PHP's mail function through the Zend Framework: framework.zend.com/manual/en/zend.mail.introduction.html
The same email is being sent with the same timestamp.
I believe this is due to this reason: kb.mediatemple.net/questions/774/...
I am making an AJAX call with jQuery to a PHP script that needs to return javascript code embedded in a JSON result for the jQuery code to execute. How do I go about passing javascript code in JSON?
...
Hi guys - I have two tables here: One holds a list of subscriber emails:
(ID, email)
and the other holds a list of domains:
(ID, domain)
I want to figure out a sql statement that allows me to select * the email addresses which belong to the domains listed in the domain table assuming that all emails are of the form:
name@domain
...
Hello,
I need to login by a PHP script that uses CURL to a Joomla website, in order to access to a private page that needs to be processed, but nothwithstanding several attempts I have done, I have always a 403 error. I have done a similar thing with other websites and it worked.
Script I use:
$uname = "id";
$upswd = "pswd";
$url = "h...
I have a PHP script that takes a long time (5-30 minutes) to complete. Just in case it matters, the script is using cUrl to scrape data from another server. This is the reason it's taking so long; it has to wait for each page to load before processing it and moving to the next.
I want to be able to initiate the script and let it be unti...
Hello again. All of my application is written in PHP, bar 1 script which happens to create a md5 hash which is used later via PHP scripts. Problem being they dont match up.
PERL:
#$linkTrue = 'http://www.themobilemakeover.co.uk/mobile-makeover-appointment-booking-signup.php'
md5_hex($linkTrue);
And for testing purposes i did this i...
I'm looking for a php class that can minify js and css code.
thanks
...
I have written to check all and delete but when i click on delete form is submit but value of check box is not posted
my html code is following:
<?php
$sql="select * from tbl_comment order by id desc limit $start,$rec_per_page";
$result = $db->sql_query($sql);
?>
<br>
<form action="?page=<?=$_REQUEST['page']?>&op=delete" method="post...
Hi, please can somebody let me know how to do the following PHP in JavaScript. The vaibles in PHP are Parameters in Javascript. If all three Parameters are set then I would like a PHP script to execute:
<?php
if isset($nation,$service,$slider)
{
//execute php script
}
?>
Thanks for looking, and maybe helping!
To c...
now i saw a very good php script and i rewrite it to asp
the script here:Fantastic Animation PHP/CSS/jQuery Error pages
but know iam in big problem
how i can use .htaccess in asp
see how it work
ErrorDocument 500 /error.php?code=500
can i use .htaccess in asp
please tell me because iam newbie in it
because know i convery error.php to ...
HI I am fetching a ms-word file .i am able to fetch it properly but a lot of unrecognised characters appear in this file now.I think these are beacuse of like bold line,coloured line etc.But i wnat my file to be feteched as origional form.All block lines should be displayed..
PERSONAL DETAILS:
Name : Deepak Narwal
...
Possible Duplicate:
Python VS PHP, Differences?
Am starting a new project, and although I'm proficient with PHP, I'm wondering what are the pros and cons of python over php. In what situation or what kind of projects where python shines over php and when it's not?
...
Where can I download HipHop for PHP?
...
Can I compile PHP to a native iPhone app?
...
I have Facebook Connect working (partially at least).
For a user who logged into facebook, when they first visit my site's login page, the following js line will refresh the page and my php log the user in.
FB.init("api-key","xd_receiver.htm",{"reloadIfSessionStateChanged":true});
However, when a user logs out of facebook, the faceboo...
Hi i got a mysql-select about three tables, where each tables have different fields. One may have the field "title", the other may not but have the field "location". Now i want to have a common output of these three tables, and each row is supposed to have a title. for tables, whoch have the field "title" in the output the title should c...